xref: /freebsd/lib/libpmc/pmu-events/arch/x86/icelake/frontend.json (revision f7c32ed617858bcd22f8d1b03199099d50125721)
1[
2    {
3        "CollectPEBSRecord": "2",
4        "PublicDescription": "Counts the number of uops delivered to Instruction Decode Queue (IDQ) from the MITE path. This also means that uops are not being delivered from the Decode Stream Buffer (DSB).",
5        "EventCode": "0x79",
6        "Counter": "0,1,2,3",
7        "UMask": "0x4",
8        "PEBScounters": "0,1,2,3",
9        "EventName": "IDQ.MITE_UOPS",
10        "SampleAfterValue": "2000003",
11        "BriefDescription": "Uops delivered to Instruction Decode Queue (IDQ) from MITE path"
12    },
13    {
14        "CollectPEBSRecord": "2",
15        "PublicDescription": "Counts the number of cycles where optimal number of uops was delivered to the Instruction Decode Queue (IDQ) from the MITE (legacy decode pipeline) path. During these cycles uops are not being delivered from the Decode Stream Buffer (DSB).",
16        "EventCode": "0x79",
17        "Counter": "0,1,2,3",
18        "UMask": "0x4",
19        "PEBScounters": "0,1,2,3",
20        "EventName": "IDQ.MITE_CYCLES_OK",
21        "SampleAfterValue": "2000003",
22        "BriefDescription": "Cycles MITE is delivering optimal number of Uops",
23        "CounterMask": "5"
24    },
25    {
26        "CollectPEBSRecord": "2",
27        "PublicDescription": "Counts the number of cycles uops were delivered to the Instruction Decode Queue (IDQ) from the MITE (legacy decode pipeline) path. During these cycles uops are not being delivered from the Decode Stream Buffer (DSB).",
28        "EventCode": "0x79",
29        "Counter": "0,1,2,3",
30        "UMask": "0x4",
31        "PEBScounters": "0,1,2,3",
32        "EventName": "IDQ.MITE_CYCLES_ANY",
33        "SampleAfterValue": "2000003",
34        "BriefDescription": "Cycles MITE is delivering any Uop",
35        "CounterMask": "1"
36    },
37    {
38        "CollectPEBSRecord": "2",
39        "PublicDescription": "Counts the number of uops delivered to Instruction Decode Queue (IDQ) from the Decode Stream Buffer (DSB) path.",
40        "EventCode": "0x79",
41        "Counter": "0,1,2,3",
42        "UMask": "0x8",
43        "PEBScounters": "0,1,2,3",
44        "EventName": "IDQ.DSB_UOPS",
45        "SampleAfterValue": "2000003",
46        "BriefDescription": "Uops delivered to Instruction Decode Queue (IDQ) from the Decode Stream Buffer (DSB) path"
47    },
48    {
49        "CollectPEBSRecord": "2",
50        "PublicDescription": "Counts the number of cycles where optimal number of uops was delivered to the Instruction Decode Queue (IDQ) from the MITE (legacy decode pipeline) path. During these cycles uops are not being delivered from the Decode Stream Buffer (DSB).",
51        "EventCode": "0x79",
52        "Counter": "0,1,2,3",
53        "UMask": "0x8",
54        "PEBScounters": "0,1,2,3",
55        "EventName": "IDQ.DSB_CYCLES_OK",
56        "SampleAfterValue": "2000003",
57        "BriefDescription": "Cycles DSB is delivering optimal number of Uops",
58        "CounterMask": "5"
59    },
60    {
61        "CollectPEBSRecord": "2",
62        "PublicDescription": "Counts the number of cycles uops were delivered to Instruction Decode Queue (IDQ) from the Decode Stream Buffer (DSB) path.",
63        "EventCode": "0x79",
64        "Counter": "0,1,2,3",
65        "UMask": "0x8",
66        "PEBScounters": "0,1,2,3",
67        "EventName": "IDQ.DSB_CYCLES_ANY",
68        "SampleAfterValue": "2000003",
69        "BriefDescription": "Cycles Decode Stream Buffer (DSB) is delivering any Uop",
70        "CounterMask": "1"
71    },
72    {
73        "CollectPEBSRecord": "2",
74        "PublicDescription": "Number of switches from DSB (Decode Stream Buffer) or MITE (legacy decode pipeline) to the Microcode Sequencer.",
75        "EventCode": "0x79",
76        "Counter": "0,1,2,3",
77        "UMask": "0x30",
78        "PEBScounters": "0,1,2,3",
79        "EventName": "IDQ.MS_SWITCHES",
80        "SampleAfterValue": "2000003",
81        "BriefDescription": "Number of switches from DSB or MITE to the MS",
82        "CounterMask": "1",
83        "EdgeDetect": "1"
84    },
85    {
86        "CollectPEBSRecord": "2",
87        "PublicDescription": "Counts the total number of uops delivered by the Microcode Sequencer (MS). Any instruction over 4 uops will be delivered by the MS. Some instructions such as transcendentals may additionally generate uops from the MS.",
88        "EventCode": "0x79",
89        "Counter": "0,1,2,3",
90        "UMask": "0x30",
91        "PEBScounters": "0,1,2,3",
92        "EventName": "IDQ.MS_UOPS",
93        "SampleAfterValue": "2000003",
94        "BriefDescription": "Uops delivered to IDQ while MS is busy"
95    },
96    {
97        "CollectPEBSRecord": "2",
98        "PublicDescription": "Counts cycles during which uops are being delivered to Instruction Decode Queue (IDQ) while the Microcode Sequencer (MS) is busy. Uops maybe initiated by Decode Stream Buffer (DSB) or MITE.",
99        "EventCode": "0x79",
100        "Counter": "0,1,2,3",
101        "UMask": "0x30",
102        "PEBScounters": "0,1,2,3",
103        "EventName": "IDQ.MS_CYCLES_ANY",
104        "SampleAfterValue": "2000003",
105        "BriefDescription": "Cycles when uops are being delivered to IDQ while MS is busy",
106        "CounterMask": "1"
107    },
108    {
109        "CollectPEBSRecord": "2",
110        "PublicDescription": "Counts cycles where a code line fetch is stalled due to an L1 instruction cache miss. The legacy decode pipeline works at a 16 Byte granularity.",
111        "EventCode": "0x80",
112        "Counter": "0,1,2,3",
113        "UMask": "0x4",
114        "PEBScounters": "0,1,2,3",
115        "EventName": "ICACHE_16B.IFDATA_STALL",
116        "SampleAfterValue": "2000003",
117        "BriefDescription": "Cycles where a code fetch is stalled due to L1 instruction cache miss."
118    },
119    {
120        "CollectPEBSRecord": "2",
121        "PublicDescription": "Counts instruction fetch tag lookups that hit in the instruction cache (L1I). Counts at 64-byte cache-line granularity. Accounts for both cacheable and uncacheable accesses.",
122        "EventCode": "0x83",
123        "Counter": "0,1,2,3",
124        "UMask": "0x1",
125        "PEBScounters": "0,1,2,3",
126        "EventName": "ICACHE_64B.IFTAG_HIT",
127        "SampleAfterValue": "200003",
128        "BriefDescription": "Instruction fetch tag lookups that hit in the instruction cache (L1I). Counts at 64-byte cache-line granularity."
129    },
130    {
131        "CollectPEBSRecord": "2",
132        "PublicDescription": "Counts instruction fetch tag lookups that miss in the instruction cache (L1I). Counts at 64-byte cache-line granularity. Accounts for both cacheable and uncacheable accesses.",
133        "EventCode": "0x83",
134        "Counter": "0,1,2,3",
135        "UMask": "0x2",
136        "PEBScounters": "0,1,2,3",
137        "EventName": "ICACHE_64B.IFTAG_MISS",
138        "SampleAfterValue": "200003",
139        "BriefDescription": "Instruction fetch tag lookups that miss in the instruction cache (L1I). Counts at 64-byte cache-line granularity."
140    },
141    {
142        "CollectPEBSRecord": "2",
143        "PublicDescription": "Counts cycles where a code fetch is stalled due to L1 instruction cache tag miss.",
144        "EventCode": "0x83",
145        "Counter": "0,1,2,3",
146        "UMask": "0x4",
147        "PEBScounters": "0,1,2,3",
148        "EventName": "ICACHE_64B.IFTAG_STALL",
149        "SampleAfterValue": "200003",
150        "BriefDescription": "Cycles where a code fetch is stalled due to L1 instruction cache tag miss."
151    },
152    {
153        "CollectPEBSRecord": "2",
154        "PublicDescription": "Counts the number of uops not delivered to by the Instruction Decode Queue (IDQ) to the back-end of the pipeline when there was no back-end stalls. This event counts for one SMT thread in a given cycle.",
155        "EventCode": "0x9C",
156        "Counter": "0,1,2,3,4,5,6,7",
157        "UMask": "0x1",
158        "PEBScounters": "0,1,2,3,4,5,6,7",
159        "EventName": "IDQ_UOPS_NOT_DELIVERED.CORE",
160        "SampleAfterValue": "2000003",
161        "BriefDescription": "Uops not delivered by IDQ when backend of the machine is not stalled"
162    },
163    {
164        "CollectPEBSRecord": "2",
165        "PublicDescription": "Counts the number of cycles when no uops were delivered by the Instruction Decode Queue (IDQ) to the back-end of the pipeline when there was no back-end stalls. This event counts for one SMT thread in a given cycle.",
166        "EventCode": "0x9c",
167        "Counter": "0,1,2,3,4,5,6,7",
168        "UMask": "0x1",
169        "PEBScounters": "0,1,2,3,4,5,6,7",
170        "EventName": "IDQ_UOPS_NOT_DELIVERED.CYCLES_0_UOPS_DELIV.CORE",
171        "SampleAfterValue": "2000003",
172        "BriefDescription": "Cycles when no uops are not delivered by the IDQ when backend of the machine is not stalled",
173        "CounterMask": "5"
174    },
175    {
176        "CollectPEBSRecord": "2",
177        "PublicDescription": "Counts the number of cycles when the optimal number of uops were delivered by the Instruction Decode Queue (IDQ) to the back-end of the pipeline when there was no back-end stalls. This event counts for one SMT thread in a given cycle.",
178        "EventCode": "0x9C",
179        "Invert": "1",
180        "Counter": "0,1,2,3,4,5,6,7",
181        "UMask": "0x1",
182        "PEBScounters": "0,1,2,3,4,5,6,7",
183        "EventName": "IDQ_UOPS_NOT_DELIVERED.CYCLES_FE_WAS_OK",
184        "SampleAfterValue": "2000003",
185        "BriefDescription": "Cycles when optimal number of uops was delivered to the back-end when the back-end is not stalled",
186        "CounterMask": "1"
187    },
188    {
189        "CollectPEBSRecord": "2",
190        "PublicDescription": "Decode Stream Buffer (DSB) is a Uop-cache that holds translations of previously fetched instructions that were decoded by the legacy x86 decode pipeline (MITE). This event counts fetch penalty cycles when a transition occurs from DSB to MITE.",
191        "EventCode": "0xAB",
192        "Counter": "0,1,2,3",
193        "UMask": "0x2",
194        "PEBScounters": "0,1,2,3",
195        "EventName": "DSB2MITE_SWITCHES.PENALTY_CYCLES",
196        "SampleAfterValue": "2000003",
197        "BriefDescription": "DSB-to-MITE switch true penalty cycles."
198    },
199    {
200        "PEBS": "1",
201        "CollectPEBSRecord": "2",
202        "PublicDescription": "Counts retired Instructions that experienced DSB (Decode stream buffer i.e. the decoded instruction-cache) miss.",
203        "EventCode": "0xC6",
204        "MSRValue": "0x11",
205        "Counter": "0,1,2,3,4,5,6,7",
206        "UMask": "0x1",
207        "PEBScounters": "0,1,2,3,4,5,6,7",
208        "EventName": "FRONTEND_RETIRED.DSB_MISS",
209        "MSRIndex": "0x3F7",
210        "SampleAfterValue": "100007",
211        "BriefDescription": "Retired Instructions who experienced DSB miss.",
212        "TakenAlone": "1"
213    },
214    {
215        "PEBS": "1",
216        "CollectPEBSRecord": "2",
217        "PublicDescription": "Counts retired Instructions who experienced Instruction L1 Cache true miss.",
218        "EventCode": "0xC6",
219        "MSRValue": "0x12",
220        "Counter": "0,1,2,3,4,5,6,7",
221        "UMask": "0x1",
222        "PEBScounters": "0,1,2,3,4,5,6,7",
223        "EventName": "FRONTEND_RETIRED.L1I_MISS",
224        "MSRIndex": "0x3F7",
225        "SampleAfterValue": "100007",
226        "BriefDescription": "Retired Instructions who experienced Instruction L1 Cache true miss.",
227        "TakenAlone": "1"
228    },
229    {
230        "PEBS": "1",
231        "CollectPEBSRecord": "2",
232        "PublicDescription": "Counts retired Instructions who experienced Instruction L2 Cache true miss.",
233        "EventCode": "0xC6",
234        "MSRValue": "0x13",
235        "Counter": "0,1,2,3,4,5,6,7",
236        "UMask": "0x1",
237        "PEBScounters": "0,1,2,3,4,5,6,7",
238        "EventName": "FRONTEND_RETIRED.L2_MISS",
239        "MSRIndex": "0x3F7",
240        "SampleAfterValue": "100007",
241        "BriefDescription": "Retired Instructions who experienced Instruction L2 Cache true miss.",
242        "TakenAlone": "1"
243    },
244    {
245        "PEBS": "1",
246        "CollectPEBSRecord": "2",
247        "PublicDescription": "Counts retired Instructions that experienced iTLB (Instruction TLB) true miss.",
248        "EventCode": "0xC6",
249        "MSRValue": "0x14",
250        "Counter": "0,1,2,3,4,5,6,7",
251        "UMask": "0x1",
252        "PEBScounters": "0,1,2,3,4,5,6,7",
253        "EventName": "FRONTEND_RETIRED.ITLB_MISS",
254        "MSRIndex": "0x3F7",
255        "SampleAfterValue": "100007",
256        "BriefDescription": "Retired Instructions who experienced iTLB true miss.",
257        "TakenAlone": "1"
258    },
259    {
260        "PEBS": "1",
261        "CollectPEBSRecord": "2",
262        "PublicDescription": "Counts retired Instructions that experienced STLB (2nd level TLB) true miss.",
263        "EventCode": "0xC6",
264        "MSRValue": "0x15",
265        "Counter": "0,1,2,3,4,5,6,7",
266        "UMask": "0x1",
267        "PEBScounters": "0,1,2,3,4,5,6,7",
268        "EventName": "FRONTEND_RETIRED.STLB_MISS",
269        "MSRIndex": "0x3F7",
270        "SampleAfterValue": "100007",
271        "BriefDescription": "Retired Instructions who experienced STLB (2nd level TLB) true miss.",
272        "TakenAlone": "1"
273    },
274    {
275        "PEBS": "1",
276        "CollectPEBSRecord": "2",
277        "PublicDescription": "Counts retired instructions that are fetched after an interval where the front-end delivered no uops for a period of 2 cycles which was not interrupted by a back-end stall.",
278        "EventCode": "0xC6",
279        "MSRValue": "0x500206",
280        "Counter": "0,1,2,3,4,5,6,7",
281        "UMask": "0x1",
282        "PEBScounters": "0,1,2,3,4,5,6,7",
283        "EventName": "FRONTEND_RETIRED.LATENCY_GE_2",
284        "MSRIndex": "0x3F7",
285        "SampleAfterValue": "100007",
286        "BriefDescription": "Retired instructions that are fetched after an interval where the front-end delivered no uops for a period of 2 cycles which was not interrupted by a back-end stall.",
287        "TakenAlone": "1"
288    },
289    {
290        "PEBS": "1",
291        "CollectPEBSRecord": "2",
292        "PublicDescription": "Counts retired instructions that are fetched after an interval where the front-end delivered no uops for a period of 4 cycles which was not interrupted by a back-end stall.",
293        "EventCode": "0xC6",
294        "MSRValue": "0x500406",
295        "Counter": "0,1,2,3,4,5,6,7",
296        "UMask": "0x1",
297        "PEBScounters": "0,1,2,3,4,5,6,7",
298        "EventName": "FRONTEND_RETIRED.LATENCY_GE_4",
299        "MSRIndex": "0x3F7",
300        "SampleAfterValue": "100007",
301        "BriefDescription": "Retired instructions that are fetched after an interval where the front-end delivered no uops for a period of 4 cycles which was not interrupted by a back-end stall.",
302        "TakenAlone": "1"
303    },
304    {
305        "PEBS": "1",
306        "CollectPEBSRecord": "2",
307        "PublicDescription": "Counts retired instructions that are delivered to the back-end after a front-end stall of at least 8 cycles. During this period the front-end delivered no uops.",
308        "EventCode": "0xC6",
309        "MSRValue": "0x500806",
310        "Counter": "0,1,2,3,4,5,6,7",
311        "UMask": "0x1",
312        "PEBScounters": "0,1,2,3,4,5,6,7",
313        "EventName": "FRONTEND_RETIRED.LATENCY_GE_8",
314        "MSRIndex": "0x3F7",
315        "SampleAfterValue": "100007",
316        "BriefDescription": "Retired instructions that are fetched after an interval where the front-end delivered no uops for a period of 8 cycles which was not interrupted by a back-end stall.",
317        "TakenAlone": "1"
318    },
319    {
320        "PEBS": "1",
321        "CollectPEBSRecord": "2",
322        "PublicDescription": "Counts retired instructions that are delivered to the back-end after a front-end stall of at least 16 cycles. During this period the front-end delivered no uops.",
323        "EventCode": "0xC6",
324        "MSRValue": "0x501006",
325        "Counter": "0,1,2,3,4,5,6,7",
326        "UMask": "0x1",
327        "PEBScounters": "0,1,2,3,4,5,6,7",
328        "EventName": "FRONTEND_RETIRED.LATENCY_GE_16",
329        "MSRIndex": "0x3F7",
330        "SampleAfterValue": "100007",
331        "BriefDescription": "Retired instructions that are fetched after an interval where the front-end delivered no uops for a period of 16 cycles which was not interrupted by a back-end stall.",
332        "TakenAlone": "1"
333    },
334    {
335        "PEBS": "1",
336        "CollectPEBSRecord": "2",
337        "PublicDescription": "Counts retired instructions that are delivered to the back-end after a front-end stall of at least 32 cycles. During this period the front-end delivered no uops.",
338        "EventCode": "0xC6",
339        "MSRValue": "0x502006",
340        "Counter": "0,1,2,3,4,5,6,7",
341        "UMask": "0x1",
342        "PEBScounters": "0,1,2,3,4,5,6,7",
343        "EventName": "FRONTEND_RETIRED.LATENCY_GE_32",
344        "MSRIndex": "0x3F7",
345        "SampleAfterValue": "100007",
346        "BriefDescription": "Retired instructions that are fetched after an interval where the front-end delivered no uops for a period of 32 cycles which was not interrupted by a back-end stall.",
347        "TakenAlone": "1"
348    },
349    {
350        "PEBS": "1",
351        "CollectPEBSRecord": "2",
352        "PublicDescription": "Counts retired instructions that are fetched after an interval where the front-end delivered no uops for a period of 64 cycles which was not interrupted by a back-end stall.",
353        "EventCode": "0xC6",
354        "MSRValue": "0x504006",
355        "Counter": "0,1,2,3,4,5,6,7",
356        "UMask": "0x1",
357        "PEBScounters": "0,1,2,3,4,5,6,7",
358        "EventName": "FRONTEND_RETIRED.LATENCY_GE_64",
359        "MSRIndex": "0x3F7",
360        "SampleAfterValue": "100007",
361        "BriefDescription": "Retired instructions that are fetched after an interval where the front-end delivered no uops for a period of 64 cycles which was not interrupted by a back-end stall.",
362        "TakenAlone": "1"
363    },
364    {
365        "PEBS": "1",
366        "CollectPEBSRecord": "2",
367        "PublicDescription": "Counts retired instructions that are fetched after an interval where the front-end delivered no uops for a period of 128 cycles which was not interrupted by a back-end stall.",
368        "EventCode": "0xC6",
369        "MSRValue": "0x508006",
370        "Counter": "0,1,2,3,4,5,6,7",
371        "UMask": "0x1",
372        "PEBScounters": "0,1,2,3,4,5,6,7",
373        "EventName": "FRONTEND_RETIRED.LATENCY_GE_128",
374        "MSRIndex": "0x3F7",
375        "SampleAfterValue": "100007",
376        "BriefDescription": "Retired instructions that are fetched after an interval where the front-end delivered no uops for a period of 128 cycles which was not interrupted by a back-end stall.",
377        "TakenAlone": "1"
378    },
379    {
380        "PEBS": "1",
381        "CollectPEBSRecord": "2",
382        "PublicDescription": "Counts retired instructions that are fetched after an interval where the front-end delivered no uops for a period of 256 cycles which was not interrupted by a back-end stall.",
383        "EventCode": "0xC6",
384        "MSRValue": "0x510006",
385        "Counter": "0,1,2,3,4,5,6,7",
386        "UMask": "0x1",
387        "PEBScounters": "0,1,2,3,4,5,6,7",
388        "EventName": "FRONTEND_RETIRED.LATENCY_GE_256",
389        "MSRIndex": "0x3F7",
390        "SampleAfterValue": "100007",
391        "BriefDescription": "Retired instructions that are fetched after an interval where the front-end delivered no uops for a period of 256 cycles which was not interrupted by a back-end stall.",
392        "TakenAlone": "1"
393    },
394    {
395        "PEBS": "1",
396        "CollectPEBSRecord": "2",
397        "PublicDescription": "Counts retired instructions that are fetched after an interval where the front-end delivered no uops for a period of 512 cycles which was not interrupted by a back-end stall.",
398        "EventCode": "0xC6",
399        "MSRValue": "0x520006",
400        "Counter": "0,1,2,3,4,5,6,7",
401        "UMask": "0x1",
402        "PEBScounters": "0,1,2,3,4,5,6,7",
403        "EventName": "FRONTEND_RETIRED.LATENCY_GE_512",
404        "MSRIndex": "0x3F7",
405        "SampleAfterValue": "100007",
406        "BriefDescription": "Retired instructions that are fetched after an interval where the front-end delivered no uops for a period of 512 cycles which was not interrupted by a back-end stall.",
407        "TakenAlone": "1"
408    },
409    {
410        "PEBS": "1",
411        "CollectPEBSRecord": "2",
412        "PublicDescription": "Counts retired instructions that are delivered to the back-end after the front-end had at least 1 bubble-slot for a period of 2 cycles. A bubble-slot is an empty issue-pipeline slot while there was no RAT stall.",
413        "EventCode": "0xC6",
414        "MSRValue": "0x100206",
415        "Counter": "0,1,2,3,4,5,6,7",
416        "UMask": "0x1",
417        "PEBScounters": "0,1,2,3,4,5,6,7",
418        "EventName": "FRONTEND_RETIRED.LATENCY_GE_2_BUBBLES_GE_1",
419        "MSRIndex": "0x3F7",
420        "SampleAfterValue": "100007",
421        "BriefDescription": "Retired instructions that are fetched after an interval where the front-end had at least 1 bubble-slot for a period of 2 cycles which was not interrupted by a back-end stall.",
422        "TakenAlone": "1"
423    }
424]