From a7de985a02a30d6de0b1d36ea8f1c01e5a4f3e14 Mon Sep 17 00:00:00 2001 From: 20urc3 <94982366+20urc3@users.noreply.github.com> Date: Wed, 26 Jun 2024 07:52:04 +0200 Subject: [PATCH] Update PerfCounters.cc --- src/PerfCounters.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/PerfCounters.cc b/src/PerfCounters.cc index 85ef2fd9c7b..323502299fa 100644 --- a/src/PerfCounters.cc +++ b/src/PerfCounters.cc @@ -100,6 +100,7 @@ enum CpuMicroarch { AMDZen2, AMDZen3, AMDZen4, + AMDRyzen9, LastAMD = AMDZen4, FirstARM, ARMNeoverseN1 = FirstARM, @@ -203,6 +204,7 @@ static const PmuConfig pmu_configs[] = { { AMDZen2, "AMD Zen 2", 0x5100d1, 0, 0, 10000, PMU_TICKS_RCB | PMU_SKID_UNBOUNDED }, { AMDZen3, "AMD Zen 3", 0x5100d1, 0, 0, 10000, PMU_TICKS_RCB | PMU_SKID_UNBOUNDED }, { AMDZen4, "AMD Zen 4", 0x5100d1, 0, 0, 10000, PMU_TICKS_RCB | PMU_SKID_UNBOUNDED }, + { AMDRyzen9, "AMD Ryzen 9", 0x5100d1, 0, 0x6F, 10000, PMU_TICKS_RCB | PMU_SKID_UNBOUNDED }, // Performance cores from ARM from cortex-a76 on (including neoverse-n1 and later) // have the following counters that are reliable enough for us. // 0x21 == BR_RETIRED - Architecturally retired taken branches