xref: /freebsd/lib/libpmc/pmu-events/arch/x86/haswell/frontend.json (revision 924226fba12cc9a228c73b956e1b7fa24c60b055)
1[
2    {
3        "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.",
4        "Counter": "0,1,2,3",
5        "CounterHTOff": "0,1,2,3,4,5,6,7",
6        "EventCode": "0xe6",
7        "EventName": "BACLEARS.ANY",
8        "PublicDescription": "Number of front end re-steers due to BPU misprediction.",
9        "SampleAfterValue": "100003",
10        "UMask": "0x1f"
11    },
12    {
13        "BriefDescription": "Decode Stream Buffer (DSB)-to-MITE switch true penalty cycles.",
14        "Counter": "0,1,2,3",
15        "CounterHTOff": "0,1,2,3,4,5,6,7",
16        "EventCode": "0xAB",
17        "EventName": "DSB2MITE_SWITCHES.PENALTY_CYCLES",
18        "SampleAfterValue": "2000003",
19        "UMask": "0x2"
20    },
21    {
22        "BriefDescription": "Number of Instruction Cache, Streaming Buffer and Victim Cache Reads. both cacheable and noncacheable, including UC fetches.",
23        "Counter": "0,1,2,3",
24        "CounterHTOff": "0,1,2,3,4,5,6,7",
25        "EventCode": "0x80",
26        "EventName": "ICACHE.HIT",
27        "SampleAfterValue": "2000003",
28        "UMask": "0x1"
29    },
30    {
31        "BriefDescription": "Cycles where a code fetch is stalled due to L1 instruction-cache miss.",
32        "Counter": "0,1,2,3",
33        "CounterHTOff": "0,1,2,3,4,5,6,7",
34        "EventCode": "0x80",
35        "EventName": "ICACHE.IFDATA_STALL",
36        "SampleAfterValue": "2000003",
37        "UMask": "0x4"
38    },
39    {
40        "BriefDescription": "Cycles where a code fetch is stalled due to L1 instruction-cache miss.",
41        "Counter": "0,1,2,3",
42        "CounterHTOff": "0,1,2,3,4,5,6,7",
43        "EventCode": "0x80",
44        "EventName": "ICACHE.IFETCH_STALL",
45        "SampleAfterValue": "2000003",
46        "UMask": "0x4"
47    },
48    {
49        "BriefDescription": "Number of Instruction Cache, Streaming Buffer and Victim Cache Misses. Includes Uncacheable accesses.",
50        "Counter": "0,1,2,3",
51        "CounterHTOff": "0,1,2,3,4,5,6,7",
52        "EventCode": "0x80",
53        "EventName": "ICACHE.MISSES",
54        "PublicDescription": "This event counts Instruction Cache (ICACHE) misses.",
55        "SampleAfterValue": "200003",
56        "UMask": "0x2"
57    },
58    {
59        "BriefDescription": "Cycles Decode Stream Buffer (DSB) is delivering 4 Uops",
60        "Counter": "0,1,2,3",
61        "CounterHTOff": "0,1,2,3,4,5,6,7",
62        "CounterMask": "4",
63        "EventCode": "0x79",
64        "EventName": "IDQ.ALL_DSB_CYCLES_4_UOPS",
65        "PublicDescription": "Counts cycles DSB is delivered four uops. Set Cmask = 4.",
66        "SampleAfterValue": "2000003",
67        "UMask": "0x18"
68    },
69    {
70        "BriefDescription": "Cycles Decode Stream Buffer (DSB) is delivering any Uop",
71        "Counter": "0,1,2,3",
72        "CounterHTOff": "0,1,2,3,4,5,6,7",
73        "CounterMask": "1",
74        "EventCode": "0x79",
75        "EventName": "IDQ.ALL_DSB_CYCLES_ANY_UOPS",
76        "PublicDescription": "Counts cycles DSB is delivered at least one uops. Set Cmask = 1.",
77        "SampleAfterValue": "2000003",
78        "UMask": "0x18"
79    },
80    {
81        "BriefDescription": "Cycles MITE is delivering 4 Uops",
82        "Counter": "0,1,2,3",
83        "CounterHTOff": "0,1,2,3,4,5,6,7",
84        "CounterMask": "4",
85        "EventCode": "0x79",
86        "EventName": "IDQ.ALL_MITE_CYCLES_4_UOPS",
87        "PublicDescription": "Counts cycles MITE is delivered four uops. Set Cmask = 4.",
88        "SampleAfterValue": "2000003",
89        "UMask": "0x24"
90    },
91    {
92        "BriefDescription": "Cycles MITE is delivering any Uop",
93        "Counter": "0,1,2,3",
94        "CounterHTOff": "0,1,2,3,4,5,6,7",
95        "CounterMask": "1",
96        "EventCode": "0x79",
97        "EventName": "IDQ.ALL_MITE_CYCLES_ANY_UOPS",
98        "PublicDescription": "Counts cycles MITE is delivered at least one uop. Set Cmask = 1.",
99        "SampleAfterValue": "2000003",
100        "UMask": "0x24"
101    },
102    {
103        "BriefDescription": "Cycles when uops are being delivered to Instruction Decode Queue (IDQ) from Decode Stream Buffer (DSB) path.",
104        "Counter": "0,1,2,3",
105        "CounterHTOff": "0,1,2,3,4,5,6,7",
106        "CounterMask": "1",
107        "EventCode": "0x79",
108        "EventName": "IDQ.DSB_CYCLES",
109        "SampleAfterValue": "2000003",
110        "UMask": "0x8"
111    },
112    {
113        "BriefDescription": "Uops delivered to Instruction Decode Queue (IDQ) from the Decode Stream Buffer (DSB) path",
114        "Counter": "0,1,2,3",
115        "CounterHTOff": "0,1,2,3,4,5,6,7",
116        "EventCode": "0x79",
117        "EventName": "IDQ.DSB_UOPS",
118        "PublicDescription": "Increment each cycle. # of uops delivered to IDQ from DSB path. Set Cmask = 1 to count cycles.",
119        "SampleAfterValue": "2000003",
120        "UMask": "0x8"
121    },
122    {
123        "BriefDescription": "Instruction Decode Queue (IDQ) empty cycles",
124        "Counter": "0,1,2,3",
125        "CounterHTOff": "0,1,2,3",
126        "Errata": "HSD135",
127        "EventCode": "0x79",
128        "EventName": "IDQ.EMPTY",
129        "PublicDescription": "Counts cycles the IDQ is empty.",
130        "SampleAfterValue": "2000003",
131        "UMask": "0x2"
132    },
133    {
134        "BriefDescription": "Uops delivered to Instruction Decode Queue (IDQ) from MITE path",
135        "Counter": "0,1,2,3",
136        "CounterHTOff": "0,1,2,3,4,5,6,7",
137        "EventCode": "0x79",
138        "EventName": "IDQ.MITE_ALL_UOPS",
139        "PublicDescription": "Number of uops delivered to IDQ from any path.",
140        "SampleAfterValue": "2000003",
141        "UMask": "0x3c"
142    },
143    {
144        "BriefDescription": "Cycles when uops are being delivered to Instruction Decode Queue (IDQ) from MITE path.",
145        "Counter": "0,1,2,3",
146        "CounterHTOff": "0,1,2,3,4,5,6,7",
147        "CounterMask": "1",
148        "EventCode": "0x79",
149        "EventName": "IDQ.MITE_CYCLES",
150        "SampleAfterValue": "2000003",
151        "UMask": "0x4"
152    },
153    {
154        "BriefDescription": "Uops delivered to Instruction Decode Queue (IDQ) from MITE path",
155        "Counter": "0,1,2,3",
156        "CounterHTOff": "0,1,2,3,4,5,6,7",
157        "EventCode": "0x79",
158        "EventName": "IDQ.MITE_UOPS",
159        "PublicDescription": "Increment each cycle # of uops delivered to IDQ from MITE path. Set Cmask = 1 to count cycles.",
160        "SampleAfterValue": "2000003",
161        "UMask": "0x4"
162    },
163    {
164        "BriefDescription": "Cycles when uops are being delivered to Instruction Decode Queue (IDQ) while Microcode Sequenser (MS) is busy",
165        "Counter": "0,1,2,3",
166        "CounterHTOff": "0,1,2,3,4,5,6,7",
167        "CounterMask": "1",
168        "EventCode": "0x79",
169        "EventName": "IDQ.MS_CYCLES",
170        "PublicDescription": "This event counts cycles during which the microcode sequencer assisted the Front-end in delivering uops.  Microcode assists are used for complex instructions or scenarios that can't be handled by the standard decoder.  Using other instructions, if possible, will usually improve performance.",
171        "SampleAfterValue": "2000003",
172        "UMask": "0x30"
173    },
174    {
175        "BriefDescription": "Cycles when uops initiated by Decode Stream Buffer (DSB) are being delivered to Instruction Decode Queue (IDQ) while Microcode Sequenser (MS) is busy.",
176        "Counter": "0,1,2,3",
177        "CounterHTOff": "0,1,2,3,4,5,6,7",
178        "CounterMask": "1",
179        "EventCode": "0x79",
180        "EventName": "IDQ.MS_DSB_CYCLES",
181        "SampleAfterValue": "2000003",
182        "UMask": "0x10"
183    },
184    {
185        "BriefDescription": "Deliveries to Instruction Decode Queue (IDQ) initiated by Decode Stream Buffer (DSB) while Microcode Sequenser (MS) is busy.",
186        "Counter": "0,1,2,3",
187        "CounterHTOff": "0,1,2,3,4,5,6,7",
188        "CounterMask": "1",
189        "EdgeDetect": "1",
190        "EventCode": "0x79",
191        "EventName": "IDQ.MS_DSB_OCCUR",
192        "SampleAfterValue": "2000003",
193        "UMask": "0x10"
194    },
195    {
196        "BriefDescription": "Uops initiated by Decode Stream Buffer (DSB) that are being delivered to Instruction Decode Queue (IDQ) while Microcode Sequenser (MS) is busy",
197        "Counter": "0,1,2,3",
198        "CounterHTOff": "0,1,2,3,4,5,6,7",
199        "EventCode": "0x79",
200        "EventName": "IDQ.MS_DSB_UOPS",
201        "PublicDescription": "Increment each cycle # of uops delivered to IDQ when MS_busy by DSB. Set Cmask = 1 to count cycles. Add Edge=1 to count # of delivery.",
202        "SampleAfterValue": "2000003",
203        "UMask": "0x10"
204    },
205    {
206        "BriefDescription": "Uops initiated by MITE and delivered to Instruction Decode Queue (IDQ) while Microcode Sequenser (MS) is busy",
207        "Counter": "0,1,2,3",
208        "CounterHTOff": "0,1,2,3,4,5,6,7",
209        "EventCode": "0x79",
210        "EventName": "IDQ.MS_MITE_UOPS",
211        "PublicDescription": "Increment each cycle # of uops delivered to IDQ when MS_busy by MITE. Set Cmask = 1 to count cycles.",
212        "SampleAfterValue": "2000003",
213        "UMask": "0x20"
214    },
215    {
216        "BriefDescription": "Number of switches from DSB (Decode Stream Buffer) or MITE (legacy decode pipeline) to the Microcode Sequencer.",
217        "Counter": "0,1,2,3",
218        "CounterHTOff": "0,1,2,3,4,5,6,7",
219        "CounterMask": "1",
220        "EdgeDetect": "1",
221        "EventCode": "0x79",
222        "EventName": "IDQ.MS_SWITCHES",
223        "SampleAfterValue": "2000003",
224        "UMask": "0x30"
225    },
226    {
227        "BriefDescription": "Uops delivered to Instruction Decode Queue (IDQ) while Microcode Sequenser (MS) is busy",
228        "Counter": "0,1,2,3",
229        "CounterHTOff": "0,1,2,3,4,5,6,7",
230        "EventCode": "0x79",
231        "EventName": "IDQ.MS_UOPS",
232        "PublicDescription": "This event counts uops delivered by the Front-end with the assistance of the microcode sequencer.  Microcode assists are used for complex instructions or scenarios that can't be handled by the standard decoder.  Using other instructions, if possible, will usually improve performance.",
233        "SampleAfterValue": "2000003",
234        "UMask": "0x30"
235    },
236    {
237        "BriefDescription": "Uops not delivered to Resource Allocation Table (RAT) per thread when backend of the machine is not stalled",
238        "Counter": "0,1,2,3",
239        "CounterHTOff": "0,1,2,3",
240        "Errata": "HSD135",
241        "EventCode": "0x9C",
242        "EventName": "IDQ_UOPS_NOT_DELIVERED.CORE",
243        "PublicDescription": "This event count the number of undelivered (unallocated) uops from the Front-end to the Resource Allocation Table (RAT) while the Back-end of the processor is not stalled. The Front-end can allocate up to 4 uops per cycle so this event can increment 0-4 times per cycle depending on the number of unallocated uops. This event is counted on a per-core basis.",
244        "SampleAfterValue": "2000003",
245        "UMask": "0x1"
246    },
247    {
248        "BriefDescription": "Cycles per thread when 4 or more uops are not delivered to Resource Allocation Table (RAT) when backend of the machine is not stalled",
249        "Counter": "0,1,2,3",
250        "CounterHTOff": "0,1,2,3",
251        "CounterMask": "4",
252        "Errata": "HSD135",
253        "EventCode": "0x9C",
254        "EventName": "IDQ_UOPS_NOT_DELIVERED.CYCLES_0_UOPS_DELIV.CORE",
255        "PublicDescription": "This event counts the number cycles during which the Front-end allocated exactly zero uops to the Resource Allocation Table (RAT) while the Back-end of the processor is not stalled.  This event is counted on a per-core basis.",
256        "SampleAfterValue": "2000003",
257        "UMask": "0x1"
258    },
259    {
260        "BriefDescription": "Counts cycles FE delivered 4 uops or Resource Allocation Table (RAT) was stalling FE.",
261        "Counter": "0,1,2,3",
262        "CounterHTOff": "0,1,2,3",
263        "CounterMask": "1",
264        "Errata": "HSD135",
265        "EventCode": "0x9C",
266        "EventName": "IDQ_UOPS_NOT_DELIVERED.CYCLES_FE_WAS_OK",
267        "Invert": "1",
268        "SampleAfterValue": "2000003",
269        "UMask": "0x1"
270    },
271    {
272        "BriefDescription": "Cycles per thread when 3 or more uops are not delivered to Resource Allocation Table (RAT) when backend of the machine is not stalled.",
273        "Counter": "0,1,2,3",
274        "CounterHTOff": "0,1,2,3",
275        "CounterMask": "3",
276        "Errata": "HSD135",
277        "EventCode": "0x9C",
278        "EventName": "IDQ_UOPS_NOT_DELIVERED.CYCLES_LE_1_UOP_DELIV.CORE",
279        "SampleAfterValue": "2000003",
280        "UMask": "0x1"
281    },
282    {
283        "BriefDescription": "Cycles with less than 2 uops delivered by the front end.",
284        "Counter": "0,1,2,3",
285        "CounterHTOff": "0,1,2,3",
286        "CounterMask": "2",
287        "Errata": "HSD135",
288        "EventCode": "0x9C",
289        "EventName": "IDQ_UOPS_NOT_DELIVERED.CYCLES_LE_2_UOP_DELIV.CORE",
290        "SampleAfterValue": "2000003",
291        "UMask": "0x1"
292    },
293    {
294        "BriefDescription": "Cycles with less than 3 uops delivered by the front end.",
295        "Counter": "0,1,2,3",
296        "CounterHTOff": "0,1,2,3",
297        "CounterMask": "1",
298        "Errata": "HSD135",
299        "EventCode": "0x9C",
300        "EventName": "IDQ_UOPS_NOT_DELIVERED.CYCLES_LE_3_UOP_DELIV.CORE",
301        "SampleAfterValue": "2000003",
302        "UMask": "0x1"
303    }
304]