xref: /linux/tools/perf/pmu-events/arch/x86/alderlake/frontend.json (revision fd7d598270724cc787982ea48bbe17ad383a8b7f)
1[
2    {
3        "BriefDescription": "Counts the total number of BACLEARS due to all branch types including conditional and unconditional jumps, returns, and indirect branches.",
4        "EventCode": "0xe6",
5        "EventName": "BACLEARS.ANY",
6        "PublicDescription": "Counts the total number of BACLEARS, which occur when the Branch Target Buffer (BTB) prediction or lack thereof, was corrected by a later branch predictor in the frontend.  Includes BACLEARS due to all branch types including conditional and unconditional jumps, returns, and indirect branches.",
7        "SampleAfterValue": "100003",
8        "UMask": "0x1",
9        "Unit": "cpu_atom"
10    },
11    {
12        "BriefDescription": "Clears due to Unknown Branches.",
13        "EventCode": "0x60",
14        "EventName": "BACLEARS.ANY",
15        "PublicDescription": "Number of times the front-end is resteered when it finds a branch instruction in a fetch line. This is called Unknown Branch which occurs for the first time a branch instruction is fetched or when the branch is not tracked by the BPU (Branch Prediction Unit) anymore.",
16        "SampleAfterValue": "100003",
17        "UMask": "0x1",
18        "Unit": "cpu_core"
19    },
20    {
21        "BriefDescription": "Stalls caused by changing prefix length of the instruction.",
22        "EventCode": "0x87",
23        "EventName": "DECODE.LCP",
24        "PublicDescription": "Counts cycles that the Instruction Length decoder (ILD) stalls occurred due to dynamically changing prefix length of the decoded instruction (by operand size prefix instruction 0x66, address size prefix instruction 0x67 or REX.W for Intel64). Count is proportional to the number of prefixes in a 16B-line. This may result in a three-cycle penalty for each LCP (Length changing prefix) in a 16-byte chunk.",
25        "SampleAfterValue": "500009",
26        "UMask": "0x1",
27        "Unit": "cpu_core"
28    },
29    {
30        "BriefDescription": "Cycles the Microcode Sequencer is busy.",
31        "EventCode": "0x87",
32        "EventName": "DECODE.MS_BUSY",
33        "SampleAfterValue": "500009",
34        "UMask": "0x2",
35        "Unit": "cpu_core"
36    },
37    {
38        "BriefDescription": "DSB-to-MITE switch true penalty cycles.",
39        "EventCode": "0x61",
40        "EventName": "DSB2MITE_SWITCHES.PENALTY_CYCLES",
41        "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.",
42        "SampleAfterValue": "100003",
43        "UMask": "0x2",
44        "Unit": "cpu_core"
45    },
46    {
47        "BriefDescription": "Retired Instructions who experienced DSB miss.",
48        "EventCode": "0xc6",
49        "EventName": "FRONTEND_RETIRED.ANY_DSB_MISS",
50        "MSRIndex": "0x3F7",
51        "MSRValue": "0x1",
52        "PEBS": "1",
53        "PublicDescription": "Counts retired Instructions that experienced DSB (Decode stream buffer i.e. the decoded instruction-cache) miss.",
54        "SampleAfterValue": "100007",
55        "UMask": "0x1",
56        "Unit": "cpu_core"
57    },
58    {
59        "BriefDescription": "Retired Instructions who experienced a critical DSB miss.",
60        "EventCode": "0xc6",
61        "EventName": "FRONTEND_RETIRED.DSB_MISS",
62        "MSRIndex": "0x3F7",
63        "MSRValue": "0x11",
64        "PEBS": "1",
65        "PublicDescription": "Number of retired Instructions that experienced a critical DSB (Decode stream buffer i.e. the decoded instruction-cache) miss. Critical means stalls were exposed to the back-end as a result of the DSB miss.",
66        "SampleAfterValue": "100007",
67        "UMask": "0x1",
68        "Unit": "cpu_core"
69    },
70    {
71        "BriefDescription": "Retired Instructions who experienced iTLB true miss.",
72        "EventCode": "0xc6",
73        "EventName": "FRONTEND_RETIRED.ITLB_MISS",
74        "MSRIndex": "0x3F7",
75        "MSRValue": "0x14",
76        "PEBS": "1",
77        "PublicDescription": "Counts retired Instructions that experienced iTLB (Instruction TLB) true miss.",
78        "SampleAfterValue": "100007",
79        "UMask": "0x1",
80        "Unit": "cpu_core"
81    },
82    {
83        "BriefDescription": "Retired Instructions who experienced Instruction L1 Cache true miss.",
84        "EventCode": "0xc6",
85        "EventName": "FRONTEND_RETIRED.L1I_MISS",
86        "MSRIndex": "0x3F7",
87        "MSRValue": "0x12",
88        "PEBS": "1",
89        "PublicDescription": "Counts retired Instructions who experienced Instruction L1 Cache true miss.",
90        "SampleAfterValue": "100007",
91        "UMask": "0x1",
92        "Unit": "cpu_core"
93    },
94    {
95        "BriefDescription": "Retired Instructions who experienced Instruction L2 Cache true miss.",
96        "EventCode": "0xc6",
97        "EventName": "FRONTEND_RETIRED.L2_MISS",
98        "MSRIndex": "0x3F7",
99        "MSRValue": "0x13",
100        "PEBS": "1",
101        "PublicDescription": "Counts retired Instructions who experienced Instruction L2 Cache true miss.",
102        "SampleAfterValue": "100007",
103        "UMask": "0x1",
104        "Unit": "cpu_core"
105    },
106    {
107        "BriefDescription": "Retired instructions after front-end starvation of at least 1 cycle",
108        "EventCode": "0xc6",
109        "EventName": "FRONTEND_RETIRED.LATENCY_GE_1",
110        "MSRIndex": "0x3F7",
111        "MSRValue": "0x600106",
112        "PEBS": "1",
113        "PublicDescription": "Retired instructions that are fetched after an interval where the front-end delivered no uops for a period of at least 1 cycle which was not interrupted by a back-end stall.",
114        "SampleAfterValue": "100007",
115        "UMask": "0x1",
116        "Unit": "cpu_core"
117    },
118    {
119        "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.",
120        "EventCode": "0xc6",
121        "EventName": "FRONTEND_RETIRED.LATENCY_GE_128",
122        "MSRIndex": "0x3F7",
123        "MSRValue": "0x608006",
124        "PEBS": "1",
125        "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.",
126        "SampleAfterValue": "100007",
127        "UMask": "0x1",
128        "Unit": "cpu_core"
129    },
130    {
131        "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.",
132        "EventCode": "0xc6",
133        "EventName": "FRONTEND_RETIRED.LATENCY_GE_16",
134        "MSRIndex": "0x3F7",
135        "MSRValue": "0x601006",
136        "PEBS": "1",
137        "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.",
138        "SampleAfterValue": "100007",
139        "UMask": "0x1",
140        "Unit": "cpu_core"
141    },
142    {
143        "BriefDescription": "Retired instructions after front-end starvation of at least 2 cycles",
144        "EventCode": "0xc6",
145        "EventName": "FRONTEND_RETIRED.LATENCY_GE_2",
146        "MSRIndex": "0x3F7",
147        "MSRValue": "0x600206",
148        "PEBS": "1",
149        "PublicDescription": "Retired instructions that are fetched after an interval where the front-end delivered no uops for a period of at least 2 cycles which was not interrupted by a back-end stall.",
150        "SampleAfterValue": "100007",
151        "UMask": "0x1",
152        "Unit": "cpu_core"
153    },
154    {
155        "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.",
156        "EventCode": "0xc6",
157        "EventName": "FRONTEND_RETIRED.LATENCY_GE_256",
158        "MSRIndex": "0x3F7",
159        "MSRValue": "0x610006",
160        "PEBS": "1",
161        "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.",
162        "SampleAfterValue": "100007",
163        "UMask": "0x1",
164        "Unit": "cpu_core"
165    },
166    {
167        "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.",
168        "EventCode": "0xc6",
169        "EventName": "FRONTEND_RETIRED.LATENCY_GE_2_BUBBLES_GE_1",
170        "MSRIndex": "0x3F7",
171        "MSRValue": "0x100206",
172        "PEBS": "1",
173        "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.",
174        "SampleAfterValue": "100007",
175        "UMask": "0x1",
176        "Unit": "cpu_core"
177    },
178    {
179        "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.",
180        "EventCode": "0xc6",
181        "EventName": "FRONTEND_RETIRED.LATENCY_GE_32",
182        "MSRIndex": "0x3F7",
183        "MSRValue": "0x602006",
184        "PEBS": "1",
185        "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.",
186        "SampleAfterValue": "100007",
187        "UMask": "0x1",
188        "Unit": "cpu_core"
189    },
190    {
191        "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.",
192        "EventCode": "0xc6",
193        "EventName": "FRONTEND_RETIRED.LATENCY_GE_4",
194        "MSRIndex": "0x3F7",
195        "MSRValue": "0x600406",
196        "PEBS": "1",
197        "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.",
198        "SampleAfterValue": "100007",
199        "UMask": "0x1",
200        "Unit": "cpu_core"
201    },
202    {
203        "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.",
204        "EventCode": "0xc6",
205        "EventName": "FRONTEND_RETIRED.LATENCY_GE_512",
206        "MSRIndex": "0x3F7",
207        "MSRValue": "0x620006",
208        "PEBS": "1",
209        "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.",
210        "SampleAfterValue": "100007",
211        "UMask": "0x1",
212        "Unit": "cpu_core"
213    },
214    {
215        "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.",
216        "EventCode": "0xc6",
217        "EventName": "FRONTEND_RETIRED.LATENCY_GE_64",
218        "MSRIndex": "0x3F7",
219        "MSRValue": "0x604006",
220        "PEBS": "1",
221        "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.",
222        "SampleAfterValue": "100007",
223        "UMask": "0x1",
224        "Unit": "cpu_core"
225    },
226    {
227        "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.",
228        "EventCode": "0xc6",
229        "EventName": "FRONTEND_RETIRED.LATENCY_GE_8",
230        "MSRIndex": "0x3F7",
231        "MSRValue": "0x600806",
232        "PEBS": "1",
233        "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.",
234        "SampleAfterValue": "100007",
235        "UMask": "0x1",
236        "Unit": "cpu_core"
237    },
238    {
239        "BriefDescription": "FRONTEND_RETIRED.MS_FLOWS",
240        "EventCode": "0xc6",
241        "EventName": "FRONTEND_RETIRED.MS_FLOWS",
242        "MSRIndex": "0x3F7",
243        "MSRValue": "0x8",
244        "PEBS": "1",
245        "SampleAfterValue": "100007",
246        "UMask": "0x1",
247        "Unit": "cpu_core"
248    },
249    {
250        "BriefDescription": "Retired Instructions who experienced STLB (2nd level TLB) true miss.",
251        "EventCode": "0xc6",
252        "EventName": "FRONTEND_RETIRED.STLB_MISS",
253        "MSRIndex": "0x3F7",
254        "MSRValue": "0x15",
255        "PEBS": "1",
256        "PublicDescription": "Counts retired Instructions that experienced STLB (2nd level TLB) true miss.",
257        "SampleAfterValue": "100007",
258        "UMask": "0x1",
259        "Unit": "cpu_core"
260    },
261    {
262        "BriefDescription": "FRONTEND_RETIRED.UNKNOWN_BRANCH",
263        "EventCode": "0xc6",
264        "EventName": "FRONTEND_RETIRED.UNKNOWN_BRANCH",
265        "MSRIndex": "0x3F7",
266        "MSRValue": "0x17",
267        "PEBS": "1",
268        "SampleAfterValue": "100007",
269        "UMask": "0x1",
270        "Unit": "cpu_core"
271    },
272    {
273        "BriefDescription": "Counts the number of requests to the instruction cache for one or more bytes of a cache line.",
274        "EventCode": "0x80",
275        "EventName": "ICACHE.ACCESSES",
276        "PublicDescription": "Counts the total number of requests to the instruction cache.  The event only counts new cache line accesses, so that multiple back to back fetches to the exact same cache line or byte chunk count as one.  Specifically, the event counts when accesses from sequential code crosses the cache line boundary, or when a branch target is moved to a new line or to a non-sequential byte chunk of the same line.",
277        "SampleAfterValue": "200003",
278        "UMask": "0x3",
279        "Unit": "cpu_atom"
280    },
281    {
282        "BriefDescription": "Counts the number of instruction cache misses.",
283        "EventCode": "0x80",
284        "EventName": "ICACHE.MISSES",
285        "PublicDescription": "Counts the number of missed requests to the instruction cache.  The event only counts new cache line accesses, so that multiple back to back fetches to the exact same cache line and byte chunk count as one.  Specifically, the event counts when accesses from sequential code crosses the cache line boundary, or when a branch target is moved to a new line or to a non-sequential byte chunk of the same line.",
286        "SampleAfterValue": "200003",
287        "UMask": "0x2",
288        "Unit": "cpu_atom"
289    },
290    {
291        "BriefDescription": "Cycles where a code fetch is stalled due to L1 instruction cache miss.",
292        "EventCode": "0x80",
293        "EventName": "ICACHE_DATA.STALLS",
294        "PublicDescription": "Counts cycles where a code line fetch is stalled due to an L1 instruction cache miss. The decode pipeline works at a 32 Byte granularity.",
295        "SampleAfterValue": "500009",
296        "UMask": "0x4",
297        "Unit": "cpu_core"
298    },
299    {
300        "BriefDescription": "Cycles where a code fetch is stalled due to L1 instruction cache tag miss.",
301        "EventCode": "0x83",
302        "EventName": "ICACHE_TAG.STALLS",
303        "PublicDescription": "Counts cycles where a code fetch is stalled due to L1 instruction cache tag miss.",
304        "SampleAfterValue": "200003",
305        "UMask": "0x4",
306        "Unit": "cpu_core"
307    },
308    {
309        "BriefDescription": "Cycles Decode Stream Buffer (DSB) is delivering any Uop",
310        "CounterMask": "1",
311        "EventCode": "0x79",
312        "EventName": "IDQ.DSB_CYCLES_ANY",
313        "PublicDescription": "Counts the number of cycles uops were delivered to Instruction Decode Queue (IDQ) from the Decode Stream Buffer (DSB) path.",
314        "SampleAfterValue": "2000003",
315        "UMask": "0x8",
316        "Unit": "cpu_core"
317    },
318    {
319        "BriefDescription": "Cycles DSB is delivering optimal number of Uops",
320        "CounterMask": "6",
321        "EventCode": "0x79",
322        "EventName": "IDQ.DSB_CYCLES_OK",
323        "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).",
324        "SampleAfterValue": "2000003",
325        "UMask": "0x8",
326        "Unit": "cpu_core"
327    },
328    {
329        "BriefDescription": "Uops delivered to Instruction Decode Queue (IDQ) from the Decode Stream Buffer (DSB) path",
330        "EventCode": "0x79",
331        "EventName": "IDQ.DSB_UOPS",
332        "PublicDescription": "Counts the number of uops delivered to Instruction Decode Queue (IDQ) from the Decode Stream Buffer (DSB) path.",
333        "SampleAfterValue": "2000003",
334        "UMask": "0x8",
335        "Unit": "cpu_core"
336    },
337    {
338        "BriefDescription": "Cycles MITE is delivering any Uop",
339        "CounterMask": "1",
340        "EventCode": "0x79",
341        "EventName": "IDQ.MITE_CYCLES_ANY",
342        "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).",
343        "SampleAfterValue": "2000003",
344        "UMask": "0x4",
345        "Unit": "cpu_core"
346    },
347    {
348        "BriefDescription": "Cycles MITE is delivering optimal number of Uops",
349        "CounterMask": "6",
350        "EventCode": "0x79",
351        "EventName": "IDQ.MITE_CYCLES_OK",
352        "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).",
353        "SampleAfterValue": "2000003",
354        "UMask": "0x4",
355        "Unit": "cpu_core"
356    },
357    {
358        "BriefDescription": "Uops delivered to Instruction Decode Queue (IDQ) from MITE path",
359        "EventCode": "0x79",
360        "EventName": "IDQ.MITE_UOPS",
361        "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).",
362        "SampleAfterValue": "2000003",
363        "UMask": "0x4",
364        "Unit": "cpu_core"
365    },
366    {
367        "BriefDescription": "Cycles when uops are being delivered to IDQ while MS is busy",
368        "CounterMask": "1",
369        "EventCode": "0x79",
370        "EventName": "IDQ.MS_CYCLES_ANY",
371        "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.",
372        "SampleAfterValue": "2000003",
373        "UMask": "0x20",
374        "Unit": "cpu_core"
375    },
376    {
377        "BriefDescription": "Number of switches from DSB or MITE to the MS",
378        "CounterMask": "1",
379        "EdgeDetect": "1",
380        "EventCode": "0x79",
381        "EventName": "IDQ.MS_SWITCHES",
382        "PublicDescription": "Number of switches from DSB (Decode Stream Buffer) or MITE (legacy decode pipeline) to the Microcode Sequencer.",
383        "SampleAfterValue": "100003",
384        "UMask": "0x20",
385        "Unit": "cpu_core"
386    },
387    {
388        "BriefDescription": "Uops delivered to IDQ while MS is busy",
389        "EventCode": "0x79",
390        "EventName": "IDQ.MS_UOPS",
391        "PublicDescription": "Counts the total number of uops delivered by the Microcode Sequencer (MS).",
392        "SampleAfterValue": "1000003",
393        "UMask": "0x20",
394        "Unit": "cpu_core"
395    },
396    {
397        "BriefDescription": "Uops not delivered by IDQ when backend of the machine is not stalled",
398        "EventCode": "0x9c",
399        "EventName": "IDQ_UOPS_NOT_DELIVERED.CORE",
400        "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.",
401        "SampleAfterValue": "1000003",
402        "UMask": "0x1",
403        "Unit": "cpu_core"
404    },
405    {
406        "BriefDescription": "Cycles when no uops are not delivered by the IDQ when backend of the machine is not stalled",
407        "CounterMask": "6",
408        "EventCode": "0x9c",
409        "EventName": "IDQ_UOPS_NOT_DELIVERED.CYCLES_0_UOPS_DELIV.CORE",
410        "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.",
411        "SampleAfterValue": "1000003",
412        "UMask": "0x1",
413        "Unit": "cpu_core"
414    },
415    {
416        "BriefDescription": "Cycles when optimal number of uops was delivered to the back-end when the back-end is not stalled",
417        "CounterMask": "1",
418        "EventCode": "0x9c",
419        "EventName": "IDQ_UOPS_NOT_DELIVERED.CYCLES_FE_WAS_OK",
420        "Invert": "1",
421        "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.",
422        "SampleAfterValue": "1000003",
423        "UMask": "0x1",
424        "Unit": "cpu_core"
425    }
426]
427