1[ 2 { 3 "BriefDescription": "Counts the total number of branch instructions retired for all branch types.", 4 "EventCode": "0xc4", 5 "EventName": "BR_INST_RETIRED.ALL_BRANCHES", 6 "PEBS": "1", 7 "PublicDescription": "Counts the total number of instructions in which the instruction pointer (IP) of the processor is resteered due to a branch instruction and the branch instruction successfully retires. All branch type instructions are accounted for.", 8 "SampleAfterValue": "200003" 9 }, 10 { 11 "BriefDescription": "Counts the number of near CALL branch instructions retired.", 12 "EventCode": "0xc4", 13 "EventName": "BR_INST_RETIRED.CALL", 14 "PEBS": "1", 15 "SampleAfterValue": "200003", 16 "UMask": "0xf9" 17 }, 18 { 19 "BriefDescription": "Counts the number of far branch instructions retired, includes far jump, far call and return, and interrupt call and return.", 20 "EventCode": "0xc4", 21 "EventName": "BR_INST_RETIRED.FAR_BRANCH", 22 "PEBS": "1", 23 "SampleAfterValue": "200003", 24 "UMask": "0xbf" 25 }, 26 { 27 "BriefDescription": "Counts the number of near indirect CALL branch instructions retired.", 28 "EventCode": "0xc4", 29 "EventName": "BR_INST_RETIRED.IND_CALL", 30 "PEBS": "1", 31 "SampleAfterValue": "200003", 32 "UMask": "0xfb" 33 }, 34 { 35 "BriefDescription": "Counts the number of retired JCC (Jump on Conditional Code) branch instructions retired, includes both taken and not taken branches.", 36 "EventCode": "0xc4", 37 "EventName": "BR_INST_RETIRED.JCC", 38 "PEBS": "1", 39 "SampleAfterValue": "200003", 40 "UMask": "0x7e" 41 }, 42 { 43 "BriefDescription": "Counts the number of near indirect JMP and near indirect CALL branch instructions retired.", 44 "EventCode": "0xc4", 45 "EventName": "BR_INST_RETIRED.NON_RETURN_IND", 46 "PEBS": "1", 47 "SampleAfterValue": "200003", 48 "UMask": "0xeb" 49 }, 50 { 51 "BriefDescription": "Counts the number of near relative CALL branch instructions retired.", 52 "EventCode": "0xc4", 53 "EventName": "BR_INST_RETIRED.REL_CALL", 54 "PEBS": "1", 55 "SampleAfterValue": "200003", 56 "UMask": "0xfd" 57 }, 58 { 59 "BriefDescription": "Counts the number of near RET branch instructions retired.", 60 "EventCode": "0xc4", 61 "EventName": "BR_INST_RETIRED.RETURN", 62 "PEBS": "1", 63 "SampleAfterValue": "200003", 64 "UMask": "0xf7" 65 }, 66 { 67 "BriefDescription": "Counts the number of taken JCC (Jump on Conditional Code) branch instructions retired.", 68 "EventCode": "0xc4", 69 "EventName": "BR_INST_RETIRED.TAKEN_JCC", 70 "PEBS": "1", 71 "SampleAfterValue": "200003", 72 "UMask": "0xfe" 73 }, 74 { 75 "BriefDescription": "Counts the total number of mispredicted branch instructions retired for all branch types.", 76 "EventCode": "0xc5", 77 "EventName": "BR_MISP_RETIRED.ALL_BRANCHES", 78 "PEBS": "1", 79 "PublicDescription": "Counts the total number of mispredicted branch instructions retired. All branch type instructions are accounted for. Prediction of the branch target address enables the processor to begin executing instructions before the non-speculative execution path is known. The branch prediction unit (BPU) predicts the target address based on the instruction pointer (IP) of the branch and on the execution path through which execution reached this IP. A branch misprediction occurs when the prediction is wrong, and results in discarding all instructions executed in the speculative path and re-fetching from the correct path.", 80 "SampleAfterValue": "200003" 81 }, 82 { 83 "BriefDescription": "Counts the number of mispredicted near indirect CALL branch instructions retired.", 84 "EventCode": "0xc5", 85 "EventName": "BR_MISP_RETIRED.IND_CALL", 86 "PEBS": "1", 87 "SampleAfterValue": "200003", 88 "UMask": "0xfb" 89 }, 90 { 91 "BriefDescription": "Counts the number of mispredicted JCC (Jump on Conditional Code) branch instructions retired.", 92 "EventCode": "0xc5", 93 "EventName": "BR_MISP_RETIRED.JCC", 94 "PEBS": "1", 95 "SampleAfterValue": "200003", 96 "UMask": "0x7e" 97 }, 98 { 99 "BriefDescription": "Counts the number of mispredicted near indirect JMP and near indirect CALL branch instructions retired.", 100 "EventCode": "0xc5", 101 "EventName": "BR_MISP_RETIRED.NON_RETURN_IND", 102 "PEBS": "1", 103 "SampleAfterValue": "200003", 104 "UMask": "0xeb" 105 }, 106 { 107 "BriefDescription": "Counts the number of mispredicted near RET branch instructions retired.", 108 "EventCode": "0xc5", 109 "EventName": "BR_MISP_RETIRED.RETURN", 110 "PEBS": "1", 111 "SampleAfterValue": "200003", 112 "UMask": "0xf7" 113 }, 114 { 115 "BriefDescription": "Counts the number of mispredicted taken JCC (Jump on Conditional Code) branch instructions retired.", 116 "EventCode": "0xc5", 117 "EventName": "BR_MISP_RETIRED.TAKEN_JCC", 118 "PEBS": "1", 119 "SampleAfterValue": "200003", 120 "UMask": "0xfe" 121 }, 122 { 123 "BriefDescription": "Counts the total number of BTCLEARS.", 124 "EventCode": "0xe8", 125 "EventName": "BTCLEAR.ANY", 126 "PublicDescription": "Counts the total number of BTCLEARS which occurs when the Branch Target Buffer (BTB) predicts a taken branch.", 127 "SampleAfterValue": "200003" 128 }, 129 { 130 "BriefDescription": "Counts the number of unhalted core clock cycles. (Fixed event)", 131 "EventName": "CPU_CLK_UNHALTED.CORE", 132 "PublicDescription": "Counts the number of core cycles while the core is not in a halt state. The core enters the halt state when it is running the HLT instruction. The core frequency may change from time to time. For this reason this event may have a changing ratio with regards to time. This event uses fixed counter 1.", 133 "SampleAfterValue": "2000003", 134 "UMask": "0x2" 135 }, 136 { 137 "BriefDescription": "Counts the number of unhalted core clock cycles.", 138 "EventCode": "0x3c", 139 "EventName": "CPU_CLK_UNHALTED.CORE_P", 140 "PublicDescription": "Counts the number of core cycles while the core is not in a halt state. The core enters the halt state when it is running the HLT instruction. The core frequency may change from time to time. For this reason this event may have a changing ratio with regards to time. This event uses a programmable general purpose performance counter.", 141 "SampleAfterValue": "2000003" 142 }, 143 { 144 "BriefDescription": "Counts the number of unhalted reference clock cycles at TSC frequency.", 145 "EventCode": "0x3c", 146 "EventName": "CPU_CLK_UNHALTED.REF", 147 "PublicDescription": "Counts the number of reference cycles that the core is not in a halt state. The core enters the halt state when it is running the HLT instruction. This event is not affected by core frequency changes and increments at a fixed frequency that is also used for the Time Stamp Counter (TSC). This event uses fixed counter 2.", 148 "SampleAfterValue": "2000003", 149 "UMask": "0x1" 150 }, 151 { 152 "BriefDescription": "Counts the number of unhalted reference clock cycles at TSC frequency. (Fixed event)", 153 "EventName": "CPU_CLK_UNHALTED.REF_TSC", 154 "PublicDescription": "Counts the number of reference cycles that the core is not in a halt state. The core enters the halt state when it is running the HLT instruction. This event is not affected by core frequency changes and increments at a fixed frequency that is also used for the Time Stamp Counter (TSC). This event uses fixed counter 2.", 155 "SampleAfterValue": "2000003", 156 "UMask": "0x3" 157 }, 158 { 159 "BriefDescription": "Counts the number of unhalted reference clock cycles at TSC frequency.", 160 "EventCode": "0x3c", 161 "EventName": "CPU_CLK_UNHALTED.REF_TSC_P", 162 "PublicDescription": "Counts the number of reference cycles that the core is not in a halt state. The core enters the halt state when it is running the HLT instruction. This event is not affected by core frequency changes and increments at a fixed frequency that is also used for the Time Stamp Counter (TSC). This event uses a programmable general purpose performance counter.", 163 "SampleAfterValue": "2000003", 164 "UMask": "0x1" 165 }, 166 { 167 "BriefDescription": "This event is deprecated.", 168 "EventCode": "0xcd", 169 "EventName": "CYCLES_DIV_BUSY.ANY", 170 "SampleAfterValue": "2000003" 171 }, 172 { 173 "BriefDescription": "Counts the number of cycles the integer divider is busy.", 174 "EventCode": "0xcd", 175 "EventName": "CYCLES_DIV_BUSY.IDIV", 176 "PublicDescription": "Counts the number of cycles the integer divider is busy. Does not imply a stall waiting for the divider.", 177 "SampleAfterValue": "200003", 178 "UMask": "0x1" 179 }, 180 { 181 "BriefDescription": "Counts the total number of instructions retired. (Fixed event)", 182 "EventName": "INST_RETIRED.ANY", 183 "PEBS": "1", 184 "PublicDescription": "Counts the total number of instructions that retired. For instructions that consist of multiple uops, this event counts the retirement of the last uop of the instruction. This event continues counting during hardware interrupts, traps, and inside interrupt handlers. This event uses fixed counter 0.", 185 "SampleAfterValue": "2000003", 186 "UMask": "0x1" 187 }, 188 { 189 "BriefDescription": "Counts the total number of instructions retired.", 190 "EventCode": "0xc0", 191 "EventName": "INST_RETIRED.ANY_P", 192 "PEBS": "1", 193 "PublicDescription": "Counts the total number of instructions that retired. For instructions that consist of multiple uops, this event counts the retirement of the last uop of the instruction. This event continues counting during hardware interrupts, traps, and inside interrupt handlers. This event uses a programmable general purpose performance counter.", 194 "SampleAfterValue": "2000003" 195 }, 196 { 197 "BriefDescription": "Counts the number of retired loads that are blocked because it initially appears to be store forward blocked, but subsequently is shown not to be blocked based on 4K alias check.", 198 "EventCode": "0x03", 199 "EventName": "LD_BLOCKS.4K_ALIAS", 200 "PEBS": "1", 201 "SampleAfterValue": "1000003", 202 "UMask": "0x4" 203 }, 204 { 205 "BriefDescription": "Counts the number of retired loads that are blocked for any of the following reasons: DTLB miss, address alias, store forward or data unknown (includes memory disambiguation blocks and ESP consuming load blocks).", 206 "EventCode": "0x03", 207 "EventName": "LD_BLOCKS.ALL", 208 "PEBS": "1", 209 "SampleAfterValue": "1000003", 210 "UMask": "0x10" 211 }, 212 { 213 "BriefDescription": "Counts the number of retired loads that are blocked because its address exactly matches an older store whose data is not ready.", 214 "EventCode": "0x03", 215 "EventName": "LD_BLOCKS.DATA_UNKNOWN", 216 "PEBS": "1", 217 "SampleAfterValue": "1000003", 218 "UMask": "0x1" 219 }, 220 { 221 "BriefDescription": "Counts the number of retired loads that are blocked because its address partially overlapped with an older store.", 222 "EventCode": "0x03", 223 "EventName": "LD_BLOCKS.STORE_FORWARD", 224 "PEBS": "1", 225 "SampleAfterValue": "1000003", 226 "UMask": "0x2" 227 }, 228 { 229 "BriefDescription": "Counts the total number of machine clears for any reason including, but not limited to, memory ordering, memory disambiguation, SMC, and FP assist.", 230 "EventCode": "0xc3", 231 "EventName": "MACHINE_CLEARS.ANY", 232 "SampleAfterValue": "20003" 233 }, 234 { 235 "BriefDescription": "Counts the number of machine clears due to memory ordering in which an internal load passes an older store within the same CPU.", 236 "EventCode": "0xc3", 237 "EventName": "MACHINE_CLEARS.DISAMBIGUATION", 238 "SampleAfterValue": "20003", 239 "UMask": "0x8" 240 }, 241 { 242 "BriefDescription": "Counts the number of machine clears due to a page fault. Counts both I-Side and D-Side (Loads/Stores) page faults. A page fault occurs when either the page is not present, or an access violation occurs.", 243 "EventCode": "0xc3", 244 "EventName": "MACHINE_CLEARS.PAGE_FAULT", 245 "SampleAfterValue": "20003", 246 "UMask": "0x20" 247 }, 248 { 249 "BriefDescription": "Counts the number of machine clears due to program modifying data (self modifying code) within 1K of a recently fetched code page.", 250 "EventCode": "0xc3", 251 "EventName": "MACHINE_CLEARS.SMC", 252 "SampleAfterValue": "20003", 253 "UMask": "0x1" 254 }, 255 { 256 "BriefDescription": "Counts the total number of issue slots that were not consumed by the backend because allocation is stalled due to a mispredicted jump or a machine clear.", 257 "EventCode": "0x73", 258 "EventName": "TOPDOWN_BAD_SPECULATION.ALL", 259 "PublicDescription": "Counts the total number of issue slots that were not consumed by the backend because allocation is stalled due to a mispredicted jump or a machine clear. Only issue slots wasted due to fast nukes such as memory ordering nukes are counted. Other nukes are not accounted for. Counts all issue slots blocked during this recovery window including relevant microcode flows and while uops are not yet available in the instruction queue (IQ) even if an FE_bound event occurs during this period. Also includes the issue slots that were consumed by the backend but were thrown away because they were younger than the mispredict or machine clear.", 260 "SampleAfterValue": "1000003", 261 "UMask": "0x6" 262 }, 263 { 264 "BriefDescription": "Counts the number of issue slots every cycle that were not consumed by the backend due to fast nukes such as memory ordering and memory disambiguation machine clears.", 265 "EventCode": "0x73", 266 "EventName": "TOPDOWN_BAD_SPECULATION.FASTNUKE", 267 "SampleAfterValue": "1000003", 268 "UMask": "0x2" 269 }, 270 { 271 "BriefDescription": "Counts the total number of issue slots that were not consumed by the backend because allocation is stalled due to a machine clear (nuke) of any kind including memory ordering and memory disambiguation.", 272 "EventCode": "0x73", 273 "EventName": "TOPDOWN_BAD_SPECULATION.MACHINE_CLEARS", 274 "SampleAfterValue": "1000003", 275 "UMask": "0x2" 276 }, 277 { 278 "BriefDescription": "Counts the number of issue slots every cycle that were not consumed by the backend due to branch mispredicts.", 279 "EventCode": "0x73", 280 "EventName": "TOPDOWN_BAD_SPECULATION.MISPREDICT", 281 "SampleAfterValue": "1000003", 282 "UMask": "0x4" 283 }, 284 { 285 "BriefDescription": "This event is deprecated. Refer to new event TOPDOWN_BAD_SPECULATION.FASTNUKE", 286 "EventCode": "0x73", 287 "EventName": "TOPDOWN_BAD_SPECULATION.MONUKE", 288 "SampleAfterValue": "1000003", 289 "UMask": "0x2" 290 }, 291 { 292 "BriefDescription": "Counts the total number of issue slots every cycle that were not consumed by the backend due to backend stalls.", 293 "EventCode": "0x74", 294 "EventName": "TOPDOWN_BE_BOUND.ALL", 295 "SampleAfterValue": "1000003" 296 }, 297 { 298 "BriefDescription": "Counts the number of issue slots every cycle that were not consumed by the backend due to certain allocation restrictions.", 299 "EventCode": "0x74", 300 "EventName": "TOPDOWN_BE_BOUND.ALLOC_RESTRICTIONS", 301 "SampleAfterValue": "1000003", 302 "UMask": "0x1" 303 }, 304 { 305 "BriefDescription": "Counts the number of issue slots every cycle that were not consumed by the backend due to memory reservation stalls in which a scheduler is not able to accept uops.", 306 "EventCode": "0x74", 307 "EventName": "TOPDOWN_BE_BOUND.MEM_SCHEDULER", 308 "SampleAfterValue": "1000003", 309 "UMask": "0x2" 310 }, 311 { 312 "BriefDescription": "Counts the number of issue slots every cycle that were not consumed by the backend due to IEC or FPC RAT stalls, which can be due to FIQ or IEC reservation stalls in which the integer, floating point or SIMD scheduler is not able to accept uops.", 313 "EventCode": "0x74", 314 "EventName": "TOPDOWN_BE_BOUND.NON_MEM_SCHEDULER", 315 "SampleAfterValue": "1000003", 316 "UMask": "0x8" 317 }, 318 { 319 "BriefDescription": "Counts the number of issue slots every cycle that were not consumed by the backend due to the physical register file unable to accept an entry (marble stalls).", 320 "EventCode": "0x74", 321 "EventName": "TOPDOWN_BE_BOUND.REGISTER", 322 "SampleAfterValue": "1000003", 323 "UMask": "0x20" 324 }, 325 { 326 "BriefDescription": "Counts the number of issue slots every cycle that were not consumed by the backend due to the reorder buffer being full (ROB stalls).", 327 "EventCode": "0x74", 328 "EventName": "TOPDOWN_BE_BOUND.REORDER_BUFFER", 329 "SampleAfterValue": "1000003", 330 "UMask": "0x40" 331 }, 332 { 333 "BriefDescription": "Counts the number of issue slots every cycle that were not consumed by the backend due to scoreboards from the instruction queue (IQ), jump execution unit (JEU), or microcode sequencer (MS).", 334 "EventCode": "0x74", 335 "EventName": "TOPDOWN_BE_BOUND.SERIALIZATION", 336 "SampleAfterValue": "1000003", 337 "UMask": "0x10" 338 }, 339 { 340 "BriefDescription": "This event is deprecated.", 341 "EventCode": "0x74", 342 "EventName": "TOPDOWN_BE_BOUND.STORE_BUFFER", 343 "SampleAfterValue": "1000003", 344 "UMask": "0x4" 345 }, 346 { 347 "BriefDescription": "Counts the total number of issue slots every cycle that were not consumed by the backend due to frontend stalls.", 348 "EventCode": "0x71", 349 "EventName": "TOPDOWN_FE_BOUND.ALL", 350 "SampleAfterValue": "1000003" 351 }, 352 { 353 "BriefDescription": "Counts the number of issue slots every cycle that were not delivered by the frontend due to BACLEARS.", 354 "EventCode": "0x71", 355 "EventName": "TOPDOWN_FE_BOUND.BRANCH_DETECT", 356 "PublicDescription": "Counts the number of issue slots every cycle that were not delivered by the frontend due to BACLEARS, which occurs when the Branch Target Buffer (BTB) prediction or lack thereof, was corrected by a later branch predictor in the frontend. Includes BACLEARS due to all branch types including conditional and unconditional jumps, returns, and indirect branches.", 357 "SampleAfterValue": "1000003", 358 "UMask": "0x2" 359 }, 360 { 361 "BriefDescription": "Counts the number of issue slots every cycle that were not delivered by the frontend due to BTCLEARS.", 362 "EventCode": "0x71", 363 "EventName": "TOPDOWN_FE_BOUND.BRANCH_RESTEER", 364 "PublicDescription": "Counts the number of issue slots every cycle that were not delivered by the frontend due to BTCLEARS, which occurs when the Branch Target Buffer (BTB) predicts a taken branch.", 365 "SampleAfterValue": "1000003", 366 "UMask": "0x40" 367 }, 368 { 369 "BriefDescription": "Counts the number of issue slots every cycle that were not delivered by the frontend due to the microcode sequencer (MS).", 370 "EventCode": "0x71", 371 "EventName": "TOPDOWN_FE_BOUND.CISC", 372 "SampleAfterValue": "1000003", 373 "UMask": "0x1" 374 }, 375 { 376 "BriefDescription": "Counts the number of issue slots every cycle that were not delivered by the frontend due to decode stalls.", 377 "EventCode": "0x71", 378 "EventName": "TOPDOWN_FE_BOUND.DECODE", 379 "SampleAfterValue": "1000003", 380 "UMask": "0x8" 381 }, 382 { 383 "BriefDescription": "Counts the number of issue slots every cycle that were not delivered by the frontend due to ITLB misses.", 384 "EventCode": "0x71", 385 "EventName": "TOPDOWN_FE_BOUND.ITLB", 386 "PublicDescription": "Counts the number of issue slots every cycle that were not delivered by the frontend due to Instruction Table Lookaside Buffer (ITLB) misses.", 387 "SampleAfterValue": "1000003", 388 "UMask": "0x10" 389 }, 390 { 391 "BriefDescription": "Counts the number of issue slots every cycle that were not delivered by the frontend due to other common frontend stalls not categorized.", 392 "EventCode": "0x71", 393 "EventName": "TOPDOWN_FE_BOUND.OTHER", 394 "SampleAfterValue": "1000003", 395 "UMask": "0x80" 396 }, 397 { 398 "BriefDescription": "Counts the number of issue slots every cycle that were not delivered by the frontend due to wrong predecodes.", 399 "EventCode": "0x71", 400 "EventName": "TOPDOWN_FE_BOUND.PREDECODE", 401 "SampleAfterValue": "1000003", 402 "UMask": "0x4" 403 }, 404 { 405 "BriefDescription": "Counts the total number of consumed retirement slots.", 406 "EventCode": "0xc2", 407 "EventName": "TOPDOWN_RETIRING.ALL", 408 "PEBS": "1", 409 "SampleAfterValue": "1000003" 410 }, 411 { 412 "BriefDescription": "Counts the number of uops issued by the front end every cycle.", 413 "EventCode": "0x0e", 414 "EventName": "UOPS_ISSUED.ANY", 415 "PublicDescription": "Counts the number of uops issued by the front end every cycle. When 4-uops are requested and only 2-uops are delivered, the event counts 2. Uops_issued correlates to the number of ROB entries. If uop takes 2 ROB slots it counts as 2 uops_issued.", 416 "SampleAfterValue": "200003" 417 }, 418 { 419 "BriefDescription": "Counts the total number of uops retired.", 420 "EventCode": "0xc2", 421 "EventName": "UOPS_RETIRED.ALL", 422 "PEBS": "1", 423 "SampleAfterValue": "2000003" 424 }, 425 { 426 "BriefDescription": "Counts the number of integer divide uops retired.", 427 "EventCode": "0xc2", 428 "EventName": "UOPS_RETIRED.IDIV", 429 "PEBS": "1", 430 "SampleAfterValue": "2000003", 431 "UMask": "0x10" 432 }, 433 { 434 "BriefDescription": "Counts the number of uops that are from complex flows issued by the micro-sequencer (MS).", 435 "EventCode": "0xc2", 436 "EventName": "UOPS_RETIRED.MS", 437 "PEBS": "1", 438 "PublicDescription": "Counts the number of uops that are from complex flows issued by the Microcode Sequencer (MS). This includes uops from flows due to complex instructions, faults, assists, and inserted flows.", 439 "SampleAfterValue": "2000003", 440 "UMask": "0x1" 441 }, 442 { 443 "BriefDescription": "Counts the number of x87 uops retired, includes those in MS flows.", 444 "EventCode": "0xc2", 445 "EventName": "UOPS_RETIRED.X87", 446 "PEBS": "1", 447 "SampleAfterValue": "2000003", 448 "UMask": "0x2" 449 } 450] 451