1[ 2 { 3 "BriefDescription": "Retired branch instructions (Precise event capable)", 4 "CollectPEBSRecord": "2", 5 "Counter": "0,1,2,3", 6 "EventCode": "0xC4", 7 "EventName": "BR_INST_RETIRED.ALL_BRANCHES", 8 "PEBS": "2", 9 "PublicDescription": "Counts branch instructions retired for all branch types. This is an architectural performance event.", 10 "SampleAfterValue": "200003" 11 }, 12 { 13 "BriefDescription": "Retired taken branch instructions (Precise event capable)", 14 "CollectPEBSRecord": "1", 15 "Counter": "0,1,2,3", 16 "EventCode": "0xC4", 17 "EventName": "BR_INST_RETIRED.ALL_TAKEN_BRANCHES", 18 "PEBS": "2", 19 "PublicDescription": "Counts the number of taken branch instructions retired.", 20 "SampleAfterValue": "200003", 21 "UMask": "0x80" 22 }, 23 { 24 "BriefDescription": "Retired near call instructions (Precise event capable)", 25 "CollectPEBSRecord": "2", 26 "Counter": "0,1,2,3", 27 "EventCode": "0xC4", 28 "EventName": "BR_INST_RETIRED.CALL", 29 "PEBS": "2", 30 "PublicDescription": "Counts near CALL branch instructions retired.", 31 "SampleAfterValue": "200003", 32 "UMask": "0xf9" 33 }, 34 { 35 "BriefDescription": "Retired far branch instructions (Precise event capable)", 36 "CollectPEBSRecord": "2", 37 "Counter": "0,1,2,3", 38 "EventCode": "0xC4", 39 "EventName": "BR_INST_RETIRED.FAR_BRANCH", 40 "PEBS": "2", 41 "PublicDescription": "Counts far branch instructions retired. This includes far jump, far call and return, and Interrupt call and return.", 42 "SampleAfterValue": "200003", 43 "UMask": "0xbf" 44 }, 45 { 46 "BriefDescription": "Retired near indirect call instructions (Precise event capable)", 47 "CollectPEBSRecord": "2", 48 "Counter": "0,1,2,3", 49 "EventCode": "0xC4", 50 "EventName": "BR_INST_RETIRED.IND_CALL", 51 "PEBS": "2", 52 "PublicDescription": "Counts near indirect CALL branch instructions retired.", 53 "SampleAfterValue": "200003", 54 "UMask": "0xfb" 55 }, 56 { 57 "BriefDescription": "Retired conditional branch instructions (Precise event capable)", 58 "CollectPEBSRecord": "2", 59 "Counter": "0,1,2,3", 60 "EventCode": "0xC4", 61 "EventName": "BR_INST_RETIRED.JCC", 62 "PEBS": "2", 63 "PublicDescription": "Counts retired Jcc (Jump on Conditional Code/Jump if Condition is Met) branch instructions retired, including both when the branch was taken and when it was not taken.", 64 "SampleAfterValue": "200003", 65 "UMask": "0x7e" 66 }, 67 { 68 "BriefDescription": "Retired instructions of near indirect Jmp or call (Precise event capable)", 69 "CollectPEBSRecord": "2", 70 "Counter": "0,1,2,3", 71 "EventCode": "0xC4", 72 "EventName": "BR_INST_RETIRED.NON_RETURN_IND", 73 "PEBS": "2", 74 "PublicDescription": "Counts near indirect call or near indirect jmp branch instructions retired.", 75 "SampleAfterValue": "200003", 76 "UMask": "0xeb" 77 }, 78 { 79 "BriefDescription": "Retired near relative call instructions (Precise event capable)", 80 "CollectPEBSRecord": "2", 81 "Counter": "0,1,2,3", 82 "EventCode": "0xC4", 83 "EventName": "BR_INST_RETIRED.REL_CALL", 84 "PEBS": "2", 85 "PublicDescription": "Counts near relative CALL branch instructions retired.", 86 "SampleAfterValue": "200003", 87 "UMask": "0xfd" 88 }, 89 { 90 "BriefDescription": "Retired near return instructions (Precise event capable)", 91 "CollectPEBSRecord": "2", 92 "Counter": "0,1,2,3", 93 "EventCode": "0xC4", 94 "EventName": "BR_INST_RETIRED.RETURN", 95 "PEBS": "2", 96 "PublicDescription": "Counts near return branch instructions retired.", 97 "SampleAfterValue": "200003", 98 "UMask": "0xf7" 99 }, 100 { 101 "BriefDescription": "Retired conditional branch instructions that were taken (Precise event capable)", 102 "CollectPEBSRecord": "2", 103 "Counter": "0,1,2,3", 104 "EventCode": "0xC4", 105 "EventName": "BR_INST_RETIRED.TAKEN_JCC", 106 "PEBS": "2", 107 "PublicDescription": "Counts Jcc (Jump on Conditional Code/Jump if Condition is Met) branch instructions retired that were taken and does not count when the Jcc branch instruction were not taken.", 108 "SampleAfterValue": "200003", 109 "UMask": "0xfe" 110 }, 111 { 112 "BriefDescription": "Retired mispredicted branch instructions (Precise event capable)", 113 "CollectPEBSRecord": "2", 114 "Counter": "0,1,2,3", 115 "EventCode": "0xC5", 116 "EventName": "BR_MISP_RETIRED.ALL_BRANCHES", 117 "PEBS": "2", 118 "PublicDescription": "Counts mispredicted branch instructions retired including all branch types.", 119 "SampleAfterValue": "200003" 120 }, 121 { 122 "BriefDescription": "Retired mispredicted near indirect call instructions (Precise event capable)", 123 "CollectPEBSRecord": "2", 124 "Counter": "0,1,2,3", 125 "EventCode": "0xC5", 126 "EventName": "BR_MISP_RETIRED.IND_CALL", 127 "PEBS": "2", 128 "PublicDescription": "Counts mispredicted near indirect CALL branch instructions retired, where the target address taken was not what the processor predicted.", 129 "SampleAfterValue": "200003", 130 "UMask": "0xfb" 131 }, 132 { 133 "BriefDescription": "Retired mispredicted conditional branch instructions (Precise event capable)", 134 "CollectPEBSRecord": "2", 135 "Counter": "0,1,2,3", 136 "EventCode": "0xC5", 137 "EventName": "BR_MISP_RETIRED.JCC", 138 "PEBS": "2", 139 "PublicDescription": "Counts mispredicted retired Jcc (Jump on Conditional Code/Jump if Condition is Met) branch instructions retired, including both when the branch was supposed to be taken and when it was not supposed to be taken (but the processor predicted the opposite condition).", 140 "SampleAfterValue": "200003", 141 "UMask": "0x7e" 142 }, 143 { 144 "BriefDescription": "Retired mispredicted instructions of near indirect Jmp or near indirect call. (Precise event capable)", 145 "CollectPEBSRecord": "2", 146 "Counter": "0,1,2,3", 147 "EventCode": "0xC5", 148 "EventName": "BR_MISP_RETIRED.NON_RETURN_IND", 149 "PEBS": "2", 150 "PublicDescription": "Counts mispredicted branch instructions retired that were near indirect call or near indirect jmp, where the target address taken was not what the processor predicted.", 151 "SampleAfterValue": "200003", 152 "UMask": "0xeb" 153 }, 154 { 155 "BriefDescription": "Retired mispredicted near return instructions (Precise event capable)", 156 "CollectPEBSRecord": "2", 157 "Counter": "0,1,2,3", 158 "EventCode": "0xC5", 159 "EventName": "BR_MISP_RETIRED.RETURN", 160 "PEBS": "2", 161 "PublicDescription": "Counts mispredicted near RET branch instructions retired, where the return address taken was not what the processor predicted.", 162 "SampleAfterValue": "200003", 163 "UMask": "0xf7" 164 }, 165 { 166 "BriefDescription": "Retired mispredicted conditional branch instructions that were taken (Precise event capable)", 167 "CollectPEBSRecord": "2", 168 "Counter": "0,1,2,3", 169 "EventCode": "0xC5", 170 "EventName": "BR_MISP_RETIRED.TAKEN_JCC", 171 "PEBS": "2", 172 "PublicDescription": "Counts mispredicted retired Jcc (Jump on Conditional Code/Jump if Condition is Met) branch instructions retired that were supposed to be taken but the processor predicted that it would not be taken.", 173 "SampleAfterValue": "200003", 174 "UMask": "0xfe" 175 }, 176 { 177 "BriefDescription": "Core cycles when core is not halted (Fixed event)", 178 "Counter": "Fixed counter 1", 179 "EventName": "CPU_CLK_UNHALTED.CORE", 180 "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. In mobile systems the core frequency may change from time to time. For this reason this event may have a changing ratio with regards to time. This event uses fixed counter 1. You cannot collect a PEBs record for this event.", 181 "SampleAfterValue": "2000003", 182 "UMask": "0x2" 183 }, 184 { 185 "BriefDescription": "Core cycles when core is not halted", 186 "CollectPEBSRecord": "1", 187 "Counter": "0,1,2,3", 188 "EventCode": "0x3C", 189 "EventName": "CPU_CLK_UNHALTED.CORE_P", 190 "PublicDescription": "Core cycles when core is not halted. This event uses a (_P)rogrammable general purpose performance counter.", 191 "SampleAfterValue": "2000003" 192 }, 193 { 194 "BriefDescription": "Reference cycles when core is not halted", 195 "CollectPEBSRecord": "1", 196 "Counter": "0,1,2,3", 197 "EventCode": "0x3C", 198 "EventName": "CPU_CLK_UNHALTED.REF", 199 "PublicDescription": "Reference cycles when core is not halted. This event uses a programmable general purpose performance counter.", 200 "SampleAfterValue": "2000003", 201 "UMask": "0x1" 202 }, 203 { 204 "BriefDescription": "Reference cycles when core is not halted (Fixed event)", 205 "Counter": "Fixed counter 2", 206 "EventName": "CPU_CLK_UNHALTED.REF_TSC", 207 "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. In mobile systems the core frequency may change from time. This event is not affected by core frequency changes but counts as if the core is running at the maximum frequency all the time. This event uses fixed counter 2. You cannot collect a PEBs record for this event.", 208 "SampleAfterValue": "2000003", 209 "UMask": "0x3" 210 }, 211 { 212 "BriefDescription": "Cycles a divider is busy", 213 "CollectPEBSRecord": "1", 214 "Counter": "0,1,2,3", 215 "EventCode": "0xCD", 216 "EventName": "CYCLES_DIV_BUSY.ALL", 217 "PublicDescription": "Counts core cycles if either divide unit is busy.", 218 "SampleAfterValue": "2000003" 219 }, 220 { 221 "BriefDescription": "Cycles the integer divide unit is busy", 222 "CollectPEBSRecord": "1", 223 "Counter": "0,1,2,3", 224 "EventCode": "0xCD", 225 "EventName": "CYCLES_DIV_BUSY.IDIV", 226 "PublicDescription": "Counts core cycles the integer divide unit is busy.", 227 "SampleAfterValue": "200003", 228 "UMask": "0x1" 229 }, 230 { 231 "BriefDescription": "Instructions retired (Fixed event)", 232 "Counter": "Fixed counter 0", 233 "EventName": "INST_RETIRED.ANY", 234 "PublicDescription": "Counts the number of instructions that retire execution. For instructions that consist of multiple uops, this event counts the retirement of the last uop of the instruction. The counter continues counting during hardware interrupts, traps, and inside interrupt handlers. This event uses fixed counter 0. You cannot collect a PEBs record for this event.", 235 "SampleAfterValue": "2000003", 236 "UMask": "0x1" 237 }, 238 { 239 "BriefDescription": "Instructions retired (Precise event capable)", 240 "CollectPEBSRecord": "1", 241 "Counter": "0,1,2,3", 242 "EventCode": "0xC0", 243 "EventName": "INST_RETIRED.ANY_P", 244 "PEBS": "2", 245 "PublicDescription": "Counts the number of instructions that retire execution. For instructions that consist of multiple uops, this event counts the retirement of the last uop of the instruction. The event continues counting during hardware interrupts, traps, and inside interrupt handlers. This is an architectural performance event. This event uses a (_P)rogrammable general purpose performance counter. *This event is Precise Event capable: The EventingRIP field in the PEBS record is precise to the address of the instruction which caused the event. Note: Because PEBS records can be collected only on IA32_PMC0, only one event can use the PEBS facility at a time.", 246 "SampleAfterValue": "2000003" 247 }, 248 { 249 "BriefDescription": "Loads blocked because address has 4k partial address false dependence (Precise event capable)", 250 "CollectPEBSRecord": "2", 251 "Counter": "0,1,2,3", 252 "EventCode": "0x03", 253 "EventName": "LD_BLOCKS.4K_ALIAS", 254 "PEBS": "2", 255 "PublicDescription": "Counts loads that block because their address modulo 4K matches a pending store.", 256 "SampleAfterValue": "200003", 257 "UMask": "0x4" 258 }, 259 { 260 "BriefDescription": "Loads blocked (Precise event capable)", 261 "CollectPEBSRecord": "2", 262 "Counter": "0,1,2,3", 263 "EventCode": "0x03", 264 "EventName": "LD_BLOCKS.ALL_BLOCK", 265 "PEBS": "2", 266 "PublicDescription": "Counts anytime a load that retires is blocked for any reason.", 267 "SampleAfterValue": "200003", 268 "UMask": "0x10" 269 }, 270 { 271 "BriefDescription": "Loads blocked due to store data not ready (Precise event capable)", 272 "CollectPEBSRecord": "2", 273 "Counter": "0,1,2,3", 274 "EventCode": "0x03", 275 "EventName": "LD_BLOCKS.DATA_UNKNOWN", 276 "PEBS": "2", 277 "PublicDescription": "Counts a load blocked from using a store forward, but did not occur because the store data was not available at the right time. The forward might occur subsequently when the data is available.", 278 "SampleAfterValue": "200003", 279 "UMask": "0x1" 280 }, 281 { 282 "BriefDescription": "Loads blocked due to store forward restriction (Precise event capable)", 283 "CollectPEBSRecord": "2", 284 "Counter": "0,1,2,3", 285 "EventCode": "0x03", 286 "EventName": "LD_BLOCKS.STORE_FORWARD", 287 "PEBS": "2", 288 "PublicDescription": "Counts a load blocked from using a store forward because of an address/size mismatch, only one of the loads blocked from each store will be counted.", 289 "SampleAfterValue": "200003", 290 "UMask": "0x2" 291 }, 292 { 293 "BriefDescription": "Loads blocked because address in not in the UTLB (Precise event capable)", 294 "CollectPEBSRecord": "2", 295 "Counter": "0,1,2,3", 296 "EventCode": "0x03", 297 "EventName": "LD_BLOCKS.UTLB_MISS", 298 "PEBS": "2", 299 "PublicDescription": "Counts loads blocked because they are unable to find their physical address in the micro TLB (UTLB).", 300 "SampleAfterValue": "200003", 301 "UMask": "0x8" 302 }, 303 { 304 "BriefDescription": "All machine clears", 305 "CollectPEBSRecord": "1", 306 "Counter": "0,1,2,3", 307 "EventCode": "0xC3", 308 "EventName": "MACHINE_CLEARS.ALL", 309 "PublicDescription": "Counts machine clears for any reason.", 310 "SampleAfterValue": "200003" 311 }, 312 { 313 "BriefDescription": "Machine clears due to memory disambiguation", 314 "CollectPEBSRecord": "1", 315 "Counter": "0,1,2,3", 316 "EventCode": "0xC3", 317 "EventName": "MACHINE_CLEARS.DISAMBIGUATION", 318 "PublicDescription": "Counts machine clears due to memory disambiguation. Memory disambiguation happens when a load which has been issued conflicts with a previous unretired store in the pipeline whose address was not known at issue time, but is later resolved to be the same as the load address.", 319 "SampleAfterValue": "200003", 320 "UMask": "0x8" 321 }, 322 { 323 "BriefDescription": "Self-Modifying Code detected", 324 "CollectPEBSRecord": "1", 325 "Counter": "0,1,2,3", 326 "EventCode": "0xC3", 327 "EventName": "MACHINE_CLEARS.SMC", 328 "PublicDescription": "Counts the number of times that the processor detects that a program is writing to a code section and has to perform a machine clear because of that modification. Self-modifying code (SMC) causes a severe penalty in all Intel architecture processors.", 329 "SampleAfterValue": "200003", 330 "UMask": "0x1" 331 }, 332 { 333 "BriefDescription": "Uops issued to the back end per cycle", 334 "CollectPEBSRecord": "1", 335 "Counter": "0,1,2,3", 336 "EventCode": "0x0E", 337 "EventName": "UOPS_ISSUED.ANY", 338 "PublicDescription": "Counts uops issued by the front end and allocated into the back end of the machine. This event counts uops that retire as well as uops that were speculatively executed but didn't retire. The sort of speculative uops that might be counted includes, but is not limited to those uops issued in the shadow of a miss-predicted branch, those uops that are inserted during an assist (such as for a denormal floating point result), and (previously allocated) uops that might be canceled during a machine clear.", 339 "SampleAfterValue": "200003" 340 }, 341 { 342 "BriefDescription": "Uops requested but not-delivered to the back-end per cycle", 343 "CollectPEBSRecord": "1", 344 "Counter": "0,1,2,3", 345 "EventCode": "0x9C", 346 "EventName": "UOPS_NOT_DELIVERED.ANY", 347 "PublicDescription": "This event used to measure front-end inefficiencies. I.e. when front-end of the machine is not delivering uops to the back-end and the back-end has is not stalled. This event can be used to identify if the machine is truly front-end bound. When this event occurs, it is an indication that the front-end of the machine is operating at less than its theoretical peak performance. Background: We can think of the processor pipeline as being divided into 2 broader parts: Front-end and Back-end. Front-end is responsible for fetching the instruction, decoding into uops in machine understandable format and putting them into a uop queue to be consumed by back end. The back-end then takes these uops, allocates the required resources. When all resources are ready, uops are executed. If the back-end is not ready to accept uops from the front-end, then we do not want to count these as front-end bottlenecks. However, whenever we have bottlenecks in the back-end, we will have allocation unit stalls and eventually forcing the front-end to wait until the back-end is ready to receive more uops. This event counts only when back-end is requesting more uops and front-end is not able to provide them. When 3 uops are requested and no uops are delivered, the event counts 3. When 3 are requested, and only 1 is delivered, the event counts 2. When only 2 are delivered, the event counts 1. Alternatively stated, the event will not count if 3 uops are delivered, or if the back end is stalled and not requesting any uops at all. Counts indicate missed opportunities for the front-end to deliver a uop to the back end. Some examples of conditions that cause front-end efficiencies are: ICache misses, ITLB misses, and decoder restrictions that limit the front-end bandwidth. Known Issues: Some uops require multiple allocation slots. These uops will not be charged as a front end 'not delivered' opportunity, and will be regarded as a back end problem. For example, the INC instruction has one uop that requires 2 issue slots. A stream of INC instructions will not count as UOPS_NOT_DELIVERED, even though only one instruction can be issued per clock. The low uop issue rate for a stream of INC instructions is considered to be a back end issue.", 348 "SampleAfterValue": "200003" 349 }, 350 { 351 "BriefDescription": "Uops retired (Precise event capable)", 352 "CollectPEBSRecord": "2", 353 "Counter": "0,1,2,3", 354 "EventCode": "0xC2", 355 "EventName": "UOPS_RETIRED.ANY", 356 "PEBS": "2", 357 "PublicDescription": "Counts uops which retired.", 358 "SampleAfterValue": "2000003" 359 }, 360 { 361 "BriefDescription": "Integer divide uops retired. (Precise Event Capable)", 362 "CollectPEBSRecord": "1", 363 "Counter": "0,1,2,3", 364 "EventCode": "0xC2", 365 "EventName": "UOPS_RETIRED.IDIV", 366 "PEBS": "2", 367 "PublicDescription": "Counts the number of integer divide uops retired.", 368 "SampleAfterValue": "2000003", 369 "UMask": "0x10" 370 }, 371 { 372 "BriefDescription": "MS uops retired (Precise event capable)", 373 "CollectPEBSRecord": "2", 374 "Counter": "0,1,2,3", 375 "EventCode": "0xC2", 376 "EventName": "UOPS_RETIRED.MS", 377 "PEBS": "2", 378 "PublicDescription": "Counts uops retired that are from the complex flows issued by the micro-sequencer (MS). Counts both the uops from a micro-coded instruction, and the uops that might be generated from a micro-coded assist.", 379 "SampleAfterValue": "2000003", 380 "UMask": "0x1" 381 } 382]