xref: /linux/tools/perf/pmu-events/arch/x86/lunarlake/pipeline.json (revision a3a02a52bcfcbcc4a637d4b68bf1bc391c9fad02)
1[
2    {
3        "BriefDescription": "Counts the total number of branch instructions retired for all branch types.",
4        "Counter": "0,1,2,3,4,5,6,7",
5        "EventCode": "0xc4",
6        "EventName": "BR_INST_RETIRED.ALL_BRANCHES",
7        "PEBS": "1",
8        "PublicDescription": "Counts the total number of instructions in which the instruction pointer (IP) of the processor is resteered due to a branch instruction and the branch instruction successfully retires.  All branch type instructions are accounted for.",
9        "SampleAfterValue": "200003",
10        "Unit": "cpu_atom"
11    },
12    {
13        "BriefDescription": "All branch instructions retired.",
14        "Counter": "0,1,2,3,4,5,6,7,8,9",
15        "EventCode": "0xc4",
16        "EventName": "BR_INST_RETIRED.ALL_BRANCHES",
17        "PEBS": "1",
18        "PublicDescription": "Counts all branch instructions retired.",
19        "SampleAfterValue": "400009",
20        "Unit": "cpu_core"
21    },
22    {
23        "BriefDescription": "Counts the total number of mispredicted branch instructions retired for all branch types.",
24        "Counter": "0,1,2,3,4,5,6,7",
25        "EventCode": "0xc5",
26        "EventName": "BR_MISP_RETIRED.ALL_BRANCHES",
27        "PEBS": "1",
28        "PublicDescription": "Counts the total number of mispredicted branch instructions retired.  All branch type instructions are accounted for.  Prediction of the branch target address enables the processor to begin executing instructions before the non-speculative execution path is known. The branch prediction unit (BPU) predicts the target address based on the instruction pointer (IP) of the branch and on the execution path through which execution reached this IP.    A branch misprediction occurs when the prediction is wrong, and results in discarding all instructions executed in the speculative path and re-fetching from the correct path.",
29        "SampleAfterValue": "200003",
30        "Unit": "cpu_atom"
31    },
32    {
33        "BriefDescription": "All mispredicted branch instructions retired.",
34        "Counter": "0,1,2,3,4,5,6,7,8,9",
35        "EventCode": "0xc5",
36        "EventName": "BR_MISP_RETIRED.ALL_BRANCHES",
37        "PEBS": "1",
38        "PublicDescription": "Counts all the retired branch instructions that were mispredicted by the processor. A branch misprediction occurs when the processor incorrectly predicts the destination of the branch.  When the misprediction is discovered at execution, all the instructions executed in the wrong (speculative) path must be discarded, and the processor must start fetching from the correct path.",
39        "SampleAfterValue": "400009",
40        "Unit": "cpu_core"
41    },
42    {
43        "BriefDescription": "Fixed Counter: Counts the number of unhalted core clock cycles",
44        "Counter": "Fixed counter 1",
45        "EventName": "CPU_CLK_UNHALTED.CORE",
46        "SampleAfterValue": "2000003",
47        "UMask": "0x2",
48        "Unit": "cpu_atom"
49    },
50    {
51        "BriefDescription": "Core cycles when the core is not in a halt state.",
52        "Counter": "Fixed counter 1",
53        "EventName": "CPU_CLK_UNHALTED.CORE",
54        "PublicDescription": "Counts the number of core cycles while the core is not in a halt state. The core enters the halt state when it is running the HLT instruction. This event is a component in many key event ratios. The core frequency may change from time to time due to transitions associated with Enhanced Intel SpeedStep Technology or TM2. For this reason this event may have a changing ratio with regards to time. When the core frequency is constant, this event can approximate elapsed time while the core was not in the halt state. It is counted on a dedicated fixed counter, leaving the programmable counters available for other events.",
55        "SampleAfterValue": "2000003",
56        "UMask": "0x2",
57        "Unit": "cpu_core"
58    },
59    {
60        "BriefDescription": "Counts the number of unhalted core clock cycles [This event is alias to CPU_CLK_UNHALTED.THREAD_P]",
61        "Counter": "0,1,2,3,4,5,6,7",
62        "EventCode": "0x3c",
63        "EventName": "CPU_CLK_UNHALTED.CORE_P",
64        "SampleAfterValue": "2000003",
65        "Unit": "cpu_atom"
66    },
67    {
68        "BriefDescription": "Thread cycles when thread is not in halt state [This event is alias to CPU_CLK_UNHALTED.THREAD_P]",
69        "Counter": "0,1,2,3,4,5,6,7,8,9",
70        "EventCode": "0x3c",
71        "EventName": "CPU_CLK_UNHALTED.CORE_P",
72        "PublicDescription": "This is an architectural event that counts the number of thread cycles while the thread is not in a halt state. The thread enters the halt state when it is running the HLT instruction. The core frequency may change from time to time due to power or thermal throttling. For this reason, this event may have a changing ratio with regards to wall clock time. [This event is alias to CPU_CLK_UNHALTED.THREAD_P]",
73        "SampleAfterValue": "2000003",
74        "Unit": "cpu_core"
75    },
76    {
77        "BriefDescription": "Fixed Counter: Counts the number of unhalted reference clock cycles",
78        "Counter": "Fixed counter 2",
79        "EventName": "CPU_CLK_UNHALTED.REF_TSC",
80        "SampleAfterValue": "2000003",
81        "UMask": "0x3",
82        "Unit": "cpu_atom"
83    },
84    {
85        "BriefDescription": "Reference cycles when the core is not in halt state.",
86        "Counter": "Fixed counter 2",
87        "EventName": "CPU_CLK_UNHALTED.REF_TSC",
88        "PublicDescription": "Counts the number of reference cycles when the core is not in a halt state. The core enters the halt state when it is running the HLT instruction or the MWAIT instruction. This event is not affected by core frequency changes (for example, P states, TM2 transitions) but has the same incrementing frequency as the time stamp counter. This event can approximate elapsed time while the core was not in a halt state. Note: On all current platforms this event stops counting during 'throttling (TM)' states duty off periods the processor is 'halted'.  The counter update is done at a lower clock rate then the core clock the overflow status bit for this counter may appear 'sticky'.  After the counter has overflowed and software clears the overflow status bit and resets the counter to less than MAX. The reset value to the counter is not clocked immediately so the overflow status bit will flip 'high (1)' and generate another PMI (if enabled) after which the reset value gets clocked into the counter. Therefore, software will get the interrupt, read the overflow status bit '1 for bit 34 while the counter value is less than MAX. Software should ignore this case.",
89        "SampleAfterValue": "2000003",
90        "UMask": "0x3",
91        "Unit": "cpu_core"
92    },
93    {
94        "BriefDescription": "Counts the number of unhalted reference clock cycles",
95        "Counter": "0,1,2,3,4,5,6,7",
96        "EventCode": "0x3c",
97        "EventName": "CPU_CLK_UNHALTED.REF_TSC_P",
98        "PublicDescription": "Counts the number of reference cycles that the core is not in a halt state. The core enters the halt state when it is running the HLT instruction. This event is not affected by core frequency changes and increments at a fixed frequency that is also used for the Time Stamp Counter (TSC). This event uses a programmable general purpose performance counter.",
99        "SampleAfterValue": "2000003",
100        "UMask": "0x1",
101        "Unit": "cpu_atom"
102    },
103    {
104        "BriefDescription": "Reference cycles when the core is not in halt state.",
105        "Counter": "0,1,2,3,4,5,6,7,8,9",
106        "EventCode": "0x3c",
107        "EventName": "CPU_CLK_UNHALTED.REF_TSC_P",
108        "PublicDescription": "Counts the number of reference cycles when the core is not in a halt state. The core enters the halt state when it is running the HLT instruction or the MWAIT instruction. This event is not affected by core frequency changes (for example, P states, TM2 transitions) but has the same incrementing frequency as the time stamp counter. This event can approximate elapsed time while the core was not in a halt state. Note: On all current platforms this event stops counting during 'throttling (TM)' states duty off periods the processor is 'halted'.  The counter update is done at a lower clock rate then the core clock the overflow status bit for this counter may appear 'sticky'.  After the counter has overflowed and software clears the overflow status bit and resets the counter to less than MAX. The reset value to the counter is not clocked immediately so the overflow status bit will flip 'high (1)' and generate another PMI (if enabled) after which the reset value gets clocked into the counter. Therefore, software will get the interrupt, read the overflow status bit '1 for bit 34 while the counter value is less than MAX. Software should ignore this case.",
109        "SampleAfterValue": "2000003",
110        "UMask": "0x1",
111        "Unit": "cpu_core"
112    },
113    {
114        "BriefDescription": "Fixed Counter: Counts the number of unhalted core clock cycles",
115        "Counter": "Fixed counter 1",
116        "EventName": "CPU_CLK_UNHALTED.THREAD",
117        "SampleAfterValue": "2000003",
118        "UMask": "0x2",
119        "Unit": "cpu_atom"
120    },
121    {
122        "BriefDescription": "Core cycles when the thread is not in a halt state.",
123        "Counter": "Fixed counter 1",
124        "EventName": "CPU_CLK_UNHALTED.THREAD",
125        "PublicDescription": "Counts the number of core cycles while the thread is not in a halt state. The thread enters the halt state when it is running the HLT instruction. This event is a component in many key event ratios. The core frequency may change from time to time due to transitions associated with Enhanced Intel SpeedStep Technology or TM2. For this reason this event may have a changing ratio with regards to time. When the core frequency is constant, this event can approximate elapsed time while the core was not in the halt state. It is counted on a dedicated fixed counter, leaving the programmable counters available for other events.",
126        "SampleAfterValue": "2000003",
127        "UMask": "0x2",
128        "Unit": "cpu_core"
129    },
130    {
131        "BriefDescription": "Counts the number of unhalted core clock cycles [This event is alias to CPU_CLK_UNHALTED.CORE_P]",
132        "Counter": "0,1,2,3,4,5,6,7",
133        "EventCode": "0x3c",
134        "EventName": "CPU_CLK_UNHALTED.THREAD_P",
135        "SampleAfterValue": "2000003",
136        "Unit": "cpu_atom"
137    },
138    {
139        "BriefDescription": "Thread cycles when thread is not in halt state [This event is alias to CPU_CLK_UNHALTED.CORE_P]",
140        "Counter": "0,1,2,3,4,5,6,7,8,9",
141        "EventCode": "0x3c",
142        "EventName": "CPU_CLK_UNHALTED.THREAD_P",
143        "PublicDescription": "This is an architectural event that counts the number of thread cycles while the thread is not in a halt state. The thread enters the halt state when it is running the HLT instruction. The core frequency may change from time to time due to power or thermal throttling. For this reason, this event may have a changing ratio with regards to wall clock time. [This event is alias to CPU_CLK_UNHALTED.CORE_P]",
144        "SampleAfterValue": "2000003",
145        "Unit": "cpu_core"
146    },
147    {
148        "BriefDescription": "Fixed Counter: Counts the number of instructions retired",
149        "Counter": "Fixed counter 0",
150        "EventName": "INST_RETIRED.ANY",
151        "PEBS": "1",
152        "SampleAfterValue": "2000003",
153        "UMask": "0x1",
154        "Unit": "cpu_atom"
155    },
156    {
157        "BriefDescription": "Number of instructions retired. Fixed Counter - architectural event",
158        "Counter": "Fixed counter 0",
159        "EventName": "INST_RETIRED.ANY",
160        "PEBS": "1",
161        "PublicDescription": "Counts the number of X86 instructions retired - an Architectural PerfMon event. Counting continues during hardware interrupts, traps, and inside interrupt handlers. Notes: INST_RETIRED.ANY is counted by a designated fixed counter freeing up programmable counters to count other events. INST_RETIRED.ANY_P is counted by a programmable counter.",
162        "SampleAfterValue": "2000003",
163        "UMask": "0x1",
164        "Unit": "cpu_core"
165    },
166    {
167        "BriefDescription": "Counts the number of instructions retired",
168        "Counter": "0,1,2,3,4,5,6,7",
169        "EventCode": "0xc0",
170        "EventName": "INST_RETIRED.ANY_P",
171        "PEBS": "1",
172        "SampleAfterValue": "2000003",
173        "Unit": "cpu_atom"
174    },
175    {
176        "BriefDescription": "Number of instructions retired. General Counter - architectural event",
177        "Counter": "0,1,2,3,4,5,6,7,8,9",
178        "EventCode": "0xc0",
179        "EventName": "INST_RETIRED.ANY_P",
180        "PEBS": "1",
181        "PublicDescription": "Counts the number of X86 instructions retired - an Architectural PerfMon event. Counting continues during hardware interrupts, traps, and inside interrupt handlers. Notes: INST_RETIRED.ANY is counted by a designated fixed counter freeing up programmable counters to count other events. INST_RETIRED.ANY_P is counted by a programmable counter.",
182        "SampleAfterValue": "2000003",
183        "Unit": "cpu_core"
184    },
185    {
186        "BriefDescription": "Counts the number of occurrences a retired load gets blocked because its address partially overlaps with an older store (size mismatch) - unknown_sta/bad_forward",
187        "Counter": "0,1,2,3,4,5,6,7",
188        "EventCode": "0x03",
189        "EventName": "LD_BLOCKS.STORE_FORWARD",
190        "PEBS": "1",
191        "SampleAfterValue": "1000003",
192        "UMask": "0x2",
193        "Unit": "cpu_atom"
194    },
195    {
196        "BriefDescription": "Loads blocked due to overlapping with a preceding store that cannot be forwarded.",
197        "Counter": "0,1,2,3,4,5,6,7,8,9",
198        "EventCode": "0x03",
199        "EventName": "LD_BLOCKS.STORE_FORWARD",
200        "PublicDescription": "Counts the number of times where store forwarding was prevented for a load operation. The most common case is a load blocked due to the address of memory access (partially) overlapping with a preceding uncompleted store. Note: See the table of not supported store forwards in the Optimization Guide.",
201        "SampleAfterValue": "100003",
202        "UMask": "0x82",
203        "Unit": "cpu_core"
204    },
205    {
206        "BriefDescription": "Counts the number of LBR entries recorded. Requires LBRs to be enabled in IA32_LBR_CTL.",
207        "Counter": "0,1,2,3,4,5,6,7",
208        "EventCode": "0xe4",
209        "EventName": "MISC_RETIRED.LBR_INSERTS",
210        "PEBS": "1",
211        "SampleAfterValue": "1000003",
212        "UMask": "0x1",
213        "Unit": "cpu_atom"
214    },
215    {
216        "BriefDescription": "LBR record is inserted",
217        "Counter": "0,1,2,3,4,5,6,7,8,9",
218        "EventCode": "0xe4",
219        "EventName": "MISC_RETIRED.LBR_INSERTS",
220        "PEBS": "1",
221        "SampleAfterValue": "1000003",
222        "UMask": "0x1",
223        "Unit": "cpu_core"
224    },
225    {
226        "BriefDescription": "This event counts a subset of the Topdown Slots event that were not consumed by the back-end pipeline due to lack of back-end resources, as a result of memory subsystem delays, execution units limitations, or other conditions.",
227        "Counter": "0,1,2,3,4,5,6,7,8,9",
228        "EventCode": "0xa4",
229        "EventName": "TOPDOWN.BACKEND_BOUND_SLOTS",
230        "PublicDescription": "This event counts a subset of the Topdown Slots event that were not consumed by the back-end pipeline due to lack of back-end resources, as a result of memory subsystem delays, execution units limitations, or other conditions. Software can use this event as the numerator for the Backend Bound metric (or top-level category) of the Top-down Microarchitecture Analysis method.",
231        "SampleAfterValue": "10000003",
232        "UMask": "0x2",
233        "Unit": "cpu_core"
234    },
235    {
236        "BriefDescription": "TMA slots available for an unhalted logical processor. Fixed counter - architectural event",
237        "Counter": "Fixed counter 3",
238        "EventName": "TOPDOWN.SLOTS",
239        "PublicDescription": "Number of available slots for an unhalted logical processor. The event increments by machine-width of the narrowest pipeline as employed by the Top-down Microarchitecture Analysis method (TMA). Software can use this event as the denominator for the top-level metrics of the TMA method. This architectural event is counted on a designated fixed counter (Fixed Counter 3).",
240        "SampleAfterValue": "10000003",
241        "UMask": "0x4",
242        "Unit": "cpu_core"
243    },
244    {
245        "BriefDescription": "TMA slots available for an unhalted logical processor. General counter - architectural event",
246        "Counter": "0,1,2,3,4,5,6,7,8,9",
247        "EventCode": "0xa4",
248        "EventName": "TOPDOWN.SLOTS_P",
249        "PublicDescription": "Counts the number of available slots for an unhalted logical processor. The event increments by machine-width of the narrowest pipeline as employed by the Top-down Microarchitecture Analysis method.",
250        "SampleAfterValue": "10000003",
251        "UMask": "0x1",
252        "Unit": "cpu_core"
253    },
254    {
255        "BriefDescription": "Counts the number of issue slots that were not consumed by the backend because allocation is stalled due to a mispredicted jump or a machine clear. [This event is alias to TOPDOWN_BAD_SPECULATION.ALL_P]",
256        "Counter": "0,1,2,3,4,5,6,7",
257        "EventCode": "0x73",
258        "EventName": "TOPDOWN_BAD_SPECULATION.ALL",
259        "SampleAfterValue": "1000003",
260        "Unit": "cpu_atom"
261    },
262    {
263        "BriefDescription": "Counts the number of issue slots that were not consumed by the backend because allocation is stalled due to a mispredicted jump or a machine clear. [This event is alias to TOPDOWN_BAD_SPECULATION.ALL]",
264        "Counter": "0,1,2,3,4,5,6,7",
265        "EventCode": "0x73",
266        "EventName": "TOPDOWN_BAD_SPECULATION.ALL_P",
267        "SampleAfterValue": "1000003",
268        "Unit": "cpu_atom"
269    },
270    {
271        "BriefDescription": "Counts the number of retirement slots not consumed due to backend stalls [This event is alias to TOPDOWN_BE_BOUND.ALL_P]",
272        "Counter": "0,1,2,3,4,5,6,7",
273        "EventCode": "0xa4",
274        "EventName": "TOPDOWN_BE_BOUND.ALL",
275        "SampleAfterValue": "1000003",
276        "UMask": "0x2",
277        "Unit": "cpu_atom"
278    },
279    {
280        "BriefDescription": "Counts the number of retirement slots not consumed due to backend stalls [This event is alias to TOPDOWN_BE_BOUND.ALL]",
281        "Counter": "0,1,2,3,4,5,6,7",
282        "EventCode": "0xa4",
283        "EventName": "TOPDOWN_BE_BOUND.ALL_P",
284        "SampleAfterValue": "1000003",
285        "UMask": "0x2",
286        "Unit": "cpu_atom"
287    },
288    {
289        "BriefDescription": "Fixed Counter: Counts the number of retirement slots not consumed due to front end stalls",
290        "Counter": "37",
291        "EventName": "TOPDOWN_FE_BOUND.ALL",
292        "SampleAfterValue": "1000003",
293        "UMask": "0x6",
294        "Unit": "cpu_atom"
295    },
296    {
297        "BriefDescription": "Counts the number of retirement slots not consumed due to front end stalls",
298        "Counter": "0,1,2,3,4,5,6,7",
299        "EventCode": "0x9c",
300        "EventName": "TOPDOWN_FE_BOUND.ALL_P",
301        "SampleAfterValue": "1000003",
302        "UMask": "0x1",
303        "Unit": "cpu_atom"
304    },
305    {
306        "BriefDescription": "Fixed Counter: Counts the number of consumed retirement slots.",
307        "Counter": "38",
308        "EventName": "TOPDOWN_RETIRING.ALL",
309        "PEBS": "1",
310        "SampleAfterValue": "1000003",
311        "UMask": "0x7",
312        "Unit": "cpu_atom"
313    },
314    {
315        "BriefDescription": "Counts the number of consumed retirement slots.",
316        "Counter": "0,1,2,3,4,5,6,7",
317        "EventCode": "0xc2",
318        "EventName": "TOPDOWN_RETIRING.ALL_P",
319        "PEBS": "1",
320        "SampleAfterValue": "1000003",
321        "UMask": "0x2",
322        "Unit": "cpu_atom"
323    },
324    {
325        "BriefDescription": "This event counts a subset of the Topdown Slots event that are utilized by operations that eventually get retired (committed) by the processor pipeline. Usually, this event positively correlates with higher performance  for example, as measured by the instructions-per-cycle metric.",
326        "Counter": "0,1,2,3,4,5,6,7,8,9",
327        "EventCode": "0xc2",
328        "EventName": "UOPS_RETIRED.SLOTS",
329        "PublicDescription": "This event counts a subset of the Topdown Slots event that are utilized by operations that eventually get retired (committed) by the processor pipeline. Usually, this event positively correlates with higher performance  for example, as measured by the instructions-per-cycle metric. Software can use this event as the numerator for the Retiring metric (or top-level category) of the Top-down Microarchitecture Analysis method.",
330        "SampleAfterValue": "2000003",
331        "UMask": "0x2",
332        "Unit": "cpu_core"
333    }
334]
335