From 95c2fb49c833cbd4fd044ae49a45f028e8fa1af7 Mon Sep 17 00:00:00 2001 From: Daniel Byrne Date: Wed, 3 Apr 2024 14:01:49 -0400 Subject: [PATCH] EMR support (#3719) --- src/PerfCounters.cc | 4 +++- src/PerfCounters_x86.h | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/PerfCounters.cc b/src/PerfCounters.cc index 0f77a20085b..31d2ae7f665 100644 --- a/src/PerfCounters.cc +++ b/src/PerfCounters.cc @@ -91,7 +91,8 @@ enum CpuMicroarch { IntelAlderlake, IntelRaptorlake, IntelSapphireRapid, - LastIntel = IntelSapphireRapid, + IntelEmeraldRapid, + LastIntel = IntelEmeraldRapid, FirstAMD, AMDF15R30 = FirstAMD, AMDZen, @@ -168,6 +169,7 @@ struct PmuConfig { // See Intel 64 and IA32 Architectures Performance Monitoring Events. // See check_events from libpfm4. static const PmuConfig pmu_configs[] = { + { IntelEmeraldRapid, "Intel EmeraldRapid", 0x5111c4, 0, 0, 125, PMU_TICKS_RCB }, { IntelSapphireRapid, "Intel SapphireRapid", 0x5111c4, 0, 0, 125, PMU_TICKS_RCB }, { IntelRaptorlake, "Intel Raptorlake", 0x5111c4, 0, 0, 125, PMU_TICKS_RCB }, { IntelAlderlake, "Intel Alderlake", 0x5111c4, 0, 0, 125, PMU_TICKS_RCB }, diff --git a/src/PerfCounters_x86.h b/src/PerfCounters_x86.h index 8099dbbd707..06a429c78b2 100644 --- a/src/PerfCounters_x86.h +++ b/src/PerfCounters_x86.h @@ -91,6 +91,8 @@ static CpuMicroarch compute_cpu_microarch() { return IntelRaptorlake; case 0x806f0: return IntelSapphireRapid; + case 0xc06f0: + return IntelEmeraldRapid; case 0x30f00: return AMDF15R30; case 0x00f10: // Naples, Whitehaven, Summit Ridge, Snowy Owl (Zen), Milan (Zen 3) (UNTESTED)