diff mbox series

[RFC,v2,2/6] perf vendor events arm64: Add TLB metrics for neoverse-n2

Message ID 1668411720-3581-3-git-send-email-renyu.zj@linux.alibaba.com (mailing list archive)
State New, archived
Headers show
Series Add metrics for neoverse-n2 | expand

Commit Message

Jing Zhang Nov. 14, 2022, 7:41 a.m. UTC
Add TLB related metrics.

Signed-off-by: Jing Zhang <renyu.zj@linux.alibaba.com>
---
 .../arch/arm64/arm/neoverse-n2/metrics.json        | 28 ++++++++++++++++++++++
 1 file changed, 28 insertions(+)
diff mbox series

Patch

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 0048dfe..324ca12 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