xref: /freebsd/lib/libpmc/pmu-events/arch/x86/amdzen2/cache.json (revision 3e8eb5c7f4909209c042403ddee340b2ee7003a5)
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.",
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 on shared 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).",
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 clean 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.",
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. 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": "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": "The number of 64 byte instruction cache line fulfilled from system memory or another cache."
242  },
243  {
244    "EventName": "bp_l1_tlb_miss_l2_hit",
245    "EventCode": "0x84",
246    "BriefDescription": "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.if1g",
256    "EventCode": "0x85",
257    "BriefDescription": "The number of instruction fetches that miss in both the L1 and L2 TLBs. Instruction fetches to a 1GB page.",
258    "UMask": "0x04"
259  },
260  {
261    "EventName": "bp_l1_tlb_miss_l2_tlb_miss.if2m",
262    "EventCode": "0x85",
263    "BriefDescription": "The number of instruction fetches that miss in both the L1 and L2 TLBs. Instruction fetches to a 2MB page.",
264    "UMask": "0x02"
265  },
266  {
267    "EventName": "bp_l1_tlb_miss_l2_tlb_miss.if4k",
268    "EventCode": "0x85",
269    "BriefDescription": "The number of instruction fetches that miss in both the L1 and L2 TLBs. Instruction fetches to a 4KB page.",
270    "UMask": "0x01"
271  },
272  {
273    "EventName": "bp_snp_re_sync",
274    "EventCode": "0x86",
275    "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."
276  },
277  {
278    "EventName": "ic_fetch_stall.ic_stall_any",
279    "EventCode": "0x87",
280    "BriefDescription": "Instruction Pipe Stall. IC pipe was stalled during this clock cycle for any reason (nothing valid in pipe ICM1).",
281    "UMask": "0x04"
282  },
283  {
284    "EventName": "ic_fetch_stall.ic_stall_dq_empty",
285    "EventCode": "0x87",
286    "BriefDescription": "Instruction Pipe Stall. IC pipe was stalled during this clock cycle (including IC to OC fetches) due to DQ empty.",
287    "UMask": "0x02"
288  },
289  {
290    "EventName": "ic_fetch_stall.ic_stall_back_pressure",
291    "EventCode": "0x87",
292    "BriefDescription": "Instruction Pipe Stall. IC pipe was stalled during this clock cycle (including IC to OC fetches) due to back-pressure.",
293    "UMask": "0x01"
294  },
295  {
296    "EventName": "ic_cache_inval.l2_invalidating_probe",
297    "EventCode": "0x8c",
298    "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.",
299    "UMask": "0x02"
300  },
301  {
302    "EventName": "ic_cache_inval.fill_invalidated",
303    "EventCode": "0x8c",
304    "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.",
305    "UMask": "0x01"
306  },
307  {
308    "EventName": "ic_oc_mode_switch.oc_ic_mode_switch",
309    "EventCode": "0x28a",
310    "BriefDescription": "OC Mode Switch. OC to IC mode switch.",
311    "UMask": "0x02"
312  },
313  {
314    "EventName": "ic_oc_mode_switch.ic_oc_mode_switch",
315    "EventCode": "0x28a",
316    "BriefDescription": "OC Mode Switch. IC to OC mode switch.",
317    "UMask": "0x01"
318  },
319  {
320    "EventName": "l3_request_g1.caching_l3_cache_accesses",
321    "EventCode": "0x01",
322    "BriefDescription": "Caching: L3 cache accesses",
323    "UMask": "0x80",
324    "Unit": "L3PMC"
325  },
326  {
327    "EventName": "l3_lookup_state.all_l3_req_typs",
328    "EventCode": "0x04",
329    "BriefDescription": "All L3 Request Types",
330    "UMask": "0xff",
331    "Unit": "L3PMC"
332  },
333  {
334    "EventName": "l3_comb_clstr_state.other_l3_miss_typs",
335    "EventCode": "0x06",
336    "BriefDescription": "Other L3 Miss Request Types",
337    "UMask": "0xfe",
338    "Unit": "L3PMC"
339  },
340  {
341    "EventName": "l3_comb_clstr_state.request_miss",
342    "EventCode": "0x06",
343    "BriefDescription": "L3 cache misses",
344    "UMask": "0x01",
345    "Unit": "L3PMC"
346  },
347  {
348    "EventName": "xi_sys_fill_latency",
349    "EventCode": "0x90",
350    "BriefDescription": "L3 Cache Miss Latency. Total cycles for all transactions divided by 16. Ignores SliceMask and ThreadMask.",
351    "UMask": "0x00",
352    "Unit": "L3PMC"
353  },
354  {
355    "EventName": "xi_ccx_sdp_req1.all_l3_miss_req_typs",
356    "EventCode": "0x9a",
357    "BriefDescription": "All L3 Miss Request Types. Ignores SliceMask and ThreadMask.",
358    "UMask": "0x3f",
359    "Unit": "L3PMC"
360  }
361]
362