Skip to content

Commit a6bec4d

Browse files
author
Avenger-285714
authored
Merge branch 'deepin-community:linux-6.6.y' into linux-6.6.y
2 parents 125c39d + 04ebbc2 commit a6bec4d

9 files changed

Lines changed: 441 additions & 22 deletions

File tree

Lines changed: 266 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,266 @@
1+
[
2+
{
3+
"EventName": "hnf_cache_miss",
4+
"EventidCode": "0x1",
5+
"NodeType": "0x5",
6+
"BriefDescription": "Counts total cache misses in first lookup result (high priority).",
7+
"Unit": "arm_cmn",
8+
"Compat": "(434|436|43c|43a).*"
9+
},
10+
{
11+
"EventName": "hnf_slc_sf_cache_access",
12+
"EventidCode": "0x2",
13+
"NodeType": "0x5",
14+
"BriefDescription": "Counts number of cache accesses in first access (high priority).",
15+
"Unit": "arm_cmn",
16+
"Compat": "(434|436|43c|43a).*"
17+
},
18+
{
19+
"EventName": "hnf_cache_fill",
20+
"EventidCode": "0x3",
21+
"NodeType": "0x5",
22+
"BriefDescription": "Counts total allocations in HN SLC (all cache line allocations to SLC).",
23+
"Unit": "arm_cmn",
24+
"Compat": "(434|436|43c|43a).*"
25+
},
26+
{
27+
"EventName": "hnf_pocq_retry",
28+
"EventidCode": "0x4",
29+
"NodeType": "0x5",
30+
"BriefDescription": "Counts number of retried requests.",
31+
"Unit": "arm_cmn",
32+
"Compat": "(434|436|43c|43a).*"
33+
},
34+
{
35+
"EventName": "hnf_pocq_reqs_recvd",
36+
"EventidCode": "0x5",
37+
"NodeType": "0x5",
38+
"BriefDescription": "Counts number of requests that HN receives.",
39+
"Unit": "arm_cmn",
40+
"Compat": "(434|436|43c|43a).*"
41+
},
42+
{
43+
"EventName": "hnf_sf_hit",
44+
"EventidCode": "0x6",
45+
"NodeType": "0x5",
46+
"BriefDescription": "Counts number of SF hits.",
47+
"Unit": "arm_cmn",
48+
"Compat": "(434|436|43c|43a).*"
49+
},
50+
{
51+
"EventName": "hnf_sf_evictions",
52+
"EventidCode": "0x7",
53+
"NodeType": "0x5",
54+
"BriefDescription": "Counts number of SF eviction cache invalidations initiated.",
55+
"Unit": "arm_cmn",
56+
"Compat": "(434|436|43c|43a).*"
57+
},
58+
{
59+
"EventName": "hnf_dir_snoops_sent",
60+
"EventidCode": "0x8",
61+
"NodeType": "0x5",
62+
"BriefDescription": "Counts number of directed snoops sent (not including SF back invalidation).",
63+
"Unit": "arm_cmn",
64+
"Compat": "(434|436|43c|43a).*"
65+
},
66+
{
67+
"EventName": "hnf_brd_snoops_sent",
68+
"EventidCode": "0x9",
69+
"NodeType": "0x5",
70+
"BriefDescription": "Counts number of multicast snoops sent (not including SF back invalidation).",
71+
"Unit": "arm_cmn",
72+
"Compat": "(434|436|43c|43a).*"
73+
},
74+
{
75+
"EventName": "hnf_slc_eviction",
76+
"EventidCode": "0xa",
77+
"NodeType": "0x5",
78+
"BriefDescription": "Counts number of SLC evictions (dirty only).",
79+
"Unit": "arm_cmn",
80+
"Compat": "(434|436|43c|43a).*"
81+
},
82+
{
83+
"EventName": "hnf_slc_fill_invalid_way",
84+
"EventidCode": "0xb",
85+
"NodeType": "0x5",
86+
"BriefDescription": "Counts number of SLC fills to an invalid way.",
87+
"Unit": "arm_cmn",
88+
"Compat": "(434|436|43c|43a).*"
89+
},
90+
{
91+
"EventName": "hnf_mc_retries",
92+
"EventidCode": "0xc",
93+
"NodeType": "0x5",
94+
"BriefDescription": "Counts number of retried transactions by the MC.",
95+
"Unit": "arm_cmn",
96+
"Compat": "(434|436|43c|43a).*"
97+
},
98+
{
99+
"EventName": "hnf_mc_reqs",
100+
"EventidCode": "0xd",
101+
"NodeType": "0x5",
102+
"BriefDescription": "Counts number of requests that are sent to MC.",
103+
"Unit": "arm_cmn",
104+
"Compat": "(434|436|43c|43a).*"
105+
},
106+
{
107+
"EventName": "hnf_qos_hh_retry",
108+
"EventidCode": "0xe",
109+
"NodeType": "0x5",
110+
"BriefDescription": "Counts number of times a HighHigh priority request is protocolretried at the HN‑F.",
111+
"Unit": "arm_cmn",
112+
"Compat": "(434|436|43c|43a).*"
113+
},
114+
{
115+
"EventName": "rnid_s0_rdata_beats",
116+
"EventidCode": "0x1",
117+
"NodeType": "0xa",
118+
"BriefDescription": "Number of RData beats (RVALID and RREADY) dispatched on port 0. This event measures the read bandwidth, including CMO responses.",
119+
"Unit": "arm_cmn",
120+
"Compat": "(434|436|43c|43a).*"
121+
},
122+
{
123+
"EventName": "rnid_s1_rdata_beats",
124+
"EventidCode": "0x2",
125+
"NodeType": "0xa",
126+
"BriefDescription": "Number of RData beats (RVALID and RREADY) dispatched on port 1. This event measures the read bandwidth, including CMO responses.",
127+
"Unit": "arm_cmn",
128+
"Compat": "(434|436|43c|43a).*"
129+
},
130+
{
131+
"EventName": "rnid_s2_rdata_beats",
132+
"EventidCode": "0x3",
133+
"NodeType": "0xa",
134+
"BriefDescription": "Number of RData beats (RVALID and RREADY) dispatched on port 2. This event measures the read bandwidth, including CMO responses.",
135+
"Unit": "arm_cmn",
136+
"Compat": "(434|436|43c|43a).*"
137+
},
138+
{
139+
"EventName": "rnid_rxdat_flits",
140+
"EventidCode": "0x4",
141+
"NodeType": "0xa",
142+
"BriefDescription": "Number of RXDAT flits received. This event measures the true read data bandwidth, excluding CMOs.",
143+
"Unit": "arm_cmn",
144+
"Compat": "(434|436|43c|43a).*"
145+
},
146+
{
147+
"EventName": "rnid_txdat_flits",
148+
"EventidCode": "0x5",
149+
"NodeType": "0xa",
150+
"BriefDescription": "Number of TXDAT flits dispatched. This event measures the write bandwidth.",
151+
"Unit": "arm_cmn",
152+
"Compat": "(434|436|43c|43a).*"
153+
},
154+
{
155+
"EventName": "rnid_txreq_flits_total",
156+
"EventidCode": "0x6",
157+
"NodeType": "0xa",
158+
"BriefDescription": "Number of TXREQ flits dispatched. This event measures the total request bandwidth.",
159+
"Unit": "arm_cmn",
160+
"Compat": "(434|436|43c|43a).*"
161+
},
162+
{
163+
"EventName": "rnid_txreq_flits_retried",
164+
"EventidCode": "0x7",
165+
"NodeType": "0xa",
166+
"BriefDescription": "Number of retried TXREQ flits dispatched. This event measures the retry rate.",
167+
"Unit": "arm_cmn",
168+
"Compat": "(434|436|43c|43a).*"
169+
},
170+
{
171+
"EventName": "sbsx_txrsp_retryack",
172+
"EventidCode": "0x4",
173+
"NodeType": "0x7",
174+
"BriefDescription": "Number of RXREQ flits dispatched. This event is a measure of the retry rate.",
175+
"Unit": "arm_cmn",
176+
"Compat": "(434|436|43c|43a).*"
177+
},
178+
{
179+
"EventName": "sbsx_txdat_flitv",
180+
"EventidCode": "0x5",
181+
"NodeType": "0x7",
182+
"BriefDescription": "Number of TXDAT flits dispatched from XP to SBSX. This event is a measure of the write bandwidth.",
183+
"Unit": "arm_cmn",
184+
"Compat": "(434|436|43c|43a).*"
185+
},
186+
{
187+
"EventName": "sbsx_arvalid_no_arready",
188+
"EventidCode": "0x21",
189+
"NodeType": "0x7",
190+
"BriefDescription": "Number of cycles the SBSX bridge is stalled because of backpressure on AR channel.",
191+
"Unit": "arm_cmn",
192+
"Compat": "(434|436|43c|43a).*"
193+
},
194+
{
195+
"EventName": "sbsx_awvalid_no_awready",
196+
"EventidCode": "0x22",
197+
"NodeType": "0x7",
198+
"BriefDescription": "Number of cycles the SBSX bridge is stalled because of backpressure on AW channel.",
199+
"Unit": "arm_cmn",
200+
"Compat": "(434|436|43c|43a).*"
201+
},
202+
{
203+
"EventName": "sbsx_wvalid_no_wready",
204+
"EventidCode": "0x23",
205+
"NodeType": "0x7",
206+
"BriefDescription": "Number of cycles the SBSX bridge is stalled because of backpressure on W channel.",
207+
"Unit": "arm_cmn",
208+
"Compat": "(434|436|43c|43a).*"
209+
},
210+
{
211+
"EventName": "hni_txrsp_retryack",
212+
"EventidCode": "0x2a",
213+
"NodeType": "0x4",
214+
"BriefDescription": "Number of RXREQ flits dispatched. This event is a measure of the retry rate.",
215+
"Unit": "arm_cmn",
216+
"Compat": "(434|436|43c|43a).*"
217+
},
218+
{
219+
"EventName": "hni_arvalid_no_arready",
220+
"EventidCode": "0x2b",
221+
"NodeType": "0x4",
222+
"BriefDescription": "Number of cycles the HN-I bridge is stalled because of backpressure on AR channel.",
223+
"Unit": "arm_cmn",
224+
"Compat": "(434|436|43c|43a).*"
225+
},
226+
{
227+
"EventName": "hni_arready_no_arvalid",
228+
"EventidCode": "0x2c",
229+
"NodeType": "0x4",
230+
"BriefDescription": "Number of cycles the AR channel is waiting for new requests from HN-I bridge.",
231+
"Unit": "arm_cmn",
232+
"Compat": "(434|436|43c|43a).*"
233+
},
234+
{
235+
"EventName": "hni_awvalid_no_awready",
236+
"EventidCode": "0x2d",
237+
"NodeType": "0x4",
238+
"BriefDescription": "Number of cycles the HN-I bridge is stalled because of backpressure on AW channel.",
239+
"Unit": "arm_cmn",
240+
"Compat": "(434|436|43c|43a).*"
241+
},
242+
{
243+
"EventName": "hni_awready_no_awvalid",
244+
"EventidCode": "0x2e",
245+
"NodeType": "0x4",
246+
"BriefDescription": "Number of cycles the AW channel is waiting for new requests from HN-I bridge.",
247+
"Unit": "arm_cmn",
248+
"Compat": "(434|436|43c|43a).*"
249+
},
250+
{
251+
"EventName": "hni_wvalid_no_wready",
252+
"EventidCode": "0x2f",
253+
"NodeType": "0x4",
254+
"BriefDescription": "Number of cycles the HN-I bridge is stalled because of backpressure on W channel.",
255+
"Unit": "arm_cmn",
256+
"Compat": "(434|436|43c|43a).*"
257+
},
258+
{
259+
"EventName": "hni_txdat_stall",
260+
"EventidCode": "0x30",
261+
"NodeType": "0x4",
262+
"BriefDescription": "TXDAT valid but no link credit available.",
263+
"Unit": "arm_cmn",
264+
"Compat": "(434|436|43c|43a).*"
265+
}
266+
]
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+
]

tools/perf/pmu-events/arch/test/test_soc/sys/uncore.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,13 @@
1212
"EventName": "sys_ccn_pmu.read_cycles",
1313
"Unit": "sys_ccn_pmu",
1414
"Compat": "0x01"
15+
},
16+
{
17+
"BriefDescription": "Counts total cache misses in first lookup result (high priority)",
18+
"EventidCode": "0x1",
19+
"NodeType": "0x5",
20+
"EventName": "sys_cmn_pmu.hnf_cache_miss",
21+
"Unit": "sys_cmn_pmu",
22+
"Compat": "(434|436|43c|43a).*"
1523
}
1624
]

tools/perf/pmu-events/empty-pmu-events.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,14 @@ static const struct pmu_event pmu_events__test_soc_sys[] = {
244244
.topic = "uncore",
245245
.pmu = "uncore_sys_ccn_pmu",
246246
},
247+
{
248+
.name = "sys_cmn_pmu.hnf_cache_miss",
249+
.event = "eventid=0x1,type=0x5",
250+
.desc = "Counts total cache misses in first lookup result (high priority). Unit: uncore_sys_cmn_pmu ",
251+
.compat = "(434|436|43c|43a).*",
252+
.topic = "uncore",
253+
.pmu = "uncore_sys_cmn_pmu",
254+
},
247255
{
248256
.name = 0,
249257
.event = 0,

0 commit comments

Comments
 (0)