xref: /linux/tools/perf/pmu-events/arch/x86/lunarlake/pipeline.json (revision afeea2758b4f1210361ce2a91d8fa3e7df606ad2)
1[
2    {
3        "BriefDescription": "Counts the total number of branch instructions retired for all branch types.",
4        "EventCode": "0xc4",
5        "EventName": "BR_INST_RETIRED.ALL_BRANCHES",
6        "PEBS": "1",
7        "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.",
8        "SampleAfterValue": "200003",
9        "Unit": "cpu_atom"
10    },
11    {
12        "BriefDescription": "All branch instructions retired.",
13        "EventCode": "0xc4",
14        "EventName": "BR_INST_RETIRED.ALL_BRANCHES",
15        "PEBS": "1",
16        "PublicDescription": "Counts all branch instructions retired.",
17        "SampleAfterValue": "400009",
18        "Unit": "cpu_core"
19    },
20    {
21        "BriefDescription": "Counts the total number of mispredicted branch instructions retired for all branch types.",
22        "EventCode": "0xc5",
23        "EventName": "BR_MISP_RETIRED.ALL_BRANCHES",
24        "PEBS": "1",
25        "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.",
26        "SampleAfterValue": "200003",
27        "Unit": "cpu_atom"
28    },
29    {
30        "BriefDescription": "All mispredicted branch instructions retired.",
31        "EventCode": "0xc5",
32        "EventName": "BR_MISP_RETIRED.ALL_BRANCHES",
33        "PEBS": "1",
34        "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.",
35        "SampleAfterValue": "400009",
36        "Unit": "cpu_core"
37    },
38    {
39        "BriefDescription": "Fixed Counter: Counts the number of unhalted core clock cycles",
40        "EventName": "CPU_CLK_UNHALTED.CORE",
41        "SampleAfterValue": "2000003",
42        "UMask": "0x2",
43        "Unit": "cpu_atom"
44    },
45    {
46        "BriefDescription": "Core cycles when the core is not in a halt state.",
47        "EventName": "CPU_CLK_UNHALTED.CORE",
48        "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.",
49        "SampleAfterValue": "2000003",
50        "UMask": "0x2",
51        "Unit": "cpu_core"
52    },
53    {
54        "BriefDescription": "Counts the number of unhalted core clock cycles [This event is alias to CPU_CLK_UNHALTED.THREAD_P]",
55        "EventCode": "0x3c",
56        "EventName": "CPU_CLK_UNHALTED.CORE_P",
57        "SampleAfterValue": "2000003",
58        "Unit": "cpu_atom"
59    },
60    {
61        "BriefDescription": "Thread cycles when thread is not in halt state [This event is alias to CPU_CLK_UNHALTED.THREAD_P]",
62        "EventCode": "0x3c",
63        "EventName": "CPU_CLK_UNHALTED.CORE_P",
64        "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]",
65        "SampleAfterValue": "2000003",
66        "Unit": "cpu_core"
67    },
68    {
69        "BriefDescription": "Fixed Counter: Counts the number of unhalted reference clock cycles",
70        "EventName": "CPU_CLK_UNHALTED.REF_TSC",
71        "SampleAfterValue": "2000003",
72        "UMask": "0x3",
73        "Unit": "cpu_atom"
74    },
75    {
76        "BriefDescription": "Reference cycles when the core is not in halt state.",
77        "EventName": "CPU_CLK_UNHALTED.REF_TSC",
78        "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.",
79        "SampleAfterValue": "2000003",
80        "UMask": "0x3",
81        "Unit": "cpu_core"
82    },
83    {
84        "BriefDescription": "Counts the number of unhalted reference clock cycles",
85        "EventCode": "0x3c",
86        "EventName": "CPU_CLK_UNHALTED.REF_TSC_P",
87        "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.",
88        "SampleAfterValue": "2000003",
89        "UMask": "0x1",
90        "Unit": "cpu_atom"
91    },
92    {
93        "BriefDescription": "Reference cycles when the core is not in halt state.",
94        "EventCode": "0x3c",
95        "EventName": "CPU_CLK_UNHALTED.REF_TSC_P",
96        "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.",
97        "SampleAfterValue": "2000003",
98        "UMask": "0x1",
99        "Unit": "cpu_core"
100    },
101    {
102        "BriefDescription": "Fixed Counter: Counts the number of unhalted core clock cycles",
103        "EventName": "CPU_CLK_UNHALTED.THREAD",
104        "SampleAfterValue": "2000003",
105        "UMask": "0x2",
106        "Unit": "cpu_atom"
107    },
108    {
109        "BriefDescription": "Core cycles when the thread is not in a halt state.",
110        "EventName": "CPU_CLK_UNHALTED.THREAD",
111        "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.",
112        "SampleAfterValue": "2000003",
113        "UMask": "0x2",
114        "Unit": "cpu_core"
115    },
116    {
117        "BriefDescription": "Counts the number of unhalted core clock cycles [This event is alias to CPU_CLK_UNHALTED.CORE_P]",
118        "EventCode": "0x3c",
119        "EventName": "CPU_CLK_UNHALTED.THREAD_P",
120        "SampleAfterValue": "2000003",
121        "Unit": "cpu_atom"
122    },
123    {
124        "BriefDescription": "Thread cycles when thread is not in halt state [This event is alias to CPU_CLK_UNHALTED.CORE_P]",
125        "EventCode": "0x3c",
126        "EventName": "CPU_CLK_UNHALTED.THREAD_P",
127        "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]",
128        "SampleAfterValue": "2000003",
129        "Unit": "cpu_core"
130    },
131    {
132        "BriefDescription": "Fixed Counter: Counts the number of instructions retired",
133        "EventName": "INST_RETIRED.ANY",
134        "PEBS": "1",
135        "SampleAfterValue": "2000003",
136        "UMask": "0x1",
137        "Unit": "cpu_atom"
138    },
139    {
140        "BriefDescription": "Number of instructions retired. Fixed Counter - architectural event",
141        "EventName": "INST_RETIRED.ANY",
142        "PEBS": "1",
143        "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.",
144        "SampleAfterValue": "2000003",
145        "UMask": "0x1",
146        "Unit": "cpu_core"
147    },
148    {
149        "BriefDescription": "Counts the number of instructions retired",
150        "EventCode": "0xc0",
151        "EventName": "INST_RETIRED.ANY_P",
152        "PEBS": "1",
153        "SampleAfterValue": "2000003",
154        "Unit": "cpu_atom"
155    },
156    {
157        "BriefDescription": "Number of instructions retired. General Counter - architectural event",
158        "EventCode": "0xc0",
159        "EventName": "INST_RETIRED.ANY_P",
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        "Unit": "cpu_core"
164    },
165    {
166        "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",
167        "EventCode": "0x03",
168        "EventName": "LD_BLOCKS.STORE_FORWARD",
169        "PEBS": "1",
170        "SampleAfterValue": "1000003",
171        "UMask": "0x2",
172        "Unit": "cpu_atom"
173    },
174    {
175        "BriefDescription": "Loads blocked due to overlapping with a preceding store that cannot be forwarded.",
176        "EventCode": "0x03",
177        "EventName": "LD_BLOCKS.STORE_FORWARD",
178        "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.",
179        "SampleAfterValue": "100003",
180        "UMask": "0x82",
181        "Unit": "cpu_core"
182    },
183    {
184        "BriefDescription": "Counts the number of LBR entries recorded. Requires LBRs to be enabled in IA32_LBR_CTL.",
185        "EventCode": "0xe4",
186        "EventName": "MISC_RETIRED.LBR_INSERTS",
187        "PEBS": "1",
188        "SampleAfterValue": "1000003",
189        "UMask": "0x1",
190        "Unit": "cpu_atom"
191    },
192    {
193        "BriefDescription": "LBR record is inserted",
194        "EventCode": "0xe4",
195        "EventName": "MISC_RETIRED.LBR_INSERTS",
196        "PEBS": "1",
197        "SampleAfterValue": "1000003",
198        "UMask": "0x1",
199        "Unit": "cpu_core"
200    },
201    {
202        "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.",
203        "EventCode": "0xa4",
204        "EventName": "TOPDOWN.BACKEND_BOUND_SLOTS",
205        "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.",
206        "SampleAfterValue": "10000003",
207        "UMask": "0x2",
208        "Unit": "cpu_core"
209    },
210    {
211        "BriefDescription": "TMA slots available for an unhalted logical processor. Fixed counter - architectural event",
212        "EventName": "TOPDOWN.SLOTS",
213        "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).",
214        "SampleAfterValue": "10000003",
215        "UMask": "0x4",
216        "Unit": "cpu_core"
217    },
218    {
219        "BriefDescription": "TMA slots available for an unhalted logical processor. General counter - architectural event",
220        "EventCode": "0xa4",
221        "EventName": "TOPDOWN.SLOTS_P",
222        "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.",
223        "SampleAfterValue": "10000003",
224        "UMask": "0x1",
225        "Unit": "cpu_core"
226    },
227    {
228        "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]",
229        "EventCode": "0x73",
230        "EventName": "TOPDOWN_BAD_SPECULATION.ALL",
231        "SampleAfterValue": "1000003",
232        "Unit": "cpu_atom"
233    },
234    {
235        "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]",
236        "EventCode": "0x73",
237        "EventName": "TOPDOWN_BAD_SPECULATION.ALL_P",
238        "SampleAfterValue": "1000003",
239        "Unit": "cpu_atom"
240    },
241    {
242        "BriefDescription": "Counts the number of retirement slots not consumed due to backend stalls [This event is alias to TOPDOWN_BE_BOUND.ALL_P]",
243        "EventCode": "0xa4",
244        "EventName": "TOPDOWN_BE_BOUND.ALL",
245        "SampleAfterValue": "1000003",
246        "UMask": "0x2",
247        "Unit": "cpu_atom"
248    },
249    {
250        "BriefDescription": "Counts the number of retirement slots not consumed due to backend stalls [This event is alias to TOPDOWN_BE_BOUND.ALL]",
251        "EventCode": "0xa4",
252        "EventName": "TOPDOWN_BE_BOUND.ALL_P",
253        "SampleAfterValue": "1000003",
254        "UMask": "0x2",
255        "Unit": "cpu_atom"
256    },
257    {
258        "BriefDescription": "Fixed Counter: Counts the number of retirement slots not consumed due to front end stalls",
259        "EventName": "TOPDOWN_FE_BOUND.ALL",
260        "SampleAfterValue": "1000003",
261        "UMask": "0x6",
262        "Unit": "cpu_atom"
263    },
264    {
265        "BriefDescription": "Counts the number of retirement slots not consumed due to front end stalls",
266        "EventCode": "0x9c",
267        "EventName": "TOPDOWN_FE_BOUND.ALL_P",
268        "SampleAfterValue": "1000003",
269        "UMask": "0x1",
270        "Unit": "cpu_atom"
271    },
272    {
273        "BriefDescription": "Fixed Counter: Counts the number of consumed retirement slots.",
274        "EventName": "TOPDOWN_RETIRING.ALL",
275        "PEBS": "1",
276        "SampleAfterValue": "1000003",
277        "UMask": "0x7",
278        "Unit": "cpu_atom"
279    },
280    {
281        "BriefDescription": "Counts the number of consumed retirement slots.",
282        "EventCode": "0xc2",
283        "EventName": "TOPDOWN_RETIRING.ALL_P",
284        "PEBS": "1",
285        "SampleAfterValue": "1000003",
286        "UMask": "0x2",
287        "Unit": "cpu_atom"
288    },
289    {
290        "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.",
291        "EventCode": "0xc2",
292        "EventName": "UOPS_RETIRED.SLOTS",
293        "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.",
294        "SampleAfterValue": "2000003",
295        "UMask": "0x2",
296        "Unit": "cpu_core"
297    }
298]
299