xref: /freebsd/lib/libpmc/pmu-events/arch/x86/haswell/pipeline.json (revision d6eb98610fa65663bf0df4574b7cb2c5c4ffda71)
1[
2    {
3        "PublicDescription": "This event counts the number of instructions retired from execution. For instructions that consist of multiple micro-ops, this event counts the retirement of the last micro-op of the instruction. Counting continues during hardware interrupts, traps, and inside interrupt handlers. INST_RETIRED.ANY is counted by a designated fixed counter, leaving the programmable counters available for other events. Faulting executions of GETSEC/VM entry/VM Exit/MWait will not count as retired instructions.",
4        "EventCode": "0x00",
5        "Counter": "Fixed counter 0",
6        "UMask": "0x1",
7        "Errata": "HSD140, HSD143",
8        "EventName": "INST_RETIRED.ANY",
9        "SampleAfterValue": "2000003",
10        "BriefDescription": "Instructions retired from execution.",
11        "CounterHTOff": "Fixed counter 0"
12    },
13    {
14        "PublicDescription": "This event 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.",
15        "EventCode": "0x00",
16        "Counter": "Fixed counter 1",
17        "UMask": "0x2",
18        "EventName": "CPU_CLK_UNHALTED.THREAD",
19        "SampleAfterValue": "2000003",
20        "BriefDescription": "Core cycles when the thread is not in halt state.",
21        "CounterHTOff": "Fixed counter 1"
22    },
23    {
24        "EventCode": "0x00",
25        "Counter": "Fixed counter 1",
26        "UMask": "0x2",
27        "AnyThread": "1",
28        "EventName": "CPU_CLK_UNHALTED.THREAD_ANY",
29        "SampleAfterValue": "2000003",
30        "BriefDescription": "Core cycles when at least one thread on the physical core is not in halt state.",
31        "CounterHTOff": "Fixed counter 1"
32    },
33    {
34        "PublicDescription": "This event 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.",
35        "EventCode": "0x00",
36        "Counter": "Fixed counter 2",
37        "UMask": "0x3",
38        "EventName": "CPU_CLK_UNHALTED.REF_TSC",
39        "SampleAfterValue": "2000003",
40        "BriefDescription": "Reference cycles when the core is not in halt state.",
41        "CounterHTOff": "Fixed counter 2"
42    },
43    {
44        "PublicDescription": "This event counts loads that followed a store to the same address, where the data could not be forwarded inside the pipeline from the store to the load.  The most common reason why store forwarding would be blocked is when a load's address range overlaps with a preceding smaller uncompleted store. The penalty for blocked store forwarding is that the load must wait for the store to write its value to the cache before it can be issued.",
45        "EventCode": "0x03",
46        "Counter": "0,1,2,3",
47        "UMask": "0x2",
48        "EventName": "LD_BLOCKS.STORE_FORWARD",
49        "SampleAfterValue": "100003",
50        "BriefDescription": "loads blocked by overlapping with store buffer that cannot be forwarded",
51        "CounterHTOff": "0,1,2,3,4,5,6,7"
52    },
53    {
54        "PublicDescription": "The number of times that split load operations are temporarily blocked because all resources for handling the split accesses are in use.",
55        "EventCode": "0x03",
56        "Counter": "0,1,2,3",
57        "UMask": "0x8",
58        "EventName": "LD_BLOCKS.NO_SR",
59        "SampleAfterValue": "100003",
60        "BriefDescription": "The number of times that split load operations are temporarily blocked because all resources for handling the split accesses are in use",
61        "CounterHTOff": "0,1,2,3,4,5,6,7"
62    },
63    {
64        "PublicDescription": "Aliasing occurs when a load is issued after a store and their memory addresses are offset by 4K.  This event counts the number of loads that aliased with a preceding store, resulting in an extended address check in the pipeline which can have a performance impact.",
65        "EventCode": "0x07",
66        "Counter": "0,1,2,3",
67        "UMask": "0x1",
68        "EventName": "LD_BLOCKS_PARTIAL.ADDRESS_ALIAS",
69        "SampleAfterValue": "100003",
70        "BriefDescription": "False dependencies in MOB due to partial compare on address.",
71        "CounterHTOff": "0,1,2,3,4,5,6,7"
72    },
73    {
74        "PublicDescription": "This event counts the number of cycles spent waiting for a recovery after an event such as a processor nuke, JEClear, assist, hle/rtm abort etc.",
75        "EventCode": "0x0D",
76        "Counter": "0,1,2,3",
77        "UMask": "0x3",
78        "EventName": "INT_MISC.RECOVERY_CYCLES",
79        "SampleAfterValue": "2000003",
80        "BriefDescription": "Core cycles the allocator was stalled due to recovery from earlier clear event for this thread (e.g. misprediction or memory nuke)",
81        "CounterMask": "1",
82        "CounterHTOff": "0,1,2,3,4,5,6,7"
83    },
84    {
85        "PublicDescription": "Core cycles the allocator was stalled due to recovery from earlier clear event for any thread running on the physical core (e.g. misprediction or memory nuke).",
86        "EventCode": "0x0D",
87        "Counter": "0,1,2,3",
88        "UMask": "0x3",
89        "AnyThread": "1",
90        "EventName": "INT_MISC.RECOVERY_CYCLES_ANY",
91        "SampleAfterValue": "2000003",
92        "BriefDescription": "Core cycles the allocator was stalled due to recovery from earlier clear event for any thread running on the physical core (e.g. misprediction or memory nuke)",
93        "CounterMask": "1",
94        "CounterHTOff": "0,1,2,3,4,5,6,7"
95    },
96    {
97        "PublicDescription": "This event counts the number of uops issued by the Front-end of the pipeline to the Back-end. This event is counted at the allocation stage and will count both retired and non-retired uops.",
98        "EventCode": "0x0E",
99        "Counter": "0,1,2,3",
100        "UMask": "0x1",
101        "EventName": "UOPS_ISSUED.ANY",
102        "SampleAfterValue": "2000003",
103        "BriefDescription": "Uops that Resource Allocation Table (RAT) issues to Reservation Station (RS)",
104        "CounterHTOff": "0,1,2,3,4,5,6,7"
105    },
106    {
107        "EventCode": "0x0E",
108        "Invert": "1",
109        "Counter": "0,1,2,3",
110        "UMask": "0x1",
111        "EventName": "UOPS_ISSUED.STALL_CYCLES",
112        "SampleAfterValue": "2000003",
113        "BriefDescription": "Cycles when Resource Allocation Table (RAT) does not issue Uops to Reservation Station (RS) for the thread.",
114        "CounterMask": "1",
115        "CounterHTOff": "0,1,2,3"
116    },
117    {
118        "EventCode": "0x0E",
119        "Invert": "1",
120        "Counter": "0,1,2,3",
121        "UMask": "0x1",
122        "AnyThread": "1",
123        "EventName": "UOPS_ISSUED.CORE_STALL_CYCLES",
124        "SampleAfterValue": "2000003",
125        "BriefDescription": "Cycles when Resource Allocation Table (RAT) does not issue Uops to Reservation Station (RS) for all threads.",
126        "CounterMask": "1",
127        "CounterHTOff": "0,1,2,3"
128    },
129    {
130        "PublicDescription": "Number of flags-merge uops allocated. Such uops add delay.",
131        "EventCode": "0x0E",
132        "Counter": "0,1,2,3",
133        "UMask": "0x10",
134        "EventName": "UOPS_ISSUED.FLAGS_MERGE",
135        "SampleAfterValue": "2000003",
136        "BriefDescription": "Number of flags-merge uops being allocated. Such uops considered perf sensitive; added by GSR u-arch.",
137        "CounterHTOff": "0,1,2,3,4,5,6,7"
138    },
139    {
140        "PublicDescription": "Number of slow LEA or similar uops allocated. Such uop has 3 sources (for example, 2 sources + immediate) regardless of whether it is a result of LEA instruction or not.",
141        "EventCode": "0x0E",
142        "Counter": "0,1,2,3",
143        "UMask": "0x20",
144        "EventName": "UOPS_ISSUED.SLOW_LEA",
145        "SampleAfterValue": "2000003",
146        "BriefDescription": "Number of slow LEA uops being allocated. A uop is generally considered SlowLea if it has 3 sources (e.g. 2 sources + immediate) regardless if as a result of LEA instruction or not.",
147        "CounterHTOff": "0,1,2,3,4,5,6,7"
148    },
149    {
150        "PublicDescription": "Number of multiply packed/scalar single precision uops allocated.",
151        "EventCode": "0x0E",
152        "Counter": "0,1,2,3",
153        "UMask": "0x40",
154        "EventName": "UOPS_ISSUED.SINGLE_MUL",
155        "SampleAfterValue": "2000003",
156        "BriefDescription": "Number of Multiply packed/scalar single precision uops allocated",
157        "CounterHTOff": "0,1,2,3,4,5,6,7"
158    },
159    {
160        "EventCode": "0x14",
161        "Counter": "0,1,2,3",
162        "UMask": "0x2",
163        "EventName": "ARITH.DIVIDER_UOPS",
164        "SampleAfterValue": "2000003",
165        "BriefDescription": "Any uop executed by the Divider. (This includes all divide uops, sqrt, ...)",
166        "CounterHTOff": "0,1,2,3,4,5,6,7"
167    },
168    {
169        "PublicDescription": "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.",
170        "EventCode": "0x3C",
171        "Counter": "0,1,2,3",
172        "UMask": "0x0",
173        "EventName": "CPU_CLK_UNHALTED.THREAD_P",
174        "SampleAfterValue": "2000003",
175        "BriefDescription": "Thread cycles when thread is not in halt state",
176        "CounterHTOff": "0,1,2,3,4,5,6,7"
177    },
178    {
179        "EventCode": "0x3C",
180        "Counter": "0,1,2,3",
181        "UMask": "0x0",
182        "AnyThread": "1",
183        "EventName": "CPU_CLK_UNHALTED.THREAD_P_ANY",
184        "SampleAfterValue": "2000003",
185        "BriefDescription": "Core cycles when at least one thread on the physical core is not in halt state.",
186        "CounterHTOff": "0,1,2,3,4,5,6,7"
187    },
188    {
189        "PublicDescription": "Increments at the frequency of XCLK (100 MHz) when not halted.",
190        "EventCode": "0x3C",
191        "Counter": "0,1,2,3",
192        "UMask": "0x1",
193        "EventName": "CPU_CLK_THREAD_UNHALTED.REF_XCLK",
194        "SampleAfterValue": "2000003",
195        "BriefDescription": "Reference cycles when the thread is unhalted (counts at 100 MHz rate)",
196        "CounterHTOff": "0,1,2,3,4,5,6,7"
197    },
198    {
199        "PublicDescription": "Reference cycles when the at least one thread on the physical core is unhalted (counts at 100 MHz rate).",
200        "EventCode": "0x3C",
201        "Counter": "0,1,2,3",
202        "UMask": "0x1",
203        "AnyThread": "1",
204        "EventName": "CPU_CLK_THREAD_UNHALTED.REF_XCLK_ANY",
205        "SampleAfterValue": "2000003",
206        "BriefDescription": "Reference cycles when the at least one thread on the physical core is unhalted (counts at 100 MHz rate)",
207        "CounterHTOff": "0,1,2,3,4,5,6,7"
208    },
209    {
210        "PublicDescription": "Reference cycles when the thread is unhalted. (counts at 100 MHz rate)",
211        "EventCode": "0x3C",
212        "Counter": "0,1,2,3",
213        "UMask": "0x1",
214        "EventName": "CPU_CLK_UNHALTED.REF_XCLK",
215        "SampleAfterValue": "2000003",
216        "BriefDescription": "Reference cycles when the thread is unhalted (counts at 100 MHz rate)",
217        "CounterHTOff": "0,1,2,3,4,5,6,7"
218    },
219    {
220        "PublicDescription": "Reference cycles when the at least one thread on the physical core is unhalted (counts at 100 MHz rate).",
221        "EventCode": "0x3C",
222        "Counter": "0,1,2,3",
223        "UMask": "0x1",
224        "AnyThread": "1",
225        "EventName": "CPU_CLK_UNHALTED.REF_XCLK_ANY",
226        "SampleAfterValue": "2000003",
227        "BriefDescription": "Reference cycles when the at least one thread on the physical core is unhalted (counts at 100 MHz rate)",
228        "CounterHTOff": "0,1,2,3,4,5,6,7"
229    },
230    {
231        "EventCode": "0x3c",
232        "Counter": "0,1,2,3",
233        "UMask": "0x2",
234        "EventName": "CPU_CLK_THREAD_UNHALTED.ONE_THREAD_ACTIVE",
235        "SampleAfterValue": "2000003",
236        "BriefDescription": "Count XClk pulses when this thread is unhalted and the other thread is halted.",
237        "CounterHTOff": "0,1,2,3"
238    },
239    {
240        "EventCode": "0x3C",
241        "Counter": "0,1,2,3",
242        "UMask": "0x2",
243        "EventName": "CPU_CLK_UNHALTED.ONE_THREAD_ACTIVE",
244        "SampleAfterValue": "2000003",
245        "BriefDescription": "Count XClk pulses when this thread is unhalted and the other thread is halted.",
246        "CounterHTOff": "0,1,2,3,4,5,6,7"
247    },
248    {
249        "PublicDescription": "Non-SW-prefetch load dispatches that hit fill buffer allocated for S/W prefetch.",
250        "EventCode": "0x4c",
251        "Counter": "0,1,2,3",
252        "UMask": "0x1",
253        "EventName": "LOAD_HIT_PRE.SW_PF",
254        "SampleAfterValue": "100003",
255        "BriefDescription": "Not software-prefetch load dispatches that hit FB allocated for software prefetch",
256        "CounterHTOff": "0,1,2,3,4,5,6,7"
257    },
258    {
259        "PublicDescription": "Non-SW-prefetch load dispatches that hit fill buffer allocated for H/W prefetch.",
260        "EventCode": "0x4c",
261        "Counter": "0,1,2,3",
262        "UMask": "0x2",
263        "EventName": "LOAD_HIT_PRE.HW_PF",
264        "SampleAfterValue": "100003",
265        "BriefDescription": "Not software-prefetch load dispatches that hit FB allocated for hardware prefetch",
266        "CounterHTOff": "0,1,2,3,4,5,6,7"
267    },
268    {
269        "PublicDescription": "Number of integer move elimination candidate uops that were eliminated.",
270        "EventCode": "0x58",
271        "Counter": "0,1,2,3",
272        "UMask": "0x1",
273        "EventName": "MOVE_ELIMINATION.INT_ELIMINATED",
274        "SampleAfterValue": "1000003",
275        "BriefDescription": "Number of integer Move Elimination candidate uops that were eliminated.",
276        "CounterHTOff": "0,1,2,3,4,5,6,7"
277    },
278    {
279        "PublicDescription": "Number of SIMD move elimination candidate uops that were eliminated.",
280        "EventCode": "0x58",
281        "Counter": "0,1,2,3",
282        "UMask": "0x2",
283        "EventName": "MOVE_ELIMINATION.SIMD_ELIMINATED",
284        "SampleAfterValue": "1000003",
285        "BriefDescription": "Number of SIMD Move Elimination candidate uops that were eliminated.",
286        "CounterHTOff": "0,1,2,3,4,5,6,7"
287    },
288    {
289        "PublicDescription": "Number of integer move elimination candidate uops that were not eliminated.",
290        "EventCode": "0x58",
291        "Counter": "0,1,2,3",
292        "UMask": "0x4",
293        "EventName": "MOVE_ELIMINATION.INT_NOT_ELIMINATED",
294        "SampleAfterValue": "1000003",
295        "BriefDescription": "Number of integer Move Elimination candidate uops that were not eliminated.",
296        "CounterHTOff": "0,1,2,3,4,5,6,7"
297    },
298    {
299        "PublicDescription": "Number of SIMD move elimination candidate uops that were not eliminated.",
300        "EventCode": "0x58",
301        "Counter": "0,1,2,3",
302        "UMask": "0x8",
303        "EventName": "MOVE_ELIMINATION.SIMD_NOT_ELIMINATED",
304        "SampleAfterValue": "1000003",
305        "BriefDescription": "Number of SIMD Move Elimination candidate uops that were not eliminated.",
306        "CounterHTOff": "0,1,2,3,4,5,6,7"
307    },
308    {
309        "PublicDescription": "This event counts cycles when the Reservation Station ( RS ) is empty for the thread. The RS is a structure that buffers allocated micro-ops from the Front-end. If there are many cycles when the RS is empty, it may represent an underflow of instructions delivered from the Front-end.",
310        "EventCode": "0x5E",
311        "Counter": "0,1,2,3",
312        "UMask": "0x1",
313        "EventName": "RS_EVENTS.EMPTY_CYCLES",
314        "SampleAfterValue": "2000003",
315        "BriefDescription": "Cycles when Reservation Station (RS) is empty for the thread",
316        "CounterHTOff": "0,1,2,3,4,5,6,7"
317    },
318    {
319        "EventCode": "0x5E",
320        "Invert": "1",
321        "Counter": "0,1,2,3",
322        "UMask": "0x1",
323        "EdgeDetect": "1",
324        "EventName": "RS_EVENTS.EMPTY_END",
325        "SampleAfterValue": "200003",
326        "BriefDescription": "Counts end of periods where the Reservation Station (RS) was empty. Could be useful to precisely locate Frontend Latency Bound issues.",
327        "CounterMask": "1",
328        "CounterHTOff": "0,1,2,3,4,5,6,7"
329    },
330    {
331        "PublicDescription": "This event counts cycles where the decoder is stalled on an instruction with a length changing prefix (LCP).",
332        "EventCode": "0x87",
333        "Counter": "0,1,2,3",
334        "UMask": "0x1",
335        "EventName": "ILD_STALL.LCP",
336        "SampleAfterValue": "2000003",
337        "BriefDescription": "Stalls caused by changing prefix length of the instruction.",
338        "CounterHTOff": "0,1,2,3,4,5,6,7"
339    },
340    {
341        "PublicDescription": "Stall cycles due to IQ is full.",
342        "EventCode": "0x87",
343        "Counter": "0,1,2,3",
344        "UMask": "0x4",
345        "EventName": "ILD_STALL.IQ_FULL",
346        "SampleAfterValue": "2000003",
347        "BriefDescription": "Stall cycles because IQ is full",
348        "CounterHTOff": "0,1,2,3,4,5,6,7"
349    },
350    {
351        "EventCode": "0x88",
352        "Counter": "0,1,2,3",
353        "UMask": "0x41",
354        "EventName": "BR_INST_EXEC.NONTAKEN_CONDITIONAL",
355        "SampleAfterValue": "200003",
356        "BriefDescription": "Not taken macro-conditional branches.",
357        "CounterHTOff": "0,1,2,3,4,5,6,7"
358    },
359    {
360        "EventCode": "0x88",
361        "Counter": "0,1,2,3",
362        "UMask": "0x81",
363        "EventName": "BR_INST_EXEC.TAKEN_CONDITIONAL",
364        "SampleAfterValue": "200003",
365        "BriefDescription": "Taken speculative and retired macro-conditional branches.",
366        "CounterHTOff": "0,1,2,3,4,5,6,7"
367    },
368    {
369        "EventCode": "0x88",
370        "Counter": "0,1,2,3",
371        "UMask": "0x82",
372        "EventName": "BR_INST_EXEC.TAKEN_DIRECT_JUMP",
373        "SampleAfterValue": "200003",
374        "BriefDescription": "Taken speculative and retired macro-conditional branch instructions excluding calls and indirects.",
375        "CounterHTOff": "0,1,2,3,4,5,6,7"
376    },
377    {
378        "EventCode": "0x88",
379        "Counter": "0,1,2,3",
380        "UMask": "0x84",
381        "EventName": "BR_INST_EXEC.TAKEN_INDIRECT_JUMP_NON_CALL_RET",
382        "SampleAfterValue": "200003",
383        "BriefDescription": "Taken speculative and retired indirect branches excluding calls and returns.",
384        "CounterHTOff": "0,1,2,3,4,5,6,7"
385    },
386    {
387        "EventCode": "0x88",
388        "Counter": "0,1,2,3",
389        "UMask": "0x88",
390        "EventName": "BR_INST_EXEC.TAKEN_INDIRECT_NEAR_RETURN",
391        "SampleAfterValue": "200003",
392        "BriefDescription": "Taken speculative and retired indirect branches with return mnemonic.",
393        "CounterHTOff": "0,1,2,3,4,5,6,7"
394    },
395    {
396        "EventCode": "0x88",
397        "Counter": "0,1,2,3",
398        "UMask": "0x90",
399        "EventName": "BR_INST_EXEC.TAKEN_DIRECT_NEAR_CALL",
400        "SampleAfterValue": "200003",
401        "BriefDescription": "Taken speculative and retired direct near calls.",
402        "CounterHTOff": "0,1,2,3,4,5,6,7"
403    },
404    {
405        "EventCode": "0x88",
406        "Counter": "0,1,2,3",
407        "UMask": "0xa0",
408        "EventName": "BR_INST_EXEC.TAKEN_INDIRECT_NEAR_CALL",
409        "SampleAfterValue": "200003",
410        "BriefDescription": "Taken speculative and retired indirect calls.",
411        "CounterHTOff": "0,1,2,3,4,5,6,7"
412    },
413    {
414        "EventCode": "0x88",
415        "Counter": "0,1,2,3",
416        "UMask": "0xc1",
417        "EventName": "BR_INST_EXEC.ALL_CONDITIONAL",
418        "SampleAfterValue": "200003",
419        "BriefDescription": "Speculative and retired macro-conditional branches.",
420        "CounterHTOff": "0,1,2,3,4,5,6,7"
421    },
422    {
423        "EventCode": "0x88",
424        "Counter": "0,1,2,3",
425        "UMask": "0xc2",
426        "EventName": "BR_INST_EXEC.ALL_DIRECT_JMP",
427        "SampleAfterValue": "200003",
428        "BriefDescription": "Speculative and retired macro-unconditional branches excluding calls and indirects.",
429        "CounterHTOff": "0,1,2,3,4,5,6,7"
430    },
431    {
432        "EventCode": "0x88",
433        "Counter": "0,1,2,3",
434        "UMask": "0xc4",
435        "EventName": "BR_INST_EXEC.ALL_INDIRECT_JUMP_NON_CALL_RET",
436        "SampleAfterValue": "200003",
437        "BriefDescription": "Speculative and retired indirect branches excluding calls and returns.",
438        "CounterHTOff": "0,1,2,3,4,5,6,7"
439    },
440    {
441        "EventCode": "0x88",
442        "Counter": "0,1,2,3",
443        "UMask": "0xc8",
444        "EventName": "BR_INST_EXEC.ALL_INDIRECT_NEAR_RETURN",
445        "SampleAfterValue": "200003",
446        "BriefDescription": "Speculative and retired indirect return branches.",
447        "CounterHTOff": "0,1,2,3,4,5,6,7"
448    },
449    {
450        "EventCode": "0x88",
451        "Counter": "0,1,2,3",
452        "UMask": "0xd0",
453        "EventName": "BR_INST_EXEC.ALL_DIRECT_NEAR_CALL",
454        "SampleAfterValue": "200003",
455        "BriefDescription": "Speculative and retired direct near calls.",
456        "CounterHTOff": "0,1,2,3,4,5,6,7"
457    },
458    {
459        "PublicDescription": "Counts all near executed branches (not necessarily retired).",
460        "EventCode": "0x88",
461        "Counter": "0,1,2,3",
462        "UMask": "0xff",
463        "EventName": "BR_INST_EXEC.ALL_BRANCHES",
464        "SampleAfterValue": "200003",
465        "BriefDescription": "Speculative and retired  branches",
466        "CounterHTOff": "0,1,2,3,4,5,6,7"
467    },
468    {
469        "EventCode": "0x89",
470        "Counter": "0,1,2,3",
471        "UMask": "0x41",
472        "EventName": "BR_MISP_EXEC.NONTAKEN_CONDITIONAL",
473        "SampleAfterValue": "200003",
474        "BriefDescription": "Not taken speculative and retired mispredicted macro conditional branches.",
475        "CounterHTOff": "0,1,2,3,4,5,6,7"
476    },
477    {
478        "EventCode": "0x89",
479        "Counter": "0,1,2,3",
480        "UMask": "0x81",
481        "EventName": "BR_MISP_EXEC.TAKEN_CONDITIONAL",
482        "SampleAfterValue": "200003",
483        "BriefDescription": "Taken speculative and retired mispredicted macro conditional branches.",
484        "CounterHTOff": "0,1,2,3,4,5,6,7"
485    },
486    {
487        "EventCode": "0x89",
488        "Counter": "0,1,2,3",
489        "UMask": "0x84",
490        "EventName": "BR_MISP_EXEC.TAKEN_INDIRECT_JUMP_NON_CALL_RET",
491        "SampleAfterValue": "200003",
492        "BriefDescription": "Taken speculative and retired mispredicted indirect branches excluding calls and returns.",
493        "CounterHTOff": "0,1,2,3,4,5,6,7"
494    },
495    {
496        "EventCode": "0x89",
497        "Counter": "0,1,2,3",
498        "UMask": "0x88",
499        "EventName": "BR_MISP_EXEC.TAKEN_RETURN_NEAR",
500        "SampleAfterValue": "200003",
501        "BriefDescription": "Taken speculative and retired mispredicted indirect branches with return mnemonic.",
502        "CounterHTOff": "0,1,2,3,4,5,6,7"
503    },
504    {
505        "EventCode": "0x89",
506        "Counter": "0,1,2,3",
507        "UMask": "0xa0",
508        "EventName": "BR_MISP_EXEC.TAKEN_INDIRECT_NEAR_CALL",
509        "SampleAfterValue": "200003",
510        "BriefDescription": "Taken speculative and retired mispredicted indirect calls.",
511        "CounterHTOff": "0,1,2,3,4,5,6,7"
512    },
513    {
514        "EventCode": "0x89",
515        "Counter": "0,1,2,3",
516        "UMask": "0xc1",
517        "EventName": "BR_MISP_EXEC.ALL_CONDITIONAL",
518        "SampleAfterValue": "200003",
519        "BriefDescription": "Speculative and retired mispredicted macro conditional branches.",
520        "CounterHTOff": "0,1,2,3,4,5,6,7"
521    },
522    {
523        "EventCode": "0x89",
524        "Counter": "0,1,2,3",
525        "UMask": "0xc4",
526        "EventName": "BR_MISP_EXEC.ALL_INDIRECT_JUMP_NON_CALL_RET",
527        "SampleAfterValue": "200003",
528        "BriefDescription": "Mispredicted indirect branches excluding calls and returns.",
529        "CounterHTOff": "0,1,2,3,4,5,6,7"
530    },
531    {
532        "PublicDescription": "Counts all near executed branches (not necessarily retired).",
533        "EventCode": "0x89",
534        "Counter": "0,1,2,3",
535        "UMask": "0xff",
536        "EventName": "BR_MISP_EXEC.ALL_BRANCHES",
537        "SampleAfterValue": "200003",
538        "BriefDescription": "Speculative and retired mispredicted macro conditional branches",
539        "CounterHTOff": "0,1,2,3,4,5,6,7"
540    },
541    {
542        "PublicDescription": "Cycles which a uop is dispatched on port 0 in this thread.",
543        "EventCode": "0xA1",
544        "Counter": "0,1,2,3",
545        "UMask": "0x1",
546        "EventName": "UOPS_EXECUTED_PORT.PORT_0",
547        "SampleAfterValue": "2000003",
548        "BriefDescription": "Cycles per thread when uops are executed in port 0",
549        "CounterHTOff": "0,1,2,3,4,5,6,7"
550    },
551    {
552        "PublicDescription": "Cycles per core when uops are exectuted in port 0.",
553        "EventCode": "0xA1",
554        "Counter": "0,1,2,3",
555        "UMask": "0x1",
556        "AnyThread": "1",
557        "EventName": "UOPS_EXECUTED_PORT.PORT_0_CORE",
558        "SampleAfterValue": "2000003",
559        "BriefDescription": "Cycles per core when uops are executed in port 0.",
560        "CounterHTOff": "0,1,2,3,4,5,6,7"
561    },
562    {
563        "EventCode": "0xA1",
564        "Counter": "0,1,2,3",
565        "UMask": "0x1",
566        "EventName": "UOPS_DISPATCHED_PORT.PORT_0",
567        "SampleAfterValue": "2000003",
568        "BriefDescription": "Cycles per thread when uops are executed in port 0.",
569        "CounterHTOff": "0,1,2,3,4,5,6,7"
570    },
571    {
572        "PublicDescription": "Cycles which a uop is dispatched on port 1 in this thread.",
573        "EventCode": "0xA1",
574        "Counter": "0,1,2,3",
575        "UMask": "0x2",
576        "EventName": "UOPS_EXECUTED_PORT.PORT_1",
577        "SampleAfterValue": "2000003",
578        "BriefDescription": "Cycles per thread when uops are executed in port 1",
579        "CounterHTOff": "0,1,2,3,4,5,6,7"
580    },
581    {
582        "PublicDescription": "Cycles per core when uops are exectuted in port 1.",
583        "EventCode": "0xA1",
584        "Counter": "0,1,2,3",
585        "UMask": "0x2",
586        "AnyThread": "1",
587        "EventName": "UOPS_EXECUTED_PORT.PORT_1_CORE",
588        "SampleAfterValue": "2000003",
589        "BriefDescription": "Cycles per core when uops are executed in port 1.",
590        "CounterHTOff": "0,1,2,3,4,5,6,7"
591    },
592    {
593        "EventCode": "0xA1",
594        "Counter": "0,1,2,3",
595        "UMask": "0x2",
596        "EventName": "UOPS_DISPATCHED_PORT.PORT_1",
597        "SampleAfterValue": "2000003",
598        "BriefDescription": "Cycles per thread when uops are executed in port 1.",
599        "CounterHTOff": "0,1,2,3,4,5,6,7"
600    },
601    {
602        "PublicDescription": "Cycles which a uop is dispatched on port 2 in this thread.",
603        "EventCode": "0xA1",
604        "Counter": "0,1,2,3",
605        "UMask": "0x4",
606        "EventName": "UOPS_EXECUTED_PORT.PORT_2",
607        "SampleAfterValue": "2000003",
608        "BriefDescription": "Cycles per thread when uops are executed in port 2",
609        "CounterHTOff": "0,1,2,3,4,5,6,7"
610    },
611    {
612        "EventCode": "0xA1",
613        "Counter": "0,1,2,3",
614        "UMask": "0x4",
615        "AnyThread": "1",
616        "EventName": "UOPS_EXECUTED_PORT.PORT_2_CORE",
617        "SampleAfterValue": "2000003",
618        "BriefDescription": "Cycles per core when uops are dispatched to port 2.",
619        "CounterHTOff": "0,1,2,3,4,5,6,7"
620    },
621    {
622        "EventCode": "0xA1",
623        "Counter": "0,1,2,3",
624        "UMask": "0x4",
625        "EventName": "UOPS_DISPATCHED_PORT.PORT_2",
626        "SampleAfterValue": "2000003",
627        "BriefDescription": "Cycles per thread when uops are executed in port 2.",
628        "CounterHTOff": "0,1,2,3,4,5,6,7"
629    },
630    {
631        "PublicDescription": "Cycles which a uop is dispatched on port 3 in this thread.",
632        "EventCode": "0xA1",
633        "Counter": "0,1,2,3",
634        "UMask": "0x8",
635        "EventName": "UOPS_EXECUTED_PORT.PORT_3",
636        "SampleAfterValue": "2000003",
637        "BriefDescription": "Cycles per thread when uops are executed in port 3",
638        "CounterHTOff": "0,1,2,3,4,5,6,7"
639    },
640    {
641        "EventCode": "0xA1",
642        "Counter": "0,1,2,3",
643        "UMask": "0x8",
644        "AnyThread": "1",
645        "EventName": "UOPS_EXECUTED_PORT.PORT_3_CORE",
646        "SampleAfterValue": "2000003",
647        "BriefDescription": "Cycles per core when uops are dispatched to port 3.",
648        "CounterHTOff": "0,1,2,3,4,5,6,7"
649    },
650    {
651        "EventCode": "0xA1",
652        "Counter": "0,1,2,3",
653        "UMask": "0x8",
654        "EventName": "UOPS_DISPATCHED_PORT.PORT_3",
655        "SampleAfterValue": "2000003",
656        "BriefDescription": "Cycles per thread when uops are executed in port 3.",
657        "CounterHTOff": "0,1,2,3,4,5,6,7"
658    },
659    {
660        "PublicDescription": "Cycles which a uop is dispatched on port 4 in this thread.",
661        "EventCode": "0xA1",
662        "Counter": "0,1,2,3",
663        "UMask": "0x10",
664        "EventName": "UOPS_EXECUTED_PORT.PORT_4",
665        "SampleAfterValue": "2000003",
666        "BriefDescription": "Cycles per thread when uops are executed in port 4",
667        "CounterHTOff": "0,1,2,3,4,5,6,7"
668    },
669    {
670        "PublicDescription": "Cycles per core when uops are exectuted in port 4.",
671        "EventCode": "0xA1",
672        "Counter": "0,1,2,3",
673        "UMask": "0x10",
674        "AnyThread": "1",
675        "EventName": "UOPS_EXECUTED_PORT.PORT_4_CORE",
676        "SampleAfterValue": "2000003",
677        "BriefDescription": "Cycles per core when uops are executed in port 4.",
678        "CounterHTOff": "0,1,2,3,4,5,6,7"
679    },
680    {
681        "EventCode": "0xA1",
682        "Counter": "0,1,2,3",
683        "UMask": "0x10",
684        "EventName": "UOPS_DISPATCHED_PORT.PORT_4",
685        "SampleAfterValue": "2000003",
686        "BriefDescription": "Cycles per thread when uops are executed in port 4.",
687        "CounterHTOff": "0,1,2,3,4,5,6,7"
688    },
689    {
690        "PublicDescription": "Cycles which a uop is dispatched on port 5 in this thread.",
691        "EventCode": "0xA1",
692        "Counter": "0,1,2,3",
693        "UMask": "0x20",
694        "EventName": "UOPS_EXECUTED_PORT.PORT_5",
695        "SampleAfterValue": "2000003",
696        "BriefDescription": "Cycles per thread when uops are executed in port 5",
697        "CounterHTOff": "0,1,2,3,4,5,6,7"
698    },
699    {
700        "PublicDescription": "Cycles per core when uops are exectuted in port 5.",
701        "EventCode": "0xA1",
702        "Counter": "0,1,2,3",
703        "UMask": "0x20",
704        "AnyThread": "1",
705        "EventName": "UOPS_EXECUTED_PORT.PORT_5_CORE",
706        "SampleAfterValue": "2000003",
707        "BriefDescription": "Cycles per core when uops are executed in port 5.",
708        "CounterHTOff": "0,1,2,3,4,5,6,7"
709    },
710    {
711        "EventCode": "0xA1",
712        "Counter": "0,1,2,3",
713        "UMask": "0x20",
714        "EventName": "UOPS_DISPATCHED_PORT.PORT_5",
715        "SampleAfterValue": "2000003",
716        "BriefDescription": "Cycles per thread when uops are executed in port 5.",
717        "CounterHTOff": "0,1,2,3,4,5,6,7"
718    },
719    {
720        "PublicDescription": "Cycles which a uop is dispatched on port 6 in this thread.",
721        "EventCode": "0xA1",
722        "Counter": "0,1,2,3",
723        "UMask": "0x40",
724        "EventName": "UOPS_EXECUTED_PORT.PORT_6",
725        "SampleAfterValue": "2000003",
726        "BriefDescription": "Cycles per thread when uops are executed in port 6",
727        "CounterHTOff": "0,1,2,3,4,5,6,7"
728    },
729    {
730        "PublicDescription": "Cycles per core when uops are exectuted in port 6.",
731        "EventCode": "0xA1",
732        "Counter": "0,1,2,3",
733        "UMask": "0x40",
734        "AnyThread": "1",
735        "EventName": "UOPS_EXECUTED_PORT.PORT_6_CORE",
736        "SampleAfterValue": "2000003",
737        "BriefDescription": "Cycles per core when uops are executed in port 6.",
738        "CounterHTOff": "0,1,2,3,4,5,6,7"
739    },
740    {
741        "EventCode": "0xA1",
742        "Counter": "0,1,2,3",
743        "UMask": "0x40",
744        "EventName": "UOPS_DISPATCHED_PORT.PORT_6",
745        "SampleAfterValue": "2000003",
746        "BriefDescription": "Cycles per thread when uops are executed in port 6.",
747        "CounterHTOff": "0,1,2,3,4,5,6,7"
748    },
749    {
750        "PublicDescription": "Cycles which a uop is dispatched on port 7 in this thread.",
751        "EventCode": "0xA1",
752        "Counter": "0,1,2,3",
753        "UMask": "0x80",
754        "EventName": "UOPS_EXECUTED_PORT.PORT_7",
755        "SampleAfterValue": "2000003",
756        "BriefDescription": "Cycles per thread when uops are executed in port 7",
757        "CounterHTOff": "0,1,2,3,4,5,6,7"
758    },
759    {
760        "EventCode": "0xA1",
761        "Counter": "0,1,2,3",
762        "UMask": "0x80",
763        "AnyThread": "1",
764        "EventName": "UOPS_EXECUTED_PORT.PORT_7_CORE",
765        "SampleAfterValue": "2000003",
766        "BriefDescription": "Cycles per core when uops are dispatched to port 7.",
767        "CounterHTOff": "0,1,2,3,4,5,6,7"
768    },
769    {
770        "EventCode": "0xA1",
771        "Counter": "0,1,2,3",
772        "UMask": "0x80",
773        "EventName": "UOPS_DISPATCHED_PORT.PORT_7",
774        "SampleAfterValue": "2000003",
775        "BriefDescription": "Cycles per thread when uops are executed in port 7.",
776        "CounterHTOff": "0,1,2,3,4,5,6,7"
777    },
778    {
779        "PublicDescription": "Cycles allocation is stalled due to resource related reason.",
780        "EventCode": "0xA2",
781        "Counter": "0,1,2,3",
782        "UMask": "0x1",
783        "Errata": "HSD135",
784        "EventName": "RESOURCE_STALLS.ANY",
785        "SampleAfterValue": "2000003",
786        "BriefDescription": "Resource-related stall cycles",
787        "CounterHTOff": "0,1,2,3,4,5,6,7"
788    },
789    {
790        "EventCode": "0xA2",
791        "Counter": "0,1,2,3",
792        "UMask": "0x4",
793        "EventName": "RESOURCE_STALLS.RS",
794        "SampleAfterValue": "2000003",
795        "BriefDescription": "Cycles stalled due to no eligible RS entry available.",
796        "CounterHTOff": "0,1,2,3,4,5,6,7"
797    },
798    {
799        "PublicDescription": "This event counts cycles during which no instructions were allocated because no Store Buffers (SB) were available.",
800        "EventCode": "0xA2",
801        "Counter": "0,1,2,3",
802        "UMask": "0x8",
803        "EventName": "RESOURCE_STALLS.SB",
804        "SampleAfterValue": "2000003",
805        "BriefDescription": "Cycles stalled due to no store buffers available. (not including draining form sync).",
806        "CounterHTOff": "0,1,2,3,4,5,6,7"
807    },
808    {
809        "EventCode": "0xA2",
810        "Counter": "0,1,2,3",
811        "UMask": "0x10",
812        "EventName": "RESOURCE_STALLS.ROB",
813        "SampleAfterValue": "2000003",
814        "BriefDescription": "Cycles stalled due to re-order buffer full.",
815        "CounterHTOff": "0,1,2,3,4,5,6,7"
816    },
817    {
818        "PublicDescription": "Cycles with pending L2 miss loads. Set Cmask=2 to count cycle.",
819        "EventCode": "0xA3",
820        "Counter": "0,1,2,3",
821        "UMask": "0x1",
822        "Errata": "HSD78",
823        "EventName": "CYCLE_ACTIVITY.CYCLES_L2_PENDING",
824        "SampleAfterValue": "2000003",
825        "BriefDescription": "Cycles with pending L2 cache miss loads.",
826        "CounterMask": "1",
827        "CounterHTOff": "0,1,2,3,4,5,6,7"
828    },
829    {
830        "PublicDescription": "Cycles with pending memory loads. Set Cmask=2 to count cycle.",
831        "EventCode": "0xA3",
832        "Counter": "0,1,2,3",
833        "UMask": "0x2",
834        "EventName": "CYCLE_ACTIVITY.CYCLES_LDM_PENDING",
835        "SampleAfterValue": "2000003",
836        "BriefDescription": "Cycles with pending memory loads.",
837        "CounterMask": "2",
838        "CounterHTOff": "0,1,2,3"
839    },
840    {
841        "PublicDescription": "This event counts cycles during which no instructions were executed in the execution stage of the pipeline.",
842        "EventCode": "0xA3",
843        "Counter": "0,1,2,3",
844        "UMask": "0x4",
845        "EventName": "CYCLE_ACTIVITY.CYCLES_NO_EXECUTE",
846        "SampleAfterValue": "2000003",
847        "BriefDescription": "This event increments by 1 for every cycle where there was no execute for this thread.",
848        "CounterMask": "4",
849        "CounterHTOff": "0,1,2,3"
850    },
851    {
852        "PublicDescription": "Number of loads missed L2.",
853        "EventCode": "0xA3",
854        "Counter": "0,1,2,3",
855        "UMask": "0x5",
856        "EventName": "CYCLE_ACTIVITY.STALLS_L2_PENDING",
857        "SampleAfterValue": "2000003",
858        "BriefDescription": "Execution stalls due to L2 cache misses.",
859        "CounterMask": "5",
860        "CounterHTOff": "0,1,2,3"
861    },
862    {
863        "PublicDescription": "This event counts cycles during which no instructions were executed in the execution stage of the pipeline and there were memory instructions pending (waiting for data).",
864        "EventCode": "0xA3",
865        "Counter": "0,1,2,3",
866        "UMask": "0x6",
867        "EventName": "CYCLE_ACTIVITY.STALLS_LDM_PENDING",
868        "SampleAfterValue": "2000003",
869        "BriefDescription": "Execution stalls due to memory subsystem.",
870        "CounterMask": "6",
871        "CounterHTOff": "0,1,2,3"
872    },
873    {
874        "PublicDescription": "Cycles with pending L1 data cache miss loads. Set Cmask=8 to count cycle.",
875        "EventCode": "0xA3",
876        "Counter": "2",
877        "UMask": "0x8",
878        "EventName": "CYCLE_ACTIVITY.CYCLES_L1D_PENDING",
879        "SampleAfterValue": "2000003",
880        "BriefDescription": "Cycles with pending L1 cache miss loads.",
881        "CounterMask": "8",
882        "CounterHTOff": "2"
883    },
884    {
885        "PublicDescription": "Execution stalls due to L1 data cache miss loads. Set Cmask=0CH.",
886        "EventCode": "0xA3",
887        "Counter": "2",
888        "UMask": "0xc",
889        "EventName": "CYCLE_ACTIVITY.STALLS_L1D_PENDING",
890        "SampleAfterValue": "2000003",
891        "BriefDescription": "Execution stalls due to L1 data cache misses",
892        "CounterMask": "12",
893        "CounterHTOff": "2"
894    },
895    {
896        "PublicDescription": "Number of uops delivered by the LSD.",
897        "EventCode": "0xa8",
898        "Counter": "0,1,2,3",
899        "UMask": "0x1",
900        "EventName": "LSD.UOPS",
901        "SampleAfterValue": "2000003",
902        "BriefDescription": "Number of Uops delivered by the LSD.",
903        "CounterHTOff": "0,1,2,3,4,5,6,7"
904    },
905    {
906        "EventCode": "0xA8",
907        "Counter": "0,1,2,3",
908        "UMask": "0x1",
909        "EventName": "LSD.CYCLES_ACTIVE",
910        "SampleAfterValue": "2000003",
911        "BriefDescription": "Cycles Uops delivered by the LSD, but didn't come from the decoder.",
912        "CounterMask": "1",
913        "CounterHTOff": "0,1,2,3,4,5,6,7"
914    },
915    {
916        "EventCode": "0xA8",
917        "Counter": "0,1,2,3",
918        "UMask": "0x1",
919        "EventName": "LSD.CYCLES_4_UOPS",
920        "SampleAfterValue": "2000003",
921        "BriefDescription": "Cycles 4 Uops delivered by the LSD, but didn't come from the decoder.",
922        "CounterMask": "4",
923        "CounterHTOff": "0,1,2,3,4,5,6,7"
924    },
925    {
926        "EventCode": "0xB1",
927        "Invert": "1",
928        "Counter": "0,1,2,3",
929        "UMask": "0x1",
930        "Errata": "HSD144, HSD30, HSM31",
931        "EventName": "UOPS_EXECUTED.STALL_CYCLES",
932        "SampleAfterValue": "2000003",
933        "BriefDescription": "Counts number of cycles no uops were dispatched to be executed on this thread.",
934        "CounterMask": "1",
935        "CounterHTOff": "0,1,2,3"
936    },
937    {
938        "PublicDescription": "This events counts the cycles where at least one uop was executed. It is counted per thread.",
939        "EventCode": "0xB1",
940        "Counter": "0,1,2,3",
941        "UMask": "0x1",
942        "Errata": "HSD144, HSD30, HSM31",
943        "EventName": "UOPS_EXECUTED.CYCLES_GE_1_UOP_EXEC",
944        "SampleAfterValue": "2000003",
945        "BriefDescription": "Cycles where at least 1 uop was executed per-thread",
946        "CounterMask": "1",
947        "CounterHTOff": "0,1,2,3"
948    },
949    {
950        "PublicDescription": "This events counts the cycles where at least two uop were executed. It is counted per thread.",
951        "EventCode": "0xB1",
952        "Counter": "0,1,2,3",
953        "UMask": "0x1",
954        "Errata": "HSD144, HSD30, HSM31",
955        "EventName": "UOPS_EXECUTED.CYCLES_GE_2_UOPS_EXEC",
956        "SampleAfterValue": "2000003",
957        "BriefDescription": "Cycles where at least 2 uops were executed per-thread",
958        "CounterMask": "2",
959        "CounterHTOff": "0,1,2,3"
960    },
961    {
962        "PublicDescription": "This events counts the cycles where at least three uop were executed. It is counted per thread.",
963        "EventCode": "0xB1",
964        "Counter": "0,1,2,3",
965        "UMask": "0x1",
966        "Errata": "HSD144, HSD30, HSM31",
967        "EventName": "UOPS_EXECUTED.CYCLES_GE_3_UOPS_EXEC",
968        "SampleAfterValue": "2000003",
969        "BriefDescription": "Cycles where at least 3 uops were executed per-thread",
970        "CounterMask": "3",
971        "CounterHTOff": "0,1,2,3"
972    },
973    {
974        "EventCode": "0xB1",
975        "Counter": "0,1,2,3",
976        "UMask": "0x1",
977        "Errata": "HSD144, HSD30, HSM31",
978        "EventName": "UOPS_EXECUTED.CYCLES_GE_4_UOPS_EXEC",
979        "SampleAfterValue": "2000003",
980        "BriefDescription": "Cycles where at least 4 uops were executed per-thread.",
981        "CounterMask": "4",
982        "CounterHTOff": "0,1,2,3"
983    },
984    {
985        "PublicDescription": "Counts total number of uops to be executed per-core each cycle.",
986        "EventCode": "0xB1",
987        "Counter": "0,1,2,3",
988        "UMask": "0x2",
989        "Errata": "HSD30, HSM31",
990        "EventName": "UOPS_EXECUTED.CORE",
991        "SampleAfterValue": "2000003",
992        "BriefDescription": "Number of uops executed on the core.",
993        "CounterHTOff": "0,1,2,3,4,5,6,7"
994    },
995    {
996        "EventCode": "0xb1",
997        "Counter": "0,1,2,3",
998        "UMask": "0x2",
999        "Errata": "HSD30, HSM31",
1000        "EventName": "UOPS_EXECUTED.CORE_CYCLES_GE_1",
1001        "SampleAfterValue": "2000003",
1002        "BriefDescription": "Cycles at least 1 micro-op is executed from any thread on physical core.",
1003        "CounterMask": "1",
1004        "CounterHTOff": "0,1,2,3,4,5,6,7"
1005    },
1006    {
1007        "EventCode": "0xb1",
1008        "Counter": "0,1,2,3",
1009        "UMask": "0x2",
1010        "Errata": "HSD30, HSM31",
1011        "EventName": "UOPS_EXECUTED.CORE_CYCLES_GE_2",
1012        "SampleAfterValue": "2000003",
1013        "BriefDescription": "Cycles at least 2 micro-op is executed from any thread on physical core.",
1014        "CounterMask": "2",
1015        "CounterHTOff": "0,1,2,3,4,5,6,7"
1016    },
1017    {
1018        "EventCode": "0xb1",
1019        "Counter": "0,1,2,3",
1020        "UMask": "0x2",
1021        "Errata": "HSD30, HSM31",
1022        "EventName": "UOPS_EXECUTED.CORE_CYCLES_GE_3",
1023        "SampleAfterValue": "2000003",
1024        "BriefDescription": "Cycles at least 3 micro-op is executed from any thread on physical core.",
1025        "CounterMask": "3",
1026        "CounterHTOff": "0,1,2,3,4,5,6,7"
1027    },
1028    {
1029        "EventCode": "0xb1",
1030        "Counter": "0,1,2,3",
1031        "UMask": "0x2",
1032        "Errata": "HSD30, HSM31",
1033        "EventName": "UOPS_EXECUTED.CORE_CYCLES_GE_4",
1034        "SampleAfterValue": "2000003",
1035        "BriefDescription": "Cycles at least 4 micro-op is executed from any thread on physical core.",
1036        "CounterMask": "4",
1037        "CounterHTOff": "0,1,2,3,4,5,6,7"
1038    },
1039    {
1040        "EventCode": "0xb1",
1041        "Invert": "1",
1042        "Counter": "0,1,2,3",
1043        "UMask": "0x2",
1044        "Errata": "HSD30, HSM31",
1045        "EventName": "UOPS_EXECUTED.CORE_CYCLES_NONE",
1046        "SampleAfterValue": "2000003",
1047        "BriefDescription": "Cycles with no micro-ops executed from any thread on physical core.",
1048        "CounterHTOff": "0,1,2,3,4,5,6,7"
1049    },
1050    {
1051        "PublicDescription": "Number of instructions at retirement.",
1052        "EventCode": "0xC0",
1053        "Counter": "0,1,2,3",
1054        "UMask": "0x0",
1055        "Errata": "HSD11, HSD140",
1056        "EventName": "INST_RETIRED.ANY_P",
1057        "SampleAfterValue": "2000003",
1058        "BriefDescription": "Number of instructions retired. General Counter   - architectural event",
1059        "CounterHTOff": "0,1,2,3,4,5,6,7"
1060    },
1061    {
1062        "PEBS": "2",
1063        "PublicDescription": "Precise instruction retired event with HW to reduce effect of PEBS shadow in IP distribution.",
1064        "EventCode": "0xC0",
1065        "Counter": "1",
1066        "UMask": "0x1",
1067        "Errata": "HSD140",
1068        "EventName": "INST_RETIRED.PREC_DIST",
1069        "SampleAfterValue": "2000003",
1070        "BriefDescription": "Precise instruction retired event with HW to reduce effect of PEBS shadow in IP distribution",
1071        "CounterHTOff": "1"
1072    },
1073    {
1074        "PublicDescription": "This is a non-precise version (that is, does not use PEBS) of the event that counts FP operations retired. For X87 FP operations that have no exceptions counting also includes flows that have several X87, or flows that use X87 uops in the exception handling.",
1075        "EventCode": "0xC0",
1076        "Counter": "0,1,2,3",
1077        "UMask": "0x2",
1078        "EventName": "INST_RETIRED.X87",
1079        "SampleAfterValue": "2000003",
1080        "BriefDescription": "FP operations retired. X87 FP operations that have no exceptions: Counts also flows that have several X87 or flows that use X87 uops in the exception handling.",
1081        "CounterHTOff": "0,1,2,3,4,5,6,7"
1082    },
1083    {
1084        "PublicDescription": "Number of microcode assists invoked by HW upon uop writeback.",
1085        "EventCode": "0xC1",
1086        "Counter": "0,1,2,3",
1087        "UMask": "0x40",
1088        "EventName": "OTHER_ASSISTS.ANY_WB_ASSIST",
1089        "SampleAfterValue": "100003",
1090        "BriefDescription": "Number of times any microcode assist is invoked by HW upon uop writeback.",
1091        "CounterHTOff": "0,1,2,3,4,5,6,7"
1092    },
1093    {
1094        "PEBS": "1",
1095        "EventCode": "0xC2",
1096        "Counter": "0,1,2,3",
1097        "UMask": "0x1",
1098        "EventName": "UOPS_RETIRED.ALL",
1099        "SampleAfterValue": "2000003",
1100        "BriefDescription": "Actually retired uops.",
1101        "CounterHTOff": "0,1,2,3,4,5,6,7",
1102        "Data_LA": "1"
1103    },
1104    {
1105        "EventCode": "0xC2",
1106        "Invert": "1",
1107        "Counter": "0,1,2,3",
1108        "UMask": "0x1",
1109        "EventName": "UOPS_RETIRED.STALL_CYCLES",
1110        "SampleAfterValue": "2000003",
1111        "BriefDescription": "Cycles without actually retired uops.",
1112        "CounterMask": "1",
1113        "CounterHTOff": "0,1,2,3"
1114    },
1115    {
1116        "EventCode": "0xC2",
1117        "Invert": "1",
1118        "Counter": "0,1,2,3",
1119        "UMask": "0x1",
1120        "EventName": "UOPS_RETIRED.TOTAL_CYCLES",
1121        "SampleAfterValue": "2000003",
1122        "BriefDescription": "Cycles with less than 10 actually retired uops.",
1123        "CounterMask": "10",
1124        "CounterHTOff": "0,1,2,3"
1125    },
1126    {
1127        "EventCode": "0xC2",
1128        "Invert": "1",
1129        "Counter": "0,1,2,3",
1130        "UMask": "0x1",
1131        "AnyThread": "1",
1132        "EventName": "UOPS_RETIRED.CORE_STALL_CYCLES",
1133        "SampleAfterValue": "2000003",
1134        "BriefDescription": "Cycles without actually retired uops.",
1135        "CounterMask": "1",
1136        "CounterHTOff": "0,1,2,3"
1137    },
1138    {
1139        "PEBS": "1",
1140        "EventCode": "0xC2",
1141        "Counter": "0,1,2,3",
1142        "UMask": "0x2",
1143        "EventName": "UOPS_RETIRED.RETIRE_SLOTS",
1144        "SampleAfterValue": "2000003",
1145        "BriefDescription": "Retirement slots used.",
1146        "CounterHTOff": "0,1,2,3,4,5,6,7"
1147    },
1148    {
1149        "EventCode": "0xC3",
1150        "Counter": "0,1,2,3",
1151        "UMask": "0x1",
1152        "EventName": "MACHINE_CLEARS.CYCLES",
1153        "SampleAfterValue": "2000003",
1154        "BriefDescription": "Cycles there was a Nuke. Account for both thread-specific and All Thread Nukes.",
1155        "CounterHTOff": "0,1,2,3,4,5,6,7"
1156    },
1157    {
1158        "EventCode": "0xC3",
1159        "Counter": "0,1,2,3",
1160        "UMask": "0x1",
1161        "EdgeDetect": "1",
1162        "EventName": "MACHINE_CLEARS.COUNT",
1163        "SampleAfterValue": "100003",
1164        "BriefDescription": "Number of machine clears (nukes) of any type.",
1165        "CounterMask": "1",
1166        "CounterHTOff": "0,1,2,3,4,5,6,7"
1167    },
1168    {
1169        "PublicDescription": "This event is incremented when self-modifying code (SMC) is detected, which causes a machine clear.  Machine clears can have a significant performance impact if they are happening frequently.",
1170        "EventCode": "0xC3",
1171        "Counter": "0,1,2,3",
1172        "UMask": "0x4",
1173        "EventName": "MACHINE_CLEARS.SMC",
1174        "SampleAfterValue": "100003",
1175        "BriefDescription": "Self-modifying code (SMC) detected.",
1176        "CounterHTOff": "0,1,2,3,4,5,6,7"
1177    },
1178    {
1179        "EventCode": "0xC3",
1180        "Counter": "0,1,2,3",
1181        "UMask": "0x20",
1182        "EventName": "MACHINE_CLEARS.MASKMOV",
1183        "SampleAfterValue": "100003",
1184        "BriefDescription": "This event counts the number of executed Intel AVX masked load operations that refer to an illegal address range with the mask bits set to 0.",
1185        "CounterHTOff": "0,1,2,3,4,5,6,7"
1186    },
1187    {
1188        "PublicDescription": "Branch instructions at retirement.",
1189        "EventCode": "0xC4",
1190        "Counter": "0,1,2,3",
1191        "UMask": "0x0",
1192        "EventName": "BR_INST_RETIRED.ALL_BRANCHES",
1193        "SampleAfterValue": "400009",
1194        "BriefDescription": "All (macro) branch instructions retired.",
1195        "CounterHTOff": "0,1,2,3,4,5,6,7"
1196    },
1197    {
1198        "PEBS": "1",
1199        "EventCode": "0xC4",
1200        "Counter": "0,1,2,3",
1201        "UMask": "0x1",
1202        "EventName": "BR_INST_RETIRED.CONDITIONAL",
1203        "SampleAfterValue": "400009",
1204        "BriefDescription": "Conditional branch instructions retired.",
1205        "CounterHTOff": "0,1,2,3,4,5,6,7"
1206    },
1207    {
1208        "PEBS": "1",
1209        "EventCode": "0xC4",
1210        "Counter": "0,1,2,3",
1211        "UMask": "0x2",
1212        "EventName": "BR_INST_RETIRED.NEAR_CALL",
1213        "SampleAfterValue": "100003",
1214        "BriefDescription": "Direct and indirect near call instructions retired.",
1215        "CounterHTOff": "0,1,2,3,4,5,6,7"
1216    },
1217    {
1218        "PEBS": "1",
1219        "EventCode": "0xC4",
1220        "Counter": "0,1,2,3",
1221        "UMask": "0x2",
1222        "EventName": "BR_INST_RETIRED.NEAR_CALL_R3",
1223        "SampleAfterValue": "100003",
1224        "BriefDescription": "Direct and indirect macro near call instructions retired (captured in ring 3).",
1225        "CounterHTOff": "0,1,2,3,4,5,6,7"
1226    },
1227    {
1228        "PEBS": "2",
1229        "EventCode": "0xC4",
1230        "Counter": "0,1,2,3",
1231        "UMask": "0x4",
1232        "EventName": "BR_INST_RETIRED.ALL_BRANCHES_PEBS",
1233        "SampleAfterValue": "400009",
1234        "BriefDescription": "All (macro) branch instructions retired.",
1235        "CounterHTOff": "0,1,2,3"
1236    },
1237    {
1238        "PEBS": "1",
1239        "EventCode": "0xC4",
1240        "Counter": "0,1,2,3",
1241        "UMask": "0x8",
1242        "EventName": "BR_INST_RETIRED.NEAR_RETURN",
1243        "SampleAfterValue": "100003",
1244        "BriefDescription": "Return instructions retired.",
1245        "CounterHTOff": "0,1,2,3,4,5,6,7"
1246    },
1247    {
1248        "PublicDescription": "Counts the number of not taken branch instructions retired.",
1249        "EventCode": "0xC4",
1250        "Counter": "0,1,2,3",
1251        "UMask": "0x10",
1252        "EventName": "BR_INST_RETIRED.NOT_TAKEN",
1253        "SampleAfterValue": "400009",
1254        "BriefDescription": "Not taken branch instructions retired.",
1255        "CounterHTOff": "0,1,2,3,4,5,6,7"
1256    },
1257    {
1258        "PEBS": "1",
1259        "EventCode": "0xC4",
1260        "Counter": "0,1,2,3",
1261        "UMask": "0x20",
1262        "EventName": "BR_INST_RETIRED.NEAR_TAKEN",
1263        "SampleAfterValue": "400009",
1264        "BriefDescription": "Taken branch instructions retired.",
1265        "CounterHTOff": "0,1,2,3,4,5,6,7"
1266    },
1267    {
1268        "PublicDescription": "Number of far branches retired.",
1269        "EventCode": "0xC4",
1270        "Counter": "0,1,2,3",
1271        "UMask": "0x40",
1272        "EventName": "BR_INST_RETIRED.FAR_BRANCH",
1273        "SampleAfterValue": "100003",
1274        "BriefDescription": "Far branch instructions retired.",
1275        "CounterHTOff": "0,1,2,3,4,5,6,7"
1276    },
1277    {
1278        "PublicDescription": "Mispredicted branch instructions at retirement.",
1279        "EventCode": "0xC5",
1280        "Counter": "0,1,2,3",
1281        "UMask": "0x0",
1282        "EventName": "BR_MISP_RETIRED.ALL_BRANCHES",
1283        "SampleAfterValue": "400009",
1284        "BriefDescription": "All mispredicted macro branch instructions retired.",
1285        "CounterHTOff": "0,1,2,3,4,5,6,7"
1286    },
1287    {
1288        "PEBS": "1",
1289        "EventCode": "0xC5",
1290        "Counter": "0,1,2,3",
1291        "UMask": "0x1",
1292        "EventName": "BR_MISP_RETIRED.CONDITIONAL",
1293        "SampleAfterValue": "400009",
1294        "BriefDescription": "Mispredicted conditional branch instructions retired.",
1295        "CounterHTOff": "0,1,2,3,4,5,6,7"
1296    },
1297    {
1298        "PEBS": "2",
1299        "PublicDescription": "This event counts all mispredicted branch instructions retired. This is a precise event.",
1300        "EventCode": "0xC5",
1301        "Counter": "0,1,2,3",
1302        "UMask": "0x4",
1303        "EventName": "BR_MISP_RETIRED.ALL_BRANCHES_PEBS",
1304        "SampleAfterValue": "400009",
1305        "BriefDescription": "Mispredicted macro branch instructions retired.",
1306        "CounterHTOff": "0,1,2,3"
1307    },
1308    {
1309        "PEBS": "1",
1310        "EventCode": "0xC5",
1311        "Counter": "0,1,2,3",
1312        "UMask": "0x20",
1313        "EventName": "BR_MISP_RETIRED.NEAR_TAKEN",
1314        "SampleAfterValue": "400009",
1315        "BriefDescription": "number of near branch instructions retired that were mispredicted and taken.",
1316        "CounterHTOff": "0,1,2,3,4,5,6,7"
1317    },
1318    {
1319        "PublicDescription": "Count cases of saving new LBR records by hardware.",
1320        "EventCode": "0xCC",
1321        "Counter": "0,1,2,3",
1322        "UMask": "0x20",
1323        "EventName": "ROB_MISC_EVENTS.LBR_INSERTS",
1324        "SampleAfterValue": "2000003",
1325        "BriefDescription": "Count cases of saving new LBR",
1326        "CounterHTOff": "0,1,2,3,4,5,6,7"
1327    },
1328    {
1329        "PublicDescription": "Number of front end re-steers due to BPU misprediction.",
1330        "EventCode": "0xe6",
1331        "Counter": "0,1,2,3",
1332        "UMask": "0x1f",
1333        "EventName": "BACLEARS.ANY",
1334        "SampleAfterValue": "100003",
1335        "BriefDescription": "Counts the total number when the front end is resteered, mainly when the BPU cannot provide a correct prediction and this is corrected by other branch handling mechanisms at the front end.",
1336        "CounterHTOff": "0,1,2,3,4,5,6,7"
1337    }
1338]