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

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

Add instruction mix 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-10-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
485c5bc5 4befa5cf

+63
+63
tools/perf/pmu-events/arch/arm64/arm/neoverse-n2-v2/metrics.json
··· 206 206 "MetricGroup": "PEutilization", 207 207 "MetricName": "cpu_utilization", 208 208 "ScaleUnit": "100%" 209 + }, 210 + { 211 + "MetricExpr": "LD_SPEC / INST_SPEC", 212 + "BriefDescription": "The rate of load instructions speculatively executed to overall instructions speclatively executed", 213 + "MetricGroup": "InstructionMix", 214 + "MetricName": "load_spec_rate", 215 + "ScaleUnit": "100%" 216 + }, 217 + { 218 + "MetricExpr": "ST_SPEC / INST_SPEC", 219 + "BriefDescription": "The rate of store instructions speculatively executed to overall instructions speclatively executed", 220 + "MetricGroup": "InstructionMix", 221 + "MetricName": "store_spec_rate", 222 + "ScaleUnit": "100%" 223 + }, 224 + { 225 + "MetricExpr": "DP_SPEC / INST_SPEC", 226 + "BriefDescription": "The rate of integer data-processing instructions speculatively executed to overall instructions speclatively executed", 227 + "MetricGroup": "InstructionMix", 228 + "MetricName": "data_process_spec_rate", 229 + "ScaleUnit": "100%" 230 + }, 231 + { 232 + "MetricExpr": "ASE_SPEC / INST_SPEC", 233 + "BriefDescription": "The rate of advanced SIMD instructions speculatively executed to overall instructions speclatively executed", 234 + "MetricGroup": "InstructionMix", 235 + "MetricName": "advanced_simd_spec_rate", 236 + "ScaleUnit": "100%" 237 + }, 238 + { 239 + "MetricExpr": "VFP_SPEC / INST_SPEC", 240 + "BriefDescription": "The rate of floating point instructions speculatively executed to overall instructions speclatively executed", 241 + "MetricGroup": "InstructionMix", 242 + "MetricName": "float_point_spec_rate", 243 + "ScaleUnit": "100%" 244 + }, 245 + { 246 + "MetricExpr": "CRYPTO_SPEC / INST_SPEC", 247 + "BriefDescription": "The rate of crypto instructions speculatively executed to overall instructions speclatively executed", 248 + "MetricGroup": "InstructionMix", 249 + "MetricName": "crypto_spec_rate", 250 + "ScaleUnit": "100%" 251 + }, 252 + { 253 + "MetricExpr": "BR_IMMED_SPEC / INST_SPEC", 254 + "BriefDescription": "The rate of branch immediate instructions speculatively executed to overall instructions speclatively executed", 255 + "MetricGroup": "InstructionMix", 256 + "MetricName": "branch_immed_spec_rate", 257 + "ScaleUnit": "100%" 258 + }, 259 + { 260 + "MetricExpr": "BR_RETURN_SPEC / INST_SPEC", 261 + "BriefDescription": "The rate of procedure return instructions speculatively executed to overall instructions speclatively executed", 262 + "MetricGroup": "InstructionMix", 263 + "MetricName": "branch_return_spec_rate", 264 + "ScaleUnit": "100%" 265 + }, 266 + { 267 + "MetricExpr": "BR_INDIRECT_SPEC / INST_SPEC", 268 + "BriefDescription": "The rate of indirect branch instructions speculatively executed to overall instructions speclatively executed", 269 + "MetricGroup": "InstructionMix", 270 + "MetricName": "branch_indirect_spec_rate", 271 + "ScaleUnit": "100%" 209 272 } 210 273 ]