Skip to content

Commit 4ece2a7

Browse files
captain5050namhyung
authored andcommitted
perf vendor events intel: Add tigerlake two metrics
Add tma_info_system_socket_clks and uncore_freq metrics. The associated converter script fix is in: intel/perfmon#112 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-3-irogers@google.com Signed-off-by: Namhyung Kim <namhyung@kernel.org>
1 parent 19a214b commit 4ece2a7

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

tools/perf/pmu-events/arch/x86/tigerlake/tgl-metrics.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,12 @@
6262
"MetricName": "C9_Pkg_Residency",
6363
"ScaleUnit": "100%"
6464
},
65+
{
66+
"BriefDescription": "Uncore frequency per die [GHZ]",
67+
"MetricExpr": "tma_info_system_socket_clks / #num_dies / duration_time / 1e9",
68+
"MetricGroup": "SoC",
69+
"MetricName": "UNCORE_FREQ"
70+
},
6571
{
6672
"BriefDescription": "Percentage of cycles spent in System Management Interrupts.",
6773
"MetricExpr": "((msr@aperf@ - cycles) / msr@aperf@ if msr@smi@ > 0 else 0)",
@@ -1026,6 +1032,12 @@
10261032
"MetricGroup": "SMT",
10271033
"MetricName": "tma_info_system_smt_2t_utilization"
10281034
},
1035+
{
1036+
"BriefDescription": "Socket actual clocks when any core is active on that socket",
1037+
"MetricExpr": "UNC_CLOCK.SOCKET",
1038+
"MetricGroup": "SoC",
1039+
"MetricName": "tma_info_system_socket_clks"
1040+
},
10291041
{
10301042
"BriefDescription": "Average Frequency Utilization relative nominal frequency",
10311043
"MetricExpr": "tma_info_thread_clks / CPU_CLK_UNHALTED.REF_TSC",

0 commit comments

Comments
 (0)