1[
2    {
3        "CollectPEBSRecord": "2",
4        "PublicDescription": "Counts the number of X86 instructions retired - an Architectural PerfMon event. Counting continues during hardware interrupts, traps, and inside interrupt handlers. Notes: INST_RETIRED.ANY is counted by a designated fixed counter freeing up programmable counters to count other events. INST_RETIRED.ANY_P is counted by a programmable counter.",
5        "Counter": "32",
6        "UMask": "0x1",
7        "PEBScounters": "32",
8        "EventName": "INST_RETIRED.ANY",
9        "SampleAfterValue": "2000003",
10        "BriefDescription": "Number of instructions retired. Fixed Counter - architectural event"
11    },
12    {
13        "PEBS": "2",
14        "CollectPEBSRecord": "3",
15        "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. Use on Fixed Counter 0.",
16        "Counter": "32",
17        "UMask": "0x1",
18        "PEBScounters": "32",
19        "EventName": "INST_RETIRED.PREC_DIST",
20        "SampleAfterValue": "2000003",
21        "BriefDescription": "Precise instruction retired event with a reduced effect of PEBS shadow in IP distribution"
22    },
23    {
24        "CollectPEBSRecord": "2",
25        "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.",
26        "Counter": "33",
27        "UMask": "0x2",
28        "PEBScounters": "33",
29        "EventName": "CPU_CLK_UNHALTED.THREAD",
30        "SampleAfterValue": "2000003",
31        "BriefDescription": "Core cycles when the thread is not in halt state"
32    },
33    {
34        "CollectPEBSRecord": "2",
35        "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.",
36        "Counter": "34",
37        "UMask": "0x3",
38        "PEBScounters": "34",
39        "EventName": "CPU_CLK_UNHALTED.REF_TSC",
40        "SampleAfterValue": "2000003",
41        "BriefDescription": "Reference cycles when the core is not in halt state."
42    },
43    {
44        "CollectPEBSRecord": "2",
45        "PublicDescription": "Counts the number of times the load operation got the true Block-on-Store blocking code preventing store forwarding. This includes cases when: a. preceding store conflicts with the load (incomplete overlap),b. store forwarding is impossible due to u-arch limitations, c. preceding lock RMW operations are not forwarded, d. store has the no-forward bit set (uncacheable/page-split/masked stores), e. all-blocking stores are used (mostly, fences and port I/O), and others. The most common case is a load blocked due to its address range overlapping with a preceding smaller uncompleted store. Note: This event does not take into account cases of out-of-SW-control (for example, SbTailHit), unknown physical STA, and cases of blocking loads on store due to being non-WB memory type or a lock. These cases are covered by other events. See the table of not supported store forwards in the Optimization Guide.",
46        "EventCode": "0x03",
47        "Counter": "0,1,2,3",
48        "UMask": "0x2",
49        "PEBScounters": "0,1,2,3",
50        "EventName": "LD_BLOCKS.STORE_FORWARD",
51        "SampleAfterValue": "100003",
52        "BriefDescription": "Loads blocked by overlapping with store buffer that cannot be forwarded."
53    },
54    {
55        "CollectPEBSRecord": "2",
56        "PublicDescription": "Counts the number of times that split load operations are temporarily blocked because all resources for handling the split accesses are in use.",
57        "EventCode": "0x03",
58        "Counter": "0,1,2,3",
59        "UMask": "0x8",
60        "PEBScounters": "0,1,2,3",
61        "EventName": "LD_BLOCKS.NO_SR",
62        "SampleAfterValue": "100003",
63        "BriefDescription": "The number of times that split load operations are temporarily blocked because all resources for handling the split accesses are in use."
64    },
65    {
66        "CollectPEBSRecord": "2",
67        "PublicDescription": "Counts the number of times a load got blocked due to false dependencies in MOB due to partial compare on address.",
68        "EventCode": "0x07",
69        "Counter": "0,1,2,3",
70        "UMask": "0x1",
71        "PEBScounters": "0,1,2,3",
72        "EventName": "LD_BLOCKS_PARTIAL.ADDRESS_ALIAS",
73        "SampleAfterValue": "100003",
74        "BriefDescription": "False dependencies in MOB due to partial compare on address."
75    },
76    {
77        "CollectPEBSRecord": "2",
78        "PublicDescription": "Counts core cycles when the Resource allocator was stalled due to recovery from an earlier branch misprediction or machine clear event.",
79        "EventCode": "0x0D",
80        "Counter": "0,1,2,3,4,5,6,7",
81        "UMask": "0x1",
82        "PEBScounters": "0,1,2,3,4,5,6,7",
83        "EventName": "INT_MISC.RECOVERY_CYCLES",
84        "SampleAfterValue": "2000003",
85        "BriefDescription": "Core cycles the allocator was stalled due to recovery from earlier clear event for this thread"
86    },
87    {
88        "CollectPEBSRecord": "2",
89        "PublicDescription": "Counts cycles the Backend cluster is recovering after a miss-speculation or a Store Buffer or Load Buffer drain stall.",
90        "EventCode": "0x0D",
91        "Counter": "0,1,2,3,4,5,6,7",
92        "UMask": "0x3",
93        "PEBScounters": "0,1,2,3,4,5,6,7",
94        "EventName": "INT_MISC.ALL_RECOVERY_CYCLES",
95        "SampleAfterValue": "2000003",
96        "BriefDescription": "Cycles the Backend cluster is recovering after a miss-speculation or a Store Buffer or Load Buffer drain stall.",
97        "CounterMask": "1"
98    },
99    {
100        "CollectPEBSRecord": "2",
101        "PublicDescription": "Cycles after recovery from a branch misprediction or machine clear till the first uop is issued from the resteered path.",
102        "EventCode": "0x0d",
103        "Counter": "0,1,2,3,4,5,6,7",
104        "UMask": "0x80",
105        "PEBScounters": "0,1,2,3,4,5,6,7",
106        "EventName": "INT_MISC.CLEAR_RESTEER_CYCLES",
107        "SampleAfterValue": "2000003",
108        "BriefDescription": "Counts cycles after recovery from a branch misprediction or machine clear till the first uop is issued from the resteered path."
109    },
110    {
111        "CollectPEBSRecord": "2",
112        "PublicDescription": "Counts the number of uops that the Resource Allocation Table (RAT) issues to the Reservation Station (RS).",
113        "EventCode": "0x0E",
114        "Counter": "0,1,2,3,4,5,6,7",
115        "UMask": "0x1",
116        "PEBScounters": "0,1,2,3,4,5,6,7",
117        "EventName": "UOPS_ISSUED.ANY",
118        "SampleAfterValue": "2000003",
119        "BriefDescription": "Uops that RAT issues to RS"
120    },
121    {
122        "CollectPEBSRecord": "2",
123        "PublicDescription": "Counts cycles during which the Resource Allocation Table (RAT) does not issue any Uops to the reservation station (RS) for the current thread.",
124        "EventCode": "0x0E",
125        "Invert": "1",
126        "Counter": "0,1,2,3,4,5,6,7",
127        "UMask": "0x1",
128        "PEBScounters": "0,1,2,3,4,5,6,7",
129        "EventName": "UOPS_ISSUED.STALL_CYCLES",
130        "SampleAfterValue": "2000003",
131        "BriefDescription": "Cycles when RAT does not issue Uops to RS for the thread",
132        "CounterMask": "1"
133    },
134    {
135        "CollectPEBSRecord": "2",
136        "PublicDescription": "Counts cycles when divide unit is busy executing divide or square root operations. Accounts for integer and floating-point operations.",
137        "EventCode": "0x14",
138        "Counter": "0,1,2,3,4,5,6,7",
139        "UMask": "0x9",
140        "PEBScounters": "0,1,2,3,4,5,6,7",
141        "EventName": "ARITH.DIVIDER_ACTIVE",
142        "SampleAfterValue": "2000003",
143        "BriefDescription": "Cycles when divide unit is busy executing divide or square root operations.",
144        "CounterMask": "1"
145    },
146    {
147        "CollectPEBSRecord": "2",
148        "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.",
149        "EventCode": "0x3C",
150        "Counter": "0,1,2,3,4,5,6,7",
151        "PEBScounters": "0,1,2,3,4,5,6,7",
152        "EventName": "CPU_CLK_UNHALTED.THREAD_P",
153        "SampleAfterValue": "2000003",
154        "BriefDescription": "Thread cycles when thread is not in halt state"
155    },
156    {
157        "CollectPEBSRecord": "2",
158        "PublicDescription": "Counts core crystal clock cycles when the thread is unhalted.",
159        "EventCode": "0x3C",
160        "Counter": "0,1,2,3,4,5,6,7",
161        "UMask": "0x1",
162        "PEBScounters": "0,1,2,3,4,5,6,7",
163        "EventName": "CPU_CLK_UNHALTED.REF_XCLK",
164        "SampleAfterValue": "25003",
165        "BriefDescription": "Core crystal clock cycles when the thread is unhalted."
166    },
167    {
168        "CollectPEBSRecord": "2",
169        "PublicDescription": "Counts Core crystal clock cycles when current thread is unhalted and the other thread is halted.",
170        "EventCode": "0x3C",
171        "Counter": "0,1,2,3,4,5,6,7",
172        "UMask": "0x2",
173        "PEBScounters": "0,1,2,3,4,5,6,7",
174        "EventName": "CPU_CLK_UNHALTED.ONE_THREAD_ACTIVE",
175        "SampleAfterValue": "25003",
176        "BriefDescription": "Core crystal clock cycles when this thread is unhalted and the other thread is halted."
177    },
178    {
179        "CollectPEBSRecord": "2",
180        "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.",
181        "EventCode": "0x4c",
182        "Counter": "0,1,2,3",
183        "UMask": "0x1",
184        "PEBScounters": "0,1,2,3",
185        "EventName": "LOAD_HIT_PREFETCH.SWPF",
186        "SampleAfterValue": "100003",
187        "BriefDescription": "Counts the number of demand load dispatches that hit L1D fill buffer (FB) allocated for software prefetch."
188    },
189    {
190        "CollectPEBSRecord": "2",
191        "PublicDescription": "Counts cycles during which the reservation station (RS) is empty for this logical processor. This is usually caused when the front-end pipeline runs into stravation periods (e.g. branch mispredictions or i-cache misses)",
192        "EventCode": "0x5E",
193        "Counter": "0,1,2,3,4,5,6,7",
194        "UMask": "0x1",
195        "PEBScounters": "0,1,2,3,4,5,6,7",
196        "EventName": "RS_EVENTS.EMPTY_CYCLES",
197        "SampleAfterValue": "2000003",
198        "BriefDescription": "Cycles when Reservation Station (RS) is empty for the thread"
199    },
200    {
201        "CollectPEBSRecord": "2",
202        "PublicDescription": "Counts end of periods where the Reservation Station (RS) was empty. Could be useful to closely sample on front-end latency issues (see the FRONTEND_RETIRED event of designated precise events)",
203        "EventCode": "0x5E",
204        "Invert": "1",
205        "Counter": "0,1,2,3,4,5,6,7",
206        "UMask": "0x1",
207        "PEBScounters": "0,1,2,3,4,5,6,7",
208        "EventName": "RS_EVENTS.EMPTY_END",
209        "SampleAfterValue": "2000003",
210        "BriefDescription": "Counts end of periods where the Reservation Station (RS) was empty.",
211        "CounterMask": "1",
212        "EdgeDetect": "1"
213    },
214    {
215        "CollectPEBSRecord": "2",
216        "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.",
217        "EventCode": "0x87",
218        "Counter": "0,1,2,3",
219        "UMask": "0x1",
220        "PEBScounters": "0,1,2,3",
221        "EventName": "ILD_STALL.LCP",
222        "SampleAfterValue": "2000003",
223        "BriefDescription": "Stalls caused by changing prefix length of the instruction."
224    },
225    {
226        "CollectPEBSRecord": "2",
227        "PublicDescription": "Counts, on the per-thread basis, cycles during which at least one uop is dispatched from the Reservation Station (RS) to port 0.",
228        "EventCode": "0xa1",
229        "Counter": "0,1,2,3,4,5,6,7",
230        "UMask": "0x1",
231        "PEBScounters": "0,1,2,3,4,5,6,7",
232        "EventName": "UOPS_DISPATCHED.PORT_0",
233        "SampleAfterValue": "2000003",
234        "BriefDescription": "Number of uops executed on port 0"
235    },
236    {
237        "CollectPEBSRecord": "2",
238        "PublicDescription": "Counts, on the per-thread basis, cycles during which at least one uop is dispatched from the Reservation Station (RS) to port 1.",
239        "EventCode": "0xa1",
240        "Counter": "0,1,2,3,4,5,6,7",
241        "UMask": "0x2",
242        "PEBScounters": "0,1,2,3,4,5,6,7",
243        "EventName": "UOPS_DISPATCHED.PORT_1",
244        "SampleAfterValue": "2000003",
245        "BriefDescription": "Number of uops executed on port 1"
246    },
247    {
248        "CollectPEBSRecord": "2",
249        "PublicDescription": "Counts, on the per-thread basis, cycles during which at least one uop is dispatched from the Reservation Station (RS) to ports 2 and 3.",
250        "EventCode": "0xa1",
251        "Counter": "0,1,2,3,4,5,6,7",
252        "UMask": "0x4",
253        "PEBScounters": "0,1,2,3,4,5,6,7",
254        "EventName": "UOPS_DISPATCHED.PORT_2_3",
255        "SampleAfterValue": "2000003",
256        "BriefDescription": "Number of uops executed on port 2 and 3"
257    },
258    {
259        "CollectPEBSRecord": "2",
260        "PublicDescription": "Counts, on the per-thread basis, cycles during which at least one uop is dispatched from the Reservation Station (RS) to ports 5 and 9.",
261        "EventCode": "0xa1",
262        "Counter": "0,1,2,3,4,5,6,7",
263        "UMask": "0x10",
264        "PEBScounters": "0,1,2,3,4,5,6,7",
265        "EventName": "UOPS_DISPATCHED.PORT_4_9",
266        "SampleAfterValue": "2000003",
267        "BriefDescription": "Number of uops executed on port 4 and 9"
268    },
269    {
270        "CollectPEBSRecord": "2",
271        "PublicDescription": "Counts, on the per-thread basis, cycles during which at least one uop is dispatched from the Reservation Station (RS) to port 5.",
272        "EventCode": "0xa1",
273        "Counter": "0,1,2,3,4,5,6,7",
274        "UMask": "0x20",
275        "PEBScounters": "0,1,2,3,4,5,6,7",
276        "EventName": "UOPS_DISPATCHED.PORT_5",
277        "SampleAfterValue": "2000003",
278        "BriefDescription": "Number of uops executed on port 5"
279    },
280    {
281        "CollectPEBSRecord": "2",
282        "PublicDescription": "Counts, on the per-thread basis, cycles during which at least one uop is dispatched from the Reservation Station (RS) to port 6.",
283        "EventCode": "0xa1",
284        "Counter": "0,1,2,3,4,5,6,7",
285        "UMask": "0x40",
286        "PEBScounters": "0,1,2,3,4,5,6,7",
287        "EventName": "UOPS_DISPATCHED.PORT_6",
288        "SampleAfterValue": "2000003",
289        "BriefDescription": "Number of uops executed on port 6"
290    },
291    {
292        "CollectPEBSRecord": "2",
293        "PublicDescription": "Counts, on the per-thread basis, cycles during which at least one uop is dispatched from the Reservation Station (RS) to ports 7 and 8.",
294        "EventCode": "0xa1",
295        "Counter": "0,1,2,3,4,5,6,7",
296        "UMask": "0x80",
297        "PEBScounters": "0,1,2,3,4,5,6,7",
298        "EventName": "UOPS_DISPATCHED.PORT_7_8",
299        "SampleAfterValue": "2000003",
300        "BriefDescription": "Number of uops executed on port 7 and 8"
301    },
302    {
303        "CollectPEBSRecord": "2",
304        "EventCode": "0xa2",
305        "Counter": "0,1,2,3,4,5,6,7",
306        "UMask": "0x2",
307        "PEBScounters": "0,1,2,3,4,5,6,7",
308        "EventName": "RESOURCE_STALLS.SCOREBOARD",
309        "SampleAfterValue": "2000003",
310        "BriefDescription": "Counts cycles where the pipeline is stalled due to serializing operations."
311    },
312    {
313        "CollectPEBSRecord": "2",
314        "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.",
315        "EventCode": "0xA2",
316        "Counter": "0,1,2,3,4,5,6,7",
317        "UMask": "0x8",
318        "PEBScounters": "0,1,2,3,4,5,6,7",
319        "EventName": "RESOURCE_STALLS.SB",
320        "SampleAfterValue": "2000003",
321        "BriefDescription": "Cycles stalled due to no store buffers available. (not including draining form sync)."
322    },
323    {
324        "CollectPEBSRecord": "2",
325        "EventCode": "0xA3",
326        "Counter": "0,1,2,3",
327        "UMask": "0x1",
328        "PEBScounters": "0,1,2,3",
329        "EventName": "CYCLE_ACTIVITY.CYCLES_L2_MISS",
330        "SampleAfterValue": "2000003",
331        "BriefDescription": "Cycles while L2 cache miss demand load is outstanding.",
332        "CounterMask": "1"
333    },
334    {
335        "CollectPEBSRecord": "2",
336        "EventCode": "0xA3",
337        "Counter": "0,1,2,3,4,5,6,7",
338        "UMask": "0x4",
339        "PEBScounters": "0,1,2,3,4,5,6,7",
340        "EventName": "CYCLE_ACTIVITY.STALLS_TOTAL",
341        "SampleAfterValue": "2000003",
342        "BriefDescription": "Total execution stalls.",
343        "CounterMask": "4"
344    },
345    {
346        "CollectPEBSRecord": "2",
347        "EventCode": "0xA3",
348        "Counter": "0,1,2,3",
349        "UMask": "0x5",
350        "PEBScounters": "0,1,2,3",
351        "EventName": "CYCLE_ACTIVITY.STALLS_L2_MISS",
352        "SampleAfterValue": "2000003",
353        "BriefDescription": "Execution stalls while L2 cache miss demand load is outstanding.",
354        "CounterMask": "5"
355    },
356    {
357        "CollectPEBSRecord": "2",
358        "EventCode": "0xA3",
359        "Counter": "0,1,2,3",
360        "UMask": "0x8",
361        "PEBScounters": "0,1,2,3",
362        "EventName": "CYCLE_ACTIVITY.CYCLES_L1D_MISS",
363        "SampleAfterValue": "2000003",
364        "BriefDescription": "Cycles while L1 cache miss demand load is outstanding.",
365        "CounterMask": "8"
366    },
367    {
368        "CollectPEBSRecord": "2",
369        "EventCode": "0xA3",
370        "Counter": "0,1,2,3",
371        "UMask": "0xc",
372        "PEBScounters": "0,1,2,3",
373        "EventName": "CYCLE_ACTIVITY.STALLS_L1D_MISS",
374        "SampleAfterValue": "2000003",
375        "BriefDescription": "Execution stalls while L1 cache miss demand load is outstanding.",
376        "CounterMask": "12"
377    },
378    {
379        "CollectPEBSRecord": "2",
380        "EventCode": "0xA3",
381        "Counter": "0,1,2,3,4,5,6,7",
382        "UMask": "0x10",
383        "PEBScounters": "0,1,2,3,4,5,6,7",
384        "EventName": "CYCLE_ACTIVITY.CYCLES_MEM_ANY",
385        "SampleAfterValue": "2000003",
386        "BriefDescription": "Cycles while memory subsystem has an outstanding load.",
387        "CounterMask": "16"
388    },
389    {
390        "CollectPEBSRecord": "2",
391        "EventCode": "0xA3",
392        "Counter": "0,1,2,3,4,5,6,7",
393        "UMask": "0x14",
394        "PEBScounters": "0,1,2,3,4,5,6,7",
395        "EventName": "CYCLE_ACTIVITY.STALLS_MEM_ANY",
396        "SampleAfterValue": "2000003",
397        "BriefDescription": "Execution stalls while memory subsystem has an outstanding load.",
398        "CounterMask": "20"
399    },
400    {
401        "CollectPEBSRecord": "2",
402        "PublicDescription": "Counts cycles during which a total of 1 uop was executed on all ports and Reservation Station (RS) was not empty.",
403        "EventCode": "0xa6",
404        "Counter": "0,1,2,3,4,5,6,7",
405        "UMask": "0x2",
406        "PEBScounters": "0,1,2,3,4,5,6,7",
407        "EventName": "EXE_ACTIVITY.1_PORTS_UTIL",
408        "SampleAfterValue": "2000003",
409        "BriefDescription": "Cycles total of 1 uop is executed on all ports and Reservation Station was not empty."
410    },
411    {
412        "CollectPEBSRecord": "2",
413        "PublicDescription": "Counts cycles during which a total of 2 uops were executed on all ports and Reservation Station (RS) was not empty.",
414        "EventCode": "0xa6",
415        "Counter": "0,1,2,3,4,5,6,7",
416        "UMask": "0x4",
417        "PEBScounters": "0,1,2,3,4,5,6,7",
418        "EventName": "EXE_ACTIVITY.2_PORTS_UTIL",
419        "SampleAfterValue": "2000003",
420        "BriefDescription": "Cycles total of 2 uops are executed on all ports and Reservation Station was not empty."
421    },
422    {
423        "CollectPEBSRecord": "2",
424        "PublicDescription": "Counts cycles where the Store Buffer was full and no loads caused an execution stall.",
425        "EventCode": "0xA6",
426        "Counter": "0,1,2,3,4,5,6,7",
427        "UMask": "0x40",
428        "PEBScounters": "0,1,2,3,4,5,6,7",
429        "EventName": "EXE_ACTIVITY.BOUND_ON_STORES",
430        "SampleAfterValue": "2000003",
431        "BriefDescription": "Cycles where the Store Buffer was full and no loads caused an execution stall.",
432        "CounterMask": "2"
433    },
434    {
435        "CollectPEBSRecord": "2",
436        "PublicDescription": "Counts cycles during which no uops were executed on all ports and Reservation Station (RS) was not empty.",
437        "EventCode": "0xa6",
438        "Counter": "0,1,2,3,4,5,6,7",
439        "UMask": "0x80",
440        "PEBScounters": "0,1,2,3,4,5,6,7",
441        "EventName": "EXE_ACTIVITY.EXE_BOUND_0_PORTS",
442        "SampleAfterValue": "2000003",
443        "BriefDescription": "Cycles where no uops were executed, the Reservation Station was not empty, the Store Buffer was full and there was no outstanding load."
444    },
445    {
446        "CollectPEBSRecord": "2",
447        "PublicDescription": "Counts the number of uops delivered to the back-end by the LSD(Loop Stream Detector).",
448        "EventCode": "0xA8",
449        "Counter": "0,1,2,3",
450        "UMask": "0x1",
451        "PEBScounters": "0,1,2,3",
452        "EventName": "LSD.UOPS",
453        "SampleAfterValue": "2000003",
454        "BriefDescription": "Number of Uops delivered by the LSD."
455    },
456    {
457        "CollectPEBSRecord": "2",
458        "PublicDescription": "Counts the cycles when at least one uop is delivered by the LSD (Loop-stream detector).",
459        "EventCode": "0xA8",
460        "Counter": "0,1,2,3",
461        "UMask": "0x1",
462        "PEBScounters": "0,1,2,3",
463        "EventName": "LSD.CYCLES_ACTIVE",
464        "SampleAfterValue": "2000003",
465        "BriefDescription": "Cycles Uops delivered by the LSD, but didn't come from the decoder.",
466        "CounterMask": "1"
467    },
468    {
469        "CollectPEBSRecord": "2",
470        "PublicDescription": "Counts the cycles when optimal number of uops is delivered by the LSD (Loop-stream detector).",
471        "EventCode": "0xa8",
472        "Counter": "0,1,2,3",
473        "UMask": "0x1",
474        "PEBScounters": "0,1,2,3",
475        "EventName": "LSD.CYCLES_OK",
476        "SampleAfterValue": "2000003",
477        "BriefDescription": "Cycles optimal number of Uops delivered by the LSD, but did not come from the decoder.",
478        "CounterMask": "5"
479    },
480    {
481        "CollectPEBSRecord": "2",
482        "EventCode": "0xB1",
483        "Counter": "0,1,2,3,4,5,6,7",
484        "UMask": "0x1",
485        "PEBScounters": "0,1,2,3,4,5,6,7",
486        "EventName": "UOPS_EXECUTED.THREAD",
487        "SampleAfterValue": "2000003",
488        "BriefDescription": "Counts the number of uops to be executed per-thread each cycle."
489    },
490    {
491        "CollectPEBSRecord": "2",
492        "PublicDescription": "Counts cycles during which no uops were dispatched from the Reservation Station (RS) per thread.",
493        "EventCode": "0xB1",
494        "Invert": "1",
495        "Counter": "0,1,2,3,4,5,6,7",
496        "UMask": "0x1",
497        "PEBScounters": "0,1,2,3,4,5,6,7",
498        "EventName": "UOPS_EXECUTED.STALL_CYCLES",
499        "SampleAfterValue": "2000003",
500        "BriefDescription": "Counts number of cycles no uops were dispatched to be executed on this thread.",
501        "CounterMask": "1"
502    },
503    {
504        "CollectPEBSRecord": "2",
505        "PublicDescription": "Cycles where at least 1 uop was executed per-thread.",
506        "EventCode": "0xb1",
507        "Counter": "0,1,2,3,4,5,6,7",
508        "UMask": "0x1",
509        "PEBScounters": "0,1,2,3,4,5,6,7",
510        "EventName": "UOPS_EXECUTED.CYCLES_GE_1",
511        "SampleAfterValue": "2000003",
512        "BriefDescription": "Cycles where at least 1 uop was executed per-thread",
513        "CounterMask": "1"
514    },
515    {
516        "CollectPEBSRecord": "2",
517        "PublicDescription": "Cycles where at least 2 uops were executed per-thread.",
518        "EventCode": "0xb1",
519        "Counter": "0,1,2,3,4,5,6,7",
520        "UMask": "0x1",
521        "PEBScounters": "0,1,2,3,4,5,6,7",
522        "EventName": "UOPS_EXECUTED.CYCLES_GE_2",
523        "SampleAfterValue": "2000003",
524        "BriefDescription": "Cycles where at least 2 uops were executed per-thread",
525        "CounterMask": "2"
526    },
527    {
528        "CollectPEBSRecord": "2",
529        "PublicDescription": "Cycles where at least 3 uops were executed per-thread.",
530        "EventCode": "0xb1",
531        "Counter": "0,1,2,3,4,5,6,7",
532        "UMask": "0x1",
533        "PEBScounters": "0,1,2,3,4,5,6,7",
534        "EventName": "UOPS_EXECUTED.CYCLES_GE_3",
535        "SampleAfterValue": "2000003",
536        "BriefDescription": "Cycles where at least 3 uops were executed per-thread",
537        "CounterMask": "3"
538    },
539    {
540        "CollectPEBSRecord": "2",
541        "PublicDescription": "Cycles where at least 4 uops were executed per-thread.",
542        "EventCode": "0xb1",
543        "Counter": "0,1,2,3,4,5,6,7",
544        "UMask": "0x1",
545        "PEBScounters": "0,1,2,3,4,5,6,7",
546        "EventName": "UOPS_EXECUTED.CYCLES_GE_4",
547        "SampleAfterValue": "2000003",
548        "BriefDescription": "Cycles where at least 4 uops were executed per-thread",
549        "CounterMask": "4"
550    },
551    {
552        "CollectPEBSRecord": "2",
553        "PublicDescription": "Counts the number of uops executed from any thread.",
554        "EventCode": "0xB1",
555        "Counter": "0,1,2,3,4,5,6,7",
556        "UMask": "0x2",
557        "PEBScounters": "0,1,2,3,4,5,6,7",
558        "EventName": "UOPS_EXECUTED.CORE",
559        "SampleAfterValue": "2000003",
560        "BriefDescription": "Number of uops executed on the core."
561    },
562    {
563        "CollectPEBSRecord": "2",
564        "PublicDescription": "Counts cycles when at least 1 micro-op is executed from any thread on physical core.",
565        "EventCode": "0xB1",
566        "Counter": "0,1,2,3,4,5,6,7",
567        "UMask": "0x2",
568        "PEBScounters": "0,1,2,3,4,5,6,7",
569        "EventName": "UOPS_EXECUTED.CORE_CYCLES_GE_1",
570        "SampleAfterValue": "2000003",
571        "BriefDescription": "Cycles at least 1 micro-op is executed from any thread on physical core.",
572        "CounterMask": "1"
573    },
574    {
575        "CollectPEBSRecord": "2",
576        "PublicDescription": "Counts cycles when at least 2 micro-ops are executed from any thread on physical core.",
577        "EventCode": "0xB1",
578        "Counter": "0,1,2,3,4,5,6,7",
579        "UMask": "0x2",
580        "PEBScounters": "0,1,2,3,4,5,6,7",
581        "EventName": "UOPS_EXECUTED.CORE_CYCLES_GE_2",
582        "SampleAfterValue": "2000003",
583        "BriefDescription": "Cycles at least 2 micro-op is executed from any thread on physical core.",
584        "CounterMask": "2"
585    },
586    {
587        "CollectPEBSRecord": "2",
588        "PublicDescription": "Counts cycles when at least 3 micro-ops are executed from any thread on physical core.",
589        "EventCode": "0xB1",
590        "Counter": "0,1,2,3,4,5,6,7",
591        "UMask": "0x2",
592        "PEBScounters": "0,1,2,3,4,5,6,7",
593        "EventName": "UOPS_EXECUTED.CORE_CYCLES_GE_3",
594        "SampleAfterValue": "2000003",
595        "BriefDescription": "Cycles at least 3 micro-op is executed from any thread on physical core.",
596        "CounterMask": "3"
597    },
598    {
599        "CollectPEBSRecord": "2",
600        "PublicDescription": "Counts cycles when at least 4 micro-ops are executed from any thread on physical core.",
601        "EventCode": "0xB1",
602        "Counter": "0,1,2,3,4,5,6,7",
603        "UMask": "0x2",
604        "PEBScounters": "0,1,2,3,4,5,6,7",
605        "EventName": "UOPS_EXECUTED.CORE_CYCLES_GE_4",
606        "SampleAfterValue": "2000003",
607        "BriefDescription": "Cycles at least 4 micro-op is executed from any thread on physical core.",
608        "CounterMask": "4"
609    },
610    {
611        "CollectPEBSRecord": "2",
612        "PublicDescription": "Counts the number of x87 uops executed.",
613        "EventCode": "0xB1",
614        "Counter": "0,1,2,3,4,5,6,7",
615        "UMask": "0x10",
616        "PEBScounters": "0,1,2,3,4,5,6,7",
617        "EventName": "UOPS_EXECUTED.X87",
618        "SampleAfterValue": "2000003",
619        "BriefDescription": "Counts the number of x87 uops dispatched."
620    },
621    {
622        "CollectPEBSRecord": "2",
623        "PublicDescription": "Counts the number of X86 instructions retired - an Architectural PerfMon event. Counting continues during hardware interrupts, traps, and inside interrupt handlers. Notes: INST_RETIRED.ANY is counted by a designated fixed counter freeing up programmable counters to count other events. INST_RETIRED.ANY_P is counted by a programmable counter.",
624        "EventCode": "0xC0",
625        "Counter": "0,1,2,3,4,5,6,7",
626        "PEBScounters": "0,1,2,3,4,5,6,7",
627        "EventName": "INST_RETIRED.ANY_P",
628        "SampleAfterValue": "2000003",
629        "BriefDescription": "Number of instructions retired. General Counter - architectural event"
630    },
631    {
632        "CollectPEBSRecord": "2",
633        "PublicDescription": "Counts the number of cycles using always true condition (uops_ret < 16) applied to non PEBS uops retired event.",
634        "EventCode": "0xC2",
635        "Invert": "1",
636        "Counter": "0,1,2,3,4,5,6,7",
637        "UMask": "0x2",
638        "PEBScounters": "0,1,2,3,4,5,6,7",
639        "EventName": "UOPS_RETIRED.TOTAL_CYCLES",
640        "SampleAfterValue": "2000003",
641        "BriefDescription": "Cycles with less than 10 actually retired uops.",
642        "CounterMask": "10"
643    },
644    {
645        "CollectPEBSRecord": "2",
646        "PublicDescription": "Counts the retirement slots used each cycle.",
647        "EventCode": "0xc2",
648        "Counter": "0,1,2,3,4,5,6,7",
649        "UMask": "0x2",
650        "PEBScounters": "0,1,2,3,4,5,6,7",
651        "EventName": "UOPS_RETIRED.SLOTS",
652        "SampleAfterValue": "2000003",
653        "BriefDescription": "Retirement slots used."
654    },
655    {
656        "CollectPEBSRecord": "2",
657        "PublicDescription": "Counts the number of machine clears (nukes) of any type.",
658        "EventCode": "0xC3",
659        "Counter": "0,1,2,3,4,5,6,7",
660        "UMask": "0x1",
661        "PEBScounters": "0,1,2,3,4,5,6,7",
662        "EventName": "MACHINE_CLEARS.COUNT",
663        "SampleAfterValue": "100003",
664        "BriefDescription": "Number of machine clears (nukes) of any type.",
665        "CounterMask": "1",
666        "EdgeDetect": "1"
667    },
668    {
669        "CollectPEBSRecord": "2",
670        "PublicDescription": "Counts self-modifying code (SMC) detected, which causes a machine clear.",
671        "EventCode": "0xC3",
672        "Counter": "0,1,2,3,4,5,6,7",
673        "UMask": "0x4",
674        "PEBScounters": "0,1,2,3,4,5,6,7",
675        "EventName": "MACHINE_CLEARS.SMC",
676        "SampleAfterValue": "100003",
677        "BriefDescription": "Self-modifying code (SMC) detected."
678    },
679    {
680        "PEBS": "1",
681        "CollectPEBSRecord": "2",
682        "PublicDescription": "Counts all branch instructions retired.",
683        "EventCode": "0xC4",
684        "Counter": "0,1,2,3,4,5,6,7",
685        "PEBScounters": "0,1,2,3,4,5,6,7",
686        "EventName": "BR_INST_RETIRED.ALL_BRANCHES",
687        "SampleAfterValue": "400009",
688        "BriefDescription": "All branch instructions retired."
689    },
690    {
691        "PEBS": "1",
692        "CollectPEBSRecord": "2",
693        "PublicDescription": "Counts taken conditional branch instructions retired.",
694        "EventCode": "0xc4",
695        "Counter": "0,1,2,3,4,5,6,7",
696        "UMask": "0x1",
697        "PEBScounters": "0,1,2,3,4,5,6,7",
698        "EventName": "BR_INST_RETIRED.COND_TAKEN",
699        "SampleAfterValue": "400009",
700        "BriefDescription": "Taken conditional branch instructions retired."
701    },
702    {
703        "PEBS": "1",
704        "CollectPEBSRecord": "2",
705        "PublicDescription": "Counts both direct and indirect near call instructions retired.",
706        "EventCode": "0xC4",
707        "Counter": "0,1,2,3,4,5,6,7",
708        "UMask": "0x2",
709        "PEBScounters": "0,1,2,3,4,5,6,7",
710        "EventName": "BR_INST_RETIRED.NEAR_CALL",
711        "SampleAfterValue": "100007",
712        "BriefDescription": "Direct and indirect near call instructions retired."
713    },
714    {
715        "PEBS": "1",
716        "CollectPEBSRecord": "2",
717        "PublicDescription": "Counts return instructions retired.",
718        "EventCode": "0xC4",
719        "Counter": "0,1,2,3,4,5,6,7",
720        "UMask": "0x8",
721        "PEBScounters": "0,1,2,3,4,5,6,7",
722        "EventName": "BR_INST_RETIRED.NEAR_RETURN",
723        "SampleAfterValue": "100007",
724        "BriefDescription": "Return instructions retired."
725    },
726    {
727        "PEBS": "1",
728        "CollectPEBSRecord": "2",
729        "PublicDescription": "Counts not taken branch instructions retired.",
730        "EventCode": "0xC4",
731        "Counter": "0,1,2,3,4,5,6,7",
732        "UMask": "0x10",
733        "PEBScounters": "0,1,2,3,4,5,6,7",
734        "EventName": "BR_INST_RETIRED.COND_NTAKEN",
735        "SampleAfterValue": "400009",
736        "BriefDescription": "Not taken branch instructions retired."
737    },
738    {
739        "PEBS": "1",
740        "CollectPEBSRecord": "2",
741        "PublicDescription": "Counts conditional branch instructions retired.",
742        "EventCode": "0xc4",
743        "Counter": "0,1,2,3,4,5,6,7",
744        "UMask": "0x11",
745        "PEBScounters": "0,1,2,3,4,5,6,7",
746        "EventName": "BR_INST_RETIRED.COND",
747        "SampleAfterValue": "400009",
748        "BriefDescription": "Conditional branch instructions retired."
749    },
750    {
751        "PEBS": "1",
752        "CollectPEBSRecord": "2",
753        "PublicDescription": "Counts taken branch instructions retired.",
754        "EventCode": "0xC4",
755        "Counter": "0,1,2,3,4,5,6,7",
756        "UMask": "0x20",
757        "PEBScounters": "0,1,2,3,4,5,6,7",
758        "EventName": "BR_INST_RETIRED.NEAR_TAKEN",
759        "SampleAfterValue": "400009",
760        "BriefDescription": "Taken branch instructions retired."
761    },
762    {
763        "PEBS": "1",
764        "CollectPEBSRecord": "2",
765        "PublicDescription": "Counts far branch instructions retired.",
766        "EventCode": "0xC4",
767        "Counter": "0,1,2,3,4,5,6,7",
768        "UMask": "0x40",
769        "PEBScounters": "0,1,2,3,4,5,6,7",
770        "EventName": "BR_INST_RETIRED.FAR_BRANCH",
771        "SampleAfterValue": "100007",
772        "BriefDescription": "Far branch instructions retired."
773    },
774    {
775        "PEBS": "1",
776        "CollectPEBSRecord": "2",
777        "PublicDescription": "Counts all indirect branch instructions retired (excluding RETs. TSX aborts is considered indirect branch).",
778        "EventCode": "0xc4",
779        "Counter": "0,1,2,3,4,5,6,7",
780        "UMask": "0x80",
781        "PEBScounters": "0,1,2,3,4,5,6,7",
782        "EventName": "BR_INST_RETIRED.INDIRECT",
783        "SampleAfterValue": "100003",
784        "BriefDescription": "All indirect branch instructions retired (excluding RETs. TSX aborts are considered indirect branch)."
785    },
786    {
787        "PEBS": "1",
788        "CollectPEBSRecord": "2",
789        "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.",
790        "EventCode": "0xC5",
791        "Counter": "0,1,2,3,4,5,6,7",
792        "PEBScounters": "0,1,2,3,4,5,6,7",
793        "EventName": "BR_MISP_RETIRED.ALL_BRANCHES",
794        "SampleAfterValue": "400009",
795        "BriefDescription": "All mispredicted branch instructions retired.",
796        "Data_LA": "1"
797    },
798    {
799        "PEBS": "1",
800        "CollectPEBSRecord": "2",
801        "PublicDescription": "Counts taken conditional mispredicted branch instructions retired.",
802        "EventCode": "0xc5",
803        "Counter": "0,1,2,3,4,5,6,7",
804        "UMask": "0x1",
805        "PEBScounters": "0,1,2,3,4,5,6,7",
806        "EventName": "BR_MISP_RETIRED.COND_TAKEN",
807        "SampleAfterValue": "400009",
808        "BriefDescription": "number of branch instructions retired that were mispredicted and taken. Non PEBS",
809        "Data_LA": "1"
810    },
811    {
812        "PEBS": "1",
813        "CollectPEBSRecord": "2",
814        "PublicDescription": "Counts mispredicted conditional branch instructions retired.",
815        "EventCode": "0xc5",
816        "Counter": "0,1,2,3,4,5,6,7",
817        "UMask": "0x11",
818        "PEBScounters": "0,1,2,3,4,5,6,7",
819        "EventName": "BR_MISP_RETIRED.COND",
820        "SampleAfterValue": "400009",
821        "BriefDescription": "Mispredicted conditional branch instructions retired.",
822        "Data_LA": "1"
823    },
824    {
825        "PEBS": "1",
826        "CollectPEBSRecord": "2",
827        "PublicDescription": "Counts number of near branch instructions retired that were mispredicted and taken.",
828        "EventCode": "0xC5",
829        "Counter": "0,1,2,3,4,5,6,7",
830        "UMask": "0x20",
831        "PEBScounters": "0,1,2,3,4,5,6,7",
832        "EventName": "BR_MISP_RETIRED.NEAR_TAKEN",
833        "SampleAfterValue": "400009",
834        "BriefDescription": "Number of near branch instructions retired that were mispredicted and taken.",
835        "Data_LA": "1"
836    },
837    {
838        "PEBS": "1",
839        "CollectPEBSRecord": "2",
840        "PublicDescription": "Counts all miss-predicted indirect branch instructions retired (excluding RETs. TSX aborts is considered indirect branch).",
841        "EventCode": "0xC5",
842        "Counter": "0,1,2,3,4,5,6,7",
843        "UMask": "0x80",
844        "PEBScounters": "0,1,2,3,4,5,6,7",
845        "EventName": "BR_MISP_RETIRED.INDIRECT",
846        "SampleAfterValue": "100003",
847        "BriefDescription": "All miss-predicted indirect branch instructions retired (excluding RETs. TSX aborts is considered indirect branch).",
848        "Data_LA": "1"
849    },
850    {
851        "CollectPEBSRecord": "2",
852        "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.",
853        "EventCode": "0xcc",
854        "Counter": "0,1,2,3,4,5,6,7",
855        "UMask": "0x20",
856        "PEBScounters": "0,1,2,3,4,5,6,7",
857        "EventName": "MISC_RETIRED.LBR_INSERTS",
858        "SampleAfterValue": "2000003",
859        "BriefDescription": "Increments whenever there is an update to the LBR array."
860    },
861    {
862        "PublicDescription": "Counts number of retired PAUSE instructions (that do not end up with a VMExit to the VMM; TSX aborted Instructions may be counted).",
863        "EventCode": "0xcc",
864        "Counter": "0,1,2,3,4,5,6,7",
865        "UMask": "0x40",
866        "EventName": "MISC_RETIRED.PAUSE_INST",
867        "SampleAfterValue": "2000003",
868        "BriefDescription": "Number of retired PAUSE instructions."
869    },
870    {
871        "CollectPEBSRecord": "2",
872        "PublicDescription": "Counts the number of times the front-end is resteered when it finds a branch instruction in a fetch line. This occurs for the first time a branch instruction is fetched or when the branch is not tracked by the BPU (Branch Prediction Unit) anymore.",
873        "EventCode": "0xE6",
874        "Counter": "0,1,2,3",
875        "UMask": "0x1",
876        "PEBScounters": "0,1,2,3",
877        "EventName": "BACLEARS.ANY",
878        "SampleAfterValue": "100003",
879        "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."
880    },
881    {
882        "CollectPEBSRecord": "2",
883        "PublicDescription": "This event distributes cycle counts between active hyperthreads, i.e., those in C0.  A hyperthread becomes inactive when it executes the HLT or MWAIT instructions.  If all other hyperthreads are inactive (or disabled or do not exist), all counts are attributed to this hyperthread. To obtain the full count when the Core is active, sum the counts from each hyperthread.",
884        "EventCode": "0xec",
885        "Counter": "0,1,2,3,4,5,6,7",
886        "UMask": "0x2",
887        "PEBScounters": "0,1,2,3,4,5,6,7",
888        "EventName": "CPU_CLK_UNHALTED.DISTRIBUTED",
889        "SampleAfterValue": "2000003",
890        "BriefDescription": "Cycle counts are evenly distributed between active threads in the Core."
891    }
892]