1630171d4SAndi Kleen[
2630171d4SAndi Kleen    {
3630171d4SAndi Kleen        "UMask": "0x1",
4630171d4SAndi Kleen        "BriefDescription": "Instructions retired from execution.",
51716021eSAndi Kleen        "Counter": "Fixed counter 0",
6630171d4SAndi Kleen        "EventName": "INST_RETIRED.ANY",
7630171d4SAndi 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.",
8630171d4SAndi Kleen        "SampleAfterValue": "2000003",
91716021eSAndi Kleen        "CounterHTOff": "Fixed counter 0"
101716021eSAndi Kleen    },
111716021eSAndi Kleen    {
121716021eSAndi Kleen        "UMask": "0x2",
131716021eSAndi Kleen        "BriefDescription": "Core cycles when the thread is not in halt state",
141716021eSAndi Kleen        "Counter": "Fixed counter 1",
151716021eSAndi Kleen        "EventName": "CPU_CLK_UNHALTED.THREAD",
161716021eSAndi 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.",
171716021eSAndi Kleen        "SampleAfterValue": "2000003",
18630171d4SAndi Kleen        "CounterHTOff": "Fixed counter 1"
19630171d4SAndi Kleen    },
20630171d4SAndi Kleen    {
21630171d4SAndi Kleen        "UMask": "0x2",
22630171d4SAndi Kleen        "BriefDescription": "Core cycles when at least one thread on the physical core is not in halt state.",
231716021eSAndi Kleen        "Counter": "Fixed counter 1",
24630171d4SAndi Kleen        "EventName": "CPU_CLK_UNHALTED.THREAD_ANY",
25630171d4SAndi Kleen        "AnyThread": "1",
26630171d4SAndi Kleen        "SampleAfterValue": "2000003",
271716021eSAndi Kleen        "CounterHTOff": "Fixed counter 1"
28630171d4SAndi Kleen    },
29630171d4SAndi Kleen    {
30630171d4SAndi Kleen        "UMask": "0x3",
31630171d4SAndi Kleen        "BriefDescription": "Reference cycles when the core is not in halt state.",
321716021eSAndi Kleen        "Counter": "Fixed counter 2",
33630171d4SAndi Kleen        "EventName": "CPU_CLK_UNHALTED.REF_TSC",
34630171d4SAndi 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.",
35630171d4SAndi Kleen        "SampleAfterValue": "2000003",
361716021eSAndi Kleen        "CounterHTOff": "Fixed counter 2"
37630171d4SAndi Kleen    },
38630171d4SAndi Kleen    {
39630171d4SAndi Kleen        "EventCode": "0x03",
40630171d4SAndi Kleen        "UMask": "0x2",
41630171d4SAndi Kleen        "BriefDescription": "Loads blocked by overlapping with store buffer that cannot be forwarded .",
42630171d4SAndi Kleen        "Counter": "0,1,2,3",
43630171d4SAndi Kleen        "EventName": "LD_BLOCKS.STORE_FORWARD",
44630171d4SAndi 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.",
45630171d4SAndi Kleen        "SampleAfterValue": "100003",
46630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
47630171d4SAndi Kleen    },
48630171d4SAndi Kleen    {
49630171d4SAndi Kleen        "EventCode": "0x03",
50630171d4SAndi Kleen        "UMask": "0x8",
51630171d4SAndi Kleen        "BriefDescription": "The number of times that split load operations are temporarily blocked because all resources for handling the split accesses are in use",
52630171d4SAndi Kleen        "Counter": "0,1,2,3",
53630171d4SAndi Kleen        "EventName": "LD_BLOCKS.NO_SR",
54630171d4SAndi Kleen        "PublicDescription": "The number of times that split load operations are temporarily blocked because all resources for handling the split accesses are in use.",
55630171d4SAndi Kleen        "SampleAfterValue": "100003",
56630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
57630171d4SAndi Kleen    },
58630171d4SAndi Kleen    {
59630171d4SAndi Kleen        "EventCode": "0x07",
60630171d4SAndi Kleen        "UMask": "0x1",
61630171d4SAndi Kleen        "BriefDescription": "False dependencies in MOB due to partial compare on address.",
62630171d4SAndi Kleen        "Counter": "0,1,2,3",
63630171d4SAndi Kleen        "EventName": "LD_BLOCKS_PARTIAL.ADDRESS_ALIAS",
64630171d4SAndi 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.",
65630171d4SAndi Kleen        "SampleAfterValue": "100003",
66630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
67630171d4SAndi Kleen    },
68630171d4SAndi Kleen    {
69630171d4SAndi Kleen        "EventCode": "0x0D",
70630171d4SAndi Kleen        "UMask": "0x1",
71630171d4SAndi Kleen        "BriefDescription": "Core cycles the allocator was stalled due to recovery from earlier clear event for this thread (e.g. misprediction or memory nuke)",
72630171d4SAndi Kleen        "Counter": "0,1,2,3",
73630171d4SAndi Kleen        "EventName": "INT_MISC.RECOVERY_CYCLES",
74630171d4SAndi Kleen        "PublicDescription": "Core cycles the Resource allocator was stalled due to recovery from an earlier branch misprediction or machine clear event.",
75630171d4SAndi Kleen        "SampleAfterValue": "2000003",
76630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
77630171d4SAndi Kleen    },
78630171d4SAndi Kleen    {
79630171d4SAndi Kleen        "EventCode": "0x0D",
80630171d4SAndi Kleen        "UMask": "0x1",
81630171d4SAndi 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).",
82630171d4SAndi Kleen        "Counter": "0,1,2,3",
83630171d4SAndi Kleen        "EventName": "INT_MISC.RECOVERY_CYCLES_ANY",
84630171d4SAndi Kleen        "AnyThread": "1",
85630171d4SAndi Kleen        "SampleAfterValue": "2000003",
86630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
87630171d4SAndi Kleen    },
88630171d4SAndi Kleen    {
89630171d4SAndi Kleen        "EventCode": "0x0D",
90630171d4SAndi Kleen        "UMask": "0x80",
91630171d4SAndi Kleen        "BriefDescription": "Cycles the issue-stage is waiting for front-end to fetch from resteered path following branch misprediction or machine clear events.",
92630171d4SAndi Kleen        "Counter": "0,1,2,3",
93630171d4SAndi Kleen        "EventName": "INT_MISC.CLEAR_RESTEER_CYCLES",
94630171d4SAndi Kleen        "SampleAfterValue": "2000003",
95630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
96630171d4SAndi Kleen    },
97630171d4SAndi Kleen    {
98630171d4SAndi Kleen        "Invert": "1",
99630171d4SAndi Kleen        "EventCode": "0x0E",
100630171d4SAndi Kleen        "UMask": "0x1",
101630171d4SAndi Kleen        "BriefDescription": "Cycles when Resource Allocation Table (RAT) does not issue Uops to Reservation Station (RS) for the thread",
102630171d4SAndi Kleen        "Counter": "0,1,2,3",
103630171d4SAndi Kleen        "EventName": "UOPS_ISSUED.STALL_CYCLES",
104630171d4SAndi Kleen        "CounterMask": "1",
105630171d4SAndi 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.",
106630171d4SAndi Kleen        "SampleAfterValue": "2000003",
107630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
108630171d4SAndi Kleen    },
109630171d4SAndi Kleen    {
110630171d4SAndi Kleen        "EventCode": "0x0E",
11119f2d40cSAndi Kleen        "UMask": "0x1",
11219f2d40cSAndi Kleen        "BriefDescription": "Uops that Resource Allocation Table (RAT) issues to Reservation Station (RS)",
11319f2d40cSAndi Kleen        "Counter": "0,1,2,3",
11419f2d40cSAndi Kleen        "EventName": "UOPS_ISSUED.ANY",
11519f2d40cSAndi Kleen        "PublicDescription": "Counts the number of uops that the Resource Allocation Table (RAT) issues to the Reservation Station (RS).",
11619f2d40cSAndi Kleen        "SampleAfterValue": "2000003",
11719f2d40cSAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
11819f2d40cSAndi Kleen    },
11919f2d40cSAndi Kleen    {
12019f2d40cSAndi Kleen        "EventCode": "0x0E",
121630171d4SAndi Kleen        "UMask": "0x2",
122630171d4SAndi Kleen        "BriefDescription": "Uops inserted at issue-stage in order to preserve upper bits of vector registers.",
123630171d4SAndi Kleen        "Counter": "0,1,2,3",
124630171d4SAndi Kleen        "EventName": "UOPS_ISSUED.VECTOR_WIDTH_MISMATCH",
12519f2d40cSAndi 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.",
126630171d4SAndi Kleen        "SampleAfterValue": "2000003",
127630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
128630171d4SAndi Kleen    },
129630171d4SAndi Kleen    {
130630171d4SAndi Kleen        "EventCode": "0x0E",
131630171d4SAndi Kleen        "UMask": "0x20",
132630171d4SAndi 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.",
133630171d4SAndi Kleen        "Counter": "0,1,2,3",
134630171d4SAndi Kleen        "EventName": "UOPS_ISSUED.SLOW_LEA",
135630171d4SAndi Kleen        "SampleAfterValue": "2000003",
136630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
137630171d4SAndi Kleen    },
138630171d4SAndi Kleen    {
139630171d4SAndi Kleen        "EventCode": "0x14",
140630171d4SAndi Kleen        "UMask": "0x1",
141630171d4SAndi Kleen        "BriefDescription": "Cycles when divide unit is busy executing divide or square root operations. Accounts for integer and floating-point operations.",
142630171d4SAndi Kleen        "Counter": "0,1,2,3",
143630171d4SAndi Kleen        "EventName": "ARITH.DIVIDER_ACTIVE",
144630171d4SAndi Kleen        "CounterMask": "1",
145630171d4SAndi Kleen        "SampleAfterValue": "2000003",
146630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
147630171d4SAndi Kleen    },
148630171d4SAndi Kleen    {
149630171d4SAndi Kleen        "EventCode": "0x3C",
150630171d4SAndi Kleen        "UMask": "0x0",
151630171d4SAndi Kleen        "BriefDescription": "Thread cycles when thread is not in halt state",
152630171d4SAndi Kleen        "Counter": "0,1,2,3",
153630171d4SAndi Kleen        "EventName": "CPU_CLK_UNHALTED.THREAD_P",
154630171d4SAndi 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.",
155630171d4SAndi Kleen        "SampleAfterValue": "2000003",
156630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
157630171d4SAndi Kleen    },
158630171d4SAndi Kleen    {
159630171d4SAndi Kleen        "EventCode": "0x3C",
160630171d4SAndi Kleen        "UMask": "0x0",
161630171d4SAndi Kleen        "BriefDescription": "Core cycles when at least one thread on the physical core is not in halt state.",
162630171d4SAndi Kleen        "Counter": "0,1,2,3",
163630171d4SAndi Kleen        "EventName": "CPU_CLK_UNHALTED.THREAD_P_ANY",
164630171d4SAndi Kleen        "AnyThread": "1",
165630171d4SAndi Kleen        "SampleAfterValue": "2000003",
166630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
167630171d4SAndi Kleen    },
168630171d4SAndi Kleen    {
169630171d4SAndi Kleen        "EdgeDetect": "1",
170630171d4SAndi Kleen        "EventCode": "0x3C",
171630171d4SAndi Kleen        "UMask": "0x0",
172630171d4SAndi Kleen        "BriefDescription": "Counts when there is a transition from ring 1, 2 or 3 to ring 0.",
173630171d4SAndi Kleen        "Counter": "0,1,2,3",
174630171d4SAndi Kleen        "EventName": "CPU_CLK_UNHALTED.RING0_TRANS",
175630171d4SAndi Kleen        "CounterMask": "1",
176630171d4SAndi Kleen        "PublicDescription": "Counts when the Current Privilege Level (CPL) transitions from ring 1, 2 or 3 to ring 0 (Kernel).",
177630171d4SAndi Kleen        "SampleAfterValue": "100007",
178630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
179630171d4SAndi Kleen    },
180630171d4SAndi Kleen    {
181630171d4SAndi Kleen        "EventCode": "0x3C",
182630171d4SAndi Kleen        "UMask": "0x1",
183630171d4SAndi Kleen        "BriefDescription": "Core crystal clock cycles when the thread is unhalted.",
184630171d4SAndi Kleen        "Counter": "0,1,2,3",
185630171d4SAndi Kleen        "EventName": "CPU_CLK_THREAD_UNHALTED.REF_XCLK",
186630171d4SAndi Kleen        "SampleAfterValue": "2503",
187630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
188630171d4SAndi Kleen    },
189630171d4SAndi Kleen    {
190630171d4SAndi Kleen        "EventCode": "0x3C",
191630171d4SAndi Kleen        "UMask": "0x1",
192630171d4SAndi Kleen        "BriefDescription": "Core crystal clock cycles when at least one thread on the physical core is unhalted.",
193630171d4SAndi Kleen        "Counter": "0,1,2,3",
194630171d4SAndi Kleen        "EventName": "CPU_CLK_THREAD_UNHALTED.REF_XCLK_ANY",
195630171d4SAndi Kleen        "AnyThread": "1",
196630171d4SAndi Kleen        "SampleAfterValue": "2503",
197630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
198630171d4SAndi Kleen    },
199630171d4SAndi Kleen    {
200630171d4SAndi Kleen        "EventCode": "0x3C",
201630171d4SAndi Kleen        "UMask": "0x1",
20219f2d40cSAndi Kleen        "BriefDescription": "Core crystal clock cycles when at least one thread on the physical core is unhalted.",
203630171d4SAndi Kleen        "Counter": "0,1,2,3",
20419f2d40cSAndi Kleen        "EventName": "CPU_CLK_UNHALTED.REF_XCLK_ANY",
20519f2d40cSAndi Kleen        "AnyThread": "1",
206630171d4SAndi Kleen        "SampleAfterValue": "2503",
207630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
208630171d4SAndi Kleen    },
209630171d4SAndi Kleen    {
210630171d4SAndi Kleen        "EventCode": "0x3C",
211630171d4SAndi Kleen        "UMask": "0x1",
21219f2d40cSAndi Kleen        "BriefDescription": "Core crystal clock cycles when the thread is unhalted.",
213630171d4SAndi Kleen        "Counter": "0,1,2,3",
21419f2d40cSAndi Kleen        "EventName": "CPU_CLK_UNHALTED.REF_XCLK",
215630171d4SAndi Kleen        "SampleAfterValue": "2503",
216630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
217630171d4SAndi Kleen    },
218630171d4SAndi Kleen    {
219630171d4SAndi Kleen        "EventCode": "0x3C",
220630171d4SAndi Kleen        "UMask": "0x2",
221630171d4SAndi Kleen        "BriefDescription": "Core crystal clock cycles when this thread is unhalted and the other thread is halted.",
222630171d4SAndi Kleen        "Counter": "0,1,2,3",
223630171d4SAndi Kleen        "EventName": "CPU_CLK_THREAD_UNHALTED.ONE_THREAD_ACTIVE",
224630171d4SAndi Kleen        "SampleAfterValue": "2000003",
225630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
226630171d4SAndi Kleen    },
227630171d4SAndi Kleen    {
228630171d4SAndi Kleen        "EventCode": "0x3C",
229630171d4SAndi Kleen        "UMask": "0x2",
230630171d4SAndi Kleen        "BriefDescription": "Core crystal clock cycles when this thread is unhalted and the other thread is halted.",
231630171d4SAndi Kleen        "Counter": "0,1,2,3",
232630171d4SAndi Kleen        "EventName": "CPU_CLK_UNHALTED.ONE_THREAD_ACTIVE",
233630171d4SAndi Kleen        "SampleAfterValue": "2503",
234630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
235630171d4SAndi Kleen    },
236630171d4SAndi Kleen    {
237630171d4SAndi Kleen        "EventCode": "0x4C",
238630171d4SAndi Kleen        "UMask": "0x1",
239630171d4SAndi Kleen        "BriefDescription": "Demand load dispatches that hit L1D fill buffer (FB) allocated for software prefetch.",
240630171d4SAndi Kleen        "Counter": "0,1,2,3",
241630171d4SAndi Kleen        "EventName": "LOAD_HIT_PRE.SW_PF",
242630171d4SAndi 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.",
243630171d4SAndi Kleen        "SampleAfterValue": "100003",
244630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
245630171d4SAndi Kleen    },
246630171d4SAndi Kleen    {
24719f2d40cSAndi Kleen        "EventCode": "0x59",
248630171d4SAndi Kleen        "UMask": "0x1",
24919f2d40cSAndi Kleen        "BriefDescription": "Cycles where the pipeline is stalled due to serializing operations.",
250630171d4SAndi Kleen        "Counter": "0,1,2,3",
25119f2d40cSAndi Kleen        "EventName": "PARTIAL_RAT_STALLS.SCOREBOARD",
25219f2d40cSAndi Kleen        "PublicDescription": "This event counts cycles during which the microcode scoreboard stalls happen.",
253630171d4SAndi Kleen        "SampleAfterValue": "2000003",
254630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
255630171d4SAndi Kleen    },
256630171d4SAndi Kleen    {
257630171d4SAndi Kleen        "EdgeDetect": "1",
258630171d4SAndi Kleen        "Invert": "1",
259630171d4SAndi Kleen        "EventCode": "0x5E",
260630171d4SAndi Kleen        "UMask": "0x1",
261630171d4SAndi Kleen        "BriefDescription": "Counts end of periods where the Reservation Station (RS) was empty. Could be useful to precisely locate Frontend Latency Bound issues.",
262630171d4SAndi Kleen        "Counter": "0,1,2,3",
263630171d4SAndi Kleen        "EventName": "RS_EVENTS.EMPTY_END",
264630171d4SAndi Kleen        "CounterMask": "1",
265630171d4SAndi Kleen        "PublicDescription": "Counts end of periods where the Reservation Station (RS) was empty. Could be useful to precisely locate front-end Latency Bound issues.",
266630171d4SAndi Kleen        "SampleAfterValue": "2000003",
267630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
268630171d4SAndi Kleen    },
269630171d4SAndi Kleen    {
27019f2d40cSAndi Kleen        "EventCode": "0x5E",
27119f2d40cSAndi Kleen        "UMask": "0x1",
27219f2d40cSAndi Kleen        "BriefDescription": "Cycles when Reservation Station (RS) is empty for the thread",
27319f2d40cSAndi Kleen        "Counter": "0,1,2,3",
27419f2d40cSAndi Kleen        "EventName": "RS_EVENTS.EMPTY_CYCLES",
27519f2d40cSAndi 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.",
27619f2d40cSAndi Kleen        "SampleAfterValue": "2000003",
27719f2d40cSAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
27819f2d40cSAndi Kleen    },
27919f2d40cSAndi Kleen    {
280630171d4SAndi Kleen        "EventCode": "0x87",
281630171d4SAndi Kleen        "UMask": "0x1",
282630171d4SAndi Kleen        "BriefDescription": "Stalls caused by changing prefix length of the instruction.",
283630171d4SAndi Kleen        "Counter": "0,1,2,3",
284630171d4SAndi Kleen        "EventName": "ILD_STALL.LCP",
285630171d4SAndi 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.",
286630171d4SAndi Kleen        "SampleAfterValue": "2000003",
287630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
288630171d4SAndi Kleen    },
289630171d4SAndi Kleen    {
290630171d4SAndi Kleen        "EventCode": "0xA1",
291630171d4SAndi Kleen        "UMask": "0x1",
292630171d4SAndi Kleen        "BriefDescription": "Cycles per thread when uops are executed in port 0",
293630171d4SAndi Kleen        "Counter": "0,1,2,3",
294630171d4SAndi Kleen        "EventName": "UOPS_DISPATCHED_PORT.PORT_0",
295630171d4SAndi 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.",
296630171d4SAndi Kleen        "SampleAfterValue": "2000003",
297630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
298630171d4SAndi Kleen    },
299630171d4SAndi Kleen    {
300630171d4SAndi Kleen        "EventCode": "0xA1",
301630171d4SAndi Kleen        "UMask": "0x2",
302630171d4SAndi Kleen        "BriefDescription": "Cycles per thread when uops are executed in port 1",
303630171d4SAndi Kleen        "Counter": "0,1,2,3",
304630171d4SAndi Kleen        "EventName": "UOPS_DISPATCHED_PORT.PORT_1",
305630171d4SAndi 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.",
306630171d4SAndi Kleen        "SampleAfterValue": "2000003",
307630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
308630171d4SAndi Kleen    },
309630171d4SAndi Kleen    {
310630171d4SAndi Kleen        "EventCode": "0xA1",
311630171d4SAndi Kleen        "UMask": "0x4",
312630171d4SAndi Kleen        "BriefDescription": "Cycles per thread when uops are executed in port 2",
313630171d4SAndi Kleen        "Counter": "0,1,2,3",
314630171d4SAndi Kleen        "EventName": "UOPS_DISPATCHED_PORT.PORT_2",
315630171d4SAndi 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.",
316630171d4SAndi Kleen        "SampleAfterValue": "2000003",
317630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
318630171d4SAndi Kleen    },
319630171d4SAndi Kleen    {
320630171d4SAndi Kleen        "EventCode": "0xA1",
321630171d4SAndi Kleen        "UMask": "0x8",
322630171d4SAndi Kleen        "BriefDescription": "Cycles per thread when uops are executed in port 3",
323630171d4SAndi Kleen        "Counter": "0,1,2,3",
324630171d4SAndi Kleen        "EventName": "UOPS_DISPATCHED_PORT.PORT_3",
325630171d4SAndi 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.",
326630171d4SAndi Kleen        "SampleAfterValue": "2000003",
327630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
328630171d4SAndi Kleen    },
329630171d4SAndi Kleen    {
330630171d4SAndi Kleen        "EventCode": "0xA1",
331630171d4SAndi Kleen        "UMask": "0x10",
332630171d4SAndi Kleen        "BriefDescription": "Cycles per thread when uops are executed in port 4",
333630171d4SAndi Kleen        "Counter": "0,1,2,3",
334630171d4SAndi Kleen        "EventName": "UOPS_DISPATCHED_PORT.PORT_4",
335630171d4SAndi 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.",
336630171d4SAndi Kleen        "SampleAfterValue": "2000003",
337630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
338630171d4SAndi Kleen    },
339630171d4SAndi Kleen    {
340630171d4SAndi Kleen        "EventCode": "0xA1",
341630171d4SAndi Kleen        "UMask": "0x20",
342630171d4SAndi Kleen        "BriefDescription": "Cycles per thread when uops are executed in port 5",
343630171d4SAndi Kleen        "Counter": "0,1,2,3",
344630171d4SAndi Kleen        "EventName": "UOPS_DISPATCHED_PORT.PORT_5",
345630171d4SAndi 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.",
346630171d4SAndi Kleen        "SampleAfterValue": "2000003",
347630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
348630171d4SAndi Kleen    },
349630171d4SAndi Kleen    {
350630171d4SAndi Kleen        "EventCode": "0xA1",
351630171d4SAndi Kleen        "UMask": "0x40",
352630171d4SAndi Kleen        "BriefDescription": "Cycles per thread when uops are executed in port 6",
353630171d4SAndi Kleen        "Counter": "0,1,2,3",
354630171d4SAndi Kleen        "EventName": "UOPS_DISPATCHED_PORT.PORT_6",
355630171d4SAndi 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.",
356630171d4SAndi Kleen        "SampleAfterValue": "2000003",
357630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
358630171d4SAndi Kleen    },
359630171d4SAndi Kleen    {
360630171d4SAndi Kleen        "EventCode": "0xA1",
361630171d4SAndi Kleen        "UMask": "0x80",
362630171d4SAndi Kleen        "BriefDescription": "Cycles per thread when uops are executed in port 7",
363630171d4SAndi Kleen        "Counter": "0,1,2,3",
364630171d4SAndi Kleen        "EventName": "UOPS_DISPATCHED_PORT.PORT_7",
365630171d4SAndi 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.",
366630171d4SAndi Kleen        "SampleAfterValue": "2000003",
367630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
368630171d4SAndi Kleen    },
369630171d4SAndi Kleen    {
37019f2d40cSAndi Kleen        "EventCode": "0xa2",
371630171d4SAndi Kleen        "UMask": "0x1",
372630171d4SAndi Kleen        "BriefDescription": "Resource-related stall cycles",
373630171d4SAndi Kleen        "Counter": "0,1,2,3",
374630171d4SAndi Kleen        "EventName": "RESOURCE_STALLS.ANY",
37519f2d40cSAndi Kleen        "PublicDescription": "Counts resource-related stall cycles.",
376630171d4SAndi Kleen        "SampleAfterValue": "2000003",
377630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
378630171d4SAndi Kleen    },
379630171d4SAndi Kleen    {
380630171d4SAndi Kleen        "EventCode": "0xA2",
381630171d4SAndi Kleen        "UMask": "0x8",
382630171d4SAndi Kleen        "BriefDescription": "Cycles stalled due to no store buffers available. (not including draining form sync).",
383630171d4SAndi Kleen        "Counter": "0,1,2,3",
384630171d4SAndi Kleen        "EventName": "RESOURCE_STALLS.SB",
385630171d4SAndi 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.",
386630171d4SAndi Kleen        "SampleAfterValue": "2000003",
387630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
388630171d4SAndi Kleen    },
389630171d4SAndi Kleen    {
390630171d4SAndi Kleen        "EventCode": "0xA3",
391630171d4SAndi Kleen        "UMask": "0x1",
392630171d4SAndi Kleen        "BriefDescription": "Cycles while L2 cache miss demand load is outstanding.",
393630171d4SAndi Kleen        "Counter": "0,1,2,3",
394630171d4SAndi Kleen        "EventName": "CYCLE_ACTIVITY.CYCLES_L2_MISS",
395630171d4SAndi Kleen        "CounterMask": "1",
396630171d4SAndi Kleen        "SampleAfterValue": "2000003",
397630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
398630171d4SAndi Kleen    },
399630171d4SAndi Kleen    {
400630171d4SAndi Kleen        "EventCode": "0xA3",
401630171d4SAndi Kleen        "UMask": "0x4",
402630171d4SAndi Kleen        "BriefDescription": "Total execution stalls.",
403630171d4SAndi Kleen        "Counter": "0,1,2,3",
404630171d4SAndi Kleen        "EventName": "CYCLE_ACTIVITY.STALLS_TOTAL",
405630171d4SAndi Kleen        "CounterMask": "4",
406630171d4SAndi Kleen        "SampleAfterValue": "2000003",
407630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
408630171d4SAndi Kleen    },
409630171d4SAndi Kleen    {
410630171d4SAndi Kleen        "EventCode": "0xA3",
411630171d4SAndi Kleen        "UMask": "0x5",
412630171d4SAndi Kleen        "BriefDescription": "Execution stalls while L2 cache miss demand load is outstanding.",
413630171d4SAndi Kleen        "Counter": "0,1,2,3",
414630171d4SAndi Kleen        "EventName": "CYCLE_ACTIVITY.STALLS_L2_MISS",
415630171d4SAndi Kleen        "CounterMask": "5",
416630171d4SAndi Kleen        "SampleAfterValue": "2000003",
417630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
418630171d4SAndi Kleen    },
419630171d4SAndi Kleen    {
420630171d4SAndi Kleen        "EventCode": "0xA3",
421630171d4SAndi Kleen        "UMask": "0x8",
422630171d4SAndi Kleen        "BriefDescription": "Cycles while L1 cache miss demand load is outstanding.",
423630171d4SAndi Kleen        "Counter": "0,1,2,3",
424630171d4SAndi Kleen        "EventName": "CYCLE_ACTIVITY.CYCLES_L1D_MISS",
425630171d4SAndi Kleen        "CounterMask": "8",
426630171d4SAndi Kleen        "SampleAfterValue": "2000003",
427630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
428630171d4SAndi Kleen    },
429630171d4SAndi Kleen    {
430630171d4SAndi Kleen        "EventCode": "0xA3",
431630171d4SAndi Kleen        "UMask": "0xc",
432630171d4SAndi Kleen        "BriefDescription": "Execution stalls while L1 cache miss demand load is outstanding.",
433630171d4SAndi Kleen        "Counter": "0,1,2,3",
434630171d4SAndi Kleen        "EventName": "CYCLE_ACTIVITY.STALLS_L1D_MISS",
435630171d4SAndi Kleen        "CounterMask": "12",
436630171d4SAndi Kleen        "SampleAfterValue": "2000003",
437630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
438630171d4SAndi Kleen    },
439630171d4SAndi Kleen    {
440630171d4SAndi Kleen        "EventCode": "0xA3",
441630171d4SAndi Kleen        "UMask": "0x10",
442630171d4SAndi Kleen        "BriefDescription": "Cycles while memory subsystem has an outstanding load.",
443630171d4SAndi Kleen        "Counter": "0,1,2,3",
444630171d4SAndi Kleen        "EventName": "CYCLE_ACTIVITY.CYCLES_MEM_ANY",
445630171d4SAndi Kleen        "CounterMask": "16",
446630171d4SAndi Kleen        "SampleAfterValue": "2000003",
447630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
448630171d4SAndi Kleen    },
449630171d4SAndi Kleen    {
450630171d4SAndi Kleen        "EventCode": "0xA3",
451630171d4SAndi Kleen        "UMask": "0x14",
452630171d4SAndi Kleen        "BriefDescription": "Execution stalls while memory subsystem has an outstanding load.",
453630171d4SAndi Kleen        "Counter": "0,1,2,3",
454630171d4SAndi Kleen        "EventName": "CYCLE_ACTIVITY.STALLS_MEM_ANY",
455630171d4SAndi Kleen        "CounterMask": "20",
456630171d4SAndi Kleen        "SampleAfterValue": "2000003",
457630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3"
458630171d4SAndi Kleen    },
459630171d4SAndi Kleen    {
460630171d4SAndi Kleen        "EventCode": "0xA6",
461630171d4SAndi Kleen        "UMask": "0x1",
462630171d4SAndi 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.",
463630171d4SAndi Kleen        "Counter": "0,1,2,3",
464630171d4SAndi Kleen        "EventName": "EXE_ACTIVITY.EXE_BOUND_0_PORTS",
465630171d4SAndi Kleen        "PublicDescription": "Counts cycles during which no uops were executed on all ports and Reservation Station (RS) was not empty.",
466630171d4SAndi Kleen        "SampleAfterValue": "2000003",
467630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
468630171d4SAndi Kleen    },
469630171d4SAndi Kleen    {
470630171d4SAndi Kleen        "EventCode": "0xA6",
471630171d4SAndi Kleen        "UMask": "0x2",
472630171d4SAndi Kleen        "BriefDescription": "Cycles total of 1 uop is executed on all ports and Reservation Station was not empty.",
473630171d4SAndi Kleen        "Counter": "0,1,2,3",
474630171d4SAndi Kleen        "EventName": "EXE_ACTIVITY.1_PORTS_UTIL",
475630171d4SAndi Kleen        "PublicDescription": "Counts cycles during which a total of 1 uop was executed on all ports and Reservation Station (RS) was not empty.",
476630171d4SAndi Kleen        "SampleAfterValue": "2000003",
477630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
478630171d4SAndi Kleen    },
479630171d4SAndi Kleen    {
480630171d4SAndi Kleen        "EventCode": "0xA6",
481630171d4SAndi Kleen        "UMask": "0x4",
482630171d4SAndi Kleen        "BriefDescription": "Cycles total of 2 uops are executed on all ports and Reservation Station was not empty.",
483630171d4SAndi Kleen        "Counter": "0,1,2,3",
484630171d4SAndi Kleen        "EventName": "EXE_ACTIVITY.2_PORTS_UTIL",
485630171d4SAndi Kleen        "PublicDescription": "Counts cycles during which a total of 2 uops were executed on all ports and Reservation Station (RS) was not empty.",
486630171d4SAndi Kleen        "SampleAfterValue": "2000003",
487630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
488630171d4SAndi Kleen    },
489630171d4SAndi Kleen    {
490630171d4SAndi Kleen        "EventCode": "0xA6",
491630171d4SAndi Kleen        "UMask": "0x8",
492630171d4SAndi Kleen        "BriefDescription": "Cycles total of 3 uops are executed on all ports and Reservation Station was not empty.",
493630171d4SAndi Kleen        "Counter": "0,1,2,3",
494630171d4SAndi Kleen        "EventName": "EXE_ACTIVITY.3_PORTS_UTIL",
495630171d4SAndi Kleen        "PublicDescription": "Cycles total of 3 uops are executed on all ports and Reservation Station (RS) was not empty.",
496630171d4SAndi Kleen        "SampleAfterValue": "2000003",
497630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
498630171d4SAndi Kleen    },
499630171d4SAndi Kleen    {
500630171d4SAndi Kleen        "EventCode": "0xA6",
501630171d4SAndi Kleen        "UMask": "0x10",
502630171d4SAndi Kleen        "BriefDescription": "Cycles total of 4 uops are executed on all ports and Reservation Station was not empty.",
503630171d4SAndi Kleen        "Counter": "0,1,2,3",
504630171d4SAndi Kleen        "EventName": "EXE_ACTIVITY.4_PORTS_UTIL",
505630171d4SAndi Kleen        "PublicDescription": "Cycles total of 4 uops are executed on all ports and Reservation Station (RS) was not empty.",
506630171d4SAndi Kleen        "SampleAfterValue": "2000003",
507630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
508630171d4SAndi Kleen    },
509630171d4SAndi Kleen    {
510630171d4SAndi Kleen        "EventCode": "0xA6",
511630171d4SAndi Kleen        "UMask": "0x40",
512630171d4SAndi Kleen        "BriefDescription": "Cycles where the Store Buffer was full and no outstanding load.",
513630171d4SAndi Kleen        "Counter": "0,1,2,3",
514630171d4SAndi Kleen        "EventName": "EXE_ACTIVITY.BOUND_ON_STORES",
515630171d4SAndi Kleen        "SampleAfterValue": "2000003",
516630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
517630171d4SAndi Kleen    },
518630171d4SAndi Kleen    {
519630171d4SAndi Kleen        "EventCode": "0xA8",
520630171d4SAndi Kleen        "UMask": "0x1",
521630171d4SAndi Kleen        "BriefDescription": "Number of Uops delivered by the LSD.",
522630171d4SAndi Kleen        "Counter": "0,1,2,3",
523630171d4SAndi Kleen        "EventName": "LSD.UOPS",
524630171d4SAndi Kleen        "PublicDescription": "Number of uops delivered to the back-end by the LSD(Loop Stream Detector).",
525630171d4SAndi Kleen        "SampleAfterValue": "2000003",
526630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
527630171d4SAndi Kleen    },
528630171d4SAndi Kleen    {
529630171d4SAndi Kleen        "EventCode": "0xA8",
530630171d4SAndi Kleen        "UMask": "0x1",
531630171d4SAndi Kleen        "BriefDescription": "Cycles 4 Uops delivered by the LSD, but didn't come from the decoder.",
532630171d4SAndi Kleen        "Counter": "0,1,2,3",
533630171d4SAndi Kleen        "EventName": "LSD.CYCLES_4_UOPS",
534630171d4SAndi Kleen        "CounterMask": "4",
535630171d4SAndi Kleen        "PublicDescription": "Counts the cycles when 4 uops are delivered by the LSD (Loop-stream detector).",
536630171d4SAndi Kleen        "SampleAfterValue": "2000003",
537630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
538630171d4SAndi Kleen    },
539630171d4SAndi Kleen    {
54019f2d40cSAndi Kleen        "EventCode": "0xA8",
54119f2d40cSAndi Kleen        "UMask": "0x1",
54219f2d40cSAndi Kleen        "BriefDescription": "Cycles Uops delivered by the LSD, but didn't come from the decoder.",
54319f2d40cSAndi Kleen        "Counter": "0,1,2,3",
54419f2d40cSAndi Kleen        "EventName": "LSD.CYCLES_ACTIVE",
54519f2d40cSAndi Kleen        "CounterMask": "1",
54619f2d40cSAndi Kleen        "PublicDescription": "Counts the cycles when at least one uop is delivered by the LSD (Loop-stream detector).",
54719f2d40cSAndi Kleen        "SampleAfterValue": "2000003",
54819f2d40cSAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
54919f2d40cSAndi Kleen    },
55019f2d40cSAndi Kleen    {
551630171d4SAndi Kleen        "EventCode": "0xB1",
552630171d4SAndi Kleen        "UMask": "0x1",
55319f2d40cSAndi Kleen        "BriefDescription": "Cycles where at least 4 uops were executed per-thread",
554630171d4SAndi Kleen        "Counter": "0,1,2,3",
55519f2d40cSAndi Kleen        "EventName": "UOPS_EXECUTED.CYCLES_GE_4_UOPS_EXEC",
55619f2d40cSAndi Kleen        "CounterMask": "4",
55719f2d40cSAndi Kleen        "PublicDescription": "Cycles where at least 4 uops were executed per-thread.",
55819f2d40cSAndi Kleen        "SampleAfterValue": "2000003",
55919f2d40cSAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
56019f2d40cSAndi Kleen    },
56119f2d40cSAndi Kleen    {
56219f2d40cSAndi Kleen        "EventCode": "0xB1",
56319f2d40cSAndi Kleen        "UMask": "0x1",
56419f2d40cSAndi Kleen        "BriefDescription": "Cycles where at least 3 uops were executed per-thread",
56519f2d40cSAndi Kleen        "Counter": "0,1,2,3",
56619f2d40cSAndi Kleen        "EventName": "UOPS_EXECUTED.CYCLES_GE_3_UOPS_EXEC",
56719f2d40cSAndi Kleen        "CounterMask": "3",
56819f2d40cSAndi Kleen        "PublicDescription": "Cycles where at least 3 uops were executed per-thread.",
56919f2d40cSAndi Kleen        "SampleAfterValue": "2000003",
57019f2d40cSAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
57119f2d40cSAndi Kleen    },
57219f2d40cSAndi Kleen    {
57319f2d40cSAndi Kleen        "EventCode": "0xB1",
57419f2d40cSAndi Kleen        "UMask": "0x1",
57519f2d40cSAndi Kleen        "BriefDescription": "Cycles where at least 2 uops were executed per-thread",
57619f2d40cSAndi Kleen        "Counter": "0,1,2,3",
57719f2d40cSAndi Kleen        "EventName": "UOPS_EXECUTED.CYCLES_GE_2_UOPS_EXEC",
57819f2d40cSAndi Kleen        "CounterMask": "2",
57919f2d40cSAndi Kleen        "PublicDescription": "Cycles where at least 2 uops were executed per-thread.",
58019f2d40cSAndi Kleen        "SampleAfterValue": "2000003",
58119f2d40cSAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
58219f2d40cSAndi Kleen    },
58319f2d40cSAndi Kleen    {
58419f2d40cSAndi Kleen        "EventCode": "0xB1",
58519f2d40cSAndi Kleen        "UMask": "0x1",
58619f2d40cSAndi Kleen        "BriefDescription": "Cycles where at least 1 uop was executed per-thread",
58719f2d40cSAndi Kleen        "Counter": "0,1,2,3",
58819f2d40cSAndi Kleen        "EventName": "UOPS_EXECUTED.CYCLES_GE_1_UOP_EXEC",
58919f2d40cSAndi Kleen        "CounterMask": "1",
59019f2d40cSAndi Kleen        "PublicDescription": "Cycles where at least 1 uop was executed per-thread.",
591630171d4SAndi Kleen        "SampleAfterValue": "2000003",
592630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
593630171d4SAndi Kleen    },
594630171d4SAndi Kleen    {
595630171d4SAndi Kleen        "Invert": "1",
596630171d4SAndi Kleen        "EventCode": "0xB1",
597630171d4SAndi Kleen        "UMask": "0x1",
598630171d4SAndi Kleen        "BriefDescription": "Counts number of cycles no uops were dispatched to be executed on this thread.",
599630171d4SAndi Kleen        "Counter": "0,1,2,3",
600630171d4SAndi Kleen        "EventName": "UOPS_EXECUTED.STALL_CYCLES",
601630171d4SAndi Kleen        "CounterMask": "1",
602630171d4SAndi Kleen        "PublicDescription": "Counts cycles during which no uops were dispatched from the Reservation Station (RS) per thread.",
603630171d4SAndi Kleen        "SampleAfterValue": "2000003",
604630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
605630171d4SAndi Kleen    },
606630171d4SAndi Kleen    {
607630171d4SAndi Kleen        "EventCode": "0xB1",
608630171d4SAndi Kleen        "UMask": "0x1",
60919f2d40cSAndi Kleen        "BriefDescription": "Counts the number of uops to be executed per-thread each cycle.",
610630171d4SAndi Kleen        "Counter": "0,1,2,3",
61119f2d40cSAndi Kleen        "EventName": "UOPS_EXECUTED.THREAD",
61219f2d40cSAndi Kleen        "PublicDescription": "Number of uops to be executed per-thread each cycle.",
613630171d4SAndi Kleen        "SampleAfterValue": "2000003",
614630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
615630171d4SAndi Kleen    },
616630171d4SAndi Kleen    {
617630171d4SAndi Kleen        "EventCode": "0xB1",
618630171d4SAndi Kleen        "UMask": "0x2",
619630171d4SAndi Kleen        "BriefDescription": "Number of uops executed on the core.",
620630171d4SAndi Kleen        "Counter": "0,1,2,3",
621630171d4SAndi Kleen        "EventName": "UOPS_EXECUTED.CORE",
622630171d4SAndi Kleen        "PublicDescription": "Number of uops executed from any thread.",
623630171d4SAndi Kleen        "SampleAfterValue": "2000003",
624630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
625630171d4SAndi Kleen    },
626630171d4SAndi Kleen    {
62719f2d40cSAndi Kleen        "Invert": "1",
628630171d4SAndi Kleen        "EventCode": "0xB1",
629630171d4SAndi Kleen        "UMask": "0x2",
63019f2d40cSAndi Kleen        "BriefDescription": "Cycles with no micro-ops executed from any thread on physical core.",
631630171d4SAndi Kleen        "Counter": "0,1,2,3",
63219f2d40cSAndi Kleen        "EventName": "UOPS_EXECUTED.CORE_CYCLES_NONE",
633630171d4SAndi Kleen        "CounterMask": "1",
634630171d4SAndi Kleen        "SampleAfterValue": "2000003",
635630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
636630171d4SAndi Kleen    },
637630171d4SAndi Kleen    {
638630171d4SAndi Kleen        "EventCode": "0xB1",
639630171d4SAndi Kleen        "UMask": "0x2",
64019f2d40cSAndi Kleen        "BriefDescription": "Cycles at least 4 micro-op is executed from any thread on physical core.",
641630171d4SAndi Kleen        "Counter": "0,1,2,3",
64219f2d40cSAndi Kleen        "EventName": "UOPS_EXECUTED.CORE_CYCLES_GE_4",
64319f2d40cSAndi Kleen        "CounterMask": "4",
644630171d4SAndi Kleen        "SampleAfterValue": "2000003",
645630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
646630171d4SAndi Kleen    },
647630171d4SAndi Kleen    {
648630171d4SAndi Kleen        "EventCode": "0xB1",
649630171d4SAndi Kleen        "UMask": "0x2",
650630171d4SAndi Kleen        "BriefDescription": "Cycles at least 3 micro-op is executed from any thread on physical core.",
651630171d4SAndi Kleen        "Counter": "0,1,2,3",
652630171d4SAndi Kleen        "EventName": "UOPS_EXECUTED.CORE_CYCLES_GE_3",
653630171d4SAndi Kleen        "CounterMask": "3",
654630171d4SAndi Kleen        "SampleAfterValue": "2000003",
655630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
656630171d4SAndi Kleen    },
657630171d4SAndi Kleen    {
658630171d4SAndi Kleen        "EventCode": "0xB1",
659630171d4SAndi Kleen        "UMask": "0x2",
66019f2d40cSAndi Kleen        "BriefDescription": "Cycles at least 2 micro-op is executed from any thread on physical core.",
661630171d4SAndi Kleen        "Counter": "0,1,2,3",
66219f2d40cSAndi Kleen        "EventName": "UOPS_EXECUTED.CORE_CYCLES_GE_2",
66319f2d40cSAndi Kleen        "CounterMask": "2",
664630171d4SAndi Kleen        "SampleAfterValue": "2000003",
665630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
666630171d4SAndi Kleen    },
667630171d4SAndi Kleen    {
668630171d4SAndi Kleen        "EventCode": "0xB1",
669630171d4SAndi Kleen        "UMask": "0x2",
67019f2d40cSAndi Kleen        "BriefDescription": "Cycles at least 1 micro-op is executed from any thread on physical core.",
671630171d4SAndi Kleen        "Counter": "0,1,2,3",
67219f2d40cSAndi Kleen        "EventName": "UOPS_EXECUTED.CORE_CYCLES_GE_1",
673630171d4SAndi Kleen        "CounterMask": "1",
674630171d4SAndi Kleen        "SampleAfterValue": "2000003",
675630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
676630171d4SAndi Kleen    },
677630171d4SAndi Kleen    {
678630171d4SAndi Kleen        "EventCode": "0xB1",
679630171d4SAndi Kleen        "UMask": "0x10",
680630171d4SAndi Kleen        "BriefDescription": "Counts the number of x87 uops dispatched.",
681630171d4SAndi Kleen        "Counter": "0,1,2,3",
682630171d4SAndi Kleen        "EventName": "UOPS_EXECUTED.X87",
683630171d4SAndi Kleen        "PublicDescription": "Counts the number of x87 uops executed.",
684630171d4SAndi Kleen        "SampleAfterValue": "2000003",
685630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
686630171d4SAndi Kleen    },
687630171d4SAndi Kleen    {
688630171d4SAndi Kleen        "EventCode": "0xC0",
689630171d4SAndi Kleen        "UMask": "0x0",
690630171d4SAndi Kleen        "BriefDescription": "Number of instructions retired. General Counter - architectural event",
691630171d4SAndi Kleen        "Counter": "0,1,2,3",
692630171d4SAndi Kleen        "EventName": "INST_RETIRED.ANY_P",
693630171d4SAndi Kleen        "Errata": "SKL091, SKL044",
694630171d4SAndi Kleen        "PublicDescription": "Counts the number of instructions (EOMs) retired. Counting covers macro-fused instructions individually (that is, increments by two).",
695630171d4SAndi Kleen        "SampleAfterValue": "2000003",
696630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
697630171d4SAndi Kleen    },
698630171d4SAndi Kleen    {
699630171d4SAndi Kleen        "EventCode": "0xC0",
700630171d4SAndi Kleen        "UMask": "0x1",
701630171d4SAndi Kleen        "BriefDescription": "Precise instruction retired event with HW to reduce effect of PEBS shadow in IP distribution",
702630171d4SAndi Kleen        "PEBS": "2",
703630171d4SAndi Kleen        "Counter": "1",
704630171d4SAndi Kleen        "EventName": "INST_RETIRED.PREC_DIST",
705630171d4SAndi Kleen        "Errata": "SKL091, SKL044",
706630171d4SAndi 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.",
707630171d4SAndi Kleen        "SampleAfterValue": "2000003",
708630171d4SAndi Kleen        "CounterHTOff": "1"
709630171d4SAndi Kleen    },
710630171d4SAndi Kleen    {
711630171d4SAndi Kleen        "Invert": "1",
712630171d4SAndi Kleen        "EventCode": "0xC0",
713630171d4SAndi Kleen        "UMask": "0x1",
714630171d4SAndi Kleen        "BriefDescription": "Number of cycles using always true condition applied to  PEBS instructions retired event.",
715630171d4SAndi Kleen        "PEBS": "2",
716630171d4SAndi Kleen        "Counter": "0,2,3",
717630171d4SAndi Kleen        "EventName": "INST_RETIRED.TOTAL_CYCLES_PS",
718630171d4SAndi Kleen        "CounterMask": "10",
719630171d4SAndi Kleen        "Errata": "SKL091, SKL044",
720630171d4SAndi Kleen        "PublicDescription": "Number of cycles using an always true condition applied to  PEBS instructions retired event. (inst_ret< 16)",
721630171d4SAndi Kleen        "SampleAfterValue": "2000003",
722630171d4SAndi Kleen        "CounterHTOff": "0,2,3"
723630171d4SAndi Kleen    },
724630171d4SAndi Kleen    {
725630171d4SAndi Kleen        "EventCode": "0xC1",
726630171d4SAndi Kleen        "UMask": "0x3f",
727630171d4SAndi 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.",
728630171d4SAndi Kleen        "Counter": "0,1,2,3",
729630171d4SAndi Kleen        "EventName": "OTHER_ASSISTS.ANY",
730630171d4SAndi Kleen        "SampleAfterValue": "100003",
731630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
732630171d4SAndi Kleen    },
733630171d4SAndi Kleen    {
734630171d4SAndi Kleen        "Invert": "1",
735630171d4SAndi Kleen        "EventCode": "0xC2",
736630171d4SAndi Kleen        "UMask": "0x2",
737630171d4SAndi Kleen        "BriefDescription": "Cycles with less than 10 actually retired uops.",
738630171d4SAndi Kleen        "Counter": "0,1,2,3",
739630171d4SAndi Kleen        "EventName": "UOPS_RETIRED.TOTAL_CYCLES",
740630171d4SAndi Kleen        "CounterMask": "10",
741630171d4SAndi Kleen        "PublicDescription": "Number of cycles using always true condition (uops_ret < 16) applied to non PEBS uops retired event.",
742630171d4SAndi Kleen        "SampleAfterValue": "2000003",
743630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
744630171d4SAndi Kleen    },
745630171d4SAndi Kleen    {
74619f2d40cSAndi Kleen        "Invert": "1",
74719f2d40cSAndi Kleen        "EventCode": "0xC2",
74819f2d40cSAndi Kleen        "UMask": "0x2",
74919f2d40cSAndi Kleen        "BriefDescription": "Cycles without actually retired uops.",
75019f2d40cSAndi Kleen        "Counter": "0,1,2,3",
75119f2d40cSAndi Kleen        "EventName": "UOPS_RETIRED.STALL_CYCLES",
75219f2d40cSAndi Kleen        "CounterMask": "1",
75319f2d40cSAndi Kleen        "PublicDescription": "This event counts cycles without actually retired uops.",
75419f2d40cSAndi Kleen        "SampleAfterValue": "2000003",
75519f2d40cSAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
75619f2d40cSAndi Kleen    },
75719f2d40cSAndi Kleen    {
75819f2d40cSAndi Kleen        "EventCode": "0xC2",
75919f2d40cSAndi Kleen        "UMask": "0x2",
76019f2d40cSAndi Kleen        "BriefDescription": "Retirement slots used.",
76119f2d40cSAndi Kleen        "Counter": "0,1,2,3",
76219f2d40cSAndi Kleen        "EventName": "UOPS_RETIRED.RETIRE_SLOTS",
76319f2d40cSAndi Kleen        "PublicDescription": "Counts the retirement slots used.",
76419f2d40cSAndi Kleen        "SampleAfterValue": "2000003",
76519f2d40cSAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
76619f2d40cSAndi Kleen    },
76719f2d40cSAndi Kleen    {
768630171d4SAndi Kleen        "EdgeDetect": "1",
769630171d4SAndi Kleen        "EventCode": "0xC3",
770630171d4SAndi Kleen        "UMask": "0x1",
771630171d4SAndi Kleen        "BriefDescription": "Number of machine clears (nukes) of any type.",
772630171d4SAndi Kleen        "Counter": "0,1,2,3",
773630171d4SAndi Kleen        "EventName": "MACHINE_CLEARS.COUNT",
774630171d4SAndi Kleen        "CounterMask": "1",
77519f2d40cSAndi Kleen        "PublicDescription": "Number of machine clears (nukes) of any type.",
776630171d4SAndi Kleen        "SampleAfterValue": "100003",
777630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
778630171d4SAndi Kleen    },
779630171d4SAndi Kleen    {
780630171d4SAndi Kleen        "EventCode": "0xC3",
781630171d4SAndi Kleen        "UMask": "0x4",
782630171d4SAndi Kleen        "BriefDescription": "Self-modifying code (SMC) detected.",
783630171d4SAndi Kleen        "Counter": "0,1,2,3",
784630171d4SAndi Kleen        "EventName": "MACHINE_CLEARS.SMC",
785630171d4SAndi Kleen        "PublicDescription": "Counts self-modifying code (SMC) detected, which causes a machine clear.",
786630171d4SAndi Kleen        "SampleAfterValue": "100003",
787630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
788630171d4SAndi Kleen    },
789630171d4SAndi Kleen    {
790630171d4SAndi Kleen        "EventCode": "0xC4",
791630171d4SAndi Kleen        "UMask": "0x0",
792630171d4SAndi Kleen        "BriefDescription": "All (macro) branch instructions retired.",
793630171d4SAndi Kleen        "Counter": "0,1,2,3",
794630171d4SAndi Kleen        "EventName": "BR_INST_RETIRED.ALL_BRANCHES",
795630171d4SAndi Kleen        "Errata": "SKL091",
796630171d4SAndi Kleen        "PublicDescription": "Counts all (macro) branch instructions retired.",
797630171d4SAndi Kleen        "SampleAfterValue": "400009",
798630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
799630171d4SAndi Kleen    },
800630171d4SAndi Kleen    {
801630171d4SAndi Kleen        "EventCode": "0xC4",
802630171d4SAndi Kleen        "UMask": "0x1",
803630171d4SAndi Kleen        "BriefDescription": "Conditional branch instructions retired.",
804630171d4SAndi Kleen        "PEBS": "1",
805630171d4SAndi Kleen        "Counter": "0,1,2,3",
806630171d4SAndi Kleen        "EventName": "BR_INST_RETIRED.CONDITIONAL",
807630171d4SAndi Kleen        "Errata": "SKL091",
8081716021eSAndi Kleen        "PublicDescription": "This is a precise version (that is, uses PEBS) of the event that counts conditional branch instructions retired.",
809630171d4SAndi Kleen        "SampleAfterValue": "400009",
810630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
811630171d4SAndi Kleen    },
812630171d4SAndi Kleen    {
813630171d4SAndi Kleen        "EventCode": "0xC4",
814630171d4SAndi Kleen        "UMask": "0x2",
815630171d4SAndi Kleen        "BriefDescription": "Direct and indirect near call instructions retired.",
816630171d4SAndi Kleen        "PEBS": "1",
817630171d4SAndi Kleen        "Counter": "0,1,2,3",
818630171d4SAndi Kleen        "EventName": "BR_INST_RETIRED.NEAR_CALL",
819630171d4SAndi Kleen        "Errata": "SKL091",
8201716021eSAndi Kleen        "PublicDescription": "This is a precise version (that is, uses PEBS) of the event that counts both direct and indirect near call instructions retired.",
821630171d4SAndi Kleen        "SampleAfterValue": "100007",
822630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
823630171d4SAndi Kleen    },
824630171d4SAndi Kleen    {
825630171d4SAndi Kleen        "EventCode": "0xC4",
826630171d4SAndi Kleen        "UMask": "0x4",
827630171d4SAndi Kleen        "BriefDescription": "All (macro) branch instructions retired.",
828630171d4SAndi Kleen        "PEBS": "2",
829630171d4SAndi Kleen        "Counter": "0,1,2,3",
830630171d4SAndi Kleen        "EventName": "BR_INST_RETIRED.ALL_BRANCHES_PEBS",
831630171d4SAndi Kleen        "Errata": "SKL091",
832630171d4SAndi Kleen        "PublicDescription": "This is a precise version of BR_INST_RETIRED.ALL_BRANCHES that counts all (macro) branch instructions retired.",
833630171d4SAndi Kleen        "SampleAfterValue": "400009",
834630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3"
835630171d4SAndi Kleen    },
836630171d4SAndi Kleen    {
837630171d4SAndi Kleen        "EventCode": "0xC4",
838630171d4SAndi Kleen        "UMask": "0x8",
839630171d4SAndi Kleen        "BriefDescription": "Return instructions retired.",
840630171d4SAndi Kleen        "PEBS": "1",
841630171d4SAndi Kleen        "Counter": "0,1,2,3",
842630171d4SAndi Kleen        "EventName": "BR_INST_RETIRED.NEAR_RETURN",
843630171d4SAndi Kleen        "Errata": "SKL091",
8441716021eSAndi Kleen        "PublicDescription": "This is a precise version (that is, uses PEBS) of the event that counts return instructions retired.",
845630171d4SAndi Kleen        "SampleAfterValue": "100007",
846630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
847630171d4SAndi Kleen    },
848630171d4SAndi Kleen    {
849630171d4SAndi Kleen        "EventCode": "0xC4",
850630171d4SAndi Kleen        "UMask": "0x10",
85119f2d40cSAndi Kleen        "BriefDescription": "Counts all not taken macro branch instructions retired.",
85219f2d40cSAndi Kleen        "PEBS": "1",
853630171d4SAndi Kleen        "Counter": "0,1,2,3",
854630171d4SAndi Kleen        "EventName": "BR_INST_RETIRED.NOT_TAKEN",
855630171d4SAndi Kleen        "Errata": "SKL091",
85619f2d40cSAndi Kleen        "PublicDescription": "This is a precise version (that is, uses PEBS) of the event that counts not taken branch instructions retired.",
857630171d4SAndi Kleen        "SampleAfterValue": "400009",
858630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
859630171d4SAndi Kleen    },
860630171d4SAndi Kleen    {
861630171d4SAndi Kleen        "EventCode": "0xC4",
862630171d4SAndi Kleen        "UMask": "0x20",
863630171d4SAndi Kleen        "BriefDescription": "Taken branch instructions retired.",
864630171d4SAndi Kleen        "PEBS": "1",
865630171d4SAndi Kleen        "Counter": "0,1,2,3",
866630171d4SAndi Kleen        "EventName": "BR_INST_RETIRED.NEAR_TAKEN",
867630171d4SAndi Kleen        "Errata": "SKL091",
8681716021eSAndi Kleen        "PublicDescription": "This is a precise version (that is, uses PEBS) of the event that counts taken branch instructions retired.",
869630171d4SAndi Kleen        "SampleAfterValue": "400009",
870630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
871630171d4SAndi Kleen    },
872630171d4SAndi Kleen    {
873630171d4SAndi Kleen        "EventCode": "0xC4",
874630171d4SAndi Kleen        "UMask": "0x40",
8751716021eSAndi Kleen        "BriefDescription": "Counts the number of far branch instructions retired.",
876630171d4SAndi Kleen        "PEBS": "1",
877630171d4SAndi Kleen        "Counter": "0,1,2,3",
878630171d4SAndi Kleen        "EventName": "BR_INST_RETIRED.FAR_BRANCH",
879630171d4SAndi Kleen        "Errata": "SKL091",
8801716021eSAndi Kleen        "PublicDescription": "This is a precise version (that is, uses PEBS) of the event that counts far branch instructions retired.",
881630171d4SAndi Kleen        "SampleAfterValue": "100007",
882630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
883630171d4SAndi Kleen    },
884630171d4SAndi Kleen    {
885630171d4SAndi Kleen        "EventCode": "0xC5",
886630171d4SAndi Kleen        "UMask": "0x0",
887630171d4SAndi Kleen        "BriefDescription": "All mispredicted macro branch instructions retired.",
888630171d4SAndi Kleen        "Counter": "0,1,2,3",
889630171d4SAndi Kleen        "EventName": "BR_MISP_RETIRED.ALL_BRANCHES",
890630171d4SAndi 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.",
891630171d4SAndi Kleen        "SampleAfterValue": "400009",
892630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
893630171d4SAndi Kleen    },
894630171d4SAndi Kleen    {
895630171d4SAndi Kleen        "EventCode": "0xC5",
896630171d4SAndi Kleen        "UMask": "0x1",
897630171d4SAndi Kleen        "BriefDescription": "Mispredicted conditional branch instructions retired.",
898630171d4SAndi Kleen        "PEBS": "1",
899630171d4SAndi Kleen        "Counter": "0,1,2,3",
900630171d4SAndi Kleen        "EventName": "BR_MISP_RETIRED.CONDITIONAL",
9011716021eSAndi Kleen        "PublicDescription": "This is a precise version (that is, uses PEBS) of the event that counts mispredicted conditional branch instructions retired.",
902630171d4SAndi Kleen        "SampleAfterValue": "400009",
903630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
904630171d4SAndi Kleen    },
905630171d4SAndi Kleen    {
906630171d4SAndi Kleen        "EventCode": "0xC5",
907630171d4SAndi Kleen        "UMask": "0x2",
908630171d4SAndi Kleen        "BriefDescription": "Mispredicted direct and indirect near call instructions retired.",
909630171d4SAndi Kleen        "PEBS": "1",
910630171d4SAndi Kleen        "Counter": "0,1,2,3",
911630171d4SAndi Kleen        "EventName": "BR_MISP_RETIRED.NEAR_CALL",
9121716021eSAndi Kleen        "PublicDescription": "This event counts both taken and not taken retired mispredicted direct and indirect near calls, including both register and memory indirect.",
913630171d4SAndi Kleen        "SampleAfterValue": "400009",
914630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
915630171d4SAndi Kleen    },
916630171d4SAndi Kleen    {
917630171d4SAndi Kleen        "EventCode": "0xC5",
918630171d4SAndi Kleen        "UMask": "0x4",
919630171d4SAndi Kleen        "BriefDescription": "Mispredicted macro branch instructions retired.",
920630171d4SAndi Kleen        "PEBS": "2",
921630171d4SAndi Kleen        "Counter": "0,1,2,3",
922630171d4SAndi Kleen        "EventName": "BR_MISP_RETIRED.ALL_BRANCHES_PEBS",
923630171d4SAndi Kleen        "PublicDescription": "This is a precise version of BR_MISP_RETIRED.ALL_BRANCHES that counts all mispredicted macro branch instructions retired.",
924630171d4SAndi Kleen        "SampleAfterValue": "400009",
925630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3"
926630171d4SAndi Kleen    },
927630171d4SAndi Kleen    {
928630171d4SAndi Kleen        "EventCode": "0xC5",
929630171d4SAndi Kleen        "UMask": "0x20",
930630171d4SAndi Kleen        "BriefDescription": "Number of near branch instructions retired that were mispredicted and taken.",
931630171d4SAndi Kleen        "PEBS": "1",
932630171d4SAndi Kleen        "Counter": "0,1,2,3",
933630171d4SAndi Kleen        "EventName": "BR_MISP_RETIRED.NEAR_TAKEN",
9341716021eSAndi Kleen        "PublicDescription": "Number of near branch instructions retired that were mispredicted and taken.",
935630171d4SAndi Kleen        "SampleAfterValue": "400009",
936630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
937630171d4SAndi Kleen    },
938630171d4SAndi Kleen    {
939630171d4SAndi Kleen        "EventCode": "0xCC",
940630171d4SAndi Kleen        "UMask": "0x20",
941630171d4SAndi Kleen        "BriefDescription": "Increments whenever there is an update to the LBR array.",
942630171d4SAndi Kleen        "Counter": "0,1,2,3",
943630171d4SAndi Kleen        "EventName": "ROB_MISC_EVENTS.LBR_INSERTS",
944630171d4SAndi 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.",
945630171d4SAndi Kleen        "SampleAfterValue": "2000003",
946630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
947630171d4SAndi Kleen    },
948630171d4SAndi Kleen    {
94919f2d40cSAndi Kleen        "EventCode": "0xCC",
95019f2d40cSAndi Kleen        "UMask": "0x40",
95119f2d40cSAndi Kleen        "BriefDescription": "Number of retired PAUSE instructions (that do not end up with a VMExit to the VMM; TSX aborted Instructions may be counted). This event is not supported on first SKL and KBL products.",
95219f2d40cSAndi Kleen        "Counter": "0,1,2,3",
95319f2d40cSAndi Kleen        "EventName": "ROB_MISC_EVENTS.PAUSE_INST",
95419f2d40cSAndi Kleen        "SampleAfterValue": "2000003",
95519f2d40cSAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
95619f2d40cSAndi Kleen    },
95719f2d40cSAndi Kleen    {
958630171d4SAndi Kleen        "EventCode": "0xE6",
959630171d4SAndi Kleen        "UMask": "0x1",
960630171d4SAndi 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.",
961630171d4SAndi Kleen        "Counter": "0,1,2,3",
962630171d4SAndi Kleen        "EventName": "BACLEARS.ANY",
963630171d4SAndi 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.",
964630171d4SAndi Kleen        "SampleAfterValue": "100003",
965630171d4SAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7"
966630171d4SAndi Kleen    }
967630171d4SAndi Kleen]