1[
2    {
3        "PEBS": "2",
4        "CollectPEBSRecord": "2",
5        "PublicDescription": "Counts branch instructions retired for all branch types.  This is an architectural performance event.",
6        "EventCode": "0xC4",
7        "Counter": "0,1,2,3",
8        "UMask": "0x0",
9        "EventName": "BR_INST_RETIRED.ALL_BRANCHES",
10        "SampleAfterValue": "200003",
11        "BriefDescription": "Retired branch instructions (Precise event capable)"
12    },
13    {
14        "PEBS": "2",
15        "CollectPEBSRecord": "2",
16        "PublicDescription": "Counts retired Jcc (Jump on Conditional Code/Jump if Condition is Met) branch instructions retired, including both when the branch was taken and when it was not taken.",
17        "EventCode": "0xC4",
18        "Counter": "0,1,2,3",
19        "UMask": "0x7e",
20        "EventName": "BR_INST_RETIRED.JCC",
21        "SampleAfterValue": "200003",
22        "BriefDescription": "Retired conditional branch instructions (Precise event capable)"
23    },
24    {
25        "PEBS": "2",
26        "CollectPEBSRecord": "2",
27        "PublicDescription": "Counts Jcc (Jump on Conditional Code/Jump if Condition is Met) branch instructions retired that were taken and does not count when the Jcc branch instruction were not taken.",
28        "EventCode": "0xC4",
29        "Counter": "0,1,2,3",
30        "UMask": "0xfe",
31        "EventName": "BR_INST_RETIRED.TAKEN_JCC",
32        "SampleAfterValue": "200003",
33        "BriefDescription": "Retired conditional branch instructions that were taken (Precise event capable)"
34    },
35    {
36        "PEBS": "2",
37        "CollectPEBSRecord": "2",
38        "PublicDescription": "Counts near CALL branch instructions retired.",
39        "EventCode": "0xC4",
40        "Counter": "0,1,2,3",
41        "UMask": "0xf9",
42        "EventName": "BR_INST_RETIRED.CALL",
43        "SampleAfterValue": "200003",
44        "BriefDescription": "Retired near call instructions (Precise event capable)"
45    },
46    {
47        "PEBS": "2",
48        "CollectPEBSRecord": "2",
49        "PublicDescription": "Counts near relative CALL branch instructions retired.",
50        "EventCode": "0xC4",
51        "Counter": "0,1,2,3",
52        "UMask": "0xfd",
53        "EventName": "BR_INST_RETIRED.REL_CALL",
54        "SampleAfterValue": "200003",
55        "BriefDescription": "Retired near relative call instructions (Precise event capable)"
56    },
57    {
58        "PEBS": "2",
59        "CollectPEBSRecord": "2",
60        "PublicDescription": "Counts near indirect CALL branch instructions retired.",
61        "EventCode": "0xC4",
62        "Counter": "0,1,2,3",
63        "UMask": "0xfb",
64        "EventName": "BR_INST_RETIRED.IND_CALL",
65        "SampleAfterValue": "200003",
66        "BriefDescription": "Retired near indirect call instructions (Precise event capable)"
67    },
68    {
69        "PEBS": "2",
70        "CollectPEBSRecord": "2",
71        "PublicDescription": "Counts near return branch instructions retired.",
72        "EventCode": "0xC4",
73        "Counter": "0,1,2,3",
74        "UMask": "0xf7",
75        "EventName": "BR_INST_RETIRED.RETURN",
76        "SampleAfterValue": "200003",
77        "BriefDescription": "Retired near return instructions (Precise event capable)"
78    },
79    {
80        "PEBS": "2",
81        "CollectPEBSRecord": "2",
82        "PublicDescription": "Counts near indirect call or near indirect jmp branch instructions retired.",
83        "EventCode": "0xC4",
84        "Counter": "0,1,2,3",
85        "UMask": "0xeb",
86        "EventName": "BR_INST_RETIRED.NON_RETURN_IND",
87        "SampleAfterValue": "200003",
88        "BriefDescription": "Retired instructions of near indirect Jmp or call (Precise event capable)"
89    },
90    {
91        "PEBS": "2",
92        "CollectPEBSRecord": "2",
93        "PublicDescription": "Counts far branch instructions retired.  This includes far jump, far call and return, and Interrupt call and return.",
94        "EventCode": "0xC4",
95        "Counter": "0,1,2,3",
96        "UMask": "0xbf",
97        "EventName": "BR_INST_RETIRED.FAR_BRANCH",
98        "SampleAfterValue": "200003",
99        "BriefDescription": "Retired far branch instructions (Precise event capable)"
100    },
101    {
102        "PEBS": "2",
103        "CollectPEBSRecord": "2",
104        "PublicDescription": "Counts mispredicted branch instructions retired including all branch types.",
105        "EventCode": "0xC5",
106        "Counter": "0,1,2,3",
107        "UMask": "0x0",
108        "EventName": "BR_MISP_RETIRED.ALL_BRANCHES",
109        "SampleAfterValue": "200003",
110        "BriefDescription": "Retired mispredicted branch instructions (Precise event capable)"
111    },
112    {
113        "PEBS": "2",
114        "CollectPEBSRecord": "2",
115        "PublicDescription": "Counts mispredicted retired Jcc (Jump on Conditional Code/Jump if Condition is Met) branch instructions retired, including both when the branch was supposed to be taken and when it was not supposed to be taken (but the processor predicted the opposite condition).",
116        "EventCode": "0xC5",
117        "Counter": "0,1,2,3",
118        "UMask": "0x7e",
119        "EventName": "BR_MISP_RETIRED.JCC",
120        "SampleAfterValue": "200003",
121        "BriefDescription": "Retired mispredicted conditional branch instructions (Precise event capable)"
122    },
123    {
124        "PEBS": "2",
125        "CollectPEBSRecord": "2",
126        "PublicDescription": "Counts mispredicted retired Jcc (Jump on Conditional Code/Jump if Condition is Met) branch instructions retired that were supposed to be taken but the processor predicted that it would not be taken.",
127        "EventCode": "0xC5",
128        "Counter": "0,1,2,3",
129        "UMask": "0xfe",
130        "EventName": "BR_MISP_RETIRED.TAKEN_JCC",
131        "SampleAfterValue": "200003",
132        "BriefDescription": "Retired mispredicted conditional branch instructions that were taken (Precise event capable)"
133    },
134    {
135        "PEBS": "2",
136        "CollectPEBSRecord": "2",
137        "PublicDescription": "Counts mispredicted near indirect CALL branch instructions retired, where the target address taken was not what the processor predicted.",
138        "EventCode": "0xC5",
139        "Counter": "0,1,2,3",
140        "UMask": "0xfb",
141        "EventName": "BR_MISP_RETIRED.IND_CALL",
142        "SampleAfterValue": "200003",
143        "BriefDescription": "Retired mispredicted near indirect call instructions (Precise event capable)"
144    },
145    {
146        "PEBS": "2",
147        "CollectPEBSRecord": "2",
148        "PublicDescription": "Counts mispredicted near RET branch instructions retired, where the return address taken was not what the processor predicted.",
149        "EventCode": "0xC5",
150        "Counter": "0,1,2,3",
151        "UMask": "0xf7",
152        "EventName": "BR_MISP_RETIRED.RETURN",
153        "SampleAfterValue": "200003",
154        "BriefDescription": "Retired mispredicted near return instructions (Precise event capable)"
155    },
156    {
157        "PEBS": "2",
158        "CollectPEBSRecord": "2",
159        "PublicDescription": "Counts mispredicted branch instructions retired that were near indirect call or near indirect jmp, where the target address taken was not what the processor predicted.",
160        "EventCode": "0xC5",
161        "Counter": "0,1,2,3",
162        "UMask": "0xeb",
163        "EventName": "BR_MISP_RETIRED.NON_RETURN_IND",
164        "SampleAfterValue": "200003",
165        "BriefDescription": "Retired mispredicted instructions of near indirect Jmp or near indirect call. (Precise event capable)"
166    },
167    {
168        "PEBS": "2",
169        "CollectPEBSRecord": "2",
170        "PublicDescription": "Counts uops which retired.",
171        "EventCode": "0xC2",
172        "Counter": "0,1,2,3",
173        "UMask": "0x0",
174        "EventName": "UOPS_RETIRED.ANY",
175        "SampleAfterValue": "2000003",
176        "BriefDescription": "Uops retired (Precise event capable)"
177    },
178    {
179        "PEBS": "2",
180        "CollectPEBSRecord": "2",
181        "PublicDescription": "Counts uops retired that are from the complex flows issued by the micro-sequencer (MS).  Counts both the uops from a micro-coded instruction, and the uops that might be generated from a micro-coded assist.",
182        "EventCode": "0xC2",
183        "Counter": "0,1,2,3",
184        "UMask": "0x1",
185        "EventName": "UOPS_RETIRED.MS",
186        "SampleAfterValue": "2000003",
187        "BriefDescription": "MS uops retired (Precise event capable)"
188    },
189    {
190        "CollectPEBSRecord": "1",
191        "PublicDescription": "Counts the number of times that the processor detects that a program is writing to a code section and has to perform a machine clear because of that modification.  Self-modifying code (SMC) causes a severe penalty in all Intel? architecture processors.",
192        "EventCode": "0xC3",
193        "Counter": "0,1,2,3",
194        "UMask": "0x1",
195        "EventName": "MACHINE_CLEARS.SMC",
196        "SampleAfterValue": "200003",
197        "BriefDescription": "Self-Modifying Code detected"
198    },
199    {
200        "CollectPEBSRecord": "1",
201        "PublicDescription": "Counts machine clears due to floating point (FP) operations needing assists.  For instance, if the result was a floating point denormal, the hardware clears the pipeline and reissues uops to produce the correct IEEE compliant denormal result.",
202        "EventCode": "0xC3",
203        "Counter": "0,1,2,3",
204        "UMask": "0x4",
205        "EventName": "MACHINE_CLEARS.FP_ASSIST",
206        "SampleAfterValue": "200003",
207        "BriefDescription": "Machine clears due to FP assists"
208    },
209    {
210        "CollectPEBSRecord": "1",
211        "PublicDescription": "Counts machine clears due to memory disambiguation.  Memory disambiguation happens when a load which has been issued conflicts with a previous unretired store in the pipeline whose address was not known at issue time, but is later resolved to be the same as the load address.",
212        "EventCode": "0xC3",
213        "Counter": "0,1,2,3",
214        "UMask": "0x8",
215        "EventName": "MACHINE_CLEARS.DISAMBIGUATION",
216        "SampleAfterValue": "200003",
217        "BriefDescription": "Machine clears due to memory disambiguation"
218    },
219    {
220        "CollectPEBSRecord": "1",
221        "PublicDescription": "Counts machine clears for any reason.",
222        "EventCode": "0xC3",
223        "Counter": "0,1,2,3",
224        "UMask": "0x0",
225        "EventName": "MACHINE_CLEARS.ALL",
226        "SampleAfterValue": "200003",
227        "BriefDescription": "All machine clears"
228    },
229    {
230        "PEBS": "2",
231        "CollectPEBSRecord": "1",
232        "PublicDescription": "Counts the number of instructions that retire execution. For instructions that consist of multiple uops, this event counts the retirement of the last uop of the instruction. The event continues counting during hardware interrupts, traps, and inside interrupt handlers.  This is an architectural performance event.  This event uses a (_P)rogrammable general purpose performance counter. *This event is Precise Event capable:  The EventingRIP field in the PEBS record is precise to the address of the instruction which caused the event.  Note: Because PEBS records can be collected only on IA32_PMC0, only one event can use the PEBS facility at a time.",
233        "EventCode": "0xC0",
234        "Counter": "0,1,2,3",
235        "UMask": "0x0",
236        "EventName": "INST_RETIRED.ANY_P",
237        "SampleAfterValue": "2000003",
238        "BriefDescription": "Instructions retired (Precise event capable)"
239    },
240    {
241        "CollectPEBSRecord": "1",
242        "PublicDescription": "This event used to measure front-end inefficiencies. I.e. when front-end of the machine is not delivering uops to the back-end and the back-end has is not stalled. This event can be used to identify if the machine is truly front-end bound.  When this event occurs, it is an indication that the front-end of the machine is operating at less than its theoretical peak performance. Background: We can think of the processor pipeline as being divided into 2 broader parts: Front-end and Back-end. Front-end is responsible for fetching the instruction, decoding into uops in machine understandable format and putting them into a uop queue to be consumed by back end. The back-end then takes these uops, allocates the required resources.  When all resources are ready, uops are executed. If the back-end is not ready to accept uops from the front-end, then we do not want to count these as front-end bottlenecks.  However, whenever we have bottlenecks in the back-end, we will have allocation unit stalls and eventually forcing the front-end to wait until the back-end is ready to receive more uops. This event counts only when back-end is requesting more uops and front-end is not able to provide them. When 3 uops are requested and no uops are delivered, the event counts 3. When 3 are requested, and only 1 is delivered, the event counts 2. When only 2 are delivered, the event counts 1. Alternatively stated, the event will not count if 3 uops are delivered, or if the back end is stalled and not requesting any uops at all.  Counts indicate missed opportunities for the front-end to deliver a uop to the back end. Some examples of conditions that cause front-end efficiencies are: ICache misses, ITLB misses, and decoder restrictions that limit the front-end bandwidth. Known Issues: Some uops require multiple allocation slots.  These uops will not be charged as a front end 'not delivered' opportunity, and will be regarded as a back end problem. For example, the INC instruction has one uop that requires 2 issue slots.  A stream of INC instructions will not count as UOPS_NOT_DELIVERED, even though only one instruction can be issued per clock.  The low uop issue rate for a stream of INC instructions is considered to be a back end issue.",
243        "EventCode": "0x9C",
244        "Counter": "0,1,2,3",
245        "UMask": "0x0",
246        "EventName": "UOPS_NOT_DELIVERED.ANY",
247        "SampleAfterValue": "200003",
248        "BriefDescription": "Uops requested but not-delivered to the back-end per cycle"
249    },
250    {
251        "CollectPEBSRecord": "1",
252        "PublicDescription": "Counts uops issued by the front end and allocated into the back end of the machine.  This event counts uops that retire as well as uops that were speculatively executed but didn't retire. The sort of speculative uops that might be counted includes, but is not limited to those uops issued in the shadow of a miss-predicted branch, those uops that are inserted during an assist (such as for a denormal floating point result), and (previously allocated) uops that might be canceled during a machine clear.",
253        "EventCode": "0x0E",
254        "Counter": "0,1,2,3",
255        "UMask": "0x0",
256        "EventName": "UOPS_ISSUED.ANY",
257        "SampleAfterValue": "200003",
258        "BriefDescription": "Uops issued to the back end per cycle"
259    },
260    {
261        "CollectPEBSRecord": "1",
262        "PublicDescription": "Counts core cycles if either divide unit is busy.",
263        "EventCode": "0xCD",
264        "Counter": "0,1,2,3",
265        "UMask": "0x0",
266        "EventName": "CYCLES_DIV_BUSY.ALL",
267        "SampleAfterValue": "2000003",
268        "BriefDescription": "Cycles a divider is busy"
269    },
270    {
271        "CollectPEBSRecord": "1",
272        "PublicDescription": "Counts core cycles the integer divide unit is busy.",
273        "EventCode": "0xCD",
274        "Counter": "0,1,2,3",
275        "UMask": "0x1",
276        "EventName": "CYCLES_DIV_BUSY.IDIV",
277        "SampleAfterValue": "200003",
278        "BriefDescription": "Cycles the integer divide unit is busy"
279    },
280    {
281        "CollectPEBSRecord": "1",
282        "PublicDescription": "Counts core cycles the floating point divide unit is busy.",
283        "EventCode": "0xCD",
284        "Counter": "0,1,2,3",
285        "UMask": "0x2",
286        "EventName": "CYCLES_DIV_BUSY.FPDIV",
287        "SampleAfterValue": "200003",
288        "BriefDescription": "Cycles the FP divide unit is busy"
289    },
290    {
291        "PublicDescription": "Counts the number of instructions that retire execution. For instructions that consist of multiple uops, this event counts the retirement of the last uop of the instruction. The counter continues counting during hardware interrupts, traps, and inside interrupt handlers.  This event uses fixed counter 0.  You cannot collect a PEBs record for this event.",
292        "EventCode": "0x00",
293        "Counter": "Fixed counter 1",
294        "UMask": "0x1",
295        "EventName": "INST_RETIRED.ANY",
296        "SampleAfterValue": "2000003",
297        "BriefDescription": "Instructions retired (Fixed event)"
298    },
299    {
300        "PublicDescription": "Counts the number of core cycles while the core is not in a halt state.  The core enters the halt state when it is running the HLT instruction. In mobile systems the core frequency may change from time to time. For this reason this event may have a changing ratio with regards to time.  This event uses fixed counter 1.  You cannot collect a PEBs record for this event.",
301        "EventCode": "0x00",
302        "Counter": "Fixed counter 2",
303        "UMask": "0x2",
304        "EventName": "CPU_CLK_UNHALTED.CORE",
305        "SampleAfterValue": "2000003",
306        "BriefDescription": "Core cycles when core is not halted  (Fixed event)"
307    },
308    {
309        "PublicDescription": "Counts the number of reference cycles that the core is not in a halt state. The core enters the halt state when it is running the HLT instruction.  In mobile systems the core frequency may change from time.  This event is not affected by core frequency changes but counts as if the core is running at the maximum frequency all the time.  This event uses fixed counter 2.  You cannot collect a PEBs record for this event.",
310        "EventCode": "0x00",
311        "Counter": "Fixed counter 3",
312        "UMask": "0x3",
313        "EventName": "CPU_CLK_UNHALTED.REF_TSC",
314        "SampleAfterValue": "2000003",
315        "BriefDescription": "Reference cycles when core is not halted  (Fixed event)"
316    },
317    {
318        "CollectPEBSRecord": "1",
319        "PublicDescription": "Core cycles when core is not halted.  This event uses a (_P)rogrammable general purpose performance counter.",
320        "EventCode": "0x3C",
321        "Counter": "0,1,2,3",
322        "UMask": "0x0",
323        "EventName": "CPU_CLK_UNHALTED.CORE_P",
324        "SampleAfterValue": "2000003",
325        "BriefDescription": "Core cycles when core is not halted"
326    },
327    {
328        "CollectPEBSRecord": "1",
329        "PublicDescription": "Reference cycles when core is not halted.  This event uses a (_P)rogrammable general purpose performance counter.",
330        "EventCode": "0x3C",
331        "Counter": "0,1,2,3",
332        "UMask": "0x1",
333        "EventName": "CPU_CLK_UNHALTED.REF",
334        "SampleAfterValue": "2000003",
335        "BriefDescription": "Reference cycles when core is not halted"
336    },
337    {
338        "CollectPEBSRecord": "1",
339        "PublicDescription": "Counts the number of times a BACLEAR is signaled for any reason, including, but not limited to indirect branch/call,  Jcc (Jump on Conditional Code/Jump if Condition is Met) branch, unconditional branch/call, and returns.",
340        "EventCode": "0xE6",
341        "Counter": "0,1,2,3",
342        "UMask": "0x1",
343        "EventName": "BACLEARS.ALL",
344        "SampleAfterValue": "200003",
345        "BriefDescription": "BACLEARs asserted for any branch type"
346    },
347    {
348        "CollectPEBSRecord": "1",
349        "PublicDescription": "Counts BACLEARS on return instructions.",
350        "EventCode": "0xE6",
351        "Counter": "0,1,2,3",
352        "UMask": "0x8",
353        "EventName": "BACLEARS.RETURN",
354        "SampleAfterValue": "200003",
355        "BriefDescription": "BACLEARs asserted for return branch"
356    },
357    {
358        "CollectPEBSRecord": "1",
359        "PublicDescription": "Counts BACLEARS on Jcc (Jump on Conditional Code/Jump if Condition is Met) branches.",
360        "EventCode": "0xE6",
361        "Counter": "0,1,2,3",
362        "UMask": "0x10",
363        "EventName": "BACLEARS.COND",
364        "SampleAfterValue": "200003",
365        "BriefDescription": "BACLEARs asserted for conditional branch"
366    },
367    {
368        "PEBS": "2",
369        "CollectPEBSRecord": "2",
370        "PublicDescription": "Counts anytime a load that retires is blocked for any reason.",
371        "EventCode": "0x03",
372        "Counter": "0,1,2,3",
373        "UMask": "0x10",
374        "EventName": "LD_BLOCKS.ALL_BLOCK",
375        "SampleAfterValue": "200003",
376        "BriefDescription": "Loads blocked (Precise event capable)"
377    },
378    {
379        "PEBS": "2",
380        "CollectPEBSRecord": "2",
381        "PublicDescription": "Counts loads blocked because they are unable to find their physical address in the micro TLB (UTLB).",
382        "EventCode": "0x03",
383        "Counter": "0,1,2,3",
384        "UMask": "0x8",
385        "EventName": "LD_BLOCKS.UTLB_MISS",
386        "SampleAfterValue": "200003",
387        "BriefDescription": "Loads blocked because address in not in the UTLB (Precise event capable)"
388    },
389    {
390        "PEBS": "2",
391        "CollectPEBSRecord": "2",
392        "PublicDescription": "Counts a load blocked from using a store forward because of an address/size mismatch, only one of the loads blocked from each store will be counted.",
393        "EventCode": "0x03",
394        "Counter": "0,1,2,3",
395        "UMask": "0x2",
396        "EventName": "LD_BLOCKS.STORE_FORWARD",
397        "SampleAfterValue": "200003",
398        "BriefDescription": "Loads blocked due to store forward restriction (Precise event capable)"
399    },
400    {
401        "PEBS": "2",
402        "CollectPEBSRecord": "2",
403        "PublicDescription": "Counts a load blocked from using a store forward, but did not occur because the store data was not available at the right time.  The forward might occur subsequently when the data is available.",
404        "EventCode": "0x03",
405        "Counter": "0,1,2,3",
406        "UMask": "0x1",
407        "EventName": "LD_BLOCKS.DATA_UNKNOWN",
408        "SampleAfterValue": "200003",
409        "BriefDescription": "Loads blocked due to store data not ready (Precise event capable)"
410    },
411    {
412        "PEBS": "2",
413        "CollectPEBSRecord": "2",
414        "PublicDescription": "Counts loads that block because their address modulo 4K matches a pending store.",
415        "EventCode": "0x03",
416        "Counter": "0,1,2,3",
417        "UMask": "0x4",
418        "EventName": "LD_BLOCKS.4K_ALIAS",
419        "SampleAfterValue": "200003",
420        "BriefDescription": "Loads blocked because address has 4k partial address false dependence (Precise event capable)"
421    },
422    {
423        "PEBS": "2",
424        "CollectPEBSRecord": "1",
425        "PublicDescription": "Counts the number of taken branch instructions retired.",
426        "EventCode": "0xC4",
427        "Counter": "0,1,2,3",
428        "UMask": "0x80",
429        "EventName": "BR_INST_RETIRED.ALL_TAKEN_BRANCHES",
430        "SampleAfterValue": "200003",
431        "BriefDescription": "Retired taken branch instructions (Precise event capable)"
432    }
433]