-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perf vendor events intel: Add basic metrics for Elkhartlake
Add JSON metrics for Elkhartlake to perf. Signed-off-by: Jin Yao <yao.jin@linux.intel.com> Reviewed-by: Andi Kleen <ak@linux.intel.com> Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Kan Liang <kan.liang@linux.intel.com> Cc: Peter Zijlstra <peterz@infradead.org> Link: http://lore.kernel.org/lkml/20210802053440.21035-3-yao.jin@linux.intel.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
- Loading branch information
Jin Yao
authored and
Arnaldo Carvalho de Melo
committed
Aug 2, 2021
1 parent
aa1bd89
commit 43c117d
Showing
1 changed file
with
57 additions
and
0 deletions.
There are no files selected for viewing
57 changes: 57 additions & 0 deletions
57
tools/perf/pmu-events/arch/x86/elkhartlake/ehl-metrics.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
[ | ||
{ | ||
"MetricExpr": "INST_RETIRED.ANY / cycles", | ||
"BriefDescription": "Instructions Per Cycle (per Logical Processor)", | ||
"MetricName": "IPC" | ||
}, | ||
{ | ||
"MetricExpr": "1 / IPC", | ||
"BriefDescription": "Cycles Per Instruction (per Logical Processor)", | ||
"MetricName": "CPI" | ||
}, | ||
{ | ||
"MetricExpr": "cycles", | ||
"BriefDescription": "Per-Logical Processor actual clocks when the Logical Processor is active.", | ||
"MetricName": "CLKS" | ||
}, | ||
{ | ||
"MetricExpr": "INST_RETIRED.ANY / BR_MISP_RETIRED.ALL_BRANCHES", | ||
"BriefDescription": "Number of Instructions per non-speculative Branch Misprediction (JEClear)", | ||
"MetricName": "IpMispredict" | ||
}, | ||
{ | ||
"MetricExpr": "INST_RETIRED.ANY / BR_INST_RETIRED.ALL_BRANCHES", | ||
"BriefDescription": "Instructions per Branch (lower number means higher occurrence rate)", | ||
"MetricName": "IpBranch" | ||
}, | ||
{ | ||
"MetricExpr": "INST_RETIRED.ANY", | ||
"BriefDescription": "Total number of retired Instructions", | ||
"MetricName": "Instructions" | ||
}, | ||
{ | ||
"MetricExpr": "64 * LONGEST_LAT_CACHE.MISS / 1000000000 ", | ||
"BriefDescription": "Average per-core data fill bandwidth to the L3 cache [GB / sec]", | ||
"MetricName": "L3_Cache_Fill_BW" | ||
}, | ||
{ | ||
"MetricExpr": "CPU_CLK_UNHALTED.REF_TSC / msr@tsc@", | ||
"BriefDescription": "Average CPU Utilization", | ||
"MetricName": "CPU_Utilization" | ||
}, | ||
{ | ||
"MetricExpr": "(cycles / CPU_CLK_UNHALTED.REF_TSC) * msr@tsc@ / 1000000000 ", | ||
"BriefDescription": "Measured Average Frequency for unhalted processors [GHz]", | ||
"MetricName": "Average_Frequency" | ||
}, | ||
{ | ||
"MetricExpr": "cycles / CPU_CLK_UNHALTED.REF_TSC", | ||
"BriefDescription": "Average Frequency Utilization relative nominal frequency", | ||
"MetricName": "Turbo_Utilization" | ||
}, | ||
{ | ||
"MetricExpr": "cycles:k / cycles", | ||
"BriefDescription": "Fraction of cycles spent in the Operating System (OS) Kernel mode", | ||
"MetricName": "Kernel_Utilization" | ||
} | ||
] |