xref: /linux/tools/perf/pmu-events/arch/x86/knightslanding/pipeline.json (revision 527a0f2bdcfe77fce22f006b97e42e4da3137c86)
1[
2    {
3        "BriefDescription": "Counts the number of branch instructions retired (Precise Event)",
4        "Counter": "0,1",
5        "EventCode": "0xC4",
6        "EventName": "BR_INST_RETIRED.ALL_BRANCHES",
7        "PEBS": "1",
8        "SampleAfterValue": "200003"
9    },
10    {
11        "BriefDescription": "Counts the number of near CALL branch instructions retired. (Precise Event)",
12        "Counter": "0,1",
13        "EventCode": "0xC4",
14        "EventName": "BR_INST_RETIRED.CALL",
15        "PEBS": "1",
16        "SampleAfterValue": "200003",
17        "UMask": "0xf9"
18    },
19    {
20        "BriefDescription": "Counts the number of far branch instructions retired. (Precise Event)",
21        "Counter": "0,1",
22        "EventCode": "0xC4",
23        "EventName": "BR_INST_RETIRED.FAR_BRANCH",
24        "PEBS": "1",
25        "SampleAfterValue": "200003",
26        "UMask": "0xbf"
27    },
28    {
29        "BriefDescription": "Counts the number of near indirect CALL branch instructions retired. (Precise Event)",
30        "Counter": "0,1",
31        "EventCode": "0xC4",
32        "EventName": "BR_INST_RETIRED.IND_CALL",
33        "PEBS": "1",
34        "SampleAfterValue": "200003",
35        "UMask": "0xfb"
36    },
37    {
38        "BriefDescription": "Counts the number of branch instructions retired that were conditional jumps. (Precise Event)",
39        "Counter": "0,1",
40        "EventCode": "0xC4",
41        "EventName": "BR_INST_RETIRED.JCC",
42        "PEBS": "1",
43        "SampleAfterValue": "200003",
44        "UMask": "0x7e"
45    },
46    {
47        "BriefDescription": "Counts the number of branch instructions retired that were near indirect CALL or near indirect JMP. (Precise Event)",
48        "Counter": "0,1",
49        "EventCode": "0xC4",
50        "EventName": "BR_INST_RETIRED.NON_RETURN_IND",
51        "PEBS": "1",
52        "SampleAfterValue": "200003",
53        "UMask": "0xeb"
54    },
55    {
56        "BriefDescription": "Counts the number of near relative CALL branch instructions retired. (Precise Event)",
57        "Counter": "0,1",
58        "EventCode": "0xC4",
59        "EventName": "BR_INST_RETIRED.REL_CALL",
60        "PEBS": "1",
61        "SampleAfterValue": "200003",
62        "UMask": "0xfd"
63    },
64    {
65        "BriefDescription": "Counts the number of near RET branch instructions retired. (Precise Event)",
66        "Counter": "0,1",
67        "EventCode": "0xC4",
68        "EventName": "BR_INST_RETIRED.RETURN",
69        "PEBS": "1",
70        "SampleAfterValue": "200003",
71        "UMask": "0xf7"
72    },
73    {
74        "BriefDescription": "Counts the number of branch instructions retired that were conditional jumps and predicted taken. (Precise Event)",
75        "Counter": "0,1",
76        "EventCode": "0xC4",
77        "EventName": "BR_INST_RETIRED.TAKEN_JCC",
78        "PEBS": "1",
79        "SampleAfterValue": "200003",
80        "UMask": "0xfe"
81    },
82    {
83        "BriefDescription": "Counts the number of mispredicted branch instructions retired (Precise Event)",
84        "Counter": "0,1",
85        "EventCode": "0xC5",
86        "EventName": "BR_MISP_RETIRED.ALL_BRANCHES",
87        "PEBS": "1",
88        "SampleAfterValue": "200003"
89    },
90    {
91        "BriefDescription": "Counts the number of mispredicted near CALL branch instructions retired. (Precise Event)",
92        "Counter": "0,1",
93        "EventCode": "0xC5",
94        "EventName": "BR_MISP_RETIRED.CALL",
95        "PEBS": "1",
96        "SampleAfterValue": "200003",
97        "UMask": "0xf9"
98    },
99    {
100        "BriefDescription": "Counts the number of mispredicted far branch instructions retired. (Precise Event)",
101        "Counter": "0,1",
102        "EventCode": "0xC5",
103        "EventName": "BR_MISP_RETIRED.FAR_BRANCH",
104        "PEBS": "1",
105        "SampleAfterValue": "200003",
106        "UMask": "0xbf"
107    },
108    {
109        "BriefDescription": "Counts the number of mispredicted near indirect CALL branch instructions retired. (Precise Event)",
110        "Counter": "0,1",
111        "EventCode": "0xC5",
112        "EventName": "BR_MISP_RETIRED.IND_CALL",
113        "PEBS": "1",
114        "SampleAfterValue": "200003",
115        "UMask": "0xfb"
116    },
117    {
118        "BriefDescription": "Counts the number of mispredicted branch instructions retired that were conditional jumps. (Precise Event)",
119        "Counter": "0,1",
120        "EventCode": "0xC5",
121        "EventName": "BR_MISP_RETIRED.JCC",
122        "PEBS": "1",
123        "SampleAfterValue": "200003",
124        "UMask": "0x7e"
125    },
126    {
127        "BriefDescription": "Counts the number of mispredicted branch instructions retired that were near indirect CALL or near indirect JMP. (Precise Event)",
128        "Counter": "0,1",
129        "EventCode": "0xC5",
130        "EventName": "BR_MISP_RETIRED.NON_RETURN_IND",
131        "PEBS": "1",
132        "SampleAfterValue": "200003",
133        "UMask": "0xeb"
134    },
135    {
136        "BriefDescription": "Counts the number of mispredicted near relative CALL branch instructions retired. (Precise Event)",
137        "Counter": "0,1",
138        "EventCode": "0xC5",
139        "EventName": "BR_MISP_RETIRED.REL_CALL",
140        "PEBS": "1",
141        "SampleAfterValue": "200003",
142        "UMask": "0xfd"
143    },
144    {
145        "BriefDescription": "Counts the number of mispredicted near RET branch instructions retired. (Precise Event)",
146        "Counter": "0,1",
147        "EventCode": "0xC5",
148        "EventName": "BR_MISP_RETIRED.RETURN",
149        "PEBS": "1",
150        "SampleAfterValue": "200003",
151        "UMask": "0xf7"
152    },
153    {
154        "BriefDescription": "Counts the number of mispredicted branch instructions retired that were conditional jumps and predicted taken. (Precise Event)",
155        "Counter": "0,1",
156        "EventCode": "0xC5",
157        "EventName": "BR_MISP_RETIRED.TAKEN_JCC",
158        "PEBS": "1",
159        "SampleAfterValue": "200003",
160        "UMask": "0xfe"
161    },
162    {
163        "BriefDescription": "Counts the number of unhalted reference clock cycles",
164        "Counter": "0,1",
165        "EventCode": "0x3C",
166        "EventName": "CPU_CLK_UNHALTED.REF",
167        "SampleAfterValue": "2000003",
168        "UMask": "0x1"
169    },
170    {
171        "BriefDescription": "Fixed Counter: Counts the number of unhalted reference clock cycles",
172        "Counter": "Fixed counter 2",
173        "EventName": "CPU_CLK_UNHALTED.REF_TSC",
174        "SampleAfterValue": "2000003",
175        "UMask": "0x3"
176    },
177    {
178        "BriefDescription": "Fixed Counter: Counts the number of unhalted core clock cycles",
179        "Counter": "Fixed counter 1",
180        "EventName": "CPU_CLK_UNHALTED.THREAD",
181        "PublicDescription": "This event 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",
182        "SampleAfterValue": "2000003",
183        "UMask": "0x2"
184    },
185    {
186        "BriefDescription": "Counts the number of unhalted core clock cycles",
187        "Counter": "0,1",
188        "EventCode": "0x3C",
189        "EventName": "CPU_CLK_UNHALTED.THREAD_P",
190        "SampleAfterValue": "2000003"
191    },
192    {
193        "BriefDescription": "Cycles the number of core cycles when divider is busy.  Does not imply a stall waiting for the divider.",
194        "Counter": "0,1",
195        "EventCode": "0xCD",
196        "EventName": "CYCLES_DIV_BUSY.ALL",
197        "PublicDescription": "This event counts cycles when the divider is busy. More specifically cycles when the divide unit is unable to accept a new divide uop because it is busy processing a previously dispatched uop. The cycles will be counted irrespective of whether or not another divide uop is waiting to enter the divide unit (from the RS). This event counts integer divides, x87 divides, divss, divsd, sqrtss, sqrtsd event and does not count vector divides.",
198        "SampleAfterValue": "2000003",
199        "UMask": "0x1"
200    },
201    {
202        "BriefDescription": "Fixed Counter: Counts the number of instructions retired",
203        "Counter": "Fixed counter 0",
204        "EventName": "INST_RETIRED.ANY",
205        "PublicDescription": "This event counts the number of instructions that retire.  For instructions that consist of multiple micro-ops, this event counts exactly once, as the last micro-op of the instruction retires.  The event continues counting while instructions retire, including during interrupt service routines caused by hardware interrupts, faults or traps.",
206        "SampleAfterValue": "2000003",
207        "UMask": "0x1"
208    },
209    {
210        "BriefDescription": "Counts the total number of instructions retired",
211        "Counter": "0,1",
212        "EventCode": "0xC0",
213        "EventName": "INST_RETIRED.ANY_P",
214        "SampleAfterValue": "2000003"
215    },
216    {
217        "BriefDescription": "Counts the number of instructions retired (Precise Event)",
218        "Counter": "0",
219        "EventCode": "0xC0",
220        "EventName": "INST_RETIRED.ANY_PS",
221        "PEBS": "2",
222        "SampleAfterValue": "2000003"
223    },
224    {
225        "BriefDescription": "Counts all machine clears",
226        "Counter": "0,1",
227        "EventCode": "0xC3",
228        "EventName": "MACHINE_CLEARS.ALL",
229        "SampleAfterValue": "200003",
230        "UMask": "0x8"
231    },
232    {
233        "BriefDescription": "Counts the number of times that the machine clears due to program modifying data within 1K of a recently fetched code page",
234        "Counter": "0,1",
235        "EventCode": "0xC3",
236        "EventName": "MACHINE_CLEARS.SMC",
237        "SampleAfterValue": "200003",
238        "UMask": "0x1"
239    },
240    {
241        "BriefDescription": "Counts the total number of core cycles when no micro-ops are allocated for any reason.",
242        "Counter": "0,1",
243        "EventCode": "0xCA",
244        "EventName": "NO_ALLOC_CYCLES.ALL",
245        "SampleAfterValue": "200003",
246        "UMask": "0x7f"
247    },
248    {
249        "BriefDescription": "Counts the number of core cycles when no micro-ops are allocated and the alloc pipe is stalled waiting for a mispredicted branch to retire.",
250        "Counter": "0,1",
251        "EventCode": "0xCA",
252        "EventName": "NO_ALLOC_CYCLES.MISPREDICTS",
253        "PublicDescription": "This event counts the number of core cycles when no uops are allocated and the alloc pipe is stalled waiting for a mispredicted branch to retire.",
254        "SampleAfterValue": "200003",
255        "UMask": "0x4"
256    },
257    {
258        "BriefDescription": "Counts the number of core cycles when no micro-ops are allocated, the IQ is empty, and no other condition is blocking allocation.",
259        "Counter": "0,1",
260        "EventCode": "0xCA",
261        "EventName": "NO_ALLOC_CYCLES.NOT_DELIVERED",
262        "PublicDescription": "This event counts the number of core cycles when no uops are allocated, the instruction queue is empty and the alloc pipe is stalled waiting for instructions to be fetched.",
263        "SampleAfterValue": "200003",
264        "UMask": "0x90"
265    },
266    {
267        "BriefDescription": "Counts the number of core cycles when no micro-ops are allocated and a RATstall (caused by reservation station full) is asserted.",
268        "Counter": "0,1",
269        "EventCode": "0xCA",
270        "EventName": "NO_ALLOC_CYCLES.RAT_STALL",
271        "SampleAfterValue": "200003",
272        "UMask": "0x20"
273    },
274    {
275        "BriefDescription": "Counts the number of core cycles when no micro-ops are allocated and the ROB is full",
276        "Counter": "0,1",
277        "EventCode": "0xCA",
278        "EventName": "NO_ALLOC_CYCLES.ROB_FULL",
279        "SampleAfterValue": "200003",
280        "UMask": "0x1"
281    },
282    {
283        "BriefDescription": "Counts any retired load that was pushed into the recycle queue for any reason.",
284        "Counter": "0,1",
285        "EventCode": "0x03",
286        "EventName": "RECYCLEQ.ANY_LD",
287        "SampleAfterValue": "200003",
288        "UMask": "0x40"
289    },
290    {
291        "BriefDescription": "Counts any retired store that was pushed into the recycle queue for any reason.",
292        "Counter": "0,1",
293        "EventCode": "0x03",
294        "EventName": "RECYCLEQ.ANY_ST",
295        "SampleAfterValue": "200003",
296        "UMask": "0x80"
297    },
298    {
299        "BriefDescription": "Counts the number of occurrences a retired load gets blocked because its address overlaps with a store whose data is not ready",
300        "Counter": "0,1",
301        "EventCode": "0x03",
302        "EventName": "RECYCLEQ.LD_BLOCK_STD_NOTREADY",
303        "SampleAfterValue": "200003",
304        "UMask": "0x2"
305    },
306    {
307        "BriefDescription": "Counts the number of occurrences a retired load gets blocked because its address partially overlaps with a store  (Precise Event)",
308        "Counter": "0,1",
309        "Data_LA": "1",
310        "EventCode": "0x03",
311        "EventName": "RECYCLEQ.LD_BLOCK_ST_FORWARD",
312        "PEBS": "1",
313        "PublicDescription": "This event counts the number of retired loads that were prohibited from receiving forwarded data from a previous store because of address mismatch.",
314        "SampleAfterValue": "200003",
315        "UMask": "0x1"
316    },
317    {
318        "BriefDescription": "Counts the number of occurrences a retired load was pushed into the rehab queue because it sees a cache line split. Each split should be counted only once. (Precise Event)",
319        "Counter": "0,1",
320        "Data_LA": "1",
321        "EventCode": "0x03",
322        "EventName": "RECYCLEQ.LD_SPLITS",
323        "PEBS": "1",
324        "PublicDescription": "This event counts the number of retired loads which was pushed into the recycled queue that experienced cache line boundary splits (Precise event). Not that each split should be counted only once.",
325        "SampleAfterValue": "200003",
326        "UMask": "0x8"
327    },
328    {
329        "BriefDescription": "Counts all the retired locked loads. It does not include stores because we would double count if we count stores",
330        "Counter": "0,1",
331        "EventCode": "0x03",
332        "EventName": "RECYCLEQ.LOCK",
333        "SampleAfterValue": "200003",
334        "UMask": "0x10"
335    },
336    {
337        "BriefDescription": "Counts the store micro-ops retired that were pushed in the rehab queue because the store address buffer is full",
338        "Counter": "0,1",
339        "EventCode": "0x03",
340        "EventName": "RECYCLEQ.STA_FULL",
341        "SampleAfterValue": "200003",
342        "UMask": "0x20"
343    },
344    {
345        "BriefDescription": "Counts the number of occurrences a retired store that is a cache line split. Each split should be counted only once.",
346        "Counter": "0,1",
347        "EventCode": "0x03",
348        "EventName": "RECYCLEQ.ST_SPLITS",
349        "PublicDescription": "This event counts the number of retired store that experienced a cache line boundary split(Precise Event). Note that each spilt should be counted only once.",
350        "SampleAfterValue": "200003",
351        "UMask": "0x4"
352    },
353    {
354        "BriefDescription": "Counts the total number of core cycles allocation pipeline is stalled when any one of the reservation stations is full.",
355        "Counter": "0,1",
356        "EventCode": "0xCB",
357        "EventName": "RS_FULL_STALL.ALL",
358        "SampleAfterValue": "200003",
359        "UMask": "0x1f"
360    },
361    {
362        "BriefDescription": "Counts the number of core cycles when allocation pipeline is stalled and is waiting for a free MEC reservation station entry.",
363        "Counter": "0,1",
364        "EventCode": "0xCB",
365        "EventName": "RS_FULL_STALL.MEC",
366        "SampleAfterValue": "200003",
367        "UMask": "0x1"
368    },
369    {
370        "BriefDescription": "Counts the number of micro-ops retired",
371        "Counter": "0,1",
372        "EventCode": "0xC2",
373        "EventName": "UOPS_RETIRED.ALL",
374        "PublicDescription": "This event counts the number of micro-ops (uops) retired. The processor decodes complex macro instructions into a sequence of simpler uops. Most instructions are composed of one or two uops. Some instructions are decoded into longer sequences such as repeat instructions, floating point transcendental instructions, and assists.",
375        "SampleAfterValue": "2000003",
376        "UMask": "0x10"
377    },
378    {
379        "BriefDescription": "Counts the number of micro-ops retired that are from the complex flows issued by the micro-sequencer (MS).",
380        "Counter": "0,1",
381        "EventCode": "0xC2",
382        "EventName": "UOPS_RETIRED.MS",
383        "PublicDescription": "This event counts the number of micro-ops retired that were supplied from MSROM.",
384        "SampleAfterValue": "2000003",
385        "UMask": "0x1"
386    }
387]
388