1630171d4SAndi Kleen[
2630171d4SAndi Kleen    {
3630171d4SAndi Kleen        "EventCode": "0x00",
4630171d4SAndi Kleen        "UMask": "0x1",
5630171d4SAndi Kleen        "BriefDescription": "Instructions retired from execution.",
6630171d4SAndi Kleen        "Counter": "Fixed counter 1",
7630171d4SAndi Kleen        "EventName": "INST_RETIRED.ANY",
8630171d4SAndi Kleen        "PublicDescription": "Counts the number of instructions retired from execution. For instructions that consist of multiple micro-ops, Counts the retirement of the last micro-op of the instruction. Counting continues during hardware interrupts, traps, and inside interrupt handlers. Notes: INST_RETIRED.ANY is counted by a designated fixed counter, leaving the four (eight when Hyperthreading is disabled) programmable counters available for other events. INST_RETIRED.ANY_P is counted by a programmable counter and it is an architectural performance event. Counting: Faulting executions of GETSEC/VM entry/VM Exit/MWait will not count as retired instructions.",
9630171d4SAndi Kleen        "SampleAfterValue": "2000003",
10630171d4SAndi Kleen        "CounterHTOff": "Fixed counter 1"
11630171d4SAndi Kleen    },
12630171d4SAndi Kleen    {
13630171d4SAndi Kleen        "EventCode": "0x00",
14630171d4SAndi Kleen        "UMask": "0x2",
15630171d4SAndi Kleen        "BriefDescription": "Core cycles when the thread is not in halt state",
16630171d4SAndi Kleen        "Counter": "Fixed counter 2",
17630171d4SAndi Kleen        "EventName": "CPU_CLK_UNHALTED.THREAD",
18630171d4SAndi Kleen        "PublicDescription": "Counts the number of core cycles while the thread is not in a halt state. The thread enters the halt state when it is running the HLT instruction. This event is a component in many key event ratios. The core frequency may change from time to time due to transitions associated with Enhanced Intel SpeedStep Technology or TM2. For this reason this event may have a changing ratio with regards to time. When the core frequency is constant, this event can approximate elapsed time while the core was not in the halt state. It is counted on a dedicated fixed counter, leaving the four (eight when Hyperthreading is disabled) programmable counters available for other events.",
19630171d4SAndi Kleen        "SampleAfterValue": "2000003",
20630171d4SAndi Kleen        "CounterHTOff": "Fixed counter 2"
21630171d4SAndi Kleen    },
22630171d4SAndi Kleen    {
23630171d4SAndi Kleen        "EventCode": "0x00",
24630171d4SAndi Kleen        "UMask": "0x2",
25630171d4SAndi Kleen        "BriefDescription": "Core cycles when at least one thread on the physical core is not in halt state.",
26630171d4SAndi Kleen        "Counter": "Fixed counter 2",
27630171d4SAndi Kleen        "EventName": "CPU_CLK_UNHALTED.THREAD_ANY",
28630171d4SAndi Kleen        "AnyThread": "1",
29630171d4SAndi Kleen        "SampleAfterValue": "2000003",
30630171d4SAndi Kleen        "CounterHTOff": "Fixed counter 2"
31630171d4SAndi Kleen    },
32630171d4SAndi Kleen    {
33630171d4SAndi Kleen        "EventCode": "0x00",
34630171d4SAndi Kleen        "UMask": "0x3",
35630171d4SAndi Kleen        "BriefDescription": "Reference cycles when the core is not in halt state.",
36630171d4SAndi Kleen        "Counter": "Fixed counter 3",
37630171d4SAndi Kleen        "EventName": "CPU_CLK_UNHALTED.REF_TSC",
38630171d4SAndi Kleen        "PublicDescription": "Counts the number of reference cycles when the core is not in a halt state. The core enters the halt state when it is running the HLT instruction or the MWAIT instruction. This event is not affected by core frequency changes (for example, P states, TM2 transitions) but has the same incrementing frequency as the time stamp counter. This event can approximate elapsed time while the core was not in a halt state. This event has a constant ratio with the CPU_CLK_UNHALTED.REF_XCLK event. It is counted on a dedicated fixed counter, leaving the four (eight when Hyperthreading is disabled) programmable counters available for other events. Note: On all current platforms this event stops counting during 'throttling (TM)' states duty off periods the processor is 'halted'.  The counter update is done at a lower clock rate then the core clock the overflow status bit for this counter may appear 'sticky'.  After the counter has overflowed and software clears the overflow status bit and resets the counter to less than MAX. The reset value to the counter is not clocked immediately so the overflow status bit will flip 'high (1)' and generate another PMI (if enabled) after which the reset value gets clocked into the counter. Therefore, software will get the interrupt, read the overflow status bit '1 for bit 34 while the counter value is less than MAX. Software should ignore this case.",
39630171d4SAndi Kleen        "SampleAfterValue": "2000003",
40630171d4SAndi Kleen        "CounterHTOff": "Fixed counter 3"
41630171d4SAndi Kleen    },
42630171d4SAndi Kleen    {
43630171d4SAndi Kleen        "EventCode": "0x03",
44630171d4SAndi Kleen        "UMask": "0x2",
45630171d4SAndi Kleen        "BriefDescription": "Loads blocked by overlapping with store buffer that cannot be forwarded .",
46630171d4SAndi Kleen        "Counter": "0,1,2,3",
47630171d4SAndi Kleen        "EventName": "LD_BLOCKS.STORE_FORWARD",
48630171d4SAndi Kleen        "PublicDescription": "Counts how many times the load operation got the true Block-on-Store blocking code preventing store forwarding. This includes cases when:a. preceding store conflicts with the load (incomplete overlap),b. store forwarding is impossible due to u-arch limitations,c. preceding lock RMW operations are not forwarded,d. store has the no-forward bit set (uncacheable/page-split/masked stores),e. all-blocking stores are used (mostly, fences and port I/O), and others.The most common case is a load blocked due to its address range overlapping with a preceding smaller uncompleted store. Note: This event does not take into account cases of out-of-SW-control (for example, SbTailHit), unknown physical STA, and cases of blocking loads on store due to being non-WB memory type or a lock. These cases are covered by other events. See the table of not supported store forwards in the Optimization Guide.",
49630171d4SAndi Kleen        "SampleAfterValue": "100003",
50630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
51630171d4SAndi Kleen    },
52630171d4SAndi Kleen    {
53630171d4SAndi Kleen        "EventCode": "0x03",
54630171d4SAndi Kleen        "UMask": "0x8",
55630171d4SAndi Kleen        "BriefDescription": "The number of times that split load operations are temporarily blocked because all resources for handling the split accesses are in use",
56630171d4SAndi Kleen        "Counter": "0,1,2,3",
57630171d4SAndi Kleen        "EventName": "LD_BLOCKS.NO_SR",
58630171d4SAndi Kleen        "PublicDescription": "The number of times that split load operations are temporarily blocked because all resources for handling the split accesses are in use.",
59630171d4SAndi Kleen        "SampleAfterValue": "100003",
60630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
61630171d4SAndi Kleen    },
62630171d4SAndi Kleen    {
63630171d4SAndi Kleen        "EventCode": "0x07",
64630171d4SAndi Kleen        "UMask": "0x1",
65630171d4SAndi Kleen        "BriefDescription": "False dependencies in MOB due to partial compare on address.",
66630171d4SAndi Kleen        "Counter": "0,1,2,3",
67630171d4SAndi Kleen        "EventName": "LD_BLOCKS_PARTIAL.ADDRESS_ALIAS",
68630171d4SAndi Kleen        "PublicDescription": "Counts false dependencies in MOB when the partial comparison upon loose net check and dependency was resolved by the Enhanced Loose net mechanism. This may not result in high performance penalties. Loose net checks can fail when loads and stores are 4k aliased.",
69630171d4SAndi Kleen        "SampleAfterValue": "100003",
70630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
71630171d4SAndi Kleen    },
72630171d4SAndi Kleen    {
73630171d4SAndi Kleen        "EventCode": "0x0D",
74630171d4SAndi Kleen        "UMask": "0x1",
75630171d4SAndi Kleen        "BriefDescription": "Core cycles the allocator was stalled due to recovery from earlier clear event for this thread (e.g. misprediction or memory nuke)",
76630171d4SAndi Kleen        "Counter": "0,1,2,3",
77630171d4SAndi Kleen        "EventName": "INT_MISC.RECOVERY_CYCLES",
78630171d4SAndi Kleen        "PublicDescription": "Core cycles the Resource allocator was stalled due to recovery from an earlier branch misprediction or machine clear event.",
79630171d4SAndi Kleen        "SampleAfterValue": "2000003",
80630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
81630171d4SAndi Kleen    },
82630171d4SAndi Kleen    {
83630171d4SAndi Kleen        "EventCode": "0x0D",
84630171d4SAndi Kleen        "UMask": "0x1",
85630171d4SAndi Kleen        "BriefDescription": "Core cycles the allocator was stalled due to recovery from earlier clear event for any thread running on the physical core (e.g. misprediction or memory nuke).",
86630171d4SAndi Kleen        "Counter": "0,1,2,3",
87630171d4SAndi Kleen        "EventName": "INT_MISC.RECOVERY_CYCLES_ANY",
88630171d4SAndi Kleen        "AnyThread": "1",
89630171d4SAndi Kleen        "SampleAfterValue": "2000003",
90630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
91630171d4SAndi Kleen    },
92630171d4SAndi Kleen    {
93630171d4SAndi Kleen        "EventCode": "0x0D",
94630171d4SAndi Kleen        "UMask": "0x80",
95630171d4SAndi Kleen        "BriefDescription": "Cycles the issue-stage is waiting for front-end to fetch from resteered path following branch misprediction or machine clear events.",
96630171d4SAndi Kleen        "Counter": "0,1,2,3",
97630171d4SAndi Kleen        "EventName": "INT_MISC.CLEAR_RESTEER_CYCLES",
98630171d4SAndi Kleen        "SampleAfterValue": "2000003",
99630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
100630171d4SAndi Kleen    },
101630171d4SAndi Kleen    {
102630171d4SAndi Kleen        "EventCode": "0x0E",
103630171d4SAndi Kleen        "UMask": "0x1",
104630171d4SAndi Kleen        "BriefDescription": "Uops that Resource Allocation Table (RAT) issues to Reservation Station (RS)",
105630171d4SAndi Kleen        "Counter": "0,1,2,3",
106630171d4SAndi Kleen        "EventName": "UOPS_ISSUED.ANY",
107630171d4SAndi Kleen        "PublicDescription": "Counts the number of uops that the Resource Allocation Table (RAT) issues to the Reservation Station (RS).",
108630171d4SAndi Kleen        "SampleAfterValue": "2000003",
109630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
110630171d4SAndi Kleen    },
111630171d4SAndi Kleen    {
112630171d4SAndi Kleen        "Invert": "1",
113630171d4SAndi Kleen        "EventCode": "0x0E",
114630171d4SAndi Kleen        "UMask": "0x1",
115630171d4SAndi Kleen        "BriefDescription": "Cycles when Resource Allocation Table (RAT) does not issue Uops to Reservation Station (RS) for the thread",
116630171d4SAndi Kleen        "Counter": "0,1,2,3",
117630171d4SAndi Kleen        "EventName": "UOPS_ISSUED.STALL_CYCLES",
118630171d4SAndi Kleen        "CounterMask": "1",
119630171d4SAndi Kleen        "PublicDescription": "Counts cycles during which the Resource Allocation Table (RAT) does not issue any Uops to the reservation station (RS) for the current thread.",
120630171d4SAndi Kleen        "SampleAfterValue": "2000003",
121630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
122630171d4SAndi Kleen    },
123630171d4SAndi Kleen    {
124630171d4SAndi Kleen        "EventCode": "0x0E",
125630171d4SAndi Kleen        "UMask": "0x2",
126630171d4SAndi Kleen        "BriefDescription": "Uops inserted at issue-stage in order to preserve upper bits of vector registers.",
127630171d4SAndi Kleen        "Counter": "0,1,2,3",
128630171d4SAndi Kleen        "EventName": "UOPS_ISSUED.VECTOR_WIDTH_MISMATCH",
129630171d4SAndi Kleen        "PublicDescription": "Counts the number of Blend Uops issued by the Resource Allocation Table (RAT) to the reservation station (RS) in order to preserve upper bits of vector registers. Starting with the Skylake microarchitecture, these Blend uops are needed since every Intel SSE instruction executed in Dirty Upper State needs to preserve bits 128-255 of the destination register. For more information, refer to \u201cMixing Intel AVX and Intel SSE Code\u201d section of the Optimization Guide.",
130630171d4SAndi Kleen        "SampleAfterValue": "2000003",
131630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
132630171d4SAndi Kleen    },
133630171d4SAndi Kleen    {
134630171d4SAndi Kleen        "EventCode": "0x0E",
135630171d4SAndi Kleen        "UMask": "0x20",
136630171d4SAndi Kleen        "BriefDescription": "Number of slow LEA uops being allocated. A uop is generally considered SlowLea if it has 3 sources (e.g. 2 sources + immediate) regardless if as a result of LEA instruction or not.",
137630171d4SAndi Kleen        "Counter": "0,1,2,3",
138630171d4SAndi Kleen        "EventName": "UOPS_ISSUED.SLOW_LEA",
139630171d4SAndi Kleen        "SampleAfterValue": "2000003",
140630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
141630171d4SAndi Kleen    },
142630171d4SAndi Kleen    {
143630171d4SAndi Kleen        "EventCode": "0x14",
144630171d4SAndi Kleen        "UMask": "0x1",
145630171d4SAndi Kleen        "BriefDescription": "Cycles when divide unit is busy executing divide or square root operations. Accounts for integer and floating-point operations.",
146630171d4SAndi Kleen        "Counter": "0,1,2,3",
147630171d4SAndi Kleen        "EventName": "ARITH.DIVIDER_ACTIVE",
148630171d4SAndi Kleen        "CounterMask": "1",
149630171d4SAndi Kleen        "SampleAfterValue": "2000003",
150630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
151630171d4SAndi Kleen    },
152630171d4SAndi Kleen    {
153630171d4SAndi Kleen        "EventCode": "0x3C",
154630171d4SAndi Kleen        "UMask": "0x0",
155630171d4SAndi Kleen        "BriefDescription": "Thread cycles when thread is not in halt state",
156630171d4SAndi Kleen        "Counter": "0,1,2,3",
157630171d4SAndi Kleen        "EventName": "CPU_CLK_UNHALTED.THREAD_P",
158630171d4SAndi Kleen        "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.",
159630171d4SAndi Kleen        "SampleAfterValue": "2000003",
160630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
161630171d4SAndi Kleen    },
162630171d4SAndi Kleen    {
163630171d4SAndi Kleen        "EventCode": "0x3C",
164630171d4SAndi Kleen        "UMask": "0x0",
165630171d4SAndi Kleen        "BriefDescription": "Core cycles when at least one thread on the physical core is not in halt state.",
166630171d4SAndi Kleen        "Counter": "0,1,2,3",
167630171d4SAndi Kleen        "EventName": "CPU_CLK_UNHALTED.THREAD_P_ANY",
168630171d4SAndi Kleen        "AnyThread": "1",
169630171d4SAndi Kleen        "SampleAfterValue": "2000003",
170630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
171630171d4SAndi Kleen    },
172630171d4SAndi Kleen    {
173630171d4SAndi Kleen        "EdgeDetect": "1",
174630171d4SAndi Kleen        "EventCode": "0x3C",
175630171d4SAndi Kleen        "UMask": "0x0",
176630171d4SAndi Kleen        "BriefDescription": "Counts when there is a transition from ring 1, 2 or 3 to ring 0.",
177630171d4SAndi Kleen        "Counter": "0,1,2,3",
178630171d4SAndi Kleen        "EventName": "CPU_CLK_UNHALTED.RING0_TRANS",
179630171d4SAndi Kleen        "CounterMask": "1",
180630171d4SAndi Kleen        "PublicDescription": "Counts when the Current Privilege Level (CPL) transitions from ring 1, 2 or 3 to ring 0 (Kernel).",
181630171d4SAndi Kleen        "SampleAfterValue": "100007",
182630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
183630171d4SAndi Kleen    },
184630171d4SAndi Kleen    {
185630171d4SAndi Kleen        "EventCode": "0x3C",
186630171d4SAndi Kleen        "UMask": "0x1",
187630171d4SAndi Kleen        "BriefDescription": "Core crystal clock cycles when the thread is unhalted.",
188630171d4SAndi Kleen        "Counter": "0,1,2,3",
189630171d4SAndi Kleen        "EventName": "CPU_CLK_THREAD_UNHALTED.REF_XCLK",
190630171d4SAndi Kleen        "SampleAfterValue": "2503",
191630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
192630171d4SAndi Kleen    },
193630171d4SAndi Kleen    {
194630171d4SAndi Kleen        "EventCode": "0x3C",
195630171d4SAndi Kleen        "UMask": "0x1",
196630171d4SAndi Kleen        "BriefDescription": "Core crystal clock cycles when at least one thread on the physical core is unhalted.",
197630171d4SAndi Kleen        "Counter": "0,1,2,3",
198630171d4SAndi Kleen        "EventName": "CPU_CLK_THREAD_UNHALTED.REF_XCLK_ANY",
199630171d4SAndi Kleen        "AnyThread": "1",
200630171d4SAndi Kleen        "SampleAfterValue": "2503",
201630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
202630171d4SAndi Kleen    },
203630171d4SAndi Kleen    {
204630171d4SAndi Kleen        "EventCode": "0x3C",
205630171d4SAndi Kleen        "UMask": "0x1",
206630171d4SAndi Kleen        "BriefDescription": "Core crystal clock cycles when the thread is unhalted.",
207630171d4SAndi Kleen        "Counter": "0,1,2,3",
208630171d4SAndi Kleen        "EventName": "CPU_CLK_UNHALTED.REF_XCLK",
209630171d4SAndi Kleen        "SampleAfterValue": "2503",
210630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
211630171d4SAndi Kleen    },
212630171d4SAndi Kleen    {
213630171d4SAndi Kleen        "EventCode": "0x3C",
214630171d4SAndi Kleen        "UMask": "0x1",
215630171d4SAndi Kleen        "BriefDescription": "Core crystal clock cycles when at least one thread on the physical core is unhalted.",
216630171d4SAndi Kleen        "Counter": "0,1,2,3",
217630171d4SAndi Kleen        "EventName": "CPU_CLK_UNHALTED.REF_XCLK_ANY",
218630171d4SAndi Kleen        "AnyThread": "1",
219630171d4SAndi Kleen        "SampleAfterValue": "2503",
220630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
221630171d4SAndi Kleen    },
222630171d4SAndi Kleen    {
223630171d4SAndi Kleen        "EventCode": "0x3C",
224630171d4SAndi Kleen        "UMask": "0x2",
225630171d4SAndi Kleen        "BriefDescription": "Core crystal clock cycles when this thread is unhalted and the other thread is halted.",
226630171d4SAndi Kleen        "Counter": "0,1,2,3",
227630171d4SAndi Kleen        "EventName": "CPU_CLK_THREAD_UNHALTED.ONE_THREAD_ACTIVE",
228630171d4SAndi Kleen        "SampleAfterValue": "2000003",
229630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
230630171d4SAndi Kleen    },
231630171d4SAndi Kleen    {
232630171d4SAndi Kleen        "EventCode": "0x3C",
233630171d4SAndi Kleen        "UMask": "0x2",
234630171d4SAndi Kleen        "BriefDescription": "Core crystal clock cycles when this thread is unhalted and the other thread is halted.",
235630171d4SAndi Kleen        "Counter": "0,1,2,3",
236630171d4SAndi Kleen        "EventName": "CPU_CLK_UNHALTED.ONE_THREAD_ACTIVE",
237630171d4SAndi Kleen        "SampleAfterValue": "2503",
238630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
239630171d4SAndi Kleen    },
240630171d4SAndi Kleen    {
241630171d4SAndi Kleen        "EventCode": "0x4C",
242630171d4SAndi Kleen        "UMask": "0x1",
243630171d4SAndi Kleen        "BriefDescription": "Demand load dispatches that hit L1D fill buffer (FB) allocated for software prefetch.",
244630171d4SAndi Kleen        "Counter": "0,1,2,3",
245630171d4SAndi Kleen        "EventName": "LOAD_HIT_PRE.SW_PF",
246630171d4SAndi Kleen        "PublicDescription": "Counts all not software-prefetch load dispatches that hit the fill buffer (FB) allocated for the software prefetch. It can also be incremented by some lock instructions. So it should only be used with profiling so that the locks can be excluded by ASM (Assembly File) inspection of the nearby instructions.",
247630171d4SAndi Kleen        "SampleAfterValue": "100003",
248630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
249630171d4SAndi Kleen    },
250630171d4SAndi Kleen    {
251630171d4SAndi Kleen        "EventCode": "0x5E",
252630171d4SAndi Kleen        "UMask": "0x1",
253630171d4SAndi Kleen        "BriefDescription": "Cycles when Reservation Station (RS) is empty for the thread",
254630171d4SAndi Kleen        "Counter": "0,1,2,3",
255630171d4SAndi Kleen        "EventName": "RS_EVENTS.EMPTY_CYCLES",
256630171d4SAndi Kleen        "PublicDescription": "Counts cycles during which the reservation station (RS) is empty for the thread.; Note: In ST-mode, not active thread should drive 0. This is usually caused by severely costly branch mispredictions, or allocator/FE issues.",
257630171d4SAndi Kleen        "SampleAfterValue": "2000003",
258630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
259630171d4SAndi Kleen    },
260630171d4SAndi Kleen    {
261630171d4SAndi Kleen        "EdgeDetect": "1",
262630171d4SAndi Kleen        "Invert": "1",
263630171d4SAndi Kleen        "EventCode": "0x5E",
264630171d4SAndi Kleen        "UMask": "0x1",
265630171d4SAndi Kleen        "BriefDescription": "Counts end of periods where the Reservation Station (RS) was empty. Could be useful to precisely locate Frontend Latency Bound issues.",
266630171d4SAndi Kleen        "Counter": "0,1,2,3",
267630171d4SAndi Kleen        "EventName": "RS_EVENTS.EMPTY_END",
268630171d4SAndi Kleen        "CounterMask": "1",
269630171d4SAndi Kleen        "PublicDescription": "Counts end of periods where the Reservation Station (RS) was empty. Could be useful to precisely locate front-end Latency Bound issues.",
270630171d4SAndi Kleen        "SampleAfterValue": "2000003",
271630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
272630171d4SAndi Kleen    },
273630171d4SAndi Kleen    {
274630171d4SAndi Kleen        "EventCode": "0x87",
275630171d4SAndi Kleen        "UMask": "0x1",
276630171d4SAndi Kleen        "BriefDescription": "Stalls caused by changing prefix length of the instruction.",
277630171d4SAndi Kleen        "Counter": "0,1,2,3",
278630171d4SAndi Kleen        "EventName": "ILD_STALL.LCP",
279630171d4SAndi Kleen        "PublicDescription": "Counts cycles that the Instruction Length decoder (ILD) stalls occurred due to dynamically changing prefix length of the decoded instruction (by operand size prefix instruction 0x66, address size prefix instruction 0x67 or REX.W for Intel64). Count is proportional to the number of prefixes in a 16B-line. This may result in a three-cycle penalty for each LCP (Length changing prefix) in a 16-byte chunk.",
280630171d4SAndi Kleen        "SampleAfterValue": "2000003",
281630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
282630171d4SAndi Kleen    },
283630171d4SAndi Kleen    {
284630171d4SAndi Kleen        "EventCode": "0xA1",
285630171d4SAndi Kleen        "UMask": "0x1",
286630171d4SAndi Kleen        "BriefDescription": "Cycles per thread when uops are executed in port 0",
287630171d4SAndi Kleen        "Counter": "0,1,2,3",
288630171d4SAndi Kleen        "EventName": "UOPS_DISPATCHED_PORT.PORT_0",
289630171d4SAndi Kleen        "PublicDescription": "Counts, on the per-thread basis, cycles during which at least one uop is dispatched from the Reservation Station (RS) to port 0.",
290630171d4SAndi Kleen        "SampleAfterValue": "2000003",
291630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
292630171d4SAndi Kleen    },
293630171d4SAndi Kleen    {
294630171d4SAndi Kleen        "EventCode": "0xA1",
295630171d4SAndi Kleen        "UMask": "0x2",
296630171d4SAndi Kleen        "BriefDescription": "Cycles per thread when uops are executed in port 1",
297630171d4SAndi Kleen        "Counter": "0,1,2,3",
298630171d4SAndi Kleen        "EventName": "UOPS_DISPATCHED_PORT.PORT_1",
299630171d4SAndi Kleen        "PublicDescription": "Counts, on the per-thread basis, cycles during which at least one uop is dispatched from the Reservation Station (RS) to port 1.",
300630171d4SAndi Kleen        "SampleAfterValue": "2000003",
301630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
302630171d4SAndi Kleen    },
303630171d4SAndi Kleen    {
304630171d4SAndi Kleen        "EventCode": "0xA1",
305630171d4SAndi Kleen        "UMask": "0x4",
306630171d4SAndi Kleen        "BriefDescription": "Cycles per thread when uops are executed in port 2",
307630171d4SAndi Kleen        "Counter": "0,1,2,3",
308630171d4SAndi Kleen        "EventName": "UOPS_DISPATCHED_PORT.PORT_2",
309630171d4SAndi Kleen        "PublicDescription": "Counts, on the per-thread basis, cycles during which at least one uop is dispatched from the Reservation Station (RS) to port 2.",
310630171d4SAndi Kleen        "SampleAfterValue": "2000003",
311630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
312630171d4SAndi Kleen    },
313630171d4SAndi Kleen    {
314630171d4SAndi Kleen        "EventCode": "0xA1",
315630171d4SAndi Kleen        "UMask": "0x8",
316630171d4SAndi Kleen        "BriefDescription": "Cycles per thread when uops are executed in port 3",
317630171d4SAndi Kleen        "Counter": "0,1,2,3",
318630171d4SAndi Kleen        "EventName": "UOPS_DISPATCHED_PORT.PORT_3",
319630171d4SAndi Kleen        "PublicDescription": "Counts, on the per-thread basis, cycles during which at least one uop is dispatched from the Reservation Station (RS) to port 3.",
320630171d4SAndi Kleen        "SampleAfterValue": "2000003",
321630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
322630171d4SAndi Kleen    },
323630171d4SAndi Kleen    {
324630171d4SAndi Kleen        "EventCode": "0xA1",
325630171d4SAndi Kleen        "UMask": "0x10",
326630171d4SAndi Kleen        "BriefDescription": "Cycles per thread when uops are executed in port 4",
327630171d4SAndi Kleen        "Counter": "0,1,2,3",
328630171d4SAndi Kleen        "EventName": "UOPS_DISPATCHED_PORT.PORT_4",
329630171d4SAndi Kleen        "PublicDescription": "Counts, on the per-thread basis, cycles during which at least one uop is dispatched from the Reservation Station (RS) to port 4.",
330630171d4SAndi Kleen        "SampleAfterValue": "2000003",
331630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
332630171d4SAndi Kleen    },
333630171d4SAndi Kleen    {
334630171d4SAndi Kleen        "EventCode": "0xA1",
335630171d4SAndi Kleen        "UMask": "0x20",
336630171d4SAndi Kleen        "BriefDescription": "Cycles per thread when uops are executed in port 5",
337630171d4SAndi Kleen        "Counter": "0,1,2,3",
338630171d4SAndi Kleen        "EventName": "UOPS_DISPATCHED_PORT.PORT_5",
339630171d4SAndi Kleen        "PublicDescription": "Counts, on the per-thread basis, cycles during which at least one uop is dispatched from the Reservation Station (RS) to port 5.",
340630171d4SAndi Kleen        "SampleAfterValue": "2000003",
341630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
342630171d4SAndi Kleen    },
343630171d4SAndi Kleen    {
344630171d4SAndi Kleen        "EventCode": "0xA1",
345630171d4SAndi Kleen        "UMask": "0x40",
346630171d4SAndi Kleen        "BriefDescription": "Cycles per thread when uops are executed in port 6",
347630171d4SAndi Kleen        "Counter": "0,1,2,3",
348630171d4SAndi Kleen        "EventName": "UOPS_DISPATCHED_PORT.PORT_6",
349630171d4SAndi Kleen        "PublicDescription": "Counts, on the per-thread basis, cycles during which at least one uop is dispatched from the Reservation Station (RS) to port 6.",
350630171d4SAndi Kleen        "SampleAfterValue": "2000003",
351630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
352630171d4SAndi Kleen    },
353630171d4SAndi Kleen    {
354630171d4SAndi Kleen        "EventCode": "0xA1",
355630171d4SAndi Kleen        "UMask": "0x80",
356630171d4SAndi Kleen        "BriefDescription": "Cycles per thread when uops are executed in port 7",
357630171d4SAndi Kleen        "Counter": "0,1,2,3",
358630171d4SAndi Kleen        "EventName": "UOPS_DISPATCHED_PORT.PORT_7",
359630171d4SAndi Kleen        "PublicDescription": "Counts, on the per-thread basis, cycles during which at least one uop is dispatched from the Reservation Station (RS) to port 7.",
360630171d4SAndi Kleen        "SampleAfterValue": "2000003",
361630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
362630171d4SAndi Kleen    },
363630171d4SAndi Kleen    {
364630171d4SAndi Kleen        "EventCode": "0xA2",
365630171d4SAndi Kleen        "UMask": "0x1",
366630171d4SAndi Kleen        "BriefDescription": "Resource-related stall cycles",
367630171d4SAndi Kleen        "Counter": "0,1,2,3",
368630171d4SAndi Kleen        "EventName": "RESOURCE_STALLS.ANY",
369630171d4SAndi Kleen        "PublicDescription": "Counts resource-related stall cycles. Reasons for stalls can be as follows:a. *any* u-arch structure got full (LB, SB, RS, ROB, BOB, LM, Physical Register Reclaim Table (PRRT), or Physical History Table (PHT) slots).b. *any* u-arch structure got empty (like INT/SIMD FreeLists).c. FPU control word (FPCW), MXCSR.and others. This counts cycles that the pipeline back-end blocked uop delivery from the front-end.",
370630171d4SAndi Kleen        "SampleAfterValue": "2000003",
371630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
372630171d4SAndi Kleen    },
373630171d4SAndi Kleen    {
374630171d4SAndi Kleen        "EventCode": "0xA2",
375630171d4SAndi Kleen        "UMask": "0x8",
376630171d4SAndi Kleen        "BriefDescription": "Cycles stalled due to no store buffers available. (not including draining form sync).",
377630171d4SAndi Kleen        "Counter": "0,1,2,3",
378630171d4SAndi Kleen        "EventName": "RESOURCE_STALLS.SB",
379630171d4SAndi Kleen        "PublicDescription": "Counts allocation stall cycles caused by the store buffer (SB) being full. This counts cycles that the pipeline back-end blocked uop delivery from the front-end.",
380630171d4SAndi Kleen        "SampleAfterValue": "2000003",
381630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
382630171d4SAndi Kleen    },
383630171d4SAndi Kleen    {
384630171d4SAndi Kleen        "EventCode": "0xA3",
385630171d4SAndi Kleen        "UMask": "0x1",
386630171d4SAndi Kleen        "BriefDescription": "Cycles while L2 cache miss demand load is outstanding.",
387630171d4SAndi Kleen        "Counter": "0,1,2,3",
388630171d4SAndi Kleen        "EventName": "CYCLE_ACTIVITY.CYCLES_L2_MISS",
389630171d4SAndi Kleen        "CounterMask": "1",
390630171d4SAndi Kleen        "SampleAfterValue": "2000003",
391630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
392630171d4SAndi Kleen    },
393630171d4SAndi Kleen    {
394630171d4SAndi Kleen        "EventCode": "0xA3",
395630171d4SAndi Kleen        "UMask": "0x4",
396630171d4SAndi Kleen        "BriefDescription": "Total execution stalls.",
397630171d4SAndi Kleen        "Counter": "0,1,2,3",
398630171d4SAndi Kleen        "EventName": "CYCLE_ACTIVITY.STALLS_TOTAL",
399630171d4SAndi Kleen        "CounterMask": "4",
400630171d4SAndi Kleen        "SampleAfterValue": "2000003",
401630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
402630171d4SAndi Kleen    },
403630171d4SAndi Kleen    {
404630171d4SAndi Kleen        "EventCode": "0xA3",
405630171d4SAndi Kleen        "UMask": "0x5",
406630171d4SAndi Kleen        "BriefDescription": "Execution stalls while L2 cache miss demand load is outstanding.",
407630171d4SAndi Kleen        "Counter": "0,1,2,3",
408630171d4SAndi Kleen        "EventName": "CYCLE_ACTIVITY.STALLS_L2_MISS",
409630171d4SAndi Kleen        "CounterMask": "5",
410630171d4SAndi Kleen        "SampleAfterValue": "2000003",
411630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
412630171d4SAndi Kleen    },
413630171d4SAndi Kleen    {
414630171d4SAndi Kleen        "EventCode": "0xA3",
415630171d4SAndi Kleen        "UMask": "0x8",
416630171d4SAndi Kleen        "BriefDescription": "Cycles while L1 cache miss demand load is outstanding.",
417630171d4SAndi Kleen        "Counter": "0,1,2,3",
418630171d4SAndi Kleen        "EventName": "CYCLE_ACTIVITY.CYCLES_L1D_MISS",
419630171d4SAndi Kleen        "CounterMask": "8",
420630171d4SAndi Kleen        "SampleAfterValue": "2000003",
421630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
422630171d4SAndi Kleen    },
423630171d4SAndi Kleen    {
424630171d4SAndi Kleen        "EventCode": "0xA3",
425630171d4SAndi Kleen        "UMask": "0xc",
426630171d4SAndi Kleen        "BriefDescription": "Execution stalls while L1 cache miss demand load is outstanding.",
427630171d4SAndi Kleen        "Counter": "0,1,2,3",
428630171d4SAndi Kleen        "EventName": "CYCLE_ACTIVITY.STALLS_L1D_MISS",
429630171d4SAndi Kleen        "CounterMask": "12",
430630171d4SAndi Kleen        "SampleAfterValue": "2000003",
431630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
432630171d4SAndi Kleen    },
433630171d4SAndi Kleen    {
434630171d4SAndi Kleen        "EventCode": "0xA3",
435630171d4SAndi Kleen        "UMask": "0x10",
436630171d4SAndi Kleen        "BriefDescription": "Cycles while memory subsystem has an outstanding load.",
437630171d4SAndi Kleen        "Counter": "0,1,2,3",
438630171d4SAndi Kleen        "EventName": "CYCLE_ACTIVITY.CYCLES_MEM_ANY",
439630171d4SAndi Kleen        "CounterMask": "16",
440630171d4SAndi Kleen        "SampleAfterValue": "2000003",
441630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
442630171d4SAndi Kleen    },
443630171d4SAndi Kleen    {
444630171d4SAndi Kleen        "EventCode": "0xA3",
445630171d4SAndi Kleen        "UMask": "0x14",
446630171d4SAndi Kleen        "BriefDescription": "Execution stalls while memory subsystem has an outstanding load.",
447630171d4SAndi Kleen        "Counter": "0,1,2,3",
448630171d4SAndi Kleen        "EventName": "CYCLE_ACTIVITY.STALLS_MEM_ANY",
449630171d4SAndi Kleen        "CounterMask": "20",
450630171d4SAndi Kleen        "SampleAfterValue": "2000003",
451630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3"
452630171d4SAndi Kleen    },
453630171d4SAndi Kleen    {
454630171d4SAndi Kleen        "EventCode": "0xA6",
455630171d4SAndi Kleen        "UMask": "0x1",
456630171d4SAndi Kleen        "BriefDescription": "Cycles where no uops were executed, the Reservation Station was not empty, the Store Buffer was full and there was no outstanding load.",
457630171d4SAndi Kleen        "Counter": "0,1,2,3",
458630171d4SAndi Kleen        "EventName": "EXE_ACTIVITY.EXE_BOUND_0_PORTS",
459630171d4SAndi Kleen        "PublicDescription": "Counts cycles during which no uops were executed on all ports and Reservation Station (RS) was not empty.",
460630171d4SAndi Kleen        "SampleAfterValue": "2000003",
461630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
462630171d4SAndi Kleen    },
463630171d4SAndi Kleen    {
464630171d4SAndi Kleen        "EventCode": "0xA6",
465630171d4SAndi Kleen        "UMask": "0x2",
466630171d4SAndi Kleen        "BriefDescription": "Cycles total of 1 uop is executed on all ports and Reservation Station was not empty.",
467630171d4SAndi Kleen        "Counter": "0,1,2,3",
468630171d4SAndi Kleen        "EventName": "EXE_ACTIVITY.1_PORTS_UTIL",
469630171d4SAndi Kleen        "PublicDescription": "Counts cycles during which a total of 1 uop was executed on all ports and Reservation Station (RS) was not empty.",
470630171d4SAndi Kleen        "SampleAfterValue": "2000003",
471630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
472630171d4SAndi Kleen    },
473630171d4SAndi Kleen    {
474630171d4SAndi Kleen        "EventCode": "0xA6",
475630171d4SAndi Kleen        "UMask": "0x4",
476630171d4SAndi Kleen        "BriefDescription": "Cycles total of 2 uops are executed on all ports and Reservation Station was not empty.",
477630171d4SAndi Kleen        "Counter": "0,1,2,3",
478630171d4SAndi Kleen        "EventName": "EXE_ACTIVITY.2_PORTS_UTIL",
479630171d4SAndi Kleen        "PublicDescription": "Counts cycles during which a total of 2 uops were executed on all ports and Reservation Station (RS) was not empty.",
480630171d4SAndi Kleen        "SampleAfterValue": "2000003",
481630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
482630171d4SAndi Kleen    },
483630171d4SAndi Kleen    {
484630171d4SAndi Kleen        "EventCode": "0xA6",
485630171d4SAndi Kleen        "UMask": "0x8",
486630171d4SAndi Kleen        "BriefDescription": "Cycles total of 3 uops are executed on all ports and Reservation Station was not empty.",
487630171d4SAndi Kleen        "Counter": "0,1,2,3",
488630171d4SAndi Kleen        "EventName": "EXE_ACTIVITY.3_PORTS_UTIL",
489630171d4SAndi Kleen        "PublicDescription": "Cycles total of 3 uops are executed on all ports and Reservation Station (RS) was not empty.",
490630171d4SAndi Kleen        "SampleAfterValue": "2000003",
491630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
492630171d4SAndi Kleen    },
493630171d4SAndi Kleen    {
494630171d4SAndi Kleen        "EventCode": "0xA6",
495630171d4SAndi Kleen        "UMask": "0x10",
496630171d4SAndi Kleen        "BriefDescription": "Cycles total of 4 uops are executed on all ports and Reservation Station was not empty.",
497630171d4SAndi Kleen        "Counter": "0,1,2,3",
498630171d4SAndi Kleen        "EventName": "EXE_ACTIVITY.4_PORTS_UTIL",
499630171d4SAndi Kleen        "PublicDescription": "Cycles total of 4 uops are executed on all ports and Reservation Station (RS) was not empty.",
500630171d4SAndi Kleen        "SampleAfterValue": "2000003",
501630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
502630171d4SAndi Kleen    },
503630171d4SAndi Kleen    {
504630171d4SAndi Kleen        "EventCode": "0xA6",
505630171d4SAndi Kleen        "UMask": "0x40",
506630171d4SAndi Kleen        "BriefDescription": "Cycles where the Store Buffer was full and no outstanding load.",
507630171d4SAndi Kleen        "Counter": "0,1,2,3",
508630171d4SAndi Kleen        "EventName": "EXE_ACTIVITY.BOUND_ON_STORES",
509630171d4SAndi Kleen        "SampleAfterValue": "2000003",
510630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
511630171d4SAndi Kleen    },
512630171d4SAndi Kleen    {
513630171d4SAndi Kleen        "EventCode": "0xA8",
514630171d4SAndi Kleen        "UMask": "0x1",
515630171d4SAndi Kleen        "BriefDescription": "Number of Uops delivered by the LSD.",
516630171d4SAndi Kleen        "Counter": "0,1,2,3",
517630171d4SAndi Kleen        "EventName": "LSD.UOPS",
518630171d4SAndi Kleen        "PublicDescription": "Number of uops delivered to the back-end by the LSD(Loop Stream Detector).",
519630171d4SAndi Kleen        "SampleAfterValue": "2000003",
520630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
521630171d4SAndi Kleen    },
522630171d4SAndi Kleen    {
523630171d4SAndi Kleen        "EventCode": "0xA8",
524630171d4SAndi Kleen        "UMask": "0x1",
525630171d4SAndi Kleen        "BriefDescription": "Cycles Uops delivered by the LSD, but didn't come from the decoder.",
526630171d4SAndi Kleen        "Counter": "0,1,2,3",
527630171d4SAndi Kleen        "EventName": "LSD.CYCLES_ACTIVE",
528630171d4SAndi Kleen        "CounterMask": "1",
529630171d4SAndi Kleen        "PublicDescription": "Counts the cycles when at least one uop is delivered by the LSD (Loop-stream detector).",
530630171d4SAndi Kleen        "SampleAfterValue": "2000003",
531630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
532630171d4SAndi Kleen    },
533630171d4SAndi Kleen    {
534630171d4SAndi Kleen        "EventCode": "0xA8",
535630171d4SAndi Kleen        "UMask": "0x1",
536630171d4SAndi Kleen        "BriefDescription": "Cycles 4 Uops delivered by the LSD, but didn't come from the decoder.",
537630171d4SAndi Kleen        "Counter": "0,1,2,3",
538630171d4SAndi Kleen        "EventName": "LSD.CYCLES_4_UOPS",
539630171d4SAndi Kleen        "CounterMask": "4",
540630171d4SAndi Kleen        "PublicDescription": "Counts the cycles when 4 uops are delivered by the LSD (Loop-stream detector).",
541630171d4SAndi Kleen        "SampleAfterValue": "2000003",
542630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
543630171d4SAndi Kleen    },
544630171d4SAndi Kleen    {
545630171d4SAndi Kleen        "EventCode": "0xB1",
546630171d4SAndi Kleen        "UMask": "0x1",
547630171d4SAndi Kleen        "BriefDescription": "Counts the number of uops to be executed per-thread each cycle.",
548630171d4SAndi Kleen        "Counter": "0,1,2,3",
549630171d4SAndi Kleen        "EventName": "UOPS_EXECUTED.THREAD",
550630171d4SAndi Kleen        "PublicDescription": "Number of uops to be executed per-thread each cycle.",
551630171d4SAndi Kleen        "SampleAfterValue": "2000003",
552630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
553630171d4SAndi Kleen    },
554630171d4SAndi Kleen    {
555630171d4SAndi Kleen        "Invert": "1",
556630171d4SAndi Kleen        "EventCode": "0xB1",
557630171d4SAndi Kleen        "UMask": "0x1",
558630171d4SAndi Kleen        "BriefDescription": "Counts number of cycles no uops were dispatched to be executed on this thread.",
559630171d4SAndi Kleen        "Counter": "0,1,2,3",
560630171d4SAndi Kleen        "EventName": "UOPS_EXECUTED.STALL_CYCLES",
561630171d4SAndi Kleen        "CounterMask": "1",
562630171d4SAndi Kleen        "PublicDescription": "Counts cycles during which no uops were dispatched from the Reservation Station (RS) per thread.",
563630171d4SAndi Kleen        "SampleAfterValue": "2000003",
564630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
565630171d4SAndi Kleen    },
566630171d4SAndi Kleen    {
567630171d4SAndi Kleen        "EventCode": "0xB1",
568630171d4SAndi Kleen        "UMask": "0x1",
569630171d4SAndi Kleen        "BriefDescription": "Cycles where at least 1 uop was executed per-thread",
570630171d4SAndi Kleen        "Counter": "0,1,2,3",
571630171d4SAndi Kleen        "EventName": "UOPS_EXECUTED.CYCLES_GE_1_UOP_EXEC",
572630171d4SAndi Kleen        "CounterMask": "1",
573630171d4SAndi Kleen        "PublicDescription": "Cycles where at least 1 uop was executed per-thread.",
574630171d4SAndi Kleen        "SampleAfterValue": "2000003",
575630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
576630171d4SAndi Kleen    },
577630171d4SAndi Kleen    {
578630171d4SAndi Kleen        "EventCode": "0xB1",
579630171d4SAndi Kleen        "UMask": "0x1",
580630171d4SAndi Kleen        "BriefDescription": "Cycles where at least 2 uops were executed per-thread",
581630171d4SAndi Kleen        "Counter": "0,1,2,3",
582630171d4SAndi Kleen        "EventName": "UOPS_EXECUTED.CYCLES_GE_2_UOPS_EXEC",
583630171d4SAndi Kleen        "CounterMask": "2",
584630171d4SAndi Kleen        "PublicDescription": "Cycles where at least 2 uops were executed per-thread.",
585630171d4SAndi Kleen        "SampleAfterValue": "2000003",
586630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
587630171d4SAndi Kleen    },
588630171d4SAndi Kleen    {
589630171d4SAndi Kleen        "EventCode": "0xB1",
590630171d4SAndi Kleen        "UMask": "0x1",
591630171d4SAndi Kleen        "BriefDescription": "Cycles where at least 3 uops were executed per-thread",
592630171d4SAndi Kleen        "Counter": "0,1,2,3",
593630171d4SAndi Kleen        "EventName": "UOPS_EXECUTED.CYCLES_GE_3_UOPS_EXEC",
594630171d4SAndi Kleen        "CounterMask": "3",
595630171d4SAndi Kleen        "PublicDescription": "Cycles where at least 3 uops were executed per-thread.",
596630171d4SAndi Kleen        "SampleAfterValue": "2000003",
597630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
598630171d4SAndi Kleen    },
599630171d4SAndi Kleen    {
600630171d4SAndi Kleen        "EventCode": "0xB1",
601630171d4SAndi Kleen        "UMask": "0x1",
602630171d4SAndi Kleen        "BriefDescription": "Cycles where at least 4 uops were executed per-thread",
603630171d4SAndi Kleen        "Counter": "0,1,2,3",
604630171d4SAndi Kleen        "EventName": "UOPS_EXECUTED.CYCLES_GE_4_UOPS_EXEC",
605630171d4SAndi Kleen        "CounterMask": "4",
606630171d4SAndi Kleen        "PublicDescription": "Cycles where at least 4 uops were executed per-thread.",
607630171d4SAndi Kleen        "SampleAfterValue": "2000003",
608630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
609630171d4SAndi Kleen    },
610630171d4SAndi Kleen    {
611630171d4SAndi Kleen        "EventCode": "0xB1",
612630171d4SAndi Kleen        "UMask": "0x2",
613630171d4SAndi Kleen        "BriefDescription": "Number of uops executed on the core.",
614630171d4SAndi Kleen        "Counter": "0,1,2,3",
615630171d4SAndi Kleen        "EventName": "UOPS_EXECUTED.CORE",
616630171d4SAndi Kleen        "PublicDescription": "Number of uops executed from any thread.",
617630171d4SAndi Kleen        "SampleAfterValue": "2000003",
618630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
619630171d4SAndi Kleen    },
620630171d4SAndi Kleen    {
621630171d4SAndi Kleen        "EventCode": "0xB1",
622630171d4SAndi Kleen        "UMask": "0x2",
623630171d4SAndi Kleen        "BriefDescription": "Cycles at least 1 micro-op is executed from any thread on physical core.",
624630171d4SAndi Kleen        "Counter": "0,1,2,3",
625630171d4SAndi Kleen        "EventName": "UOPS_EXECUTED.CORE_CYCLES_GE_1",
626630171d4SAndi Kleen        "CounterMask": "1",
627630171d4SAndi Kleen        "SampleAfterValue": "2000003",
628630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
629630171d4SAndi Kleen    },
630630171d4SAndi Kleen    {
631630171d4SAndi Kleen        "EventCode": "0xB1",
632630171d4SAndi Kleen        "UMask": "0x2",
633630171d4SAndi Kleen        "BriefDescription": "Cycles at least 2 micro-op is executed from any thread on physical core.",
634630171d4SAndi Kleen        "Counter": "0,1,2,3",
635630171d4SAndi Kleen        "EventName": "UOPS_EXECUTED.CORE_CYCLES_GE_2",
636630171d4SAndi Kleen        "CounterMask": "2",
637630171d4SAndi Kleen        "SampleAfterValue": "2000003",
638630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
639630171d4SAndi Kleen    },
640630171d4SAndi Kleen    {
641630171d4SAndi Kleen        "EventCode": "0xB1",
642630171d4SAndi Kleen        "UMask": "0x2",
643630171d4SAndi Kleen        "BriefDescription": "Cycles at least 3 micro-op is executed from any thread on physical core.",
644630171d4SAndi Kleen        "Counter": "0,1,2,3",
645630171d4SAndi Kleen        "EventName": "UOPS_EXECUTED.CORE_CYCLES_GE_3",
646630171d4SAndi Kleen        "CounterMask": "3",
647630171d4SAndi Kleen        "SampleAfterValue": "2000003",
648630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
649630171d4SAndi Kleen    },
650630171d4SAndi Kleen    {
651630171d4SAndi Kleen        "EventCode": "0xB1",
652630171d4SAndi Kleen        "UMask": "0x2",
653630171d4SAndi Kleen        "BriefDescription": "Cycles at least 4 micro-op is executed from any thread on physical core.",
654630171d4SAndi Kleen        "Counter": "0,1,2,3",
655630171d4SAndi Kleen        "EventName": "UOPS_EXECUTED.CORE_CYCLES_GE_4",
656630171d4SAndi Kleen        "CounterMask": "4",
657630171d4SAndi Kleen        "SampleAfterValue": "2000003",
658630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
659630171d4SAndi Kleen    },
660630171d4SAndi Kleen    {
661630171d4SAndi Kleen        "Invert": "1",
662630171d4SAndi Kleen        "EventCode": "0xB1",
663630171d4SAndi Kleen        "UMask": "0x2",
664630171d4SAndi Kleen        "BriefDescription": "Cycles with no micro-ops executed from any thread on physical core.",
665630171d4SAndi Kleen        "Counter": "0,1,2,3",
666630171d4SAndi Kleen        "EventName": "UOPS_EXECUTED.CORE_CYCLES_NONE",
667630171d4SAndi Kleen        "CounterMask": "1",
668630171d4SAndi Kleen        "SampleAfterValue": "2000003",
669630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
670630171d4SAndi Kleen    },
671630171d4SAndi Kleen    {
672630171d4SAndi Kleen        "EventCode": "0xB1",
673630171d4SAndi Kleen        "UMask": "0x10",
674630171d4SAndi Kleen        "BriefDescription": "Counts the number of x87 uops dispatched.",
675630171d4SAndi Kleen        "Counter": "0,1,2,3",
676630171d4SAndi Kleen        "EventName": "UOPS_EXECUTED.X87",
677630171d4SAndi Kleen        "PublicDescription": "Counts the number of x87 uops executed.",
678630171d4SAndi Kleen        "SampleAfterValue": "2000003",
679630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
680630171d4SAndi Kleen    },
681630171d4SAndi Kleen    {
682630171d4SAndi Kleen        "EventCode": "0xC0",
683630171d4SAndi Kleen        "UMask": "0x0",
684630171d4SAndi Kleen        "BriefDescription": "Number of instructions retired. General Counter - architectural event",
685630171d4SAndi Kleen        "Counter": "0,1,2,3",
686630171d4SAndi Kleen        "EventName": "INST_RETIRED.ANY_P",
687630171d4SAndi Kleen        "Errata": "SKL091, SKL044",
688630171d4SAndi Kleen        "PublicDescription": "Counts the number of instructions (EOMs) retired. Counting covers macro-fused instructions individually (that is, increments by two).",
689630171d4SAndi Kleen        "SampleAfterValue": "2000003",
690630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
691630171d4SAndi Kleen    },
692630171d4SAndi Kleen    {
693630171d4SAndi Kleen        "EventCode": "0xC0",
694630171d4SAndi Kleen        "UMask": "0x1",
695630171d4SAndi Kleen        "BriefDescription": "Precise instruction retired event with HW to reduce effect of PEBS shadow in IP distribution",
696630171d4SAndi Kleen        "PEBS": "2",
697630171d4SAndi Kleen        "Counter": "1",
698630171d4SAndi Kleen        "EventName": "INST_RETIRED.PREC_DIST",
699630171d4SAndi Kleen        "Errata": "SKL091, SKL044",
700630171d4SAndi Kleen        "PublicDescription": "A version of INST_RETIRED that allows for a more unbiased distribution of samples across instructions retired. It utilizes the Precise Distribution of Instructions Retired (PDIR) feature to mitigate some bias in how retired instructions get sampled.",
701630171d4SAndi Kleen        "SampleAfterValue": "2000003",
702630171d4SAndi Kleen        "CounterHTOff": "1"
703630171d4SAndi Kleen    },
704630171d4SAndi Kleen    {
705630171d4SAndi Kleen        "Invert": "1",
706630171d4SAndi Kleen        "EventCode": "0xC0",
707630171d4SAndi Kleen        "UMask": "0x1",
708630171d4SAndi Kleen        "BriefDescription": "Number of cycles using always true condition applied to  PEBS instructions retired event.",
709630171d4SAndi Kleen        "PEBS": "2",
710630171d4SAndi Kleen        "Counter": "0,2,3",
711630171d4SAndi Kleen        "EventName": "INST_RETIRED.TOTAL_CYCLES_PS",
712630171d4SAndi Kleen        "CounterMask": "10",
713630171d4SAndi Kleen        "Errata": "SKL091, SKL044",
714630171d4SAndi Kleen        "PublicDescription": "Number of cycles using an always true condition applied to  PEBS instructions retired event. (inst_ret< 16)",
715630171d4SAndi Kleen        "SampleAfterValue": "2000003",
716630171d4SAndi Kleen        "CounterHTOff": "0,2,3"
717630171d4SAndi Kleen    },
718630171d4SAndi Kleen    {
719630171d4SAndi Kleen        "EventCode": "0xC1",
720630171d4SAndi Kleen        "UMask": "0x3f",
721630171d4SAndi Kleen        "BriefDescription": "Number of times a microcode assist is invoked by HW other than FP-assist. Examples include AD (page Access Dirty) and AVX* related assists.",
722630171d4SAndi Kleen        "Counter": "0,1,2,3",
723630171d4SAndi Kleen        "EventName": "OTHER_ASSISTS.ANY",
724630171d4SAndi Kleen        "SampleAfterValue": "100003",
725630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
726630171d4SAndi Kleen    },
727630171d4SAndi Kleen    {
728630171d4SAndi Kleen        "EventCode": "0xC2",
729630171d4SAndi Kleen        "UMask": "0x2",
730630171d4SAndi Kleen        "BriefDescription": "Retirement slots used.",
731630171d4SAndi Kleen        "Counter": "0,1,2,3",
732630171d4SAndi Kleen        "EventName": "UOPS_RETIRED.RETIRE_SLOTS",
733630171d4SAndi Kleen        "PublicDescription": "Counts the retirement slots used.",
734630171d4SAndi Kleen        "SampleAfterValue": "2000003",
735630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
736630171d4SAndi Kleen    },
737630171d4SAndi Kleen    {
738630171d4SAndi Kleen        "Invert": "1",
739630171d4SAndi Kleen        "EventCode": "0xC2",
740630171d4SAndi Kleen        "UMask": "0x2",
741630171d4SAndi Kleen        "BriefDescription": "Cycles without actually retired uops.",
742630171d4SAndi Kleen        "Counter": "0,1,2,3",
743630171d4SAndi Kleen        "EventName": "UOPS_RETIRED.STALL_CYCLES",
744630171d4SAndi Kleen        "CounterMask": "1",
745630171d4SAndi Kleen        "PublicDescription": "This is a non-precise version (that is, does not use PEBS) of the event that counts cycles without actually retired uops.",
746630171d4SAndi Kleen        "SampleAfterValue": "2000003",
747630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
748630171d4SAndi Kleen    },
749630171d4SAndi Kleen    {
750630171d4SAndi Kleen        "Invert": "1",
751630171d4SAndi Kleen        "EventCode": "0xC2",
752630171d4SAndi Kleen        "UMask": "0x2",
753630171d4SAndi Kleen        "BriefDescription": "Cycles with less than 10 actually retired uops.",
754630171d4SAndi Kleen        "Counter": "0,1,2,3",
755630171d4SAndi Kleen        "EventName": "UOPS_RETIRED.TOTAL_CYCLES",
756630171d4SAndi Kleen        "CounterMask": "10",
757630171d4SAndi Kleen        "PublicDescription": "Number of cycles using always true condition (uops_ret < 16) applied to non PEBS uops retired event.",
758630171d4SAndi Kleen        "SampleAfterValue": "2000003",
759630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
760630171d4SAndi Kleen    },
761630171d4SAndi Kleen    {
762630171d4SAndi Kleen        "EdgeDetect": "1",
763630171d4SAndi Kleen        "EventCode": "0xC3",
764630171d4SAndi Kleen        "UMask": "0x1",
765630171d4SAndi Kleen        "BriefDescription": "Number of machine clears (nukes) of any type. ",
766630171d4SAndi Kleen        "Counter": "0,1,2,3",
767630171d4SAndi Kleen        "EventName": "MACHINE_CLEARS.COUNT",
768630171d4SAndi Kleen        "CounterMask": "1",
769630171d4SAndi Kleen        "PublicDescription": "Number of machine clears (nukes) of any type.",
770630171d4SAndi Kleen        "SampleAfterValue": "100003",
771630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
772630171d4SAndi Kleen    },
773630171d4SAndi Kleen    {
774630171d4SAndi Kleen        "EventCode": "0xC3",
775630171d4SAndi Kleen        "UMask": "0x4",
776630171d4SAndi Kleen        "BriefDescription": "Self-modifying code (SMC) detected.",
777630171d4SAndi Kleen        "Counter": "0,1,2,3",
778630171d4SAndi Kleen        "EventName": "MACHINE_CLEARS.SMC",
779630171d4SAndi Kleen        "PublicDescription": "Counts self-modifying code (SMC) detected, which causes a machine clear.",
780630171d4SAndi Kleen        "SampleAfterValue": "100003",
781630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
782630171d4SAndi Kleen    },
783630171d4SAndi Kleen    {
784630171d4SAndi Kleen        "EventCode": "0xC4",
785630171d4SAndi Kleen        "UMask": "0x0",
786630171d4SAndi Kleen        "BriefDescription": "All (macro) branch instructions retired.",
787630171d4SAndi Kleen        "Counter": "0,1,2,3",
788630171d4SAndi Kleen        "EventName": "BR_INST_RETIRED.ALL_BRANCHES",
789630171d4SAndi Kleen        "Errata": "SKL091",
790630171d4SAndi Kleen        "PublicDescription": "Counts all (macro) branch instructions retired.",
791630171d4SAndi Kleen        "SampleAfterValue": "400009",
792630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
793630171d4SAndi Kleen    },
794630171d4SAndi Kleen    {
795630171d4SAndi Kleen        "EventCode": "0xC4",
796630171d4SAndi Kleen        "UMask": "0x1",
797630171d4SAndi Kleen        "BriefDescription": "Conditional branch instructions retired.",
798630171d4SAndi Kleen        "PEBS": "1",
799630171d4SAndi Kleen        "Counter": "0,1,2,3",
800630171d4SAndi Kleen        "EventName": "BR_INST_RETIRED.CONDITIONAL",
801630171d4SAndi Kleen        "Errata": "SKL091",
802630171d4SAndi Kleen        "PublicDescription": "This is a non-precise version (that is, does not use PEBS) of the event that counts conditional branch instructions retired.",
803630171d4SAndi Kleen        "SampleAfterValue": "400009",
804630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
805630171d4SAndi Kleen    },
806630171d4SAndi Kleen    {
807630171d4SAndi Kleen        "EventCode": "0xC4",
808630171d4SAndi Kleen        "UMask": "0x2",
809630171d4SAndi Kleen        "BriefDescription": "Direct and indirect near call instructions retired.",
810630171d4SAndi Kleen        "PEBS": "1",
811630171d4SAndi Kleen        "Counter": "0,1,2,3",
812630171d4SAndi Kleen        "EventName": "BR_INST_RETIRED.NEAR_CALL",
813630171d4SAndi Kleen        "Errata": "SKL091",
814630171d4SAndi Kleen        "PublicDescription": "This is a non-precise version (that is, does not use PEBS) of the event that counts both direct and indirect near call instructions retired.",
815630171d4SAndi Kleen        "SampleAfterValue": "100007",
816630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
817630171d4SAndi Kleen    },
818630171d4SAndi Kleen    {
819630171d4SAndi Kleen        "EventCode": "0xC4",
820630171d4SAndi Kleen        "UMask": "0x4",
821630171d4SAndi Kleen        "BriefDescription": "All (macro) branch instructions retired. ",
822630171d4SAndi Kleen        "PEBS": "2",
823630171d4SAndi Kleen        "Counter": "0,1,2,3",
824630171d4SAndi Kleen        "EventName": "BR_INST_RETIRED.ALL_BRANCHES_PEBS",
825630171d4SAndi Kleen        "Errata": "SKL091",
826630171d4SAndi Kleen        "PublicDescription": "This is a precise version of BR_INST_RETIRED.ALL_BRANCHES that counts all (macro) branch instructions retired.",
827630171d4SAndi Kleen        "SampleAfterValue": "400009",
828630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3"
829630171d4SAndi Kleen    },
830630171d4SAndi Kleen    {
831630171d4SAndi Kleen        "EventCode": "0xC4",
832630171d4SAndi Kleen        "UMask": "0x8",
833630171d4SAndi Kleen        "BriefDescription": "Return instructions retired.",
834630171d4SAndi Kleen        "PEBS": "1",
835630171d4SAndi Kleen        "Counter": "0,1,2,3",
836630171d4SAndi Kleen        "EventName": "BR_INST_RETIRED.NEAR_RETURN",
837630171d4SAndi Kleen        "Errata": "SKL091",
838630171d4SAndi Kleen        "PublicDescription": "This is a non-precise version (that is, does not use PEBS) of the event that counts return instructions retired.",
839630171d4SAndi Kleen        "SampleAfterValue": "100007",
840630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
841630171d4SAndi Kleen    },
842630171d4SAndi Kleen    {
843630171d4SAndi Kleen        "EventCode": "0xC4",
844630171d4SAndi Kleen        "UMask": "0x10",
845630171d4SAndi Kleen        "BriefDescription": "Not taken branch instructions retired.",
846630171d4SAndi Kleen        "Counter": "0,1,2,3",
847630171d4SAndi Kleen        "EventName": "BR_INST_RETIRED.NOT_TAKEN",
848630171d4SAndi Kleen        "Errata": "SKL091",
849630171d4SAndi Kleen        "PublicDescription": "This is a non-precise version (that is, does not use PEBS) of the event that counts not taken branch instructions retired.",
850630171d4SAndi Kleen        "SampleAfterValue": "400009",
851630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
852630171d4SAndi Kleen    },
853630171d4SAndi Kleen    {
854630171d4SAndi Kleen        "EventCode": "0xC4",
855630171d4SAndi Kleen        "UMask": "0x20",
856630171d4SAndi Kleen        "BriefDescription": "Taken branch instructions retired.",
857630171d4SAndi Kleen        "PEBS": "1",
858630171d4SAndi Kleen        "Counter": "0,1,2,3",
859630171d4SAndi Kleen        "EventName": "BR_INST_RETIRED.NEAR_TAKEN",
860630171d4SAndi Kleen        "Errata": "SKL091",
861630171d4SAndi Kleen        "PublicDescription": "This is a non-precise version (that is, does not use PEBS) of the event that counts taken branch instructions retired.",
862630171d4SAndi Kleen        "SampleAfterValue": "400009",
863630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
864630171d4SAndi Kleen    },
865630171d4SAndi Kleen    {
866630171d4SAndi Kleen        "EventCode": "0xC4",
867630171d4SAndi Kleen        "UMask": "0x40",
868630171d4SAndi Kleen        "BriefDescription": "Far branch instructions retired.",
869630171d4SAndi Kleen        "PEBS": "1",
870630171d4SAndi Kleen        "Counter": "0,1,2,3",
871630171d4SAndi Kleen        "EventName": "BR_INST_RETIRED.FAR_BRANCH",
872630171d4SAndi Kleen        "Errata": "SKL091",
873630171d4SAndi Kleen        "PublicDescription": "This is a non-precise version (that is, does not use PEBS) of the event that counts far branch instructions retired.",
874630171d4SAndi Kleen        "SampleAfterValue": "100007",
875630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
876630171d4SAndi Kleen    },
877630171d4SAndi Kleen    {
878630171d4SAndi Kleen        "EventCode": "0xC5",
879630171d4SAndi Kleen        "UMask": "0x0",
880630171d4SAndi Kleen        "BriefDescription": "All mispredicted macro branch instructions retired.",
881630171d4SAndi Kleen        "Counter": "0,1,2,3",
882630171d4SAndi Kleen        "EventName": "BR_MISP_RETIRED.ALL_BRANCHES",
883630171d4SAndi Kleen        "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.",
884630171d4SAndi Kleen        "SampleAfterValue": "400009",
885630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
886630171d4SAndi Kleen    },
887630171d4SAndi Kleen    {
888630171d4SAndi Kleen        "EventCode": "0xC5",
889630171d4SAndi Kleen        "UMask": "0x1",
890630171d4SAndi Kleen        "BriefDescription": "Mispredicted conditional branch instructions retired.",
891630171d4SAndi Kleen        "PEBS": "1",
892630171d4SAndi Kleen        "Counter": "0,1,2,3",
893630171d4SAndi Kleen        "EventName": "BR_MISP_RETIRED.CONDITIONAL",
894630171d4SAndi Kleen        "PublicDescription": "This is a non-precise version (that is, does not use PEBS) of the event that counts mispredicted conditional branch instructions retired.",
895630171d4SAndi Kleen        "SampleAfterValue": "400009",
896630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
897630171d4SAndi Kleen    },
898630171d4SAndi Kleen    {
899630171d4SAndi Kleen        "EventCode": "0xC5",
900630171d4SAndi Kleen        "UMask": "0x2",
901630171d4SAndi Kleen        "BriefDescription": "Mispredicted direct and indirect near call instructions retired.",
902630171d4SAndi Kleen        "PEBS": "1",
903630171d4SAndi Kleen        "Counter": "0,1,2,3",
904630171d4SAndi Kleen        "EventName": "BR_MISP_RETIRED.NEAR_CALL",
905630171d4SAndi Kleen        "PublicDescription": "Counts both taken and not taken retired mispredicted direct and indirect near calls, including both register and memory indirect.",
906630171d4SAndi Kleen        "SampleAfterValue": "400009",
907630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
908630171d4SAndi Kleen    },
909630171d4SAndi Kleen    {
910630171d4SAndi Kleen        "EventCode": "0xC5",
911630171d4SAndi Kleen        "UMask": "0x4",
912630171d4SAndi Kleen        "BriefDescription": "Mispredicted macro branch instructions retired. ",
913630171d4SAndi Kleen        "PEBS": "2",
914630171d4SAndi Kleen        "Counter": "0,1,2,3",
915630171d4SAndi Kleen        "EventName": "BR_MISP_RETIRED.ALL_BRANCHES_PEBS",
916630171d4SAndi Kleen        "PublicDescription": "This is a precise version of BR_MISP_RETIRED.ALL_BRANCHES that counts all mispredicted macro branch instructions retired.",
917630171d4SAndi Kleen        "SampleAfterValue": "400009",
918630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3"
919630171d4SAndi Kleen    },
920630171d4SAndi Kleen    {
921630171d4SAndi Kleen        "EventCode": "0xC5",
922630171d4SAndi Kleen        "UMask": "0x20",
923630171d4SAndi Kleen        "BriefDescription": "Number of near branch instructions retired that were mispredicted and taken.",
924630171d4SAndi Kleen        "PEBS": "1",
925630171d4SAndi Kleen        "Counter": "0,1,2,3",
926630171d4SAndi Kleen        "EventName": "BR_MISP_RETIRED.NEAR_TAKEN",
927630171d4SAndi Kleen        "SampleAfterValue": "400009",
928630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
929630171d4SAndi Kleen    },
930630171d4SAndi Kleen    {
931630171d4SAndi Kleen        "EventCode": "0xCC",
932630171d4SAndi Kleen        "UMask": "0x20",
933630171d4SAndi Kleen        "BriefDescription": "Increments whenever there is an update to the LBR array.",
934630171d4SAndi Kleen        "Counter": "0,1,2,3",
935630171d4SAndi Kleen        "EventName": "ROB_MISC_EVENTS.LBR_INSERTS",
936630171d4SAndi Kleen        "PublicDescription": "Increments when an entry is added to the Last Branch Record (LBR) array (or removed from the array in case of RETURNs in call stack mode). The event requires LBR enable via IA32_DEBUGCTL MSR and branch type selection via MSR_LBR_SELECT.",
937630171d4SAndi Kleen        "SampleAfterValue": "2000003",
938630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
939630171d4SAndi Kleen    },
940630171d4SAndi Kleen    {
941630171d4SAndi Kleen        "EventCode": "0xE6",
942630171d4SAndi Kleen        "UMask": "0x1",
943630171d4SAndi Kleen        "BriefDescription": "Counts the total number when the front end is resteered, mainly when the BPU cannot provide a correct prediction and this is corrected by other branch handling mechanisms at the front end.",
944630171d4SAndi Kleen        "Counter": "0,1,2,3",
945630171d4SAndi Kleen        "EventName": "BACLEARS.ANY",
946630171d4SAndi Kleen        "PublicDescription": "Counts the number of times the front-end is resteered when it finds a branch instruction in a fetch line. This occurs for the first time a branch instruction is fetched or when the branch is not tracked by the BPU (Branch Prediction Unit) anymore.",
947630171d4SAndi Kleen        "SampleAfterValue": "100003",
948630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
949630171d4SAndi Kleen    }
950630171d4SAndi Kleen]