lkml.org 
[lkml]   [2022]   [Nov]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[RFC PATCH v2 4/6] perf vendor events arm64: Add branch metrics for neoverse-n2
Date
Add branch related metrics.

Signed-off-by: Jing Zhang <renyu.zj@linux.alibaba.com>
---
.../arch/arm64/arm/neoverse-n2/metrics.json | 21 +++++++++++++++++++++
1 file changed, 21 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 1690ef6..e960a66 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
@@ -131,5 +131,26 @@
"BriefDescription": "The rate of LL Cache read hit to the overall LL Cache read",
"MetricGroup": "Cache",
"MetricName": "ll_cache_read_hit_rate"
+ },
+ {
+ "MetricExpr": "BR_MIS_PRED / INST_RETIRED * 1000",
+ "PublicDescription": "The rate of branches mis-predicted per kilo instructions",
+ "BriefDescription": "The rate of branches mis-predicted per kilo instructions",
+ "MetricGroup": "Branch",
+ "MetricName": "branch_mpki"
+ },
+ {
+ "MetricExpr": "(BR_PRED - BR_MIS_PRED) / INST_RETIRED * 1000",
+ "PublicDescription": "The rate of branches retired per kilo instructions",
+ "BriefDescription": "The rate of branches retired per kilo instructions",
+ "MetricGroup": "Branch",
+ "MetricName": "branch_pki"
+ },
+ {
+ "MetricExpr": "BR_MIS_PRED / BR_PRED",
+ "PublicDescription": "The rate of branches mis-predited to the overall branches",
+ "BriefDescription": "The rate of branches mis-predited to the overall branches",
+ "MetricGroup": "Branch",
+ "MetricName": "branch_miss_pred_rate"
}
]
\ No newline at end of file
--
1.8.3.1
\
 
 \ /
  Last update: 2022-11-14 08:44    [W:0.449 / U:0.116 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site