1[
2    {
3        "BriefDescription": "Cycles when divide unit is busy executing divide or square root operations. Accounts for integer and floating-point operations.",
4        "CounterMask": "1",
5        "EventCode": "0x14",
6        "EventName": "ARITH.DIVIDER_ACTIVE",
7        "SampleAfterValue": "2000003",
8        "UMask": "0x1"
9    },
10    {
11        "BriefDescription": "All (macro) branch instructions retired.",
12        "Errata": "SKL091",
13        "EventCode": "0xC4",
14        "EventName": "BR_INST_RETIRED.ALL_BRANCHES",
15        "PublicDescription": "Counts all (macro) branch instructions retired.",
16        "SampleAfterValue": "400009"
17    },
18    {
19        "BriefDescription": "All (macro) branch instructions retired.",
20        "Errata": "SKL091",
21        "EventCode": "0xC4",
22        "EventName": "BR_INST_RETIRED.ALL_BRANCHES_PEBS",
23        "PEBS": "2",
24        "PublicDescription": "This is a precise version of BR_INST_RETIRED.ALL_BRANCHES that counts all (macro) branch instructions retired.",
25        "SampleAfterValue": "400009",
26        "UMask": "0x4"
27    },
28    {
29        "BriefDescription": "Conditional branch instructions retired.",
30        "Errata": "SKL091",
31        "EventCode": "0xC4",
32        "EventName": "BR_INST_RETIRED.CONDITIONAL",
33        "PEBS": "1",
34        "PublicDescription": "This event counts conditional branch instructions retired.",
35        "SampleAfterValue": "400009",
36        "UMask": "0x1"
37    },
38    {
39        "BriefDescription": "Not taken branch instructions retired.",
40        "Errata": "SKL091",
41        "EventCode": "0xc4",
42        "EventName": "BR_INST_RETIRED.COND_NTAKEN",
43        "PublicDescription": "This event counts not taken branch instructions retired.",
44        "SampleAfterValue": "400009",
45        "UMask": "0x10"
46    },
47    {
48        "BriefDescription": "Far branch instructions retired.",
49        "Errata": "SKL091",
50        "EventCode": "0xC4",
51        "EventName": "BR_INST_RETIRED.FAR_BRANCH",
52        "PEBS": "1",
53        "PublicDescription": "This event counts far branch instructions retired.",
54        "SampleAfterValue": "100007",
55        "UMask": "0x40"
56    },
57    {
58        "BriefDescription": "Direct and indirect near call instructions retired.",
59        "Errata": "SKL091",
60        "EventCode": "0xC4",
61        "EventName": "BR_INST_RETIRED.NEAR_CALL",
62        "PEBS": "1",
63        "PublicDescription": "This event counts both direct and indirect near call instructions retired.",
64        "SampleAfterValue": "100007",
65        "UMask": "0x2"
66    },
67    {
68        "BriefDescription": "Return instructions retired.",
69        "Errata": "SKL091",
70        "EventCode": "0xC4",
71        "EventName": "BR_INST_RETIRED.NEAR_RETURN",
72        "PEBS": "1",
73        "PublicDescription": "This event counts return instructions retired.",
74        "SampleAfterValue": "100007",
75        "UMask": "0x8"
76    },
77    {
78        "BriefDescription": "Taken branch instructions retired.",
79        "Errata": "SKL091",
80        "EventCode": "0xC4",
81        "EventName": "BR_INST_RETIRED.NEAR_TAKEN",
82        "PEBS": "1",
83        "PublicDescription": "This event counts taken branch instructions retired.",
84        "SampleAfterValue": "400009",
85        "UMask": "0x20"
86    },
87    {
88        "BriefDescription": "Not taken branch instructions retired.",
89        "Errata": "SKL091",
90        "EventCode": "0xC4",
91        "EventName": "BR_INST_RETIRED.NOT_TAKEN",
92        "PublicDescription": "This event counts not taken branch instructions retired.",
93        "SampleAfterValue": "400009",
94        "UMask": "0x10"
95    },
96    {
97        "BriefDescription": "All mispredicted macro branch instructions retired.",
98        "EventCode": "0xC5",
99        "EventName": "BR_MISP_RETIRED.ALL_BRANCHES",
100        "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.",
101        "SampleAfterValue": "400009"
102    },
103    {
104        "BriefDescription": "Mispredicted macro branch instructions retired.",
105        "EventCode": "0xC5",
106        "EventName": "BR_MISP_RETIRED.ALL_BRANCHES_PEBS",
107        "PEBS": "2",
108        "PublicDescription": "This is a precise version of BR_MISP_RETIRED.ALL_BRANCHES that counts all mispredicted macro branch instructions retired.",
109        "SampleAfterValue": "400009",
110        "UMask": "0x4"
111    },
112    {
113        "BriefDescription": "Mispredicted conditional branch instructions retired.",
114        "EventCode": "0xC5",
115        "EventName": "BR_MISP_RETIRED.CONDITIONAL",
116        "PEBS": "1",
117        "PublicDescription": "This event counts mispredicted conditional branch instructions retired.",
118        "SampleAfterValue": "400009",
119        "UMask": "0x1"
120    },
121    {
122        "BriefDescription": "Mispredicted direct and indirect near call instructions retired.",
123        "EventCode": "0xC5",
124        "EventName": "BR_MISP_RETIRED.NEAR_CALL",
125        "PEBS": "1",
126        "PublicDescription": "Counts both taken and not taken retired mispredicted direct and indirect near calls, including both register and memory indirect.",
127        "SampleAfterValue": "400009",
128        "UMask": "0x2"
129    },
130    {
131        "BriefDescription": "Number of near branch instructions retired that were mispredicted and taken.",
132        "EventCode": "0xC5",
133        "EventName": "BR_MISP_RETIRED.NEAR_TAKEN",
134        "PEBS": "1",
135        "SampleAfterValue": "400009",
136        "UMask": "0x20"
137    },
138    {
139        "BriefDescription": "This event counts the number of mispredicted ret instructions retired. Non PEBS",
140        "EventCode": "0xC5",
141        "EventName": "BR_MISP_RETIRED.RET",
142        "PEBS": "1",
143        "PublicDescription": "This is a non-precise version (that is, does not use PEBS) of the event that counts mispredicted return instructions retired.",
144        "SampleAfterValue": "100007",
145        "UMask": "0x8"
146    },
147    {
148        "BriefDescription": "Core crystal clock cycles when this thread is unhalted and the other thread is halted.",
149        "EventCode": "0x3C",
150        "EventName": "CPU_CLK_THREAD_UNHALTED.ONE_THREAD_ACTIVE",
151        "SampleAfterValue": "25003",
152        "UMask": "0x2"
153    },
154    {
155        "BriefDescription": "Core crystal clock cycles when the thread is unhalted.",
156        "EventCode": "0x3C",
157        "EventName": "CPU_CLK_THREAD_UNHALTED.REF_XCLK",
158        "SampleAfterValue": "25003",
159        "UMask": "0x1"
160    },
161    {
162        "AnyThread": "1",
163        "BriefDescription": "Core crystal clock cycles when at least one thread on the physical core is unhalted.",
164        "EventCode": "0x3C",
165        "EventName": "CPU_CLK_THREAD_UNHALTED.REF_XCLK_ANY",
166        "SampleAfterValue": "25003",
167        "UMask": "0x1"
168    },
169    {
170        "BriefDescription": "Core crystal clock cycles when this thread is unhalted and the other thread is halted.",
171        "EventCode": "0x3C",
172        "EventName": "CPU_CLK_UNHALTED.ONE_THREAD_ACTIVE",
173        "SampleAfterValue": "25003",
174        "UMask": "0x2"
175    },
176    {
177        "BriefDescription": "Reference cycles when the core is not in halt state.",
178        "EventName": "CPU_CLK_UNHALTED.REF_TSC",
179        "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. This event has a constant ratio with the CPU_CLK_UNHALTED.REF_XCLK event. It is counted on a dedicated fixed counter, leaving the four (eight when Hyperthreading is disabled) programmable counters available for other events. 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.",
180        "SampleAfterValue": "2000003",
181        "UMask": "0x3"
182    },
183    {
184        "BriefDescription": "Core crystal clock cycles when the thread is unhalted.",
185        "EventCode": "0x3C",
186        "EventName": "CPU_CLK_UNHALTED.REF_XCLK",
187        "SampleAfterValue": "25003",
188        "UMask": "0x1"
189    },
190    {
191        "AnyThread": "1",
192        "BriefDescription": "Core crystal clock cycles when at least one thread on the physical core is unhalted.",
193        "EventCode": "0x3C",
194        "EventName": "CPU_CLK_UNHALTED.REF_XCLK_ANY",
195        "SampleAfterValue": "25003",
196        "UMask": "0x1"
197    },
198    {
199        "BriefDescription": "Counts when there is a transition from ring 1, 2 or 3 to ring 0.",
200        "CounterMask": "1",
201        "EdgeDetect": "1",
202        "EventCode": "0x3C",
203        "EventName": "CPU_CLK_UNHALTED.RING0_TRANS",
204        "PublicDescription": "Counts when the Current Privilege Level (CPL) transitions from ring 1, 2 or 3 to ring 0 (Kernel).",
205        "SampleAfterValue": "100007"
206    },
207    {
208        "BriefDescription": "Core cycles when the thread is not in halt state",
209        "EventName": "CPU_CLK_UNHALTED.THREAD",
210        "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 four (eight when Hyperthreading is disabled) programmable counters available for other events.",
211        "SampleAfterValue": "2000003",
212        "UMask": "0x2"
213    },
214    {
215        "AnyThread": "1",
216        "BriefDescription": "Core cycles when at least one thread on the physical core is not in halt state.",
217        "EventName": "CPU_CLK_UNHALTED.THREAD_ANY",
218        "SampleAfterValue": "2000003",
219        "UMask": "0x2"
220    },
221    {
222        "BriefDescription": "Thread cycles when thread is not in halt state",
223        "EventCode": "0x3C",
224        "EventName": "CPU_CLK_UNHALTED.THREAD_P",
225        "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.",
226        "SampleAfterValue": "2000003"
227    },
228    {
229        "AnyThread": "1",
230        "BriefDescription": "Core cycles when at least one thread on the physical core is not in halt state.",
231        "EventCode": "0x3C",
232        "EventName": "CPU_CLK_UNHALTED.THREAD_P_ANY",
233        "SampleAfterValue": "2000003"
234    },
235    {
236        "BriefDescription": "Cycles while L1 cache miss demand load is outstanding.",
237        "CounterMask": "8",
238        "EventCode": "0xA3",
239        "EventName": "CYCLE_ACTIVITY.CYCLES_L1D_MISS",
240        "SampleAfterValue": "2000003",
241        "UMask": "0x8"
242    },
243    {
244        "BriefDescription": "Cycles while L2 cache miss demand load is outstanding.",
245        "CounterMask": "1",
246        "EventCode": "0xA3",
247        "EventName": "CYCLE_ACTIVITY.CYCLES_L2_MISS",
248        "SampleAfterValue": "2000003",
249        "UMask": "0x1"
250    },
251    {
252        "BriefDescription": "Cycles while memory subsystem has an outstanding load.",
253        "CounterMask": "16",
254        "EventCode": "0xA3",
255        "EventName": "CYCLE_ACTIVITY.CYCLES_MEM_ANY",
256        "SampleAfterValue": "2000003",
257        "UMask": "0x10"
258    },
259    {
260        "BriefDescription": "Execution stalls while L1 cache miss demand load is outstanding.",
261        "CounterMask": "12",
262        "EventCode": "0xA3",
263        "EventName": "CYCLE_ACTIVITY.STALLS_L1D_MISS",
264        "SampleAfterValue": "2000003",
265        "UMask": "0xc"
266    },
267    {
268        "BriefDescription": "Execution stalls while L2 cache miss demand load is outstanding.",
269        "CounterMask": "5",
270        "EventCode": "0xA3",
271        "EventName": "CYCLE_ACTIVITY.STALLS_L2_MISS",
272        "SampleAfterValue": "2000003",
273        "UMask": "0x5"
274    },
275    {
276        "BriefDescription": "Execution stalls while memory subsystem has an outstanding load.",
277        "CounterMask": "20",
278        "EventCode": "0xA3",
279        "EventName": "CYCLE_ACTIVITY.STALLS_MEM_ANY",
280        "SampleAfterValue": "2000003",
281        "UMask": "0x14"
282    },
283    {
284        "BriefDescription": "Total execution stalls.",
285        "CounterMask": "4",
286        "EventCode": "0xA3",
287        "EventName": "CYCLE_ACTIVITY.STALLS_TOTAL",
288        "SampleAfterValue": "2000003",
289        "UMask": "0x4"
290    },
291    {
292        "BriefDescription": "Cycles total of 1 uop is executed on all ports and Reservation Station was not empty.",
293        "EventCode": "0xA6",
294        "EventName": "EXE_ACTIVITY.1_PORTS_UTIL",
295        "PublicDescription": "Counts cycles during which a total of 1 uop was executed on all ports and Reservation Station (RS) was not empty.",
296        "SampleAfterValue": "2000003",
297        "UMask": "0x2"
298    },
299    {
300        "BriefDescription": "Cycles total of 2 uops are executed on all ports and Reservation Station was not empty.",
301        "EventCode": "0xA6",
302        "EventName": "EXE_ACTIVITY.2_PORTS_UTIL",
303        "PublicDescription": "Counts cycles during which a total of 2 uops were executed on all ports and Reservation Station (RS) was not empty.",
304        "SampleAfterValue": "2000003",
305        "UMask": "0x4"
306    },
307    {
308        "BriefDescription": "Cycles total of 3 uops are executed on all ports and Reservation Station was not empty.",
309        "EventCode": "0xA6",
310        "EventName": "EXE_ACTIVITY.3_PORTS_UTIL",
311        "PublicDescription": "Cycles total of 3 uops are executed on all ports and Reservation Station (RS) was not empty.",
312        "SampleAfterValue": "2000003",
313        "UMask": "0x8"
314    },
315    {
316        "BriefDescription": "Cycles total of 4 uops are executed on all ports and Reservation Station was not empty.",
317        "EventCode": "0xA6",
318        "EventName": "EXE_ACTIVITY.4_PORTS_UTIL",
319        "PublicDescription": "Cycles total of 4 uops are executed on all ports and Reservation Station (RS) was not empty.",
320        "SampleAfterValue": "2000003",
321        "UMask": "0x10"
322    },
323    {
324        "BriefDescription": "Cycles where the Store Buffer was full and no outstanding load.",
325        "EventCode": "0xA6",
326        "EventName": "EXE_ACTIVITY.BOUND_ON_STORES",
327        "SampleAfterValue": "2000003",
328        "UMask": "0x40"
329    },
330    {
331        "BriefDescription": "Cycles where no uops were executed, the Reservation Station was not empty, the Store Buffer was full and there was no outstanding load.",
332        "EventCode": "0xA6",
333        "EventName": "EXE_ACTIVITY.EXE_BOUND_0_PORTS",
334        "PublicDescription": "Counts cycles during which no uops were executed on all ports and Reservation Station (RS) was not empty.",
335        "SampleAfterValue": "2000003",
336        "UMask": "0x1"
337    },
338    {
339        "BriefDescription": "Stalls caused by changing prefix length of the instruction.",
340        "EventCode": "0x87",
341        "EventName": "ILD_STALL.LCP",
342        "PublicDescription": "Counts cycles that the Instruction Length decoder (ILD) stalls occurred due to dynamically changing prefix length of the decoded instruction (by operand size prefix instruction 0x66, address size prefix instruction 0x67 or REX.W for Intel64). Count is proportional to the number of prefixes in a 16B-line. This may result in a three-cycle penalty for each LCP (Length changing prefix) in a 16-byte chunk.",
343        "SampleAfterValue": "2000003",
344        "UMask": "0x1"
345    },
346    {
347        "BriefDescription": "Instruction decoders utilized in a cycle",
348        "EventCode": "0x55",
349        "EventName": "INST_DECODED.DECODERS",
350        "PublicDescription": "Number of decoders utilized in a cycle when the MITE (legacy decode pipeline) fetches instructions.",
351        "SampleAfterValue": "2000003",
352        "UMask": "0x1"
353    },
354    {
355        "BriefDescription": "Instructions retired from execution.",
356        "EventName": "INST_RETIRED.ANY",
357        "PublicDescription": "Counts the number of instructions retired from execution. For instructions that consist of multiple micro-ops, Counts the retirement of the last micro-op of the instruction. Counting continues during hardware interrupts, traps, and inside interrupt handlers. Notes: INST_RETIRED.ANY is counted by a designated fixed counter, leaving the four (eight when Hyperthreading is disabled) programmable counters available for other events. INST_RETIRED.ANY_P is counted by a programmable counter and it is an architectural performance event. Counting: Faulting executions of GETSEC/VM entry/VM Exit/MWait will not count as retired instructions.",
358        "SampleAfterValue": "2000003",
359        "UMask": "0x1"
360    },
361    {
362        "BriefDescription": "Number of instructions retired. General Counter - architectural event",
363        "Errata": "SKL091, SKL044",
364        "EventCode": "0xC0",
365        "EventName": "INST_RETIRED.ANY_P",
366        "PublicDescription": "Counts the number of instructions (EOMs) retired. Counting covers macro-fused instructions individually (that is, increments by two).",
367        "SampleAfterValue": "2000003"
368    },
369    {
370        "BriefDescription": "Number of all retired NOP instructions.",
371        "Errata": "SKL091, SKL044",
372        "EventCode": "0xC0",
373        "EventName": "INST_RETIRED.NOP",
374        "PEBS": "1",
375        "SampleAfterValue": "2000003",
376        "UMask": "0x2"
377    },
378    {
379        "BriefDescription": "Precise instruction retired event with HW to reduce effect of PEBS shadow in IP distribution",
380        "Errata": "SKL091, SKL044",
381        "EventCode": "0xC0",
382        "EventName": "INST_RETIRED.PREC_DIST",
383        "PEBS": "2",
384        "PublicDescription": "A version of INST_RETIRED that allows for a more unbiased distribution of samples across instructions retired. It utilizes the Precise Distribution of Instructions Retired (PDIR) feature to mitigate some bias in how retired instructions get sampled.",
385        "SampleAfterValue": "2000003",
386        "UMask": "0x1"
387    },
388    {
389        "BriefDescription": "Number of cycles using always true condition applied to  PEBS instructions retired event.",
390        "CounterMask": "10",
391        "Errata": "SKL091, SKL044",
392        "EventCode": "0xC0",
393        "EventName": "INST_RETIRED.TOTAL_CYCLES_PS",
394        "Invert": "1",
395        "PEBS": "2",
396        "PublicDescription": "Number of cycles using an always true condition applied to  PEBS instructions retired event. (inst_ret< 16)",
397        "SampleAfterValue": "2000003",
398        "UMask": "0x1"
399    },
400    {
401        "BriefDescription": "Cycles the issue-stage is waiting for front-end to fetch from resteered path following branch misprediction or machine clear events.",
402        "EventCode": "0x0D",
403        "EventName": "INT_MISC.CLEAR_RESTEER_CYCLES",
404        "SampleAfterValue": "2000003",
405        "UMask": "0x80"
406    },
407    {
408        "BriefDescription": "Core cycles the allocator was stalled due to recovery from earlier clear event for this thread (e.g. misprediction or memory nuke)",
409        "EventCode": "0x0D",
410        "EventName": "INT_MISC.RECOVERY_CYCLES",
411        "PublicDescription": "Core cycles the Resource allocator was stalled due to recovery from an earlier branch misprediction or machine clear event.",
412        "SampleAfterValue": "2000003",
413        "UMask": "0x1"
414    },
415    {
416        "AnyThread": "1",
417        "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).",
418        "EventCode": "0x0D",
419        "EventName": "INT_MISC.RECOVERY_CYCLES_ANY",
420        "SampleAfterValue": "2000003",
421        "UMask": "0x1"
422    },
423    {
424        "BriefDescription": "The number of times that split load operations are temporarily blocked because all resources for handling the split accesses are in use",
425        "EventCode": "0x03",
426        "EventName": "LD_BLOCKS.NO_SR",
427        "PublicDescription": "The number of times that split load operations are temporarily blocked because all resources for handling the split accesses are in use.",
428        "SampleAfterValue": "100003",
429        "UMask": "0x8"
430    },
431    {
432        "BriefDescription": "Loads blocked due to overlapping with a preceding store that cannot be forwarded.",
433        "EventCode": "0x03",
434        "EventName": "LD_BLOCKS.STORE_FORWARD",
435        "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.",
436        "SampleAfterValue": "100003",
437        "UMask": "0x2"
438    },
439    {
440        "BriefDescription": "False dependencies in MOB due to partial compare on address.",
441        "EventCode": "0x07",
442        "EventName": "LD_BLOCKS_PARTIAL.ADDRESS_ALIAS",
443        "PublicDescription": "Counts false dependencies in MOB when the partial comparison upon loose net check and dependency was resolved by the Enhanced Loose net mechanism. This may not result in high performance penalties. Loose net checks can fail when loads and stores are 4k aliased.",
444        "SampleAfterValue": "100003",
445        "UMask": "0x1"
446    },
447    {
448        "BriefDescription": "Demand load dispatches that hit L1D fill buffer (FB) allocated for software prefetch.",
449        "EventCode": "0x4C",
450        "EventName": "LOAD_HIT_PRE.SW_PF",
451        "PublicDescription": "Counts all not software-prefetch load dispatches that hit the fill buffer (FB) allocated for the software prefetch. It can also be incremented by some lock instructions. So it should only be used with profiling so that the locks can be excluded by ASM (Assembly File) inspection of the nearby instructions.",
452        "SampleAfterValue": "100003",
453        "UMask": "0x1"
454    },
455    {
456        "BriefDescription": "Cycles 4 Uops delivered by the LSD, but didn't come from the decoder.",
457        "CounterMask": "4",
458        "EventCode": "0xA8",
459        "EventName": "LSD.CYCLES_4_UOPS",
460        "PublicDescription": "Counts the cycles when 4 uops are delivered by the LSD (Loop-stream detector).",
461        "SampleAfterValue": "2000003",
462        "UMask": "0x1"
463    },
464    {
465        "BriefDescription": "Cycles Uops delivered by the LSD, but didn't come from the decoder.",
466        "CounterMask": "1",
467        "EventCode": "0xA8",
468        "EventName": "LSD.CYCLES_ACTIVE",
469        "PublicDescription": "Counts the cycles when at least one uop is delivered by the LSD (Loop-stream detector).",
470        "SampleAfterValue": "2000003",
471        "UMask": "0x1"
472    },
473    {
474        "BriefDescription": "Number of Uops delivered by the LSD.",
475        "EventCode": "0xA8",
476        "EventName": "LSD.UOPS",
477        "PublicDescription": "Number of uops delivered to the back-end by the LSD(Loop Stream Detector).",
478        "SampleAfterValue": "2000003",
479        "UMask": "0x1"
480    },
481    {
482        "BriefDescription": "Number of machine clears (nukes) of any type.",
483        "CounterMask": "1",
484        "EdgeDetect": "1",
485        "EventCode": "0xC3",
486        "EventName": "MACHINE_CLEARS.COUNT",
487        "SampleAfterValue": "100003",
488        "UMask": "0x1"
489    },
490    {
491        "BriefDescription": "Self-modifying code (SMC) detected.",
492        "EventCode": "0xC3",
493        "EventName": "MACHINE_CLEARS.SMC",
494        "PublicDescription": "Counts self-modifying code (SMC) detected, which causes a machine clear.",
495        "SampleAfterValue": "100003",
496        "UMask": "0x4"
497    },
498    {
499        "BriefDescription": "Number of times a microcode assist is invoked by HW other than FP-assist. Examples include AD (page Access Dirty) and AVX* related assists.",
500        "EventCode": "0xC1",
501        "EventName": "OTHER_ASSISTS.ANY",
502        "SampleAfterValue": "100003",
503        "UMask": "0x3f"
504    },
505    {
506        "BriefDescription": "Cycles where the pipeline is stalled due to serializing operations.",
507        "EventCode": "0x59",
508        "EventName": "PARTIAL_RAT_STALLS.SCOREBOARD",
509        "PublicDescription": "This event counts cycles during which the microcode scoreboard stalls happen.",
510        "SampleAfterValue": "2000003",
511        "UMask": "0x1"
512    },
513    {
514        "BriefDescription": "Resource-related stall cycles",
515        "EventCode": "0xa2",
516        "EventName": "RESOURCE_STALLS.ANY",
517        "PublicDescription": "Counts resource-related stall cycles.",
518        "SampleAfterValue": "2000003",
519        "UMask": "0x1"
520    },
521    {
522        "BriefDescription": "Cycles stalled due to no store buffers available. (not including draining form sync).",
523        "EventCode": "0xA2",
524        "EventName": "RESOURCE_STALLS.SB",
525        "PublicDescription": "Counts allocation stall cycles caused by the store buffer (SB) being full. This counts cycles that the pipeline back-end blocked uop delivery from the front-end.",
526        "SampleAfterValue": "2000003",
527        "UMask": "0x8"
528    },
529    {
530        "BriefDescription": "Increments whenever there is an update to the LBR array.",
531        "EventCode": "0xCC",
532        "EventName": "ROB_MISC_EVENTS.LBR_INSERTS",
533        "PublicDescription": "Increments when an entry is added to the Last Branch Record (LBR) array (or removed from the array in case of RETURNs in call stack mode). The event requires LBR enable via IA32_DEBUGCTL MSR and branch type selection via MSR_LBR_SELECT.",
534        "SampleAfterValue": "2000003",
535        "UMask": "0x20"
536    },
537    {
538        "BriefDescription": "Number of retired PAUSE instructions (that do not end up with a VMExit to the VMM; TSX aborted Instructions may be counted). This event is not supported on first SKL and KBL products.",
539        "EventCode": "0xCC",
540        "EventName": "ROB_MISC_EVENTS.PAUSE_INST",
541        "SampleAfterValue": "2000003",
542        "UMask": "0x40"
543    },
544    {
545        "BriefDescription": "Cycles when Reservation Station (RS) is empty for the thread",
546        "EventCode": "0x5E",
547        "EventName": "RS_EVENTS.EMPTY_CYCLES",
548        "PublicDescription": "Counts cycles during which the reservation station (RS) is empty for the thread.; Note: In ST-mode, not active thread should drive 0. This is usually caused by severely costly branch mispredictions, or allocator/FE issues.",
549        "SampleAfterValue": "2000003",
550        "UMask": "0x1"
551    },
552    {
553        "BriefDescription": "Counts end of periods where the Reservation Station (RS) was empty. Could be useful to precisely locate Frontend Latency Bound issues.",
554        "CounterMask": "1",
555        "EdgeDetect": "1",
556        "EventCode": "0x5E",
557        "EventName": "RS_EVENTS.EMPTY_END",
558        "Invert": "1",
559        "PublicDescription": "Counts end of periods where the Reservation Station (RS) was empty. Could be useful to precisely locate front-end Latency Bound issues.",
560        "SampleAfterValue": "2000003",
561        "UMask": "0x1"
562    },
563    {
564        "BriefDescription": "Cycles per thread when uops are executed in port 0",
565        "EventCode": "0xA1",
566        "EventName": "UOPS_DISPATCHED_PORT.PORT_0",
567        "PublicDescription": "Counts, on the per-thread basis, cycles during which at least one uop is dispatched from the Reservation Station (RS) to port 0.",
568        "SampleAfterValue": "2000003",
569        "UMask": "0x1"
570    },
571    {
572        "BriefDescription": "Cycles per thread when uops are executed in port 1",
573        "EventCode": "0xA1",
574        "EventName": "UOPS_DISPATCHED_PORT.PORT_1",
575        "PublicDescription": "Counts, on the per-thread basis, cycles during which at least one uop is dispatched from the Reservation Station (RS) to port 1.",
576        "SampleAfterValue": "2000003",
577        "UMask": "0x2"
578    },
579    {
580        "BriefDescription": "Cycles per thread when uops are executed in port 2",
581        "EventCode": "0xA1",
582        "EventName": "UOPS_DISPATCHED_PORT.PORT_2",
583        "PublicDescription": "Counts, on the per-thread basis, cycles during which at least one uop is dispatched from the Reservation Station (RS) to port 2.",
584        "SampleAfterValue": "2000003",
585        "UMask": "0x4"
586    },
587    {
588        "BriefDescription": "Cycles per thread when uops are executed in port 3",
589        "EventCode": "0xA1",
590        "EventName": "UOPS_DISPATCHED_PORT.PORT_3",
591        "PublicDescription": "Counts, on the per-thread basis, cycles during which at least one uop is dispatched from the Reservation Station (RS) to port 3.",
592        "SampleAfterValue": "2000003",
593        "UMask": "0x8"
594    },
595    {
596        "BriefDescription": "Cycles per thread when uops are executed in port 4",
597        "EventCode": "0xA1",
598        "EventName": "UOPS_DISPATCHED_PORT.PORT_4",
599        "PublicDescription": "Counts, on the per-thread basis, cycles during which at least one uop is dispatched from the Reservation Station (RS) to port 4.",
600        "SampleAfterValue": "2000003",
601        "UMask": "0x10"
602    },
603    {
604        "BriefDescription": "Cycles per thread when uops are executed in port 5",
605        "EventCode": "0xA1",
606        "EventName": "UOPS_DISPATCHED_PORT.PORT_5",
607        "PublicDescription": "Counts, on the per-thread basis, cycles during which at least one uop is dispatched from the Reservation Station (RS) to port 5.",
608        "SampleAfterValue": "2000003",
609        "UMask": "0x20"
610    },
611    {
612        "BriefDescription": "Cycles per thread when uops are executed in port 6",
613        "EventCode": "0xA1",
614        "EventName": "UOPS_DISPATCHED_PORT.PORT_6",
615        "PublicDescription": "Counts, on the per-thread basis, cycles during which at least one uop is dispatched from the Reservation Station (RS) to port 6.",
616        "SampleAfterValue": "2000003",
617        "UMask": "0x40"
618    },
619    {
620        "BriefDescription": "Cycles per thread when uops are executed in port 7",
621        "EventCode": "0xA1",
622        "EventName": "UOPS_DISPATCHED_PORT.PORT_7",
623        "PublicDescription": "Counts, on the per-thread basis, cycles during which at least one uop is dispatched from the Reservation Station (RS) to port 7.",
624        "SampleAfterValue": "2000003",
625        "UMask": "0x80"
626    },
627    {
628        "BriefDescription": "Number of uops executed on the core.",
629        "EventCode": "0xB1",
630        "EventName": "UOPS_EXECUTED.CORE",
631        "PublicDescription": "Number of uops executed from any thread.",
632        "SampleAfterValue": "2000003",
633        "UMask": "0x2"
634    },
635    {
636        "BriefDescription": "Cycles at least 1 micro-op is executed from any thread on physical core.",
637        "CounterMask": "1",
638        "EventCode": "0xB1",
639        "EventName": "UOPS_EXECUTED.CORE_CYCLES_GE_1",
640        "SampleAfterValue": "2000003",
641        "UMask": "0x2"
642    },
643    {
644        "BriefDescription": "Cycles at least 2 micro-op is executed from any thread on physical core.",
645        "CounterMask": "2",
646        "EventCode": "0xB1",
647        "EventName": "UOPS_EXECUTED.CORE_CYCLES_GE_2",
648        "SampleAfterValue": "2000003",
649        "UMask": "0x2"
650    },
651    {
652        "BriefDescription": "Cycles at least 3 micro-op is executed from any thread on physical core.",
653        "CounterMask": "3",
654        "EventCode": "0xB1",
655        "EventName": "UOPS_EXECUTED.CORE_CYCLES_GE_3",
656        "SampleAfterValue": "2000003",
657        "UMask": "0x2"
658    },
659    {
660        "BriefDescription": "Cycles at least 4 micro-op is executed from any thread on physical core.",
661        "CounterMask": "4",
662        "EventCode": "0xB1",
663        "EventName": "UOPS_EXECUTED.CORE_CYCLES_GE_4",
664        "SampleAfterValue": "2000003",
665        "UMask": "0x2"
666    },
667    {
668        "BriefDescription": "Cycles with no micro-ops executed from any thread on physical core.",
669        "CounterMask": "1",
670        "EventCode": "0xB1",
671        "EventName": "UOPS_EXECUTED.CORE_CYCLES_NONE",
672        "Invert": "1",
673        "SampleAfterValue": "2000003",
674        "UMask": "0x2"
675    },
676    {
677        "BriefDescription": "Cycles where at least 1 uop was executed per-thread",
678        "CounterMask": "1",
679        "EventCode": "0xB1",
680        "EventName": "UOPS_EXECUTED.CYCLES_GE_1_UOP_EXEC",
681        "PublicDescription": "Cycles where at least 1 uop was executed per-thread.",
682        "SampleAfterValue": "2000003",
683        "UMask": "0x1"
684    },
685    {
686        "BriefDescription": "Cycles where at least 2 uops were executed per-thread",
687        "CounterMask": "2",
688        "EventCode": "0xB1",
689        "EventName": "UOPS_EXECUTED.CYCLES_GE_2_UOPS_EXEC",
690        "PublicDescription": "Cycles where at least 2 uops were executed per-thread.",
691        "SampleAfterValue": "2000003",
692        "UMask": "0x1"
693    },
694    {
695        "BriefDescription": "Cycles where at least 3 uops were executed per-thread",
696        "CounterMask": "3",
697        "EventCode": "0xB1",
698        "EventName": "UOPS_EXECUTED.CYCLES_GE_3_UOPS_EXEC",
699        "PublicDescription": "Cycles where at least 3 uops were executed per-thread.",
700        "SampleAfterValue": "2000003",
701        "UMask": "0x1"
702    },
703    {
704        "BriefDescription": "Cycles where at least 4 uops were executed per-thread",
705        "CounterMask": "4",
706        "EventCode": "0xB1",
707        "EventName": "UOPS_EXECUTED.CYCLES_GE_4_UOPS_EXEC",
708        "PublicDescription": "Cycles where at least 4 uops were executed per-thread.",
709        "SampleAfterValue": "2000003",
710        "UMask": "0x1"
711    },
712    {
713        "BriefDescription": "Counts number of cycles no uops were dispatched to be executed on this thread.",
714        "CounterMask": "1",
715        "EventCode": "0xB1",
716        "EventName": "UOPS_EXECUTED.STALL_CYCLES",
717        "Invert": "1",
718        "PublicDescription": "Counts cycles during which no uops were dispatched from the Reservation Station (RS) per thread.",
719        "SampleAfterValue": "2000003",
720        "UMask": "0x1"
721    },
722    {
723        "BriefDescription": "Counts the number of uops to be executed per-thread each cycle.",
724        "EventCode": "0xB1",
725        "EventName": "UOPS_EXECUTED.THREAD",
726        "PublicDescription": "Number of uops to be executed per-thread each cycle.",
727        "SampleAfterValue": "2000003",
728        "UMask": "0x1"
729    },
730    {
731        "BriefDescription": "Counts the number of x87 uops dispatched.",
732        "EventCode": "0xB1",
733        "EventName": "UOPS_EXECUTED.X87",
734        "PublicDescription": "Counts the number of x87 uops executed.",
735        "SampleAfterValue": "2000003",
736        "UMask": "0x10"
737    },
738    {
739        "BriefDescription": "Uops that Resource Allocation Table (RAT) issues to Reservation Station (RS)",
740        "EventCode": "0x0E",
741        "EventName": "UOPS_ISSUED.ANY",
742        "PublicDescription": "Counts the number of uops that the Resource Allocation Table (RAT) issues to the Reservation Station (RS).",
743        "SampleAfterValue": "2000003",
744        "UMask": "0x1"
745    },
746    {
747        "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.",
748        "EventCode": "0x0E",
749        "EventName": "UOPS_ISSUED.SLOW_LEA",
750        "SampleAfterValue": "2000003",
751        "UMask": "0x20"
752    },
753    {
754        "BriefDescription": "Cycles when Resource Allocation Table (RAT) does not issue Uops to Reservation Station (RS) for the thread",
755        "CounterMask": "1",
756        "EventCode": "0x0E",
757        "EventName": "UOPS_ISSUED.STALL_CYCLES",
758        "Invert": "1",
759        "PublicDescription": "Counts cycles during which the Resource Allocation Table (RAT) does not issue any Uops to the reservation station (RS) for the current thread.",
760        "SampleAfterValue": "2000003",
761        "UMask": "0x1"
762    },
763    {
764        "BriefDescription": "Uops inserted at issue-stage in order to preserve upper bits of vector registers.",
765        "EventCode": "0x0E",
766        "EventName": "UOPS_ISSUED.VECTOR_WIDTH_MISMATCH",
767        "PublicDescription": "Counts the number of Blend Uops issued by the Resource Allocation Table (RAT) to the reservation station (RS) in order to preserve upper bits of vector registers. Starting with the Skylake microarchitecture, these Blend uops are needed since every Intel SSE instruction executed in Dirty Upper State needs to preserve bits 128-255 of the destination register. For more information, refer to Mixing Intel AVX and Intel SSE Code section of the Optimization Guide.",
768        "SampleAfterValue": "2000003",
769        "UMask": "0x2"
770    },
771    {
772        "BriefDescription": "Number of macro-fused uops retired. (non precise)",
773        "EventCode": "0xc2",
774        "EventName": "UOPS_RETIRED.MACRO_FUSED",
775        "PublicDescription": "Counts the number of macro-fused uops retired. (non precise)",
776        "SampleAfterValue": "2000003",
777        "UMask": "0x4"
778    },
779    {
780        "BriefDescription": "Retirement slots used.",
781        "EventCode": "0xC2",
782        "EventName": "UOPS_RETIRED.RETIRE_SLOTS",
783        "PublicDescription": "Counts the retirement slots used.",
784        "SampleAfterValue": "2000003",
785        "UMask": "0x2"
786    },
787    {
788        "BriefDescription": "Cycles without actually retired uops.",
789        "CounterMask": "1",
790        "EventCode": "0xC2",
791        "EventName": "UOPS_RETIRED.STALL_CYCLES",
792        "Invert": "1",
793        "PublicDescription": "This event counts cycles without actually retired uops.",
794        "SampleAfterValue": "2000003",
795        "UMask": "0x2"
796    },
797    {
798        "BriefDescription": "Cycles with less than 10 actually retired uops.",
799        "CounterMask": "16",
800        "EventCode": "0xC2",
801        "EventName": "UOPS_RETIRED.TOTAL_CYCLES",
802        "Invert": "1",
803        "PublicDescription": "Number of cycles using always true condition (uops_ret < 16) applied to non PEBS uops retired event.",
804        "SampleAfterValue": "2000003",
805        "UMask": "0x2"
806    }
807]
808