mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-04 08:08:54 +00:00
perf vendor events arm64: Add common topdown L1 metrics
The metrics of topdown L1 are from ARM sbsa7.0 platform design doc[0], D37-38, which are standard. So put them in the common file sbsa.json of arm64, so that other cores besides n2/v2 can also be reused. [0] https://documentation-service.arm.com/static/60250c7395978b529036da86?token= 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-4-git-send-email-renyu.zj@linux.alibaba.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
parent
5b51e47a3f
commit
a9ff64e5a0
1 changed files with 30 additions and 0 deletions
30
tools/perf/pmu-events/arch/arm64/sbsa.json
Normal file
30
tools/perf/pmu-events/arch/arm64/sbsa.json
Normal file
|
@ -0,0 +1,30 @@
|
|||
[
|
||||
{
|
||||
"MetricExpr": "stall_slot_frontend / (#slots * cpu_cycles)",
|
||||
"BriefDescription": "Frontend bound L1 topdown metric",
|
||||
"MetricGroup": "TopdownL1",
|
||||
"MetricName": "frontend_bound",
|
||||
"ScaleUnit": "100%"
|
||||
},
|
||||
{
|
||||
"MetricExpr": "(1 - op_retired / op_spec) * (1 - stall_slot / (#slots * cpu_cycles))",
|
||||
"BriefDescription": "Bad speculation L1 topdown metric",
|
||||
"MetricGroup": "TopdownL1",
|
||||
"MetricName": "bad_speculation",
|
||||
"ScaleUnit": "100%"
|
||||
},
|
||||
{
|
||||
"MetricExpr": "(op_retired / op_spec) * (1 - stall_slot / (#slots * cpu_cycles))",
|
||||
"BriefDescription": "Retiring L1 topdown metric",
|
||||
"MetricGroup": "TopdownL1",
|
||||
"MetricName": "retiring",
|
||||
"ScaleUnit": "100%"
|
||||
},
|
||||
{
|
||||
"MetricExpr": "stall_slot_backend / (#slots * cpu_cycles)",
|
||||
"BriefDescription": "Backend Bound L1 topdown metric",
|
||||
"MetricGroup": "TopdownL1",
|
||||
"MetricName": "backend_bound",
|
||||
"ScaleUnit": "100%"
|
||||
}
|
||||
]
|
Loading…
Reference in a new issue