xref: /freebsd/lib/libpmc/pmu-events/arch/x86/silvermont/pipeline.json (revision 6be3386466ab79a84b48429ae66244f21526d3df)
1[
2    {
3        "PEBS": "1",
4        "PublicDescription": "ALL_BRANCHES counts the number of any branch instructions retired.  Branch prediction predicts the branch target and enables the processor to begin executing instructions long before the branch true execution path is known. All branches utilize the branch prediction unit (BPU) for prediction. This unit predicts the target address not only based on the EIP of the branch but also based on the execution path through which execution reached this EIP. The BPU can efficiently predict the following branch types: conditional branches, direct calls and jumps, indirect calls and jumps, returns.",
5        "EventCode": "0xC4",
6        "Counter": "0,1",
7        "UMask": "0x0",
8        "EventName": "BR_INST_RETIRED.ALL_BRANCHES",
9        "SampleAfterValue": "200003",
10        "BriefDescription": "Counts the number of branch instructions retired..."
11    },
12    {
13        "PEBS": "1",
14        "PublicDescription": "JCC counts the number of conditional branch (JCC) instructions retired. Branch prediction predicts the branch target and enables the processor to begin executing instructions long before the branch true execution path is known. All branches utilize the branch prediction unit (BPU) for prediction. This unit predicts the target address not only based on the EIP of the branch but also based on the execution path through which execution reached this EIP. The BPU can efficiently predict the following branch types: conditional branches, direct calls and jumps, indirect calls and jumps, returns.",
15        "EventCode": "0xC4",
16        "Counter": "0,1",
17        "UMask": "0x7e",
18        "EventName": "BR_INST_RETIRED.JCC",
19        "SampleAfterValue": "200003",
20        "BriefDescription": "Counts the number of JCC branch instructions retired"
21    },
22    {
23        "PEBS": "1",
24        "PublicDescription": "TAKEN_JCC counts the number of taken conditional branch (JCC) instructions retired. Branch prediction predicts the branch target and enables the processor to begin executing instructions long before the branch true execution path is known. All branches utilize the branch prediction unit (BPU) for prediction. This unit predicts the target address not only based on the EIP of the branch but also based on the execution path through which execution reached this EIP. The BPU can efficiently predict the following branch types: conditional branches, direct calls and jumps, indirect calls and jumps, returns.",
25        "EventCode": "0xC4",
26        "Counter": "0,1",
27        "UMask": "0xfe",
28        "EventName": "BR_INST_RETIRED.TAKEN_JCC",
29        "SampleAfterValue": "200003",
30        "BriefDescription": "Counts the number of taken JCC branch instructions retired"
31    },
32    {
33        "PEBS": "1",
34        "PublicDescription": "CALL counts the number of near CALL branch instructions retired.  Branch prediction predicts the branch target and enables the processor to begin executing instructions long before the branch true execution path is known. All branches utilize the branch prediction unit (BPU) for prediction. This unit predicts the target address not only based on the EIP of the branch but also based on the execution path through which execution reached this EIP. The BPU can efficiently predict the following branch types: conditional branches, direct calls and jumps, indirect calls and jumps, returns.",
35        "EventCode": "0xC4",
36        "Counter": "0,1",
37        "UMask": "0xf9",
38        "EventName": "BR_INST_RETIRED.CALL",
39        "SampleAfterValue": "200003",
40        "BriefDescription": "Counts the number of near CALL branch instructions retired"
41    },
42    {
43        "PEBS": "1",
44        "PublicDescription": "REL_CALL counts the number of near relative CALL branch instructions retired.  Branch prediction predicts the branch target and enables the processor to begin executing instructions long before the branch true execution path is known. All branches utilize the branch prediction unit (BPU) for prediction. This unit predicts the target address not only based on the EIP of the branch but also based on the execution path through which execution reached this EIP. The BPU can efficiently predict the following branch types: conditional branches, direct calls and jumps, indirect calls and jumps, returns.",
45        "EventCode": "0xC4",
46        "Counter": "0,1",
47        "UMask": "0xfd",
48        "EventName": "BR_INST_RETIRED.REL_CALL",
49        "SampleAfterValue": "200003",
50        "BriefDescription": "Counts the number of near relative CALL branch instructions retired"
51    },
52    {
53        "PEBS": "1",
54        "PublicDescription": "IND_CALL counts the number of near indirect CALL branch instructions retired.  Branch prediction predicts the branch target and enables the processor to begin executing instructions long before the branch true execution path is known. All branches utilize the branch prediction unit (BPU) for prediction. This unit predicts the target address not only based on the EIP of the branch but also based on the execution path through which execution reached this EIP. The BPU can efficiently predict the following branch types: conditional branches, direct calls and jumps, indirect calls and jumps, returns.",
55        "EventCode": "0xC4",
56        "Counter": "0,1",
57        "UMask": "0xfb",
58        "EventName": "BR_INST_RETIRED.IND_CALL",
59        "SampleAfterValue": "200003",
60        "BriefDescription": "Counts the number of near indirect CALL branch instructions retired"
61    },
62    {
63        "PEBS": "1",
64        "PublicDescription": "RETURN counts the number of near RET branch instructions retired.  Branch prediction predicts the branch target and enables the processor to begin executing instructions long before the branch true execution path is known. All branches utilize the branch prediction unit (BPU) for prediction. This unit predicts the target address not only based on the EIP of the branch but also based on the execution path through which execution reached this EIP. The BPU can efficiently predict the following branch types: conditional branches, direct calls and jumps, indirect calls and jumps, returns.",
65        "EventCode": "0xC4",
66        "Counter": "0,1",
67        "UMask": "0xf7",
68        "EventName": "BR_INST_RETIRED.RETURN",
69        "SampleAfterValue": "200003",
70        "BriefDescription": "Counts the number of near RET branch instructions retired"
71    },
72    {
73        "PEBS": "1",
74        "PublicDescription": "NON_RETURN_IND counts the number of near indirect JMP and near indirect CALL branch instructions retired.  Branch prediction predicts the branch target and enables the processor to begin executing instructions long before the branch true execution path is known. All branches utilize the branch prediction unit (BPU) for prediction. This unit predicts the target address not only based on the EIP of the branch but also based on the execution path through which execution reached this EIP. The BPU can efficiently predict the following branch types: conditional branches, direct calls and jumps, indirect calls and jumps, returns.",
75        "EventCode": "0xC4",
76        "Counter": "0,1",
77        "UMask": "0xeb",
78        "EventName": "BR_INST_RETIRED.NON_RETURN_IND",
79        "SampleAfterValue": "200003",
80        "BriefDescription": "Counts the number of near indirect JMP and near indirect CALL branch instructions retired"
81    },
82    {
83        "PEBS": "1",
84        "PublicDescription": "FAR counts the number of far branch instructions retired.  Branch prediction predicts the branch target and enables the processor to begin executing instructions long before the branch true execution path is known. All branches utilize the branch prediction unit (BPU) for prediction. This unit predicts the target address not only based on the EIP of the branch but also based on the execution path through which execution reached this EIP. The BPU can efficiently predict the following branch types: conditional branches, direct calls and jumps, indirect calls and jumps, returns.",
85        "EventCode": "0xC4",
86        "Counter": "0,1",
87        "UMask": "0xbf",
88        "EventName": "BR_INST_RETIRED.FAR_BRANCH",
89        "SampleAfterValue": "200003",
90        "BriefDescription": "Counts the number of far branch instructions retired"
91    },
92    {
93        "PEBS": "1",
94        "PublicDescription": "ALL_BRANCHES counts the number of any mispredicted branch instructions retired. This umask is an architecturally defined event. This event counts the number of retired branch instructions that were mispredicted by the processor, categorized by type. A branch misprediction occurs when the processor predicts that the branch would be taken, but it is not, or vice-versa.  When the misprediction is discovered, all the instructions executed in the wrong (speculative) path must be discarded, and the processor must start fetching from the correct path.",
95        "EventCode": "0xC5",
96        "Counter": "0,1",
97        "UMask": "0x0",
98        "EventName": "BR_MISP_RETIRED.ALL_BRANCHES",
99        "SampleAfterValue": "200003",
100        "BriefDescription": "Counts the number of mispredicted branch instructions retired"
101    },
102    {
103        "PEBS": "1",
104        "PublicDescription": "JCC counts the number of mispredicted conditional branches (JCC) instructions retired.  This event counts the number of retired branch instructions that were mispredicted by the processor, categorized by type. A branch misprediction occurs when the processor predicts that the branch would be taken, but it is not, or vice-versa.  When the misprediction is discovered, all the instructions executed in the wrong (speculative) path must be discarded, and the processor must start fetching from the correct path.",
105        "EventCode": "0xC5",
106        "Counter": "0,1",
107        "UMask": "0x7e",
108        "EventName": "BR_MISP_RETIRED.JCC",
109        "SampleAfterValue": "200003",
110        "BriefDescription": "Counts the number of mispredicted JCC branch instructions retired"
111    },
112    {
113        "PEBS": "1",
114        "PublicDescription": "TAKEN_JCC counts the number of mispredicted taken conditional branch (JCC) instructions retired.  This event counts the number of retired branch instructions that were mispredicted by the processor, categorized by type. A branch misprediction occurs when the processor predicts that the branch would be taken, but it is not, or vice-versa.  When the misprediction is discovered, all the instructions executed in the wrong (speculative) path must be discarded, and the processor must start fetching from the correct path.",
115        "EventCode": "0xC5",
116        "Counter": "0,1",
117        "UMask": "0xfe",
118        "EventName": "BR_MISP_RETIRED.TAKEN_JCC",
119        "SampleAfterValue": "200003",
120        "BriefDescription": "Counts the number of mispredicted taken JCC branch instructions retired"
121    },
122    {
123        "PEBS": "1",
124        "PublicDescription": "IND_CALL counts the number of mispredicted near indirect CALL branch instructions retired.  This event counts the number of retired branch instructions that were mispredicted by the processor, categorized by type. A branch misprediction occurs when the processor predicts that the branch would be taken, but it is not, or vice-versa.  When the misprediction is discovered, all the instructions executed in the wrong (speculative) path must be discarded, and the processor must start fetching from the correct path.",
125        "EventCode": "0xC5",
126        "Counter": "0,1",
127        "UMask": "0xfb",
128        "EventName": "BR_MISP_RETIRED.IND_CALL",
129        "SampleAfterValue": "200003",
130        "BriefDescription": "Counts the number of mispredicted near indirect CALL branch instructions retired"
131    },
132    {
133        "PEBS": "1",
134        "PublicDescription": "RETURN counts the number of mispredicted near RET branch instructions retired.  This event counts the number of retired branch instructions that were mispredicted by the processor, categorized by type. A branch misprediction occurs when the processor predicts that the branch would be taken, but it is not, or vice-versa.  When the misprediction is discovered, all the instructions executed in the wrong (speculative) path must be discarded, and the processor must start fetching from the correct path.",
135        "EventCode": "0xC5",
136        "Counter": "0,1",
137        "UMask": "0xf7",
138        "EventName": "BR_MISP_RETIRED.RETURN",
139        "SampleAfterValue": "200003",
140        "BriefDescription": "Counts the number of mispredicted near RET branch instructions retired"
141    },
142    {
143        "PEBS": "1",
144        "PublicDescription": "NON_RETURN_IND counts the number of mispredicted near indirect JMP and near indirect CALL branch instructions retired.  This event counts the number of retired branch instructions that were mispredicted by the processor, categorized by type. A branch misprediction occurs when the processor predicts that the branch would be taken, but it is not, or vice-versa.  When the misprediction is discovered, all the instructions executed in the wrong (speculative) path must be discarded, and the processor must start fetching from the correct path.",
145        "EventCode": "0xC5",
146        "Counter": "0,1",
147        "UMask": "0xeb",
148        "EventName": "BR_MISP_RETIRED.NON_RETURN_IND",
149        "SampleAfterValue": "200003",
150        "BriefDescription": "Counts the number of mispredicted near indirect JMP and near indirect CALL branch instructions retired"
151    },
152    {
153        "PublicDescription": "This event counts the number of micro-ops retired that were supplied from MSROM.",
154        "EventCode": "0xC2",
155        "Counter": "0,1",
156        "UMask": "0x1",
157        "EventName": "UOPS_RETIRED.MS",
158        "SampleAfterValue": "2000003",
159        "BriefDescription": "MSROM micro-ops retired"
160    },
161    {
162        "PublicDescription": "This event counts the number of micro-ops retired. The processor decodes complex macro instructions into a sequence of simpler micro-ops. Most instructions are composed of one or two micro-ops. Some instructions are decoded into longer sequences such as repeat instructions, floating point transcendental instructions, and assists. In some cases micro-op sequences are fused or whole instructions are fused into one micro-op. See other UOPS_RETIRED events for differentiating retired fused and non-fused micro-ops.",
163        "EventCode": "0xC2",
164        "Counter": "0,1",
165        "UMask": "0x10",
166        "EventName": "UOPS_RETIRED.ALL",
167        "SampleAfterValue": "2000003",
168        "BriefDescription": "Micro-ops retired"
169    },
170    {
171        "PublicDescription": "This event counts the number of times that a program writes to a code section. Self-modifying code causes a severe penalty in all Intel? architecture processors.",
172        "EventCode": "0xC3",
173        "Counter": "0,1",
174        "UMask": "0x1",
175        "EventName": "MACHINE_CLEARS.SMC",
176        "SampleAfterValue": "200003",
177        "BriefDescription": "Self-Modifying Code detected"
178    },
179    {
180        "PublicDescription": "This event counts the number of times that pipeline stalled due to FP operations needing assists.",
181        "EventCode": "0xC3",
182        "Counter": "0,1",
183        "UMask": "0x4",
184        "EventName": "MACHINE_CLEARS.FP_ASSIST",
185        "SampleAfterValue": "200003",
186        "BriefDescription": "Stalls due to FP assists"
187    },
188    {
189        "PublicDescription": "Machine clears happen when something happens in the machine that causes the hardware to need to take special care to get the right answer. When such a condition is signaled on an instruction, the front end of the machine is notified that it must restart, so no more instructions will be decoded from the current path.  All instructions \"older\" than this one will be allowed to finish.  This instruction and all \"younger\" instructions must be cleared, since they must not be allowed to complete.  Essentially, the hardware waits until the problematic instruction is the oldest instruction in the machine.  This means all older instructions are retired, and all pending stores (from older instructions) are completed.  Then the new path of instructions from the front end are allowed to start into the machine.  There are many conditions that might cause a machine clear (including the receipt of an interrupt, or a trap or a fault).  All those conditions (including but not limited to MACHINE_CLEARS.MEMORY_ORDERING, MACHINE_CLEARS.SMC, and MACHINE_CLEARS.FP_ASSIST) are captured in the ANY event. In addition, some conditions can be specifically counted (i.e. SMC, MEMORY_ORDERING, FP_ASSIST).  However, the sum of SMC, MEMORY_ORDERING, and FP_ASSIST machine clears will not necessarily equal the number of ANY.",
190        "EventCode": "0xC3",
191        "Counter": "0,1",
192        "UMask": "0x8",
193        "EventName": "MACHINE_CLEARS.ALL",
194        "SampleAfterValue": "200003",
195        "BriefDescription": "Counts all machine clears"
196    },
197    {
198        "PublicDescription": "Counts the number of cycles when no uops are allocated and the ROB is full (less than 2 entries available).",
199        "EventCode": "0xCA",
200        "Counter": "0,1",
201        "UMask": "0x1",
202        "EventName": "NO_ALLOC_CYCLES.ROB_FULL",
203        "SampleAfterValue": "200003",
204        "BriefDescription": "Counts the number of cycles when no uops are allocated and the ROB is full (less than 2 entries available)"
205    },
206    {
207        "PublicDescription": "Counts the number of cycles when no uops are allocated and the alloc pipe is stalled waiting for a mispredicted jump to retire.  After the misprediction is detected, the front end will start immediately but the allocate pipe stalls until the mispredicted.",
208        "EventCode": "0xCA",
209        "Counter": "0,1",
210        "UMask": "0x4",
211        "EventName": "NO_ALLOC_CYCLES.MISPREDICTS",
212        "SampleAfterValue": "200003",
213        "BriefDescription": "Counts the number of cycles when no uops are allocated and the alloc pipe is stalled waiting for a mispredicted jump to retire.  After the misprediction is detected, the front end will start immediately but the allocate pipe stalls until the mispredicted"
214    },
215    {
216        "EventCode": "0xCA",
217        "Counter": "0,1",
218        "UMask": "0x20",
219        "EventName": "NO_ALLOC_CYCLES.RAT_STALL",
220        "SampleAfterValue": "200003",
221        "BriefDescription": "Counts the number of cycles when no uops are allocated and a RATstall is asserted."
222    },
223    {
224        "PublicDescription": "The NO_ALLOC_CYCLES.NOT_DELIVERED event is used to measure front-end inefficiencies, i.e. when front-end of the machine is not delivering micro-ops to the back-end and the back-end 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 micro-ops (uops) in machine understandable format and putting them into a micro-op queue to be consumed by back end. The back-end then takes these micro-ops, allocates the required resources.  When all resources are ready, micro-ops are executed. If the back-end is not ready to accept micro-ops 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 the cycles only when back-end is requesting more uops and front-end is not able to provide them. Some examples of conditions that cause front-end efficiencies are: Icache misses, ITLB misses, and decoder restrictions that limit the the front-end bandwidth.",
225        "EventCode": "0xCA",
226        "Counter": "0,1",
227        "UMask": "0x50",
228        "EventName": "NO_ALLOC_CYCLES.NOT_DELIVERED",
229        "SampleAfterValue": "200003",
230        "BriefDescription": "Counts the number of cycles when no uops are allocated, the IQ is empty, and no other condition is blocking allocation."
231    },
232    {
233        "PublicDescription": "The NO_ALLOC_CYCLES.ALL event counts the number of cycles when the front-end does not provide any instructions to be allocated for any reason. This event indicates the cycles where an allocation stalls occurs, and no UOPS are allocated in that cycle.",
234        "EventCode": "0xCA",
235        "Counter": "0,1",
236        "UMask": "0x3f",
237        "EventName": "NO_ALLOC_CYCLES.ALL",
238        "SampleAfterValue": "200003",
239        "BriefDescription": "Counts the number of cycles when no uops are allocated for any reason."
240    },
241    {
242        "PublicDescription": "Counts the number of cycles and allocation pipeline is stalled and is waiting for a free MEC reservation station entry.  The cycles should be appropriately counted in case of the cracked ops e.g. In case of a cracked load-op, the load portion is sent to M.",
243        "EventCode": "0xCB",
244        "Counter": "0,1",
245        "UMask": "0x1",
246        "EventName": "RS_FULL_STALL.MEC",
247        "SampleAfterValue": "200003",
248        "BriefDescription": "Counts the number of cycles and allocation pipeline is stalled and is waiting for a free MEC reservation station entry.  The cycles should be appropriately counted in case of the cracked ops e.g. In case of a cracked load-op, the load portion is sent to M"
249    },
250    {
251        "EventCode": "0xCB",
252        "Counter": "0,1",
253        "UMask": "0x1f",
254        "EventName": "RS_FULL_STALL.ALL",
255        "SampleAfterValue": "200003",
256        "BriefDescription": "Counts the number of cycles the Alloc pipeline is stalled when any one of the RSs (IEC, FPC and MEC) is full. This event is a superset of all the individual RS stall event counts."
257    },
258    {
259        "PublicDescription": "This event counts the number of instructions that retire execution. For instructions that consist of multiple micro-ops, this event counts the retirement of the last micro-op of the instruction. The counter continues counting during hardware interrupts, traps, and inside interrupt handlers.",
260        "EventCode": "0xC0",
261        "Counter": "0,1",
262        "UMask": "0x0",
263        "EventName": "INST_RETIRED.ANY_P",
264        "SampleAfterValue": "2000003",
265        "BriefDescription": "Instructions retired"
266    },
267    {
268        "PublicDescription": "Cycles the divider is busy.This event counts the cycles when the divide unit is unable to accept a new divide UOP because it is busy processing a previously dispatched UOP. The cycles will be counted irrespective of whether or not another divide UOP is waiting to enter the divide unit (from the RS). This event might count cycles while a divide is in progress even if the RS is empty.  The divide instruction is one of the longest latency instructions in the machine.  Hence, it has a special event associated with it to help determine if divides are delaying the retirement of instructions.",
269        "EventCode": "0xCD",
270        "Counter": "0,1",
271        "UMask": "0x1",
272        "EventName": "CYCLES_DIV_BUSY.ALL",
273        "SampleAfterValue": "2000003",
274        "BriefDescription": "Cycles the divider is busy.  Does not imply a stall waiting for the divider."
275    },
276    {
277        "PublicDescription": "This event counts the number of instructions that retire.  For instructions that consist of multiple micro-ops, this event counts exactly once, as the last micro-op of the instruction retires.  The event continues counting while instructions retire, including during interrupt service routines caused by hardware interrupts, faults or traps.  Background: Modern microprocessors employ extensive pipelining and speculative techniques.  Since sometimes an instruction is started but never completed, the notion of \"retirement\" is introduced.  A retired instruction is one that commits its states. Or stated differently, an instruction might be abandoned at some point. No instruction is truly finished until it retires.  This counter measures the number of completed instructions.  The fixed event is INST_RETIRED.ANY and the programmable event is INST_RETIRED.ANY_P.",
278        "Counter": "Fixed counter 1",
279        "UMask": "0x1",
280        "EventName": "INST_RETIRED.ANY",
281        "SampleAfterValue": "2000003",
282        "BriefDescription": "Fixed Counter: Counts the number of instructions retired"
283    },
284    {
285        "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. This event is a component in many key event ratios.  The core frequency may change from time to time. For this reason this event may have a changing ratio with regards to time. In systems with a constant core frequency, this event can give you a measurement of the elapsed time while the core was not in halt state by dividing the event count by the core frequency. This event is architecturally defined and is a designated fixed counter.  CPU_CLK_UNHALTED.CORE and CPU_CLK_UNHALTED.CORE_P use the core frequency which may change from time to time.  CPU_CLK_UNHALTE.REF_TSC and CPU_CLK_UNHALTED.REF are not affected by core frequency changes but counts as if the core is running at the maximum frequency all the time.  The fixed events are CPU_CLK_UNHALTED.CORE and CPU_CLK_UNHALTED.REF_TSC and the programmable events are CPU_CLK_UNHALTED.CORE_P and CPU_CLK_UNHALTED.REF.",
286        "Counter": "Fixed counter 2",
287        "UMask": "0x2",
288        "EventName": "CPU_CLK_UNHALTED.CORE",
289        "SampleAfterValue": "2000003",
290        "BriefDescription": "Fixed Counter: Counts the number of unhalted core clock cycles"
291    },
292    {
293        "PublicDescription": "Counts the number of reference cycles while the core is not in a halt state. The core 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. This event is not affected by core frequency changes but counts as if the core is running at the maximum frequency all the time.  Divide this event count by core frequency to determine the elapsed time while the core was not in halt state.  Divide this event count by core frequency to determine the elapsed time while the core was not in halt state.  This event is architecturally defined and is a designated fixed counter.  CPU_CLK_UNHALTED.CORE and CPU_CLK_UNHALTED.CORE_P use the core frequency which may change from time to time.  CPU_CLK_UNHALTE.REF_TSC and CPU_CLK_UNHALTED.REF are not affected by core frequency changes but counts as if the core is running at the maximum frequency all the time.  The fixed events are CPU_CLK_UNHALTED.CORE and CPU_CLK_UNHALTED.REF_TSC and the programmable events are CPU_CLK_UNHALTED.CORE_P and CPU_CLK_UNHALTED.REF.",
294        "Counter": "Fixed counter 3",
295        "UMask": "0x3",
296        "EventName": "CPU_CLK_UNHALTED.REF_TSC",
297        "SampleAfterValue": "2000003",
298        "BriefDescription": "Fixed Counter: Counts the number of unhalted reference clock cycles"
299    },
300    {
301        "PublicDescription": "This event 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.",
302        "EventCode": "0x3C",
303        "Counter": "0,1",
304        "UMask": "0x0",
305        "EventName": "CPU_CLK_UNHALTED.CORE_P",
306        "SampleAfterValue": "2000003",
307        "BriefDescription": "Core cycles when core is not halted"
308    },
309    {
310        "PublicDescription": "This event 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.",
311        "EventCode": "0x3C",
312        "Counter": "0,1",
313        "UMask": "0x1",
314        "EventName": "CPU_CLK_UNHALTED.REF",
315        "SampleAfterValue": "2000003",
316        "BriefDescription": "Reference cycles when core is not halted"
317    },
318    {
319        "PublicDescription": "The BACLEARS event counts the number of times the front end is resteered, mainly when the Branch Prediction Unit cannot provide a correct prediction and this is corrected by the Branch Address Calculator at the front end.  The BACLEARS.ANY event counts the number of baclears for any type of branch.",
320        "EventCode": "0xE6",
321        "Counter": "0,1",
322        "UMask": "0x1",
323        "EventName": "BACLEARS.ALL",
324        "SampleAfterValue": "200003",
325        "BriefDescription": "Counts the number of baclears"
326    },
327    {
328        "PublicDescription": "The BACLEARS event counts the number of times the front end is resteered, mainly when the Branch Prediction Unit cannot provide a correct prediction and this is corrected by the Branch Address Calculator at the front end.  The BACLEARS.RETURN event counts the number of RETURN baclears.",
329        "EventCode": "0xE6",
330        "Counter": "0,1",
331        "UMask": "0x8",
332        "EventName": "BACLEARS.RETURN",
333        "SampleAfterValue": "200003",
334        "BriefDescription": "Counts the number of RETURN baclears"
335    },
336    {
337        "PublicDescription": "The BACLEARS event counts the number of times the front end is resteered, mainly when the Branch Prediction Unit cannot provide a correct prediction and this is corrected by the Branch Address Calculator at the front end.  The BACLEARS.COND event counts the number of JCC (Jump on Condtional Code) baclears.",
338        "EventCode": "0xE6",
339        "Counter": "0,1",
340        "UMask": "0x10",
341        "EventName": "BACLEARS.COND",
342        "SampleAfterValue": "200003",
343        "BriefDescription": "Counts the number of JCC baclears"
344    },
345    {
346        "PEBS": "2",
347        "PublicDescription": "ALL_TAKEN_BRANCHES counts the number of all taken branch instructions retired.  Branch prediction predicts the branch target and enables the processor to begin executing instructions long before the branch true execution path is known. All branches utilize the branch prediction unit (BPU) for prediction. This unit predicts the target address not only based on the EIP of the branch but also based on the execution path through which execution reached this EIP. The BPU can efficiently predict the following branch types: conditional branches, direct calls and jumps, indirect calls and jumps, returns.",
348        "EventCode": "0xC4",
349        "Counter": "0,1",
350        "UMask": "0x80",
351        "PEBScounters": "0,1",
352        "EventName": "BR_INST_RETIRED.ALL_TAKEN_BRANCHES",
353        "SampleAfterValue": "200003",
354        "BriefDescription": "Counts the number of taken branch instructions retired"
355    }
356]