xref: /linux/tools/perf/pmu-events/arch/x86/amdzen3/cache.json (revision 8be98d2f2a0a262f8bf8a0bc1fdf522b3c7aab17)
1[
2  {
3    "EventName": "l2_request_g1.rd_blk_l",
4    "EventCode": "0x60",
5    "BriefDescription": "All L2 Cache Requests (Breakdown 1 - Common). Data cache reads (including hardware and software prefetch).",
6    "UMask": "0x80"
7  },
8  {
9    "EventName": "l2_request_g1.rd_blk_x",
10    "EventCode": "0x60",
11    "BriefDescription": "All L2 Cache Requests (Breakdown 1 - Common). Data cache stores.",
12    "UMask": "0x40"
13  },
14  {
15    "EventName": "l2_request_g1.ls_rd_blk_c_s",
16    "EventCode": "0x60",
17    "BriefDescription": "All L2 Cache Requests (Breakdown 1 - Common). Data cache shared reads.",
18    "UMask": "0x20"
19  },
20  {
21    "EventName": "l2_request_g1.cacheable_ic_read",
22    "EventCode": "0x60",
23    "BriefDescription": "All L2 Cache Requests (Breakdown 1 - Common). Instruction cache reads.",
24    "UMask": "0x10"
25  },
26  {
27    "EventName": "l2_request_g1.change_to_x",
28    "EventCode": "0x60",
29    "BriefDescription": "All L2 Cache Requests (Breakdown 1 - Common). Data cache state change requests. Request change to writable, check L2 for current state.",
30    "UMask": "0x08"
31  },
32  {
33    "EventName": "l2_request_g1.prefetch_l2_cmd",
34    "EventCode": "0x60",
35    "BriefDescription": "All L2 Cache Requests (Breakdown 1 - Common). PrefetchL2Cmd.",
36    "UMask": "0x04"
37  },
38  {
39    "EventName": "l2_request_g1.l2_hw_pf",
40    "EventCode": "0x60",
41    "BriefDescription": "All L2 Cache Requests (Breakdown 1 - Common). L2 Prefetcher. All prefetches accepted by L2 pipeline, hit or miss. Types of PF and L2 hit/miss broken out in a separate perfmon event.",
42    "UMask": "0x02"
43  },
44  {
45    "EventName": "l2_request_g1.group2",
46    "EventCode": "0x60",
47    "BriefDescription": "Miscellaneous events covered in more detail by l2_request_g2 (PMCx061).",
48    "UMask": "0x01"
49  },
50  {
51    "EventName": "l2_request_g1.all_no_prefetch",
52    "EventCode": "0x60",
53    "UMask": "0xf9"
54  },
55  {
56    "EventName": "l2_request_g2.group1",
57    "EventCode": "0x61",
58    "BriefDescription": "Miscellaneous events covered in more detail by l2_request_g1 (PMCx060).",
59    "UMask": "0x80"
60  },
61  {
62    "EventName": "l2_request_g2.ls_rd_sized",
63    "EventCode": "0x61",
64    "BriefDescription": "All L2 Cache Requests (Breakdown 2 - Rare). Data cache read sized.",
65    "UMask": "0x40"
66  },
67  {
68    "EventName": "l2_request_g2.ls_rd_sized_nc",
69    "EventCode": "0x61",
70    "BriefDescription": "All L2 Cache Requests (Breakdown 2 - Rare). Data cache read sized non-cacheable.",
71    "UMask": "0x20"
72  },
73  {
74    "EventName": "l2_request_g2.ic_rd_sized",
75    "EventCode": "0x61",
76    "BriefDescription": "All L2 Cache Requests (Breakdown 2 - Rare). Instruction cache read sized.",
77    "UMask": "0x10"
78  },
79  {
80    "EventName": "l2_request_g2.ic_rd_sized_nc",
81    "EventCode": "0x61",
82    "BriefDescription": "All L2 Cache Requests (Breakdown 2 - Rare). Instruction cache read sized non-cacheable.",
83    "UMask": "0x08"
84  },
85  {
86    "EventName": "l2_request_g2.smc_inval",
87    "EventCode": "0x61",
88    "BriefDescription": "All L2 Cache Requests (Breakdown 2 - Rare). Self-modifying code invalidates.",
89    "UMask": "0x04"
90  },
91  {
92    "EventName": "l2_request_g2.bus_locks_originator",
93    "EventCode": "0x61",
94    "BriefDescription": "All L2 Cache Requests (Breakdown 2 - Rare). Bus locks.",
95    "UMask": "0x02"
96  },
97  {
98    "EventName": "l2_request_g2.bus_locks_responses",
99    "EventCode": "0x61",
100    "BriefDescription": "All L2 Cache Requests (Breakdown 2 - Rare). Bus lock response.",
101    "UMask": "0x01"
102  },
103  {
104    "EventName": "l2_latency.l2_cycles_waiting_on_fills",
105    "EventCode": "0x62",
106    "BriefDescription": "Total cycles spent waiting for L2 fills to complete from L3 or memory, divided by four. Event counts are for both threads. To calculate average latency, the number of fills from both threads must be used.",
107    "UMask": "0x01"
108  },
109  {
110    "EventName": "l2_wcb_req.wcb_write",
111    "EventCode": "0x63",
112    "BriefDescription": "LS to L2 WCB write requests. LS (Load/Store unit) to L2 WCB (Write Combining Buffer) write requests.",
113    "UMask": "0x40"
114  },
115  {
116    "EventName": "l2_wcb_req.wcb_close",
117    "EventCode": "0x63",
118    "BriefDescription": "LS to L2 WCB close requests. LS (Load/Store unit) to L2 WCB (Write Combining Buffer) close requests.",
119    "UMask": "0x20"
120  },
121  {
122    "EventName": "l2_wcb_req.zero_byte_store",
123    "EventCode": "0x63",
124    "BriefDescription": "LS to L2 WCB zero byte store requests. LS (Load/Store unit) to L2 WCB (Write Combining Buffer) zero byte store requests.",
125    "UMask": "0x04"
126  },
127  {
128    "EventName": "l2_wcb_req.cl_zero",
129    "EventCode": "0x63",
130    "BriefDescription": "LS to L2 WCB cache line zeroing requests. LS (Load/Store unit) to L2 WCB (Write Combining Buffer) cache line zeroing requests.",
131    "UMask": "0x01"
132  },
133  {
134    "EventName": "l2_cache_req_stat.ls_rd_blk_cs",
135    "EventCode": "0x64",
136    "BriefDescription": "Core to L2 cacheable request access status (not including L2 Prefetch). Data cache shared read hit in L2",
137    "UMask": "0x80"
138  },
139  {
140    "EventName": "l2_cache_req_stat.ls_rd_blk_l_hit_x",
141    "EventCode": "0x64",
142    "BriefDescription": "Core to L2 cacheable request access status (not including L2 Prefetch). Data cache read hit in L2. Modifiable.",
143    "UMask": "0x40"
144  },
145  {
146    "EventName": "l2_cache_req_stat.ls_rd_blk_l_hit_s",
147    "EventCode": "0x64",
148    "BriefDescription": "Core to L2 cacheable request access status (not including L2 Prefetch). Data cache read hit non-modifiable line in L2.",
149    "UMask": "0x20"
150  },
151  {
152    "EventName": "l2_cache_req_stat.ls_rd_blk_x",
153    "EventCode": "0x64",
154    "BriefDescription": "Core to L2 cacheable request access status (not including L2 Prefetch). Data cache store or state change hit in L2.",
155    "UMask": "0x10"
156  },
157  {
158    "EventName": "l2_cache_req_stat.ls_rd_blk_c",
159    "EventCode": "0x64",
160    "BriefDescription": "Core to L2 cacheable request access status (not including L2 Prefetch). Data cache request miss in L2 (all types). Use l2_cache_misses_from_dc_misses instead.",
161    "UMask": "0x08"
162  },
163  {
164    "EventName": "l2_cache_req_stat.ic_fill_hit_x",
165    "EventCode": "0x64",
166    "BriefDescription": "Core to L2 cacheable request access status (not including L2 Prefetch). Instruction cache hit modifiable line in L2.",
167    "UMask": "0x04"
168  },
169  {
170    "EventName": "l2_cache_req_stat.ic_fill_hit_s",
171    "EventCode": "0x64",
172    "BriefDescription": "Core to L2 cacheable request access status (not including L2 Prefetch). Instruction cache hit non-modifiable line in L2.",
173    "UMask": "0x02"
174  },
175  {
176    "EventName": "l2_cache_req_stat.ic_fill_miss",
177    "EventCode": "0x64",
178    "BriefDescription": "Core to L2 cacheable request access status (not including L2 Prefetch). Instruction cache request miss in L2. Use l2_cache_misses_from_ic_miss instead.",
179    "UMask": "0x01"
180  },
181  {
182    "EventName": "l2_cache_req_stat.ic_access_in_l2",
183    "EventCode": "0x64",
184    "BriefDescription": "Core to L2 cacheable request access status (not including L2 Prefetch). Instruction cache requests in L2.",
185    "UMask": "0x07"
186  },
187  {
188    "EventName": "l2_cache_req_stat.ic_dc_miss_in_l2",
189    "EventCode": "0x64",
190    "BriefDescription": "Core to L2 cacheable request access status (not including L2 Prefetch). Instruction cache request miss in L2 and Data cache request miss in L2 (all types).",
191    "UMask": "0x09"
192  },
193  {
194    "EventName": "l2_cache_req_stat.ic_dc_hit_in_l2",
195    "EventCode": "0x64",
196    "BriefDescription": "Core to L2 cacheable request access status (not including L2 Prefetch). Instruction cache request hit in L2 and Data cache request hit in L2 (all types).",
197    "UMask": "0xf6"
198  },
199  {
200    "EventName": "l2_fill_pending.l2_fill_busy",
201    "EventCode": "0x6d",
202    "BriefDescription": "Cycles with fill pending from L2. Total cycles spent with one or more fill requests in flight from L2.",
203    "UMask": "0x01"
204  },
205  {
206    "EventName": "l2_pf_hit_l2",
207    "EventCode": "0x70",
208    "BriefDescription": "L2 prefetch hit in L2. Use l2_cache_hits_from_l2_hwpf instead.",
209    "UMask": "0xff"
210  },
211  {
212    "EventName": "l2_pf_miss_l2_hit_l3",
213    "EventCode": "0x71",
214    "BriefDescription": "L2 prefetcher hits in L3. Counts all L2 prefetches accepted by the L2 pipeline which miss the L2 cache and hit the L3.",
215    "UMask": "0xff"
216  },
217  {
218    "EventName": "l2_pf_miss_l2_l3",
219    "EventCode": "0x72",
220    "BriefDescription": "L2 prefetcher misses in L3. Counts all L2 prefetches accepted by the L2 pipeline which miss the L2 and the L3 caches.",
221    "UMask": "0xff"
222  },
223  {
224    "EventName": "ic_fw32",
225    "EventCode": "0x80",
226    "BriefDescription": "The number of 32B fetch windows transferred from IC pipe to DE instruction decoder (includes non-cacheable and cacheable fill responses)."
227  },
228  {
229    "EventName": "ic_fw32_miss",
230    "EventCode": "0x81",
231    "BriefDescription": "The number of 32B fetch windows tried to read the L1 IC and missed in the full tag."
232  },
233  {
234    "EventName": "ic_cache_fill_l2",
235    "EventCode": "0x82",
236    "BriefDescription": "Instruction Cache Refills from L2. The number of 64 byte instruction cache line was fulfilled from the L2 cache."
237  },
238  {
239    "EventName": "ic_cache_fill_sys",
240    "EventCode": "0x83",
241    "BriefDescription": "Instruction Cache Refills from System. The number of 64 byte instruction cache line fulfilled from system memory or another cache."
242  },
243  {
244    "EventName": "bp_l1_tlb_miss_l2_tlb_hit",
245    "EventCode": "0x84",
246    "BriefDescription": "L1 ITLB Miss, L2 ITLB Hit. The number of instruction fetches that miss in the L1 ITLB but hit in the L2 ITLB."
247  },
248  {
249    "EventName": "bp_l1_tlb_miss_l2_tlb_miss",
250    "EventCode": "0x85",
251    "BriefDescription": "The number of instruction fetches that miss in both the L1 and L2 TLBs.",
252    "UMask": "0xff"
253  },
254  {
255    "EventName": "bp_l1_tlb_miss_l2_tlb_miss.coalesced_4k",
256    "EventCode": "0x85",
257    "BriefDescription": "The number of valid fills into the ITLB originating from the LS Page-Table Walker. Tablewalk requests are issued for L1-ITLB and L2-ITLB misses. Walk for >4K Coalesced page.",
258    "UMask": "0x08"
259  },
260  {
261    "EventName": "bp_l1_tlb_miss_l2_tlb_miss.if1g",
262    "EventCode": "0x85",
263    "BriefDescription": "The number of valid fills into the ITLB originating from the LS Page-Table Walker. Tablewalk requests are issued for L1-ITLB and L2-ITLB misses. Walk for 1G page.",
264    "UMask": "0x04"
265  },
266  {
267    "EventName": "bp_l1_tlb_miss_l2_tlb_miss.if2m",
268    "EventCode": "0x85",
269    "BriefDescription": "The number of valid fills into the ITLB originating from the LS Page-Table Walker. Tablewalk requests are issued for L1-ITLB and L2-ITLB misses. Walk for 2M page.",
270    "UMask": "0x02"
271  },
272  {
273    "EventName": "bp_l1_tlb_miss_l2_tlb_miss.if4k",
274    "EventCode": "0x85",
275    "BriefDescription": "The number of valid fills into the ITLB originating from the LS Page-Table Walker. Tablewalk requests are issued for L1-ITLB and L2-ITLB misses. Walk to 4K page.",
276    "UMask": "0x01"
277  },
278  {
279    "EventName": "bp_snp_re_sync",
280    "EventCode": "0x86",
281    "BriefDescription": "The number of pipeline restarts caused by invalidating probes that hit on the instruction stream currently being executed. This would happen if the active instruction stream was being modified by another processor in an MP system - typically a highly unlikely event."
282  },
283  {
284    "EventName": "ic_fetch_stall.ic_stall_any",
285    "EventCode": "0x87",
286    "BriefDescription": "Instruction Pipe Stall. IC pipe was stalled during this clock cycle for any reason (nothing valid in pipe ICM1).",
287    "UMask": "0x04"
288  },
289  {
290    "EventName": "ic_fetch_stall.ic_stall_dq_empty",
291    "EventCode": "0x87",
292    "BriefDescription": "Instruction Pipe Stall. IC pipe was stalled during this clock cycle (including IC to OC fetches) due to DQ empty.",
293    "UMask": "0x02"
294  },
295  {
296    "EventName": "ic_fetch_stall.ic_stall_back_pressure",
297    "EventCode": "0x87",
298    "BriefDescription": "Instruction Pipe Stall. IC pipe was stalled during this clock cycle (including IC to OC fetches) due to back-pressure.",
299    "UMask": "0x01"
300  },
301  {
302    "EventName": "ic_cache_inval.l2_invalidating_probe",
303    "EventCode": "0x8c",
304    "BriefDescription": "IC line invalidated due to L2 invalidating probe (external or LS). The number of instruction cache lines invalidated. A non-SMC event is CMC (cross modifying code), either from the other thread of the core or another core.",
305    "UMask": "0x02"
306  },
307  {
308    "EventName": "ic_cache_inval.fill_invalidated",
309    "EventCode": "0x8c",
310    "BriefDescription": "IC line invalidated due to overwriting fill response. The number of instruction cache lines invalidated. A non-SMC event is CMC (cross modifying code), either from the other thread of the core or another core.",
311    "UMask": "0x01"
312  },
313  {
314    "EventName": "ic_tag_hit_miss.all_instruction_cache_accesses",
315    "EventCode": "0x18e",
316    "BriefDescription": "All Instruction Cache Accesses. Counts various IC tag related hit and miss events.",
317    "UMask": "0x1f"
318  },
319  {
320    "EventName": "ic_tag_hit_miss.instruction_cache_miss",
321    "EventCode": "0x18e",
322    "BriefDescription": "Instruction Cache Miss. Counts various IC tag related hit and miss events.",
323    "UMask": "0x18"
324  },
325  {
326    "EventName": "ic_tag_hit_miss.instruction_cache_hit",
327    "EventCode": "0x18e",
328    "BriefDescription": "Instruction Cache Hit. Counts various IC tag related hit and miss events.",
329    "UMask": "0x07"
330  },
331  {
332    "EventName": "ic_oc_mode_switch.oc_ic_mode_switch",
333    "EventCode": "0x28a",
334    "BriefDescription": "OC Mode Switch. OC to IC mode switch.",
335    "UMask": "0x02"
336  },
337  {
338    "EventName": "ic_oc_mode_switch.ic_oc_mode_switch",
339    "EventCode": "0x28a",
340    "BriefDescription": "OC Mode Switch. IC to OC mode switch.",
341    "UMask": "0x01"
342  },
343  {
344    "EventName": "op_cache_hit_miss.all_op_cache_accesses",
345    "EventCode": "0x28f",
346    "BriefDescription": "All Op Cache accesses. Counts Op Cache micro-tag hit/miss events",
347    "UMask": "0x07"
348  },
349  {
350    "EventName": "op_cache_hit_miss.op_cache_miss",
351    "EventCode": "0x28f",
352    "BriefDescription": "Op Cache Miss. Counts Op Cache micro-tag hit/miss events",
353    "UMask": "0x04"
354  },
355  {
356    "EventName": "op_cache_hit_miss.op_cache_hit",
357    "EventCode": "0x28f",
358    "BriefDescription": "Op Cache Hit. Counts Op Cache micro-tag hit/miss events",
359    "UMask": "0x03"
360  },
361  {
362    "EventName": "l3_request_g1.caching_l3_cache_accesses",
363    "EventCode": "0x01",
364    "BriefDescription": "Caching: L3 cache accesses",
365    "UMask": "0x80",
366    "Unit": "L3PMC"
367  },
368  {
369    "EventName": "l3_lookup_state.all_l3_req_typs",
370    "EventCode": "0x04",
371    "BriefDescription": "All L3 Request Types. All L3 cache Requests",
372    "UMask": "0xff",
373    "Unit": "L3PMC"
374  },
375  {
376    "EventName": "l3_comb_clstr_state.other_l3_miss_typs",
377    "EventCode": "0x06",
378    "BriefDescription": "Other L3 Miss Request Types",
379    "UMask": "0xfe",
380    "Unit": "L3PMC"
381  },
382  {
383    "EventName": "l3_comb_clstr_state.request_miss",
384    "EventCode": "0x06",
385    "BriefDescription": "L3 cache misses",
386    "UMask": "0x01",
387    "Unit": "L3PMC"
388  },
389  {
390    "EventName": "xi_sys_fill_latency",
391    "EventCode": "0x90",
392    "BriefDescription": "L3 Cache Miss Latency. Total cycles for all transactions divided by 16. Ignores SliceMask and ThreadMask.",
393    "Unit": "L3PMC"
394  },
395  {
396    "EventName": "xi_ccx_sdp_req1",
397    "EventCode": "0x9a",
398    "BriefDescription": "L3 Misses by Request Type. Ignores SliceID, EnAllSlices, CoreID, EnAllCores and ThreadMask. Requires unit mask 0xFF to engage event for counting.",
399    "UMask": "0xff",
400    "Unit": "L3PMC"
401  }
402]
403