1[
2    {
3        "BriefDescription": "Counts the total number of branch instructions retired for all branch types.",
4        "EventCode": "0xc4",
5        "EventName": "BR_INST_RETIRED.ALL_BRANCHES",
6        "PEBS": "1",
7        "PublicDescription": "Counts the total number of instructions in which the instruction pointer (IP) of the processor is resteered due to a branch instruction and the branch instruction successfully retires.  All branch type instructions are accounted for.",
8        "SampleAfterValue": "200003",
9        "Unit": "cpu_atom"
10    },
11    {
12        "BriefDescription": "All branch instructions retired.",
13        "EventCode": "0xc4",
14        "EventName": "BR_INST_RETIRED.ALL_BRANCHES",
15        "PEBS": "1",
16        "PublicDescription": "Counts all branch instructions retired.",
17        "SampleAfterValue": "400009",
18        "Unit": "cpu_core"
19    },
20    {
21        "BriefDescription": "Counts the total number of mispredicted branch instructions retired for all branch types.",
22        "EventCode": "0xc5",
23        "EventName": "BR_MISP_RETIRED.ALL_BRANCHES",
24        "PEBS": "1",
25        "PublicDescription": "Counts the total number of mispredicted branch instructions retired.  All branch type instructions are accounted for.  Prediction of the branch target address enables the processor to begin executing instructions before the non-speculative execution path is known. The branch prediction unit (BPU) predicts the target address based on the instruction pointer (IP) of the branch and on the execution path through which execution reached this IP.    A branch misprediction occurs when the prediction is wrong, and results in discarding all instructions executed in the speculative path and re-fetching from the correct path.",
26        "SampleAfterValue": "200003",
27        "Unit": "cpu_atom"
28    },
29    {
30        "BriefDescription": "All mispredicted branch instructions retired.",
31        "EventCode": "0xc5",
32        "EventName": "BR_MISP_RETIRED.ALL_BRANCHES",
33        "PEBS": "1",
34        "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.",
35        "SampleAfterValue": "400009",
36        "Unit": "cpu_core"
37    },
38    {
39        "BriefDescription": "Fixed Counter: Counts the number of unhalted core clock cycles",
40        "EventName": "CPU_CLK_UNHALTED.CORE",
41        "SampleAfterValue": "2000003",
42        "UMask": "0x2",
43        "Unit": "cpu_atom"
44    },
45    {
46        "BriefDescription": "Counts the number of unhalted core clock cycles [This event is alias to CPU_CLK_UNHALTED.THREAD_P]",
47        "EventCode": "0x3c",
48        "EventName": "CPU_CLK_UNHALTED.CORE_P",
49        "SampleAfterValue": "2000003",
50        "Unit": "cpu_atom"
51    },
52    {
53        "BriefDescription": "Fixed Counter: Counts the number of unhalted reference clock cycles",
54        "EventName": "CPU_CLK_UNHALTED.REF_TSC",
55        "SampleAfterValue": "2000003",
56        "UMask": "0x3",
57        "Unit": "cpu_atom"
58    },
59    {
60        "BriefDescription": "Reference cycles when the core is not in halt state.",
61        "EventName": "CPU_CLK_UNHALTED.REF_TSC",
62        "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. It is counted on a dedicated fixed counter, leaving the eight 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.",
63        "SampleAfterValue": "2000003",
64        "UMask": "0x3",
65        "Unit": "cpu_core"
66    },
67    {
68        "BriefDescription": "Reference cycles when the core is not in halt state.",
69        "EventCode": "0x3c",
70        "EventName": "CPU_CLK_UNHALTED.REF_TSC_P",
71        "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. 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.",
72        "SampleAfterValue": "2000003",
73        "UMask": "0x1",
74        "Unit": "cpu_core"
75    },
76    {
77        "BriefDescription": "Fixed Counter: Counts the number of unhalted core clock cycles",
78        "EventName": "CPU_CLK_UNHALTED.THREAD",
79        "SampleAfterValue": "2000003",
80        "UMask": "0x2",
81        "Unit": "cpu_atom"
82    },
83    {
84        "BriefDescription": "Core cycles when the thread is not in halt state",
85        "EventName": "CPU_CLK_UNHALTED.THREAD",
86        "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 eight programmable counters available for other events.",
87        "SampleAfterValue": "2000003",
88        "UMask": "0x2",
89        "Unit": "cpu_core"
90    },
91    {
92        "BriefDescription": "Counts the number of unhalted core clock cycles [This event is alias to CPU_CLK_UNHALTED.CORE_P]",
93        "EventCode": "0x3c",
94        "EventName": "CPU_CLK_UNHALTED.THREAD_P",
95        "SampleAfterValue": "2000003",
96        "Unit": "cpu_atom"
97    },
98    {
99        "BriefDescription": "Thread cycles when thread is not in halt state",
100        "EventCode": "0x3c",
101        "EventName": "CPU_CLK_UNHALTED.THREAD_P",
102        "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.",
103        "SampleAfterValue": "2000003",
104        "Unit": "cpu_core"
105    },
106    {
107        "BriefDescription": "Fixed Counter: Counts the number of instructions retired",
108        "EventName": "INST_RETIRED.ANY",
109        "PEBS": "1",
110        "SampleAfterValue": "2000003",
111        "UMask": "0x1",
112        "Unit": "cpu_atom"
113    },
114    {
115        "BriefDescription": "Number of instructions retired. Fixed Counter - architectural event",
116        "EventName": "INST_RETIRED.ANY",
117        "PEBS": "1",
118        "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.",
119        "SampleAfterValue": "2000003",
120        "UMask": "0x1",
121        "Unit": "cpu_core"
122    },
123    {
124        "BriefDescription": "Counts the number of instructions retired",
125        "EventCode": "0xc0",
126        "EventName": "INST_RETIRED.ANY_P",
127        "PEBS": "1",
128        "SampleAfterValue": "2000003",
129        "Unit": "cpu_atom"
130    },
131    {
132        "BriefDescription": "Number of instructions retired. General Counter - architectural event",
133        "EventCode": "0xc0",
134        "EventName": "INST_RETIRED.ANY_P",
135        "PEBS": "1",
136        "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.",
137        "SampleAfterValue": "2000003",
138        "Unit": "cpu_core"
139    },
140    {
141        "BriefDescription": "Loads blocked due to overlapping with a preceding store that cannot be forwarded.",
142        "EventCode": "0x03",
143        "EventName": "LD_BLOCKS.STORE_FORWARD",
144        "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.",
145        "SampleAfterValue": "100003",
146        "UMask": "0x82",
147        "Unit": "cpu_core"
148    },
149    {
150        "BriefDescription": "This event counts a subset of the Topdown Slots event that were not consumed by the back-end pipeline due to lack of back-end resources, as a result of memory subsystem delays, execution units limitations, or other conditions.",
151        "EventCode": "0xa4",
152        "EventName": "TOPDOWN.BACKEND_BOUND_SLOTS",
153        "PublicDescription": "This event counts a subset of the Topdown Slots event that were not consumed by the back-end pipeline due to lack of back-end resources, as a result of memory subsystem delays, execution units limitations, or other conditions.\nThe count is distributed among unhalted logical processors (hyper-threads) who share the same physical core, in processors that support Intel Hyper-Threading Technology. Software can use this event as the numerator for the Backend Bound metric (or top-level category) of the Top-down Microarchitecture Analysis method.",
154        "SampleAfterValue": "10000003",
155        "UMask": "0x2",
156        "Unit": "cpu_core"
157    },
158    {
159        "BriefDescription": "TMA slots available for an unhalted logical processor. Fixed counter - architectural event",
160        "EventName": "TOPDOWN.SLOTS",
161        "PublicDescription": "Number of available slots for an unhalted logical processor. The event increments by machine-width of the narrowest pipeline as employed by the Top-down Microarchitecture Analysis method (TMA). The count is distributed among unhalted logical processors (hyper-threads) who share the same physical core. Software can use this event as the denominator for the top-level metrics of the TMA method. This architectural event is counted on a designated fixed counter (Fixed Counter 3).",
162        "SampleAfterValue": "10000003",
163        "UMask": "0x4",
164        "Unit": "cpu_core"
165    },
166    {
167        "BriefDescription": "TMA slots available for an unhalted logical processor. General counter - architectural event",
168        "EventCode": "0xa4",
169        "EventName": "TOPDOWN.SLOTS_P",
170        "PublicDescription": "Counts the number of available slots for an unhalted logical processor. The event increments by machine-width of the narrowest pipeline as employed by the Top-down Microarchitecture Analysis method. The count is distributed among unhalted logical processors (hyper-threads) who share the same physical core.",
171        "SampleAfterValue": "10000003",
172        "UMask": "0x1",
173        "Unit": "cpu_core"
174    },
175    {
176        "BriefDescription": "Counts the number of issue slots that were not consumed by the backend because allocation is stalled due to a mispredicted jump or a machine clear.",
177        "EventCode": "0x73",
178        "EventName": "TOPDOWN_BAD_SPECULATION.ALL",
179        "PublicDescription": "Counts the total number of issue slots that were not consumed by the backend because allocation is stalled due to a mispredicted jump or a machine clear. Only issue slots wasted due to fast nukes such as memory ordering nukes are counted. Other nukes are not accounted for. Counts all issue slots blocked during this recovery window, including relevant microcode flows, and while uops are not yet available in the instruction queue (IQ) or until an FE_BOUND event occurs besides OTHER and CISC. Also includes the issue slots that were consumed by the backend but were thrown away because they were younger than the mispredict or machine clear.",
180        "SampleAfterValue": "1000003",
181        "Unit": "cpu_atom"
182    },
183    {
184        "BriefDescription": "Counts the number of retirement slots not consumed due to backend stalls",
185        "EventCode": "0x74",
186        "EventName": "TOPDOWN_BE_BOUND.ALL",
187        "SampleAfterValue": "1000003",
188        "Unit": "cpu_atom"
189    },
190    {
191        "BriefDescription": "Counts the number of retirement slots not consumed due to front end stalls",
192        "EventCode": "0x71",
193        "EventName": "TOPDOWN_FE_BOUND.ALL",
194        "SampleAfterValue": "1000003",
195        "Unit": "cpu_atom"
196    },
197    {
198        "BriefDescription": "Counts the number of consumed retirement slots.  Similar to UOPS_RETIRED.ALL",
199        "EventCode": "0x72",
200        "EventName": "TOPDOWN_RETIRING.ALL",
201        "PEBS": "1",
202        "SampleAfterValue": "1000003",
203        "Unit": "cpu_atom"
204    },
205    {
206        "BriefDescription": "This event counts a subset of the Topdown Slots event that are utilized by operations that eventually get retired (committed) by the processor pipeline. Usually, this event positively correlates with higher performance  for example, as measured by the instructions-per-cycle metric.",
207        "EventCode": "0xc2",
208        "EventName": "UOPS_RETIRED.SLOTS",
209        "PublicDescription": "This event counts a subset of the Topdown Slots event that are utilized by operations that eventually get retired (committed) by the processor pipeline. Usually, this event positively correlates with higher performance  for example, as measured by the instructions-per-cycle metric.\nSoftware can use this event as the numerator for the Retiring metric (or top-level category) of the Top-down Microarchitecture Analysis method.",
210        "SampleAfterValue": "2000003",
211        "UMask": "0x2",
212        "Unit": "cpu_core"
213    }
214]
215