Skip to content

Commit 19a214b

Browse files
captain5050namhyung
authored andcommitted
perf vendor events intel: Add broadwellde two metrics
Add tma_info_system_socket_clks and uncore_freq metrics that require a broadwellx style uncore event for UNC_CLOCK. The associated converter script fix is in: intel/perfmon#112 Fixes: 7d12430 ("perf vendor events intel: Update broadwell variant events/metrics") Signed-off-by: Ian Rogers <irogers@google.com> Reviewed-by: Kan Liang <kan.liang@linux.intel.com> Cc: Caleb Biggers <caleb.biggers@intel.com> Cc: Perry Taylor <perry.taylor@intel.com> Link: https://lore.kernel.org/r/20230926205948.1399594-2-irogers@google.com Signed-off-by: Namhyung Kim <namhyung@kernel.org>
1 parent 3779416 commit 19a214b

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

tools/perf/pmu-events/arch/x86/broadwellde/bdwde-metrics.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,12 @@
4848
"MetricName": "C7_Pkg_Residency",
4949
"ScaleUnit": "100%"
5050
},
51+
{
52+
"BriefDescription": "Uncore frequency per die [GHZ]",
53+
"MetricExpr": "tma_info_system_socket_clks / #num_dies / duration_time / 1e9",
54+
"MetricGroup": "SoC",
55+
"MetricName": "UNCORE_FREQ"
56+
},
5157
{
5258
"BriefDescription": "Percentage of cycles spent in System Management Interrupts.",
5359
"MetricExpr": "((msr@aperf@ - cycles) / msr@aperf@ if msr@smi@ > 0 else 0)",
@@ -690,6 +696,12 @@
690696
"MetricGroup": "SMT",
691697
"MetricName": "tma_info_system_smt_2t_utilization"
692698
},
699+
{
700+
"BriefDescription": "Socket actual clocks when any core is active on that socket",
701+
"MetricExpr": "cbox_0@event\\=0x0@",
702+
"MetricGroup": "SoC",
703+
"MetricName": "tma_info_system_socket_clks"
704+
},
693705
{
694706
"BriefDescription": "Average Frequency Utilization relative nominal frequency",
695707
"MetricExpr": "tma_info_thread_clks / CPU_CLK_UNHALTED.REF_TSC",

0 commit comments

Comments
 (0)