Skip to content

Commit 772921f

Browse files
Jing Zhangopsiff
authored andcommitted
perf vendor events: Add JSON metrics for Arm CMN
ANBZ: #8601 commit 4f3ee7d upstream. Add JSON metrics for Arm CMN. Currently just add part of CMN PMU metrics which are general and compatible for any SoC with CMN-ANY. Signed-off-by: Jing Zhang <renyu.zj@linux.alibaba.com> Reviewed-by: John Garry <john.g.garry@oracle.com> Reviewed-by: Ian Rogers <irogers@google.com> Tested-by: Ian Rogers <irogers@google.com> Cc: James Clark <james.clark@arm.com> Cc: Will Deacon <will@kernel.org> Cc: Leo Yan <leo.yan@linaro.org> Cc: Mike Leach <mike.leach@linaro.org> Cc: Shuai Xue <xueshuai@linux.alibaba.com> Cc: Zhuo Song <zhuo.song@linux.alibaba.com> Cc: linux-arm-kernel@lists.infradead.org Cc: linux-doc@vger.kernel.org Link: https://lore.kernel.org/r/1695794391-34817-8-git-send-email-renyu.zj@linux.alibaba.com Signed-off-by: Namhyung Kim <namhyung@kernel.org> Signed-off-by: Jing Zhang <renyu.zj@linux.alibaba.com>
1 parent b955ba2 commit 772921f

1 file changed

Lines changed: 74 additions & 0 deletions

File tree

  • tools/perf/pmu-events/arch/arm64/arm/cmn/sys
Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
[
2+
{
3+
"MetricName": "slc_miss_rate",
4+
"BriefDescription": "The system level cache miss rate.",
5+
"MetricGroup": "cmn",
6+
"MetricExpr": "hnf_cache_miss / hnf_slc_sf_cache_access",
7+
"ScaleUnit": "100%",
8+
"Unit": "arm_cmn",
9+
"Compat": "(434|436|43c|43a).*"
10+
},
11+
{
12+
"MetricName": "hnf_message_retry_rate",
13+
"BriefDescription": "HN-F message retry rate indicates whether a lack of credits is causing the bottlenecks.",
14+
"MetricGroup": "cmn",
15+
"MetricExpr": "hnf_pocq_retry / hnf_pocq_reqs_recvd",
16+
"ScaleUnit": "100%",
17+
"Unit": "arm_cmn",
18+
"Compat": "(434|436|43c|43a).*"
19+
},
20+
{
21+
"MetricName": "sf_hit_rate",
22+
"BriefDescription": "Snoop filter hit rate can be used to measure the snoop filter efficiency.",
23+
"MetricGroup": "cmn",
24+
"MetricExpr": "hnf_sf_hit / hnf_slc_sf_cache_access",
25+
"ScaleUnit": "100%",
26+
"Unit": "arm_cmn",
27+
"Compat": "(434|436|43c|43a).*"
28+
},
29+
{
30+
"MetricName": "mc_message_retry_rate",
31+
"BriefDescription": "The memory controller request retries rate indicates whether the memory controller is the bottleneck.",
32+
"MetricGroup": "cmn",
33+
"MetricExpr": "hnf_mc_retries / hnf_mc_reqs",
34+
"ScaleUnit": "100%",
35+
"Unit": "arm_cmn",
36+
"Compat": "(434|436|43c|43a).*"
37+
},
38+
{
39+
"MetricName": "rni_actual_read_bandwidth.all",
40+
"BriefDescription": "This event measure the actual bandwidth that RN-I bridge sends to the interconnect.",
41+
"MetricGroup": "cmn",
42+
"MetricExpr": "rnid_rxdat_flits * 32 / 1e6 / duration_time",
43+
"ScaleUnit": "1MB/s",
44+
"Unit": "arm_cmn",
45+
"Compat": "(434|436|43c|43a).*"
46+
},
47+
{
48+
"MetricName": "rni_actual_write_bandwidth.all",
49+
"BriefDescription": "This event measures the actual write bandwidth at RN-I bridges.",
50+
"MetricGroup": "cmn",
51+
"MetricExpr": "rnid_txdat_flits * 32 / 1e6 / duration_time",
52+
"ScaleUnit": "1MB/s",
53+
"Unit": "arm_cmn",
54+
"Compat": "(434|436|43c|43a).*"
55+
},
56+
{
57+
"MetricName": "rni_retry_rate",
58+
"BriefDescription": "RN-I bridge retry rate indicates whether the memory controller is the bottleneck.",
59+
"MetricGroup": "cmn",
60+
"MetricExpr": "rnid_txreq_flits_retried / rnid_txreq_flits_total",
61+
"ScaleUnit": "100%",
62+
"Unit": "arm_cmn",
63+
"Compat": "(434|436|43c|43a).*"
64+
},
65+
{
66+
"MetricName": "sbsx_actual_write_bandwidth.all",
67+
"BriefDescription": "sbsx actual write bandwidth.",
68+
"MetricGroup": "cmn",
69+
"MetricExpr": "sbsx_txdat_flitv * 32 / 1e6 / duration_time",
70+
"ScaleUnit": "1MB/s",
71+
"Unit": "arm_cmn",
72+
"Compat": "(434|436|43c|43a).*"
73+
}
74+
]

0 commit comments

Comments
 (0)