2022-10-31 11:39:59

by Jing Zhang

[permalink] [raw]
Subject: [PATCH RFC 2/6] perf vendor events arm64: Add TLB metrics for neoverse-n2

Add TLB related metrics.

Signed-off-by: Jing Zhang <[email protected]>
---
.../arch/arm64/arm/neoverse-n2/metrics.json | 28 ++++++++++++++++++++++
1 file changed, 28 insertions(+)

diff --git a/tools/perf/pmu-events/arch/arm64/arm/neoverse-n2/metrics.json b/tools/perf/pmu-events/arch/arm64/arm/neoverse-n2/metrics.json
index b6b3b19..066d905 100644
--- a/tools/perf/pmu-events/arch/arm64/arm/neoverse-n2/metrics.json
+++ b/tools/perf/pmu-events/arch/arm64/arm/neoverse-n2/metrics.json
@@ -26,5 +26,33 @@
"BriefDescription": "Backend Bound L1 topdown metric",
"MetricGroup": "TopDownL1",
"MetricName": "backend_bound"
+ },
+ {
+ "MetricExpr": "ITLB_WALK / INST_RETIRED * 1000",
+ "PublicDescription": "The rate of TLB Walks per kilo instructions for instruction accesses",
+ "BriefDescription": "The rate of TLB Walks per kilo instructions for instruction accesses",
+ "MetricGroup": "TLB",
+ "MetricName": "itlb_mpki"
+ },
+ {
+ "MetricExpr": "ITLB_WALK / L1I_TLB",
+ "PublicDescription": "The rate of ITLB Walks to the overall TLB lookups initiated from the instruction side",
+ "BriefDescription": "The rate of ITLB Walks to the overall TLB lookups",
+ "MetricGroup": "TLB",
+ "MetricName": "itlb_walk_rate"
+ },
+ {
+ "MetricExpr": "DTLB_WALK / INST_RETIRED * 1000",
+ "PublicDescription": "The rate of TLB Walks per kilo instructions for data accesses",
+ "BriefDescription": "The rate of TLB Walks per kilo instructions for data accesses",
+ "MetricGroup": "TLB",
+ "MetricName": "dtlb_mpki"
+ },
+ {
+ "MetricExpr": "DTLB_WALK / L1D_TLB",
+ "PublicDescription": "The rate of DTLB Walks to the overall TLB lookups made by the program",
+ "BriefDescription": "The rate of DTLB Walks to the overall TLB lookups",
+ "MetricGroup": "TLB",
+ "MetricName": "dtlb_walk_rate"
}
]
\ No newline at end of file
--
1.8.3.1