1[
2    {
3        "BriefDescription": "Retired branch instructions (Precise event capable)",
4        "EventCode": "0xC4",
5        "EventName": "BR_INST_RETIRED.ALL_BRANCHES",
6        "PEBS": "2",
7        "PublicDescription": "Counts branch instructions retired for all branch types.  This is an architectural performance event.",
8        "SampleAfterValue": "200003"
9    },
10    {
11        "BriefDescription": "Retired taken branch instructions (Precise event capable)",
12        "EventCode": "0xC4",
13        "EventName": "BR_INST_RETIRED.ALL_TAKEN_BRANCHES",
14        "PEBS": "2",
15        "PublicDescription": "Counts the number of taken branch instructions retired.",
16        "SampleAfterValue": "200003",
17        "UMask": "0x80"
18    },
19    {
20        "BriefDescription": "Retired near call instructions (Precise event capable)",
21        "EventCode": "0xC4",
22        "EventName": "BR_INST_RETIRED.CALL",
23        "PEBS": "2",
24        "PublicDescription": "Counts near CALL branch instructions retired.",
25        "SampleAfterValue": "200003",
26        "UMask": "0xf9"
27    },
28    {
29        "BriefDescription": "Retired far branch instructions (Precise event capable)",
30        "EventCode": "0xC4",
31        "EventName": "BR_INST_RETIRED.FAR_BRANCH",
32        "PEBS": "2",
33        "PublicDescription": "Counts far branch instructions retired.  This includes far jump, far call and return, and Interrupt call and return.",
34        "SampleAfterValue": "200003",
35        "UMask": "0xbf"
36    },
37    {
38        "BriefDescription": "Retired near indirect call instructions (Precise event capable)",
39        "EventCode": "0xC4",
40        "EventName": "BR_INST_RETIRED.IND_CALL",
41        "PEBS": "2",
42        "PublicDescription": "Counts near indirect CALL branch instructions retired.",
43        "SampleAfterValue": "200003",
44        "UMask": "0xfb"
45    },
46    {
47        "BriefDescription": "Retired conditional branch instructions (Precise event capable)",
48        "EventCode": "0xC4",
49        "EventName": "BR_INST_RETIRED.JCC",
50        "PEBS": "2",
51        "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.",
52        "SampleAfterValue": "200003",
53        "UMask": "0x7e"
54    },
55    {
56        "BriefDescription": "Retired instructions of near indirect Jmp or call (Precise event capable)",
57        "EventCode": "0xC4",
58        "EventName": "BR_INST_RETIRED.NON_RETURN_IND",
59        "PEBS": "2",
60        "PublicDescription": "Counts near indirect call or near indirect jmp branch instructions retired.",
61        "SampleAfterValue": "200003",
62        "UMask": "0xeb"
63    },
64    {
65        "BriefDescription": "Retired near relative call instructions (Precise event capable)",
66        "EventCode": "0xC4",
67        "EventName": "BR_INST_RETIRED.REL_CALL",
68        "PEBS": "2",
69        "PublicDescription": "Counts near relative CALL branch instructions retired.",
70        "SampleAfterValue": "200003",
71        "UMask": "0xfd"
72    },
73    {
74        "BriefDescription": "Retired near return instructions (Precise event capable)",
75        "EventCode": "0xC4",
76        "EventName": "BR_INST_RETIRED.RETURN",
77        "PEBS": "2",
78        "PublicDescription": "Counts near return branch instructions retired.",
79        "SampleAfterValue": "200003",
80        "UMask": "0xf7"
81    },
82    {
83        "BriefDescription": "Retired conditional branch instructions that were taken (Precise event capable)",
84        "EventCode": "0xC4",
85        "EventName": "BR_INST_RETIRED.TAKEN_JCC",
86        "PEBS": "2",
87        "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.",
88        "SampleAfterValue": "200003",
89        "UMask": "0xfe"
90    },
91    {
92        "BriefDescription": "Retired mispredicted branch instructions (Precise event capable)",
93        "EventCode": "0xC5",
94        "EventName": "BR_MISP_RETIRED.ALL_BRANCHES",
95        "PEBS": "2",
96        "PublicDescription": "Counts mispredicted branch instructions retired including all branch types.",
97        "SampleAfterValue": "200003"
98    },
99    {
100        "BriefDescription": "Retired mispredicted near indirect call instructions (Precise event capable)",
101        "EventCode": "0xC5",
102        "EventName": "BR_MISP_RETIRED.IND_CALL",
103        "PEBS": "2",
104        "PublicDescription": "Counts mispredicted near indirect CALL branch instructions retired, where the target address taken was not what the processor predicted.",
105        "SampleAfterValue": "200003",
106        "UMask": "0xfb"
107    },
108    {
109        "BriefDescription": "Retired mispredicted conditional branch instructions (Precise event capable)",
110        "EventCode": "0xC5",
111        "EventName": "BR_MISP_RETIRED.JCC",
112        "PEBS": "2",
113        "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).",
114        "SampleAfterValue": "200003",
115        "UMask": "0x7e"
116    },
117    {
118        "BriefDescription": "Retired mispredicted instructions of near indirect Jmp or near indirect call. (Precise event capable)",
119        "EventCode": "0xC5",
120        "EventName": "BR_MISP_RETIRED.NON_RETURN_IND",
121        "PEBS": "2",
122        "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.",
123        "SampleAfterValue": "200003",
124        "UMask": "0xeb"
125    },
126    {
127        "BriefDescription": "Retired mispredicted near return instructions (Precise event capable)",
128        "EventCode": "0xC5",
129        "EventName": "BR_MISP_RETIRED.RETURN",
130        "PEBS": "2",
131        "PublicDescription": "Counts mispredicted near RET branch instructions retired, where the return address taken was not what the processor predicted.",
132        "SampleAfterValue": "200003",
133        "UMask": "0xf7"
134    },
135    {
136        "BriefDescription": "Retired mispredicted conditional branch instructions that were taken (Precise event capable)",
137        "EventCode": "0xC5",
138        "EventName": "BR_MISP_RETIRED.TAKEN_JCC",
139        "PEBS": "2",
140        "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.",
141        "SampleAfterValue": "200003",
142        "UMask": "0xfe"
143    },
144    {
145        "BriefDescription": "Core cycles when core is not halted  (Fixed event)",
146        "EventName": "CPU_CLK_UNHALTED.CORE",
147        "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.",
148        "SampleAfterValue": "2000003",
149        "UMask": "0x2"
150    },
151    {
152        "BriefDescription": "Core cycles when core is not halted",
153        "EventCode": "0x3C",
154        "EventName": "CPU_CLK_UNHALTED.CORE_P",
155        "PublicDescription": "Core cycles when core is not halted.  This event uses a (_P)rogrammable general purpose performance counter.",
156        "SampleAfterValue": "2000003"
157    },
158    {
159        "BriefDescription": "Reference cycles when core is not halted",
160        "EventCode": "0x3C",
161        "EventName": "CPU_CLK_UNHALTED.REF",
162        "PublicDescription": "Reference cycles when core is not halted.  This event uses a programmable general purpose performance counter.",
163        "SampleAfterValue": "2000003",
164        "UMask": "0x1"
165    },
166    {
167        "BriefDescription": "Reference cycles when core is not halted  (Fixed event)",
168        "EventName": "CPU_CLK_UNHALTED.REF_TSC",
169        "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.",
170        "SampleAfterValue": "2000003",
171        "UMask": "0x3"
172    },
173    {
174        "BriefDescription": "Cycles a divider is busy",
175        "EventCode": "0xCD",
176        "EventName": "CYCLES_DIV_BUSY.ALL",
177        "PublicDescription": "Counts core cycles if either divide unit is busy.",
178        "SampleAfterValue": "2000003"
179    },
180    {
181        "BriefDescription": "Cycles the integer divide unit is busy",
182        "EventCode": "0xCD",
183        "EventName": "CYCLES_DIV_BUSY.IDIV",
184        "PublicDescription": "Counts core cycles the integer divide unit is busy.",
185        "SampleAfterValue": "200003",
186        "UMask": "0x1"
187    },
188    {
189        "BriefDescription": "Instructions retired (Fixed event)",
190        "EventName": "INST_RETIRED.ANY",
191        "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.",
192        "SampleAfterValue": "2000003",
193        "UMask": "0x1"
194    },
195    {
196        "BriefDescription": "Instructions retired (Precise event capable)",
197        "EventCode": "0xC0",
198        "EventName": "INST_RETIRED.ANY_P",
199        "PEBS": "2",
200        "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.",
201        "SampleAfterValue": "2000003"
202    },
203    {
204        "BriefDescription": "Unfilled issue slots per cycle",
205        "EventCode": "0xCA",
206        "EventName": "ISSUE_SLOTS_NOT_CONSUMED.ANY",
207        "PublicDescription": "Counts the number of issue slots per core cycle that were not consumed by the backend due to either a full resource  in the backend (RESOURCE_FULL) or due to the processor recovering from some event (RECOVERY).",
208        "SampleAfterValue": "200003"
209    },
210    {
211        "BriefDescription": "Unfilled issue slots per cycle to recover",
212        "EventCode": "0xCA",
213        "EventName": "ISSUE_SLOTS_NOT_CONSUMED.RECOVERY",
214        "PublicDescription": "Counts the number of issue slots per core cycle that were not consumed by the backend because allocation is stalled waiting for a mispredicted jump to retire or other branch-like conditions (e.g. the event is relevant during certain microcode flows).   Counts all issue slots blocked while within this window including slots where uops were not available in the Instruction Queue.",
215        "SampleAfterValue": "200003",
216        "UMask": "0x2"
217    },
218    {
219        "BriefDescription": "Unfilled issue slots per cycle because of a full resource in the backend",
220        "EventCode": "0xCA",
221        "EventName": "ISSUE_SLOTS_NOT_CONSUMED.RESOURCE_FULL",
222        "PublicDescription": "Counts the number of issue slots per core cycle that were not consumed because of a full resource in the backend.  Including but not limited to resources such as the Re-order Buffer (ROB), reservation stations (RS), load/store buffers, physical registers, or any other needed machine resource that is currently unavailable.   Note that uops must be available for consumption in order for this event to fire.  If a uop is not available (Instruction Queue is empty), this event will not count.",
223        "SampleAfterValue": "200003",
224        "UMask": "0x1"
225    },
226    {
227        "BriefDescription": "Loads blocked because address has 4k partial address false dependence (Precise event capable)",
228        "EventCode": "0x03",
229        "EventName": "LD_BLOCKS.4K_ALIAS",
230        "PEBS": "2",
231        "PublicDescription": "Counts loads that block because their address modulo 4K matches a pending store.",
232        "SampleAfterValue": "200003",
233        "UMask": "0x4"
234    },
235    {
236        "BriefDescription": "Loads blocked (Precise event capable)",
237        "EventCode": "0x03",
238        "EventName": "LD_BLOCKS.ALL_BLOCK",
239        "PEBS": "2",
240        "PublicDescription": "Counts anytime a load that retires is blocked for any reason.",
241        "SampleAfterValue": "200003",
242        "UMask": "0x10"
243    },
244    {
245        "BriefDescription": "Loads blocked due to store data not ready (Precise event capable)",
246        "EventCode": "0x03",
247        "EventName": "LD_BLOCKS.DATA_UNKNOWN",
248        "PEBS": "2",
249        "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.",
250        "SampleAfterValue": "200003",
251        "UMask": "0x1"
252    },
253    {
254        "BriefDescription": "Loads blocked due to store forward restriction (Precise event capable)",
255        "EventCode": "0x03",
256        "EventName": "LD_BLOCKS.STORE_FORWARD",
257        "PEBS": "2",
258        "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.",
259        "SampleAfterValue": "200003",
260        "UMask": "0x2"
261    },
262    {
263        "BriefDescription": "Loads blocked because address in not in the UTLB (Precise event capable)",
264        "EventCode": "0x03",
265        "EventName": "LD_BLOCKS.UTLB_MISS",
266        "PEBS": "2",
267        "PublicDescription": "Counts loads blocked because they are unable to find their physical address in the micro TLB (UTLB).",
268        "SampleAfterValue": "200003",
269        "UMask": "0x8"
270    },
271    {
272        "BriefDescription": "All machine clears",
273        "EventCode": "0xC3",
274        "EventName": "MACHINE_CLEARS.ALL",
275        "PublicDescription": "Counts machine clears for any reason.",
276        "SampleAfterValue": "200003"
277    },
278    {
279        "BriefDescription": "Machine clears due to memory disambiguation",
280        "EventCode": "0xC3",
281        "EventName": "MACHINE_CLEARS.DISAMBIGUATION",
282        "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.",
283        "SampleAfterValue": "200003",
284        "UMask": "0x8"
285    },
286    {
287        "BriefDescription": "Self-Modifying Code detected",
288        "EventCode": "0xC3",
289        "EventName": "MACHINE_CLEARS.SMC",
290        "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(R) architecture processors.",
291        "SampleAfterValue": "200003",
292        "UMask": "0x1"
293    },
294    {
295        "BriefDescription": "Uops issued to the back end per cycle",
296        "EventCode": "0x0E",
297        "EventName": "UOPS_ISSUED.ANY",
298        "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.",
299        "SampleAfterValue": "200003"
300    },
301    {
302        "BriefDescription": "Uops requested but not-delivered to the back-end per cycle",
303        "EventCode": "0x9C",
304        "EventName": "UOPS_NOT_DELIVERED.ANY",
305        "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.",
306        "SampleAfterValue": "200003"
307    },
308    {
309        "BriefDescription": "Uops retired (Precise event capable)",
310        "EventCode": "0xC2",
311        "EventName": "UOPS_RETIRED.ANY",
312        "PEBS": "2",
313        "PublicDescription": "Counts uops which retired.",
314        "SampleAfterValue": "2000003"
315    },
316    {
317        "BriefDescription": "Integer divide uops retired. (Precise Event Capable)",
318        "EventCode": "0xC2",
319        "EventName": "UOPS_RETIRED.IDIV",
320        "PEBS": "2",
321        "PublicDescription": "Counts the number of integer divide uops retired.",
322        "SampleAfterValue": "2000003",
323        "UMask": "0x10"
324    },
325    {
326        "BriefDescription": "MS uops retired (Precise event capable)",
327        "EventCode": "0xC2",
328        "EventName": "UOPS_RETIRED.MS",
329        "PEBS": "2",
330        "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.",
331        "SampleAfterValue": "2000003",
332        "UMask": "0x1"
333    }
334]
335