xref: /freebsd/lib/libpmc/pmu-events/arch/x86/amdzen1/cache.json (revision d5b0e70f7e04d971691517ce1304d86a1e367e2e)
1[
2  {
3    "EventName": "ic_fw32",
4    "EventCode": "0x80",
5    "BriefDescription": "The number of 32B fetch windows transferred from IC pipe to DE instruction decoder (includes non-cacheable and cacheable fill responses)."
6  },
7  {
8    "EventName": "ic_fw32_miss",
9    "EventCode": "0x81",
10    "BriefDescription": "The number of 32B fetch windows tried to read the L1 IC and missed in the full tag."
11  },
12  {
13    "EventName": "ic_cache_fill_l2",
14    "EventCode": "0x82",
15    "BriefDescription": "The number of 64 byte instruction cache line was fulfilled from the L2 cache."
16  },
17  {
18    "EventName": "ic_cache_fill_sys",
19    "EventCode": "0x83",
20    "BriefDescription": "The number of 64 byte instruction cache line fulfilled from system memory or another cache."
21  },
22  {
23    "EventName": "bp_l1_tlb_miss_l2_hit",
24    "EventCode": "0x84",
25    "BriefDescription": "The number of instruction fetches that miss in the L1 ITLB but hit in the L2 ITLB."
26  },
27  {
28    "EventName": "bp_l1_tlb_miss_l2_miss",
29    "EventCode": "0x85",
30    "BriefDescription": "The number of instruction fetches that miss in both the L1 and L2 TLBs."
31  },
32  {
33    "EventName": "bp_snp_re_sync",
34    "EventCode": "0x86",
35    "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."
36  },
37  {
38    "EventName": "ic_fetch_stall.ic_stall_any",
39    "EventCode": "0x87",
40    "BriefDescription": "Instruction Pipe Stall. IC pipe was stalled during this clock cycle for any reason (nothing valid in pipe ICM1).",
41    "UMask": "0x04"
42  },
43  {
44    "EventName": "ic_fetch_stall.ic_stall_dq_empty",
45    "EventCode": "0x87",
46    "BriefDescription": "Instruction Pipe Stall. IC pipe was stalled during this clock cycle (including IC to OC fetches) due to DQ empty.",
47    "UMask": "0x02"
48  },
49  {
50    "EventName": "ic_fetch_stall.ic_stall_back_pressure",
51    "EventCode": "0x87",
52    "BriefDescription": "Instruction Pipe Stall. IC pipe was stalled during this clock cycle (including IC to OC fetches) due to back-pressure.",
53    "UMask": "0x01"
54  },
55  {
56    "EventName": "ic_cache_inval.l2_invalidating_probe",
57    "EventCode": "0x8c",
58    "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.",
59    "UMask": "0x02"
60  },
61  {
62    "EventName": "ic_cache_inval.fill_invalidated",
63    "EventCode": "0x8c",
64    "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.",
65    "UMask": "0x01"
66  },
67  {
68    "EventName": "bp_tlb_rel",
69    "EventCode": "0x99",
70    "BriefDescription": "The number of ITLB reload requests."
71  },
72  {
73    "EventName": "l2_request_g1.rd_blk_l",
74    "EventCode": "0x60",
75    "BriefDescription": "All L2 Cache Requests (Breakdown 1 - Common). Data cache reads (including hardware and software prefetch).",
76    "UMask": "0x80"
77  },
78  {
79    "EventName": "l2_request_g1.rd_blk_x",
80    "EventCode": "0x60",
81    "BriefDescription": "All L2 Cache Requests (Breakdown 1 - Common). Data cache stores.",
82    "UMask": "0x40"
83  },
84  {
85    "EventName": "l2_request_g1.ls_rd_blk_c_s",
86    "EventCode": "0x60",
87    "BriefDescription": "All L2 Cache Requests (Breakdown 1 - Common). Data cache shared reads.",
88    "UMask": "0x20"
89  },
90  {
91    "EventName": "l2_request_g1.cacheable_ic_read",
92    "EventCode": "0x60",
93    "BriefDescription": "All L2 Cache Requests (Breakdown 1 - Common). Instruction cache reads.",
94    "UMask": "0x10"
95  },
96  {
97    "EventName": "l2_request_g1.change_to_x",
98    "EventCode": "0x60",
99    "BriefDescription": "All L2 Cache Requests (Breakdown 1 - Common). Data cache state change requests. Request change to writable, check L2 for current state.",
100    "UMask": "0x08"
101  },
102  {
103    "EventName": "l2_request_g1.prefetch_l2_cmd",
104    "EventCode": "0x60",
105    "BriefDescription": "All L2 Cache Requests (Breakdown 1 - Common). PrefetchL2Cmd.",
106    "UMask": "0x04"
107  },
108  {
109    "EventName": "l2_request_g1.l2_hw_pf",
110    "EventCode": "0x60",
111    "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.",
112    "UMask": "0x02"
113  },
114  {
115    "EventName": "l2_request_g1.group2",
116    "EventCode": "0x60",
117    "BriefDescription": "Miscellaneous events covered in more detail by l2_request_g2 (PMCx061).",
118    "UMask": "0x01"
119  },
120  {
121    "EventName": "l2_request_g1.all_no_prefetch",
122    "EventCode": "0x60",
123    "UMask": "0xf9"
124  },
125  {
126    "EventName": "l2_request_g2.group1",
127    "EventCode": "0x61",
128    "BriefDescription": "Miscellaneous events covered in more detail by l2_request_g1 (PMCx060).",
129    "UMask": "0x80"
130  },
131  {
132    "EventName": "l2_request_g2.ls_rd_sized",
133    "EventCode": "0x61",
134    "BriefDescription": "All L2 Cache Requests (Breakdown 2 - Rare). Data cache read sized.",
135    "UMask": "0x40"
136  },
137  {
138    "EventName": "l2_request_g2.ls_rd_sized_nc",
139    "EventCode": "0x61",
140    "BriefDescription": "All L2 Cache Requests (Breakdown 2 - Rare). Data cache read sized non-cacheable.",
141    "UMask": "0x20"
142  },
143  {
144    "EventName": "l2_request_g2.ic_rd_sized",
145    "EventCode": "0x61",
146    "BriefDescription": "All L2 Cache Requests (Breakdown 2 - Rare). Instruction cache read sized.",
147    "UMask": "0x10"
148  },
149  {
150    "EventName": "l2_request_g2.ic_rd_sized_nc",
151    "EventCode": "0x61",
152    "BriefDescription": "All L2 Cache Requests (Breakdown 2 - Rare). Instruction cache read sized non-cacheable.",
153    "UMask": "0x08"
154  },
155  {
156    "EventName": "l2_request_g2.smc_inval",
157    "EventCode": "0x61",
158    "BriefDescription": "All L2 Cache Requests (Breakdown 2 - Rare). Self-modifying code invalidates.",
159    "UMask": "0x04"
160  },
161  {
162    "EventName": "l2_request_g2.bus_locks_originator",
163    "EventCode": "0x61",
164    "BriefDescription": "All L2 Cache Requests (Breakdown 2 - Rare). Bus locks.",
165    "UMask": "0x02"
166  },
167  {
168    "EventName": "l2_request_g2.bus_locks_responses",
169    "EventCode": "0x61",
170    "BriefDescription": "All L2 Cache Requests (Breakdown 2 - Rare). Bus lock response.",
171    "UMask": "0x01"
172  },
173  {
174    "EventName": "l2_latency.l2_cycles_waiting_on_fills",
175    "EventCode": "0x62",
176    "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.",
177    "UMask": "0x01"
178  },
179  {
180    "EventName": "l2_wcb_req.wcb_write",
181    "EventCode": "0x63",
182    "BriefDescription": "LS to L2 WCB write requests. LS (Load/Store unit) to L2 WCB (Write Combining Buffer) write requests.",
183    "UMask": "0x40"
184  },
185  {
186    "EventName": "l2_wcb_req.wcb_close",
187    "EventCode": "0x63",
188    "BriefDescription": "LS to L2 WCB close requests. LS (Load/Store unit) to L2 WCB (Write Combining Buffer) close requests.",
189    "UMask": "0x20"
190  },
191  {
192    "EventName": "l2_wcb_req.zero_byte_store",
193    "EventCode": "0x63",
194    "BriefDescription": "LS to L2 WCB zero byte store requests. LS (Load/Store unit) to L2 WCB (Write Combining Buffer) zero byte store requests.",
195    "UMask": "0x04"
196  },
197  {
198    "EventName": "l2_wcb_req.cl_zero",
199    "EventCode": "0x63",
200    "BriefDescription": "LS to L2 WCB cache line zeroing requests. LS (Load/Store unit) to L2 WCB (Write Combining Buffer) cache line zeroing requests.",
201    "UMask": "0x01"
202  },
203  {
204    "EventName": "l2_cache_req_stat.ls_rd_blk_cs",
205    "EventCode": "0x64",
206    "BriefDescription": "Core to L2 cacheable request access status (not including L2 Prefetch). Data cache shared read hit in L2",
207    "UMask": "0x80"
208  },
209  {
210    "EventName": "l2_cache_req_stat.ls_rd_blk_l_hit_x",
211    "EventCode": "0x64",
212    "BriefDescription": "Core to L2 cacheable request access status (not including L2 Prefetch). Data cache read hit in L2.",
213    "UMask": "0x40"
214  },
215  {
216    "EventName": "l2_cache_req_stat.ls_rd_blk_l_hit_s",
217    "EventCode": "0x64",
218    "BriefDescription": "Core to L2 cacheable request access status (not including L2 Prefetch). Data cache read hit on shared line in L2.",
219    "UMask": "0x20"
220  },
221  {
222    "EventName": "l2_cache_req_stat.ls_rd_blk_x",
223    "EventCode": "0x64",
224    "BriefDescription": "Core to L2 cacheable request access status (not including L2 Prefetch). Data cache store or state change hit in L2.",
225    "UMask": "0x10"
226  },
227  {
228    "EventName": "l2_cache_req_stat.ls_rd_blk_c",
229    "EventCode": "0x64",
230    "BriefDescription": "Core to L2 cacheable request access status (not including L2 Prefetch). Data cache request miss in L2 (all types).",
231    "UMask": "0x08"
232  },
233  {
234    "EventName": "l2_cache_req_stat.ic_fill_hit_x",
235    "EventCode": "0x64",
236    "BriefDescription": "Core to L2 cacheable request access status (not including L2 Prefetch). Instruction cache hit modifiable line in L2.",
237    "UMask": "0x04"
238  },
239  {
240    "EventName": "l2_cache_req_stat.ic_fill_hit_s",
241    "EventCode": "0x64",
242    "BriefDescription": "Core to L2 cacheable request access status (not including L2 Prefetch). Instruction cache hit clean line in L2.",
243    "UMask": "0x02"
244  },
245  {
246    "EventName": "l2_cache_req_stat.ic_fill_miss",
247    "EventCode": "0x64",
248    "BriefDescription": "Core to L2 cacheable request access status (not including L2 Prefetch). Instruction cache request miss in L2.",
249    "UMask": "0x01"
250  },
251  {
252    "EventName": "l2_cache_req_stat.ic_access_in_l2",
253    "EventCode": "0x64",
254    "BriefDescription": "Core to L2 cacheable request access status (not including L2 Prefetch). Instruction cache requests in L2.",
255    "UMask": "0x07"
256  },
257  {
258    "EventName": "l2_cache_req_stat.ic_dc_miss_in_l2",
259    "EventCode": "0x64",
260    "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).",
261    "UMask": "0x09"
262  },
263  {
264    "EventName": "l2_cache_req_stat.ic_dc_hit_in_l2",
265    "EventCode": "0x64",
266    "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).",
267    "UMask": "0xf6"
268  },
269  {
270    "EventName": "l2_fill_pending.l2_fill_busy",
271    "EventCode": "0x6d",
272    "BriefDescription": "Cycles with fill pending from L2. Total cycles spent with one or more fill requests in flight from L2.",
273    "UMask": "0x01"
274  },
275  {
276    "EventName": "l2_pf_hit_l2",
277    "EventCode": "0x70",
278    "BriefDescription": "L2 prefetch hit in L2. Use l2_cache_hits_from_l2_hwpf instead.",
279    "UMask": "0xff"
280  },
281  {
282    "EventName": "l2_pf_miss_l2_hit_l3",
283    "EventCode": "0x71",
284    "BriefDescription": "L2 prefetcher hits in L3. Counts all L2 prefetches accepted by the L2 pipeline which miss the L2 cache and hit the L3.",
285    "UMask": "0xff"
286  },
287  {
288    "EventName": "l2_pf_miss_l2_l3",
289    "EventCode": "0x72",
290    "BriefDescription": "L2 prefetcher misses in L3. All L2 prefetches accepted by the L2 pipeline which miss the L2 and the L3 caches.",
291    "UMask": "0xff"
292  },
293  {
294    "EventName": "l3_request_g1.caching_l3_cache_accesses",
295    "EventCode": "0x01",
296    "BriefDescription": "Caching: L3 cache accesses",
297    "UMask": "0x80",
298    "Unit": "L3PMC"
299  },
300  {
301    "EventName": "l3_lookup_state.all_l3_req_typs",
302    "EventCode": "0x04",
303    "BriefDescription": "All L3 Request Types",
304    "UMask": "0xff",
305    "Unit": "L3PMC"
306  },
307  {
308    "EventName": "l3_comb_clstr_state.other_l3_miss_typs",
309    "EventCode": "0x06",
310    "BriefDescription": "Other L3 Miss Request Types",
311    "UMask": "0xfe",
312    "Unit": "L3PMC"
313  },
314  {
315    "EventName": "l3_comb_clstr_state.request_miss",
316    "EventCode": "0x06",
317    "BriefDescription": "L3 cache misses",
318    "UMask": "0x01",
319    "Unit": "L3PMC"
320  },
321  {
322    "EventName": "xi_sys_fill_latency",
323    "EventCode": "0x90",
324    "BriefDescription": "L3 Cache Miss Latency. Total cycles for all transactions divided by 16. Ignores SliceMask and ThreadMask.",
325    "UMask": "0x00",
326    "Unit": "L3PMC"
327  },
328  {
329    "EventName": "xi_ccx_sdp_req1.all_l3_miss_req_typs",
330    "EventCode": "0x9a",
331    "BriefDescription": "All L3 Miss Request Types. Ignores SliceMask and ThreadMask.",
332    "UMask": "0x3f",
333    "Unit": "L3PMC"
334  }
335]
336