From f2552853a591b3d4a64cf484f0fc761f05849cfe Mon Sep 17 00:00:00 2001 From: William Sumendap Date: Thu, 12 Dec 2024 01:59:10 -0800 Subject: [PATCH] Add stalls_no_execute_mhz to Intel SPR & ICL (#329) Summary: Title Reviewed By: bigzachattack Differential Revision: D66593706 --- hbt/src/perf_event/BuiltinMetrics.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/hbt/src/perf_event/BuiltinMetrics.cpp b/hbt/src/perf_event/BuiltinMetrics.cpp index 5e8f287..4222789 100644 --- a/hbt/src/perf_event/BuiltinMetrics.cpp +++ b/hbt/src/perf_event/BuiltinMetrics.cpp @@ -1938,6 +1938,22 @@ void addIntelCoreMetrics(std::shared_ptr& metrics) { 100'000'000, System::Permissions{}, std::vector{})); + + metrics->add(std::make_shared( + "HW_CORE_STALLS_NO_EXECUTE", + "Total execution stalls.", + "Total execution stalls.", + std::map{ + {std::nullopt, + EventRefs{EventRef{ + "cpu_stalls_cycles", + PmuType::cpu, + "CYCLE_ACTIVITY.STALLS_TOTAL", + EventExtraAttr{}, + {}}}}}, + 100'000'000, + System::Permissions{}, + std::vector{})); } void addUncoreMetrics(std::shared_ptr& metrics) {