Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

perf vendor events arm64: Add branch metrics for neoverse-n2-v2

Add branch related metrics.

Reviewed-by: John Garry <john.g.garry@oracle.com>
Signed-off-by: Jing Zhang <renyu.zj@linux.alibaba.com>
Acked-by: Ian Rogers <irogers@google.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Andrew Kilroy <andrew.kilroy@arm.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: James Clark <james.clark@arm.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Leo Yan <leo.yan@linaro.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Mike Leach <mike.leach@linaro.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Shuai Xue <xueshuai@linux.alibaba.com>
Cc: Will Deacon <will@kernel.org>
Cc: Xing Zhengjun <zhengjun.xing@linux.intel.com>
Cc: Zhuo Song <zhuo.song@linux.alibaba.com>
Cc: linux-arm-kernel@lists.infradead.org
Link: https://lore.kernel.org/r/1673940573-90503-8-git-send-email-renyu.zj@linux.alibaba.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>

authored by

Jing Zhang and committed by
Arnaldo Carvalho de Melo
a1adade7 8556d367

+21
+21
tools/perf/pmu-events/arch/arm64/arm/neoverse-n2-v2/metrics.json
··· 139 139 "MetricGroup": "Cache", 140 140 "MetricName": "ll_cache_read_hit_rate", 141 141 "ScaleUnit": "100%" 142 + }, 143 + { 144 + "MetricExpr": "BR_MIS_PRED_RETIRED / INST_RETIRED * 1000", 145 + "BriefDescription": "The rate of branches mis-predicted per kilo instructions", 146 + "MetricGroup": "Branch", 147 + "MetricName": "branch_mpki", 148 + "ScaleUnit": "1MPKI" 149 + }, 150 + { 151 + "MetricExpr": "BR_RETIRED / INST_RETIRED * 1000", 152 + "BriefDescription": "The rate of branches retired per kilo instructions", 153 + "MetricGroup": "Branch", 154 + "MetricName": "branch_pki", 155 + "ScaleUnit": "1PKI" 156 + }, 157 + { 158 + "MetricExpr": "BR_MIS_PRED_RETIRED / BR_RETIRED", 159 + "BriefDescription": "The rate of branches mis-predited to the overall branches", 160 + "MetricGroup": "Branch", 161 + "MetricName": "branch_miss_pred_rate", 162 + "ScaleUnit": "100%" 142 163 } 143 164 ]