Skip to content

Commit

Permalink
Update PerfCounters.cc
Browse files Browse the repository at this point in the history
  • Loading branch information
20urc3 authored Jun 26, 2024
1 parent 7895bff commit a7de985
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/PerfCounters.cc
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ enum CpuMicroarch {
AMDZen2,
AMDZen3,
AMDZen4,
AMDRyzen9,
LastAMD = AMDZen4,
FirstARM,
ARMNeoverseN1 = FirstARM,
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit a7de985

Please sign in to comment.