1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause-FreeBSD 3 * 4 * Copyright (c) 2005 Joseph Koshy 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions 9 * are met: 10 * 1. Redistributions of source code must retain the above copyright 11 * notice, this list of conditions and the following disclaimer. 12 * 2. Redistributions in binary form must reproduce the above copyright 13 * notice, this list of conditions and the following disclaimer in the 14 * documentation and/or other materials provided with the distribution. 15 * 16 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 17 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 18 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 19 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 20 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 21 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 22 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 23 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 24 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26 * SUCH DAMAGE. 27 * 28 * $FreeBSD$ 29 */ 30 31 #ifndef _DEV_HWPMC_PMC_EVENTS_H_ 32 #define _DEV_HWPMC_PMC_EVENTS_H_ 33 34 /* 35 * Note: Documentation on adding events can be found both in 36 * the source tree at src/share/doc/papers/hwpmc/hwpmc.ms 37 * as well as on-line at: 38 * 39 * http://wiki.freebsd.org/PmcTools/PmcHardwareHowTo 40 * 41 * Please refer to those resources before you attempt to modify 42 * this file or the hwpmc driver/subsystem. 43 */ 44 45 /* * PMC event codes. 46 * 47 * __PMC_EV(CLASS, SYMBOLIC-NAME) 48 * 49 */ 50 51 /* 52 * AMD K7 Events, from "The AMD Athlon(tm) Processor x86 Code 53 * Optimization Guide" [Doc#22007K, Feb 2002] 54 */ 55 56 #define __PMC_EV_K7() \ 57 __PMC_EV(K7, DC_ACCESSES) \ 58 __PMC_EV(K7, DC_MISSES) \ 59 __PMC_EV(K7, DC_REFILLS_FROM_L2) \ 60 __PMC_EV(K7, DC_REFILLS_FROM_SYSTEM) \ 61 __PMC_EV(K7, DC_WRITEBACKS) \ 62 __PMC_EV(K7, L1_DTLB_MISS_AND_L2_DTLB_HITS) \ 63 __PMC_EV(K7, L1_AND_L2_DTLB_MISSES) \ 64 __PMC_EV(K7, MISALIGNED_REFERENCES) \ 65 __PMC_EV(K7, IC_FETCHES) \ 66 __PMC_EV(K7, IC_MISSES) \ 67 __PMC_EV(K7, L1_ITLB_MISSES) \ 68 __PMC_EV(K7, L1_L2_ITLB_MISSES) \ 69 __PMC_EV(K7, RETIRED_INSTRUCTIONS) \ 70 __PMC_EV(K7, RETIRED_OPS) \ 71 __PMC_EV(K7, RETIRED_BRANCHES) \ 72 __PMC_EV(K7, RETIRED_BRANCHES_MISPREDICTED) \ 73 __PMC_EV(K7, RETIRED_TAKEN_BRANCHES) \ 74 __PMC_EV(K7, RETIRED_TAKEN_BRANCHES_MISPREDICTED) \ 75 __PMC_EV(K7, RETIRED_FAR_CONTROL_TRANSFERS) \ 76 __PMC_EV(K7, RETIRED_RESYNC_BRANCHES) \ 77 __PMC_EV(K7, INTERRUPTS_MASKED_CYCLES) \ 78 __PMC_EV(K7, INTERRUPTS_MASKED_WHILE_PENDING_CYCLES) \ 79 __PMC_EV(K7, HARDWARE_INTERRUPTS) 80 81 #define PMC_EV_K7_FIRST PMC_EV_K7_DC_ACCESSES 82 #define PMC_EV_K7_LAST PMC_EV_K7_HARDWARE_INTERRUPTS 83 84 85 /* 86 * Intel P4 Events, from "IA-32 Intel(r) Architecture Software 87 * Developer's Manual, Volume 3: System Programming Guide" [245472-012] 88 */ 89 90 #define __PMC_EV_P4() \ 91 __PMC_EV(P4, TC_DELIVER_MODE) \ 92 __PMC_EV(P4, BPU_FETCH_REQUEST) \ 93 __PMC_EV(P4, ITLB_REFERENCE) \ 94 __PMC_EV(P4, MEMORY_CANCEL) \ 95 __PMC_EV(P4, MEMORY_COMPLETE) \ 96 __PMC_EV(P4, LOAD_PORT_REPLAY) \ 97 __PMC_EV(P4, STORE_PORT_REPLAY) \ 98 __PMC_EV(P4, MOB_LOAD_REPLAY) \ 99 __PMC_EV(P4, PAGE_WALK_TYPE) \ 100 __PMC_EV(P4, BSQ_CACHE_REFERENCE) \ 101 __PMC_EV(P4, IOQ_ALLOCATION) \ 102 __PMC_EV(P4, IOQ_ACTIVE_ENTRIES) \ 103 __PMC_EV(P4, FSB_DATA_ACTIVITY) \ 104 __PMC_EV(P4, BSQ_ALLOCATION) \ 105 __PMC_EV(P4, BSQ_ACTIVE_ENTRIES) \ 106 __PMC_EV(P4, SSE_INPUT_ASSIST) \ 107 __PMC_EV(P4, PACKED_SP_UOP) \ 108 __PMC_EV(P4, PACKED_DP_UOP) \ 109 __PMC_EV(P4, SCALAR_SP_UOP) \ 110 __PMC_EV(P4, SCALAR_DP_UOP) \ 111 __PMC_EV(P4, 64BIT_MMX_UOP) \ 112 __PMC_EV(P4, 128BIT_MMX_UOP) \ 113 __PMC_EV(P4, X87_FP_UOP) \ 114 __PMC_EV(P4, X87_SIMD_MOVES_UOP) \ 115 __PMC_EV(P4, GLOBAL_POWER_EVENTS) \ 116 __PMC_EV(P4, TC_MS_XFER) \ 117 __PMC_EV(P4, UOP_QUEUE_WRITES) \ 118 __PMC_EV(P4, RETIRED_MISPRED_BRANCH_TYPE) \ 119 __PMC_EV(P4, RETIRED_BRANCH_TYPE) \ 120 __PMC_EV(P4, RESOURCE_STALL) \ 121 __PMC_EV(P4, WC_BUFFER) \ 122 __PMC_EV(P4, B2B_CYCLES) \ 123 __PMC_EV(P4, BNR) \ 124 __PMC_EV(P4, SNOOP) \ 125 __PMC_EV(P4, RESPONSE) \ 126 __PMC_EV(P4, FRONT_END_EVENT) \ 127 __PMC_EV(P4, EXECUTION_EVENT) \ 128 __PMC_EV(P4, REPLAY_EVENT) \ 129 __PMC_EV(P4, INSTR_RETIRED) \ 130 __PMC_EV(P4, UOPS_RETIRED) \ 131 __PMC_EV(P4, UOP_TYPE) \ 132 __PMC_EV(P4, BRANCH_RETIRED) \ 133 __PMC_EV(P4, MISPRED_BRANCH_RETIRED) \ 134 __PMC_EV(P4, X87_ASSIST) \ 135 __PMC_EV(P4, MACHINE_CLEAR) 136 137 #define PMC_EV_P4_FIRST PMC_EV_P4_TC_DELIVER_MODE 138 #define PMC_EV_P4_LAST PMC_EV_P4_MACHINE_CLEAR 139 140 /* Intel Pentium Pro, P-II, P-III and Pentium-M style events */ 141 142 #define __PMC_EV_P6() \ 143 __PMC_EV(P6, DATA_MEM_REFS) \ 144 __PMC_EV(P6, DCU_LINES_IN) \ 145 __PMC_EV(P6, DCU_M_LINES_IN) \ 146 __PMC_EV(P6, DCU_M_LINES_OUT) \ 147 __PMC_EV(P6, DCU_MISS_OUTSTANDING) \ 148 __PMC_EV(P6, IFU_FETCH) \ 149 __PMC_EV(P6, IFU_FETCH_MISS) \ 150 __PMC_EV(P6, ITLB_MISS) \ 151 __PMC_EV(P6, IFU_MEM_STALL) \ 152 __PMC_EV(P6, ILD_STALL) \ 153 __PMC_EV(P6, L2_IFETCH) \ 154 __PMC_EV(P6, L2_LD) \ 155 __PMC_EV(P6, L2_ST) \ 156 __PMC_EV(P6, L2_LINES_IN) \ 157 __PMC_EV(P6, L2_LINES_OUT) \ 158 __PMC_EV(P6, L2_M_LINES_INM) \ 159 __PMC_EV(P6, L2_M_LINES_OUTM) \ 160 __PMC_EV(P6, L2_RQSTS) \ 161 __PMC_EV(P6, L2_ADS) \ 162 __PMC_EV(P6, L2_DBUS_BUSY) \ 163 __PMC_EV(P6, L2_DBUS_BUSY_RD) \ 164 __PMC_EV(P6, BUS_DRDY_CLOCKS) \ 165 __PMC_EV(P6, BUS_LOCK_CLOCKS) \ 166 __PMC_EV(P6, BUS_REQ_OUTSTANDING) \ 167 __PMC_EV(P6, BUS_TRAN_BRD) \ 168 __PMC_EV(P6, BUS_TRAN_RFO) \ 169 __PMC_EV(P6, BUS_TRANS_WB) \ 170 __PMC_EV(P6, BUS_TRAN_IFETCH) \ 171 __PMC_EV(P6, BUS_TRAN_INVAL) \ 172 __PMC_EV(P6, BUS_TRAN_PWR) \ 173 __PMC_EV(P6, BUS_TRANS_P) \ 174 __PMC_EV(P6, BUS_TRANS_IO) \ 175 __PMC_EV(P6, BUS_TRAN_DEF) \ 176 __PMC_EV(P6, BUS_TRAN_BURST) \ 177 __PMC_EV(P6, BUS_TRAN_ANY) \ 178 __PMC_EV(P6, BUS_TRAN_MEM) \ 179 __PMC_EV(P6, BUS_DATA_RCV) \ 180 __PMC_EV(P6, BUS_BNR_DRV) \ 181 __PMC_EV(P6, BUS_HIT_DRV) \ 182 __PMC_EV(P6, BUS_HITM_DRV) \ 183 __PMC_EV(P6, BUS_SNOOP_STALL) \ 184 __PMC_EV(P6, FLOPS) \ 185 __PMC_EV(P6, FP_COMPS_OPS_EXE) \ 186 __PMC_EV(P6, FP_ASSIST) \ 187 __PMC_EV(P6, MUL) \ 188 __PMC_EV(P6, DIV) \ 189 __PMC_EV(P6, CYCLES_DIV_BUSY) \ 190 __PMC_EV(P6, LD_BLOCKS) \ 191 __PMC_EV(P6, SB_DRAINS) \ 192 __PMC_EV(P6, MISALIGN_MEM_REF) \ 193 __PMC_EV(P6, EMON_KNI_PREF_DISPATCHED) \ 194 __PMC_EV(P6, EMON_KNI_PREF_MISS) \ 195 __PMC_EV(P6, INST_RETIRED) \ 196 __PMC_EV(P6, UOPS_RETIRED) \ 197 __PMC_EV(P6, INST_DECODED) \ 198 __PMC_EV(P6, EMON_KNI_INST_RETIRED) \ 199 __PMC_EV(P6, EMON_KNI_COMP_INST_RET) \ 200 __PMC_EV(P6, HW_INT_RX) \ 201 __PMC_EV(P6, CYCLES_INT_MASKED) \ 202 __PMC_EV(P6, CYCLES_INT_PENDING_AND_MASKED) \ 203 __PMC_EV(P6, BR_INST_RETIRED) \ 204 __PMC_EV(P6, BR_MISS_PRED_RETIRED) \ 205 __PMC_EV(P6, BR_TAKEN_RETIRED) \ 206 __PMC_EV(P6, BR_MISS_PRED_TAKEN_RET) \ 207 __PMC_EV(P6, BR_INST_DECODED) \ 208 __PMC_EV(P6, BTB_MISSES) \ 209 __PMC_EV(P6, BR_BOGUS) \ 210 __PMC_EV(P6, BACLEARS) \ 211 __PMC_EV(P6, RESOURCE_STALLS) \ 212 __PMC_EV(P6, PARTIAL_RAT_STALLS) \ 213 __PMC_EV(P6, SEGMENT_REG_LOADS) \ 214 __PMC_EV(P6, CPU_CLK_UNHALTED) \ 215 __PMC_EV(P6, MMX_INSTR_EXEC) \ 216 __PMC_EV(P6, MMX_SAT_INSTR_EXEC) \ 217 __PMC_EV(P6, MMX_UOPS_EXEC) \ 218 __PMC_EV(P6, MMX_INSTR_TYPE_EXEC) \ 219 __PMC_EV(P6, FP_MMX_TRANS) \ 220 __PMC_EV(P6, MMX_ASSIST) \ 221 __PMC_EV(P6, MMX_INSTR_RET) \ 222 __PMC_EV(P6, SEG_RENAME_STALLS) \ 223 __PMC_EV(P6, SEG_REG_RENAMES) \ 224 __PMC_EV(P6, RET_SEG_RENAMES) \ 225 __PMC_EV(P6, EMON_EST_TRANS) \ 226 __PMC_EV(P6, EMON_THERMAL_TRIP) \ 227 __PMC_EV(P6, BR_INST_EXEC) \ 228 __PMC_EV(P6, BR_MISSP_EXEC) \ 229 __PMC_EV(P6, BR_BAC_MISSP_EXEC) \ 230 __PMC_EV(P6, BR_CND_EXEC) \ 231 __PMC_EV(P6, BR_CND_MISSP_EXEC) \ 232 __PMC_EV(P6, BR_IND_EXEC) \ 233 __PMC_EV(P6, BR_IND_MISSP_EXEC) \ 234 __PMC_EV(P6, BR_RET_EXEC) \ 235 __PMC_EV(P6, BR_RET_MISSP_EXEC) \ 236 __PMC_EV(P6, BR_RET_BAC_MISSP_EXEC) \ 237 __PMC_EV(P6, BR_CALL_EXEC) \ 238 __PMC_EV(P6, BR_CALL_MISSP_EXEC) \ 239 __PMC_EV(P6, BR_IND_CALL_EXEC) \ 240 __PMC_EV(P6, EMON_SIMD_INSTR_RETIRED) \ 241 __PMC_EV(P6, EMON_SYNCH_UOPS) \ 242 __PMC_EV(P6, EMON_ESP_UOPS) \ 243 __PMC_EV(P6, EMON_FUSED_UOPS_RET) \ 244 __PMC_EV(P6, EMON_UNFUSION) \ 245 __PMC_EV(P6, EMON_PREF_RQSTS_UP) \ 246 __PMC_EV(P6, EMON_PREF_RQSTS_DN) \ 247 __PMC_EV(P6, EMON_SSE_SSE2_INST_RETIRED) \ 248 __PMC_EV(P6, EMON_SSE_SSE2_COMP_INST_RETIRED) 249 250 251 #define PMC_EV_P6_FIRST PMC_EV_P6_DATA_MEM_REFS 252 #define PMC_EV_P6_LAST PMC_EV_P6_EMON_SSE_SSE2_COMP_INST_RETIRED 253 254 /* AMD K8 PMCs */ 255 256 #define __PMC_EV_K8() \ 257 __PMC_EV(K8, FP_DISPATCHED_FPU_OPS) \ 258 __PMC_EV(K8, FP_CYCLES_WITH_NO_FPU_OPS_RETIRED) \ 259 __PMC_EV(K8, FP_DISPATCHED_FPU_FAST_FLAG_OPS) \ 260 __PMC_EV(K8, LS_SEGMENT_REGISTER_LOAD) \ 261 __PMC_EV(K8, LS_MICROARCHITECTURAL_RESYNC_BY_SELF_MODIFYING_CODE) \ 262 __PMC_EV(K8, LS_MICROARCHITECTURAL_RESYNC_BY_SNOOP) \ 263 __PMC_EV(K8, LS_BUFFER2_FULL) \ 264 __PMC_EV(K8, LS_LOCKED_OPERATION) \ 265 __PMC_EV(K8, LS_MICROARCHITECTURAL_LATE_CANCEL) \ 266 __PMC_EV(K8, LS_RETIRED_CFLUSH_INSTRUCTIONS) \ 267 __PMC_EV(K8, LS_RETIRED_CPUID_INSTRUCTIONS) \ 268 __PMC_EV(K8, DC_ACCESS) \ 269 __PMC_EV(K8, DC_MISS) \ 270 __PMC_EV(K8, DC_REFILL_FROM_L2) \ 271 __PMC_EV(K8, DC_REFILL_FROM_SYSTEM) \ 272 __PMC_EV(K8, DC_COPYBACK) \ 273 __PMC_EV(K8, DC_L1_DTLB_MISS_AND_L2_DTLB_HIT) \ 274 __PMC_EV(K8, DC_L1_DTLB_MISS_AND_L2_DTLB_MISS) \ 275 __PMC_EV(K8, DC_MISALIGNED_DATA_REFERENCE) \ 276 __PMC_EV(K8, DC_MICROARCHITECTURAL_LATE_CANCEL) \ 277 __PMC_EV(K8, DC_MICROARCHITECTURAL_EARLY_CANCEL) \ 278 __PMC_EV(K8, DC_ONE_BIT_ECC_ERROR) \ 279 __PMC_EV(K8, DC_DISPATCHED_PREFETCH_INSTRUCTIONS) \ 280 __PMC_EV(K8, DC_DCACHE_ACCESSES_BY_LOCKS) \ 281 __PMC_EV(K8, BU_CPU_CLK_UNHALTED) \ 282 __PMC_EV(K8, BU_INTERNAL_L2_REQUEST) \ 283 __PMC_EV(K8, BU_FILL_REQUEST_L2_MISS) \ 284 __PMC_EV(K8, BU_FILL_INTO_L2) \ 285 __PMC_EV(K8, IC_FETCH) \ 286 __PMC_EV(K8, IC_MISS) \ 287 __PMC_EV(K8, IC_REFILL_FROM_L2) \ 288 __PMC_EV(K8, IC_REFILL_FROM_SYSTEM) \ 289 __PMC_EV(K8, IC_L1_ITLB_MISS_AND_L2_ITLB_HIT) \ 290 __PMC_EV(K8, IC_L1_ITLB_MISS_AND_L2_ITLB_MISS) \ 291 __PMC_EV(K8, IC_MICROARCHITECTURAL_RESYNC_BY_SNOOP) \ 292 __PMC_EV(K8, IC_INSTRUCTION_FETCH_STALL) \ 293 __PMC_EV(K8, IC_RETURN_STACK_HIT) \ 294 __PMC_EV(K8, IC_RETURN_STACK_OVERFLOW) \ 295 __PMC_EV(K8, FR_RETIRED_X86_INSTRUCTIONS) \ 296 __PMC_EV(K8, FR_RETIRED_UOPS) \ 297 __PMC_EV(K8, FR_RETIRED_BRANCHES) \ 298 __PMC_EV(K8, FR_RETIRED_BRANCHES_MISPREDICTED) \ 299 __PMC_EV(K8, FR_RETIRED_TAKEN_BRANCHES) \ 300 __PMC_EV(K8, FR_RETIRED_TAKEN_BRANCHES_MISPREDICTED) \ 301 __PMC_EV(K8, FR_RETIRED_FAR_CONTROL_TRANSFERS) \ 302 __PMC_EV(K8, FR_RETIRED_RESYNCS) \ 303 __PMC_EV(K8, FR_RETIRED_NEAR_RETURNS) \ 304 __PMC_EV(K8, FR_RETIRED_NEAR_RETURNS_MISPREDICTED) \ 305 __PMC_EV(K8, FR_RETIRED_TAKEN_BRANCHES_MISPREDICTED_BY_ADDR_MISCOMPARE) \ 306 __PMC_EV(K8, FR_RETIRED_FPU_INSTRUCTIONS) \ 307 __PMC_EV(K8, FR_RETIRED_FASTPATH_DOUBLE_OP_INSTRUCTIONS) \ 308 __PMC_EV(K8, FR_INTERRUPTS_MASKED_CYCLES) \ 309 __PMC_EV(K8, FR_INTERRUPTS_MASKED_WHILE_PENDING_CYCLES) \ 310 __PMC_EV(K8, FR_TAKEN_HARDWARE_INTERRUPTS) \ 311 __PMC_EV(K8, FR_DECODER_EMPTY) \ 312 __PMC_EV(K8, FR_DISPATCH_STALLS) \ 313 __PMC_EV(K8, FR_DISPATCH_STALL_FROM_BRANCH_ABORT_TO_RETIRE) \ 314 __PMC_EV(K8, FR_DISPATCH_STALL_FOR_SERIALIZATION) \ 315 __PMC_EV(K8, FR_DISPATCH_STALL_FOR_SEGMENT_LOAD) \ 316 __PMC_EV(K8, FR_DISPATCH_STALL_WHEN_REORDER_BUFFER_IS_FULL) \ 317 __PMC_EV(K8, FR_DISPATCH_STALL_WHEN_RESERVATION_STATIONS_ARE_FULL) \ 318 __PMC_EV(K8, FR_DISPATCH_STALL_WHEN_FPU_IS_FULL) \ 319 __PMC_EV(K8, FR_DISPATCH_STALL_WHEN_LS_IS_FULL) \ 320 __PMC_EV(K8, FR_DISPATCH_STALL_WHEN_WAITING_FOR_ALL_TO_BE_QUIET) \ 321 __PMC_EV(K8, FR_DISPATCH_STALL_WHEN_FAR_XFER_OR_RESYNC_BRANCH_PENDING) \ 322 __PMC_EV(K8, FR_FPU_EXCEPTIONS) \ 323 __PMC_EV(K8, FR_NUMBER_OF_BREAKPOINTS_FOR_DR0) \ 324 __PMC_EV(K8, FR_NUMBER_OF_BREAKPOINTS_FOR_DR1) \ 325 __PMC_EV(K8, FR_NUMBER_OF_BREAKPOINTS_FOR_DR2) \ 326 __PMC_EV(K8, FR_NUMBER_OF_BREAKPOINTS_FOR_DR3) \ 327 __PMC_EV(K8, NB_MEMORY_CONTROLLER_PAGE_ACCESS_EVENT) \ 328 __PMC_EV(K8, NB_MEMORY_CONTROLLER_PAGE_TABLE_OVERFLOW) \ 329 __PMC_EV(K8, NB_MEMORY_CONTROLLER_DRAM_COMMAND_SLOTS_MISSED) \ 330 __PMC_EV(K8, NB_MEMORY_CONTROLLER_TURNAROUND) \ 331 __PMC_EV(K8, NB_MEMORY_CONTROLLER_BYPASS_SATURATION) \ 332 __PMC_EV(K8, NB_SIZED_COMMANDS) \ 333 __PMC_EV(K8, NB_PROBE_RESULT) \ 334 __PMC_EV(K8, NB_HT_BUS0_BANDWIDTH) \ 335 __PMC_EV(K8, NB_HT_BUS1_BANDWIDTH) \ 336 __PMC_EV(K8, NB_HT_BUS2_BANDWIDTH) 337 338 #define PMC_EV_K8_FIRST PMC_EV_K8_FP_DISPATCHED_FPU_OPS 339 #define PMC_EV_K8_LAST PMC_EV_K8_NB_HT_BUS2_BANDWIDTH 340 341 342 /* 343 * Intel Pentium and Pentium MMX events, from the "Intel 64 and IA-32 344 * Architectures Software Developer's Manual, Volume 3B: System Programming 345 * Guide, Part 2, August 2007". 346 */ 347 #define __PMC_EV_P5() \ 348 __PMC_EV(P5, DATA_READ) \ 349 __PMC_EV(P5, DATA_WRITE) \ 350 __PMC_EV(P5, DATA_TLB_MISS) \ 351 __PMC_EV(P5, DATA_READ_MISS) \ 352 __PMC_EV(P5, DATA_WRITE_MISS) \ 353 __PMC_EV(P5, WRITE_HIT_TO_M_OR_E_STATE_LINES) \ 354 __PMC_EV(P5, DATA_CACHE_LINES_WRITTEN_BACK) \ 355 __PMC_EV(P5, EXTERNAL_SNOOPS) \ 356 __PMC_EV(P5, EXTERNAL_DATA_CACHE_SNOOP_HITS) \ 357 __PMC_EV(P5, MEMORY_ACCESSES_IN_BOTH_PIPES) \ 358 __PMC_EV(P5, BANK_CONFLICTS) \ 359 __PMC_EV(P5, MISALIGNED_DATA_OR_IO_REFERENCES) \ 360 __PMC_EV(P5, CODE_READ) \ 361 __PMC_EV(P5, CODE_TLB_MISS) \ 362 __PMC_EV(P5, CODE_CACHE_MISS) \ 363 __PMC_EV(P5, ANY_SEGMENT_REGISTER_LOADED) \ 364 __PMC_EV(P5, BRANCHES) \ 365 __PMC_EV(P5, BTB_HITS) \ 366 __PMC_EV(P5, TAKEN_BRANCH_OR_BTB_HIT) \ 367 __PMC_EV(P5, PIPELINE_FLUSHES) \ 368 __PMC_EV(P5, INSTRUCTIONS_EXECUTED) \ 369 __PMC_EV(P5, INSTRUCTIONS_EXECUTED_V_PIPE) \ 370 __PMC_EV(P5, BUS_CYCLE_DURATION) \ 371 __PMC_EV(P5, WRITE_BUFFER_FULL_STALL_DURATION) \ 372 __PMC_EV(P5, WAITING_FOR_DATA_MEMORY_READ_STALL_DURATION) \ 373 __PMC_EV(P5, STALL_ON_WRITE_TO_AN_E_OR_M_STATE_LINE) \ 374 __PMC_EV(P5, LOCKED_BUS_CYCLE) \ 375 __PMC_EV(P5, IO_READ_OR_WRITE_CYCLE) \ 376 __PMC_EV(P5, NONCACHEABLE_MEMORY_READS) \ 377 __PMC_EV(P5, PIPELINE_AGI_STALLS) \ 378 __PMC_EV(P5, FLOPS) \ 379 __PMC_EV(P5, BREAKPOINT_MATCH_ON_DR0_REGISTER) \ 380 __PMC_EV(P5, BREAKPOINT_MATCH_ON_DR1_REGISTER) \ 381 __PMC_EV(P5, BREAKPOINT_MATCH_ON_DR2_REGISTER) \ 382 __PMC_EV(P5, BREAKPOINT_MATCH_ON_DR3_REGISTER) \ 383 __PMC_EV(P5, HARDWARE_INTERRUPTS) \ 384 __PMC_EV(P5, DATA_READ_OR_WRITE) \ 385 __PMC_EV(P5, DATA_READ_MISS_OR_WRITE_MISS) \ 386 __PMC_EV(P5, BUS_OWNERSHIP_LATENCY) \ 387 __PMC_EV(P5, BUS_OWNERSHIP_TRANSFERS) \ 388 __PMC_EV(P5, MMX_INSTRUCTIONS_EXECUTED_U_PIPE) \ 389 __PMC_EV(P5, MMX_INSTRUCTIONS_EXECUTED_V_PIPE) \ 390 __PMC_EV(P5, CACHE_M_LINE_SHARING) \ 391 __PMC_EV(P5, CACHE_LINE_SHARING) \ 392 __PMC_EV(P5, EMMS_INSTRUCTIONS_EXECUTED) \ 393 __PMC_EV(P5, TRANSITIONS_BETWEEN_MMX_AND_FP_INSTRUCTIONS) \ 394 __PMC_EV(P5, BUS_UTILIZATION_DUE_TO_PROCESSOR_ACTIVITY) \ 395 __PMC_EV(P5, WRITES_TO_NONCACHEABLE_MEMORY) \ 396 __PMC_EV(P5, SATURATING_MMX_INSTRUCTIONS_EXECUTED) \ 397 __PMC_EV(P5, SATURATIONS_PERFORMED) \ 398 __PMC_EV(P5, NUMBER_OF_CYCLES_NOT_IN_HALT_STATE) \ 399 __PMC_EV(P5, DATA_CACHE_TLB_MISS_STALL_DURATION) \ 400 __PMC_EV(P5, MMX_INSTRUCTION_DATA_READS) \ 401 __PMC_EV(P5, MMX_INSTRUCTION_DATA_READ_MISSES) \ 402 __PMC_EV(P5, FLOATING_POINT_STALLS_DURATION) \ 403 __PMC_EV(P5, TAKEN_BRANCHES) \ 404 __PMC_EV(P5, D1_STARVATION_AND_FIFO_IS_EMPTY) \ 405 __PMC_EV(P5, D1_STARVATION_AND_ONLY_ONE_INSTRUCTION_IN_FIFO) \ 406 __PMC_EV(P5, MMX_INSTRUCTION_DATA_WRITES) \ 407 __PMC_EV(P5, MMX_INSTRUCTION_DATA_WRITE_MISSES) \ 408 __PMC_EV(P5, PIPELINE_FLUSHES_DUE_TO_WRONG_BRANCH_PREDICTIONS) \ 409 __PMC_EV(P5, \ 410 PIPELINE_FLUSHES_DUE_TO_WRONG_BRANCH_PREDICTIONS_RESOLVED_IN_WB_STAGE) \ 411 __PMC_EV(P5, MISALIGNED_DATA_MEMORY_REFERENCE_ON_MMX_INSTRUCTIONS) \ 412 __PMC_EV(P5, PIPELINE_STALL_FOR_MMX_INSTRUCTION_DATA_MEMORY_READS) \ 413 __PMC_EV(P5, MISPREDICTED_OR_UNPREDICTED_RETURNS) \ 414 __PMC_EV(P5, PREDICTED_RETURNS) \ 415 __PMC_EV(P5, MMX_MULTIPLY_UNIT_INTERLOCK) \ 416 __PMC_EV(P5, MOVD_MOVQ_STORE_STALL_DUE_TO_PREVIOUS_MMX_OPERATION) \ 417 __PMC_EV(P5, RETURNS) \ 418 __PMC_EV(P5, BTB_FALSE_ENTRIES) \ 419 __PMC_EV(P5, BTB_MISS_PREDICTION_ON_NOT_TAKEN_BRANCH) \ 420 __PMC_EV(P5, \ 421 FULL_WRITE_BUFFER_STALL_DURATION_WHILE_EXECUTING_MMX_INSTRUCTIONS) \ 422 __PMC_EV(P5, STALL_ON_MMX_INSTRUCTION_WRITE_TO_E_OR_M_STATE_LINE) 423 424 #define PMC_EV_P5_FIRST PMC_EV_P5_DATA_READ 425 #define PMC_EV_P5_LAST \ 426 PMC_EV_P5_STALL_ON_MMX_INSTRUCTION_WRITE_TO_E_OR_M_STATE_LINE 427 428 /* 429 * Events supported by Intel architectural fixed function counters, 430 * from the "Intel 64 and IA-32 Architectures Software Developer's 431 * Manual Volume 3B: System Programming Guide, Part 2", July 2008. 432 */ 433 #define __PMC_EV_IAF() \ 434 __PMC_EV(IAF, INSTR_RETIRED_ANY) \ 435 __PMC_EV(IAF, CPU_CLK_UNHALTED_CORE) \ 436 __PMC_EV(IAF, CPU_CLK_UNHALTED_REF) 437 438 #define PMC_EV_IAF_FIRST PMC_EV_IAF_INSTR_RETIRED_ANY 439 #define PMC_EV_IAF_LAST PMC_EV_IAF_CPU_CLK_UNHALTED_REF 440 441 #define __PMC_EV_ALIAS_IAF() \ 442 __PMC_EV_ALIAS("instruction-retired", IAF_INSTR_RETIRED_ANY) \ 443 __PMC_EV_ALIAS("unhalted-core-cycles", IAF_CPU_CLK_UNHALTED_CORE) \ 444 __PMC_EV_ALIAS("unhalted-reference-cycles", IAF_CPU_CLK_UNHALTED_REF) 445 446 /* 447 * Events supported by programmable function counters present in 448 * Intel Atom, Core and Core2 CPUs, from the "Intel 64 and IA-32 449 * Architectures Software Developer's Manual Volume 3B: System Programming 450 * Guide, Part 2", July 2008. 451 * 452 * These PMCs select events with a combination of an event code and 453 * unit mask. Quirks that need to be taken care of include: 454 * - The set of (event code, umask) combinations supported by a processor 455 * varies according to the processor model. 456 * - A given (event code, umask) combination need not measure the same 457 * hardware event in all processor models. 458 * - Event names in vendor documentation for an (event code, umask) pair 459 * may vary according to the CPU model. 460 * - Identically named events can map to different (event code, umask) 461 * pairs on different CPUs. 462 * - New (event code, umask) combinations continue to be added as CPUs 463 * evolve. The interface between hwpmc(4) and libpmc(3) needs to be 464 * robust with respect to ABI changes. 465 * 466 * The IAP_EVENT_* symbols below define the ABI between userland and kernel. 467 * New (event code, * umask) combinations used in new CPUs would be added 468 * to the end of the list. Vendor names for events are mapped to IAP_EVENT_* 469 * symbols using aliases. The final disambiguation of semantics based on 470 * the CPU model happens inside hwpmc(4). 471 */ 472 #define __PMC_EV_IAP() \ 473 __PMC_EV(IAP, ARCH_BR_INS_RET) \ 474 __PMC_EV(IAP, ARCH_BR_MIS_RET) \ 475 __PMC_EV(IAP, ARCH_INS_RET) \ 476 __PMC_EV(IAP, ARCH_LLC_MIS) \ 477 __PMC_EV(IAP, ARCH_LLC_REF) \ 478 __PMC_EV(IAP, ARCH_UNH_REF_CYC) \ 479 __PMC_EV(IAP, ARCH_UNH_COR_CYC) \ 480 __PMC_EV(IAP, EVENT_02H_01H) \ 481 __PMC_EV(IAP, EVENT_02H_81H) \ 482 __PMC_EV(IAP, EVENT_03H_00H) \ 483 __PMC_EV(IAP, EVENT_03H_01H) \ 484 __PMC_EV(IAP, EVENT_03H_02H) \ 485 __PMC_EV(IAP, EVENT_03H_04H) \ 486 __PMC_EV(IAP, EVENT_03H_08H) \ 487 __PMC_EV(IAP, EVENT_03H_10H) \ 488 __PMC_EV(IAP, EVENT_03H_20H) \ 489 __PMC_EV(IAP, EVENT_03H_40H) \ 490 __PMC_EV(IAP, EVENT_03H_80H) \ 491 __PMC_EV(IAP, EVENT_04H_00H) \ 492 __PMC_EV(IAP, EVENT_04H_01H) \ 493 __PMC_EV(IAP, EVENT_04H_02H) \ 494 __PMC_EV(IAP, EVENT_04H_04H) \ 495 __PMC_EV(IAP, EVENT_04H_07H) \ 496 __PMC_EV(IAP, EVENT_04H_08H) \ 497 __PMC_EV(IAP, EVENT_04H_10H) \ 498 __PMC_EV(IAP, EVENT_04H_20H) \ 499 __PMC_EV(IAP, EVENT_04H_40H) \ 500 __PMC_EV(IAP, EVENT_04H_80H) \ 501 __PMC_EV(IAP, EVENT_05H_00H) \ 502 __PMC_EV(IAP, EVENT_05H_01H) \ 503 __PMC_EV(IAP, EVENT_05H_02H) \ 504 __PMC_EV(IAP, EVENT_05H_03H) \ 505 __PMC_EV(IAP, EVENT_06H_00H) \ 506 __PMC_EV(IAP, EVENT_06H_01H) \ 507 __PMC_EV(IAP, EVENT_06H_02H) \ 508 __PMC_EV(IAP, EVENT_06H_04H) \ 509 __PMC_EV(IAP, EVENT_06H_08H) \ 510 __PMC_EV(IAP, EVENT_06H_0FH) \ 511 __PMC_EV(IAP, EVENT_07H_00H) \ 512 __PMC_EV(IAP, EVENT_07H_01H) \ 513 __PMC_EV(IAP, EVENT_07H_02H) \ 514 __PMC_EV(IAP, EVENT_07H_03H) \ 515 __PMC_EV(IAP, EVENT_07H_06H) \ 516 __PMC_EV(IAP, EVENT_07H_08H) \ 517 __PMC_EV(IAP, EVENT_08H_01H) \ 518 __PMC_EV(IAP, EVENT_08H_02H) \ 519 __PMC_EV(IAP, EVENT_08H_04H) \ 520 __PMC_EV(IAP, EVENT_08H_05H) \ 521 __PMC_EV(IAP, EVENT_08H_06H) \ 522 __PMC_EV(IAP, EVENT_08H_07H) \ 523 __PMC_EV(IAP, EVENT_08H_08H) \ 524 __PMC_EV(IAP, EVENT_08H_09H) \ 525 __PMC_EV(IAP, EVENT_08H_0EH) \ 526 __PMC_EV(IAP, EVENT_08H_10H) \ 527 __PMC_EV(IAP, EVENT_08H_20H) \ 528 __PMC_EV(IAP, EVENT_08H_40H) \ 529 __PMC_EV(IAP, EVENT_08H_60H) \ 530 __PMC_EV(IAP, EVENT_08H_80H) \ 531 __PMC_EV(IAP, EVENT_08H_81H) \ 532 __PMC_EV(IAP, EVENT_08H_82H) \ 533 __PMC_EV(IAP, EVENT_08H_84H) \ 534 __PMC_EV(IAP, EVENT_08H_88H) \ 535 __PMC_EV(IAP, EVENT_09H_01H) \ 536 __PMC_EV(IAP, EVENT_09H_02H) \ 537 __PMC_EV(IAP, EVENT_09H_04H) \ 538 __PMC_EV(IAP, EVENT_09H_08H) \ 539 __PMC_EV(IAP, EVENT_0BH_01H) \ 540 __PMC_EV(IAP, EVENT_0BH_02H) \ 541 __PMC_EV(IAP, EVENT_0BH_10H) \ 542 __PMC_EV(IAP, EVENT_0CH_01H) \ 543 __PMC_EV(IAP, EVENT_0CH_02H) \ 544 __PMC_EV(IAP, EVENT_0CH_03H) \ 545 __PMC_EV(IAP, EVENT_0DH_01H) \ 546 __PMC_EV(IAP, EVENT_0DH_03H) \ 547 __PMC_EV(IAP, EVENT_0DH_40H) \ 548 __PMC_EV(IAP, EVENT_0DH_80H) \ 549 __PMC_EV(IAP, EVENT_0EH_01H) \ 550 __PMC_EV(IAP, EVENT_0EH_02H) \ 551 __PMC_EV(IAP, EVENT_0EH_10H) \ 552 __PMC_EV(IAP, EVENT_0EH_20H) \ 553 __PMC_EV(IAP, EVENT_0EH_40H) \ 554 __PMC_EV(IAP, EVENT_0FH_01H) \ 555 __PMC_EV(IAP, EVENT_0FH_02H) \ 556 __PMC_EV(IAP, EVENT_0FH_08H) \ 557 __PMC_EV(IAP, EVENT_0FH_10H) \ 558 __PMC_EV(IAP, EVENT_0FH_20H) \ 559 __PMC_EV(IAP, EVENT_0FH_80H) \ 560 __PMC_EV(IAP, EVENT_10H_00H) \ 561 __PMC_EV(IAP, EVENT_10H_01H) \ 562 __PMC_EV(IAP, EVENT_10H_02H) \ 563 __PMC_EV(IAP, EVENT_10H_04H) \ 564 __PMC_EV(IAP, EVENT_10H_08H) \ 565 __PMC_EV(IAP, EVENT_10H_10H) \ 566 __PMC_EV(IAP, EVENT_10H_20H) \ 567 __PMC_EV(IAP, EVENT_10H_40H) \ 568 __PMC_EV(IAP, EVENT_10H_80H) \ 569 __PMC_EV(IAP, EVENT_10H_81H) \ 570 __PMC_EV(IAP, EVENT_11H_00H) \ 571 __PMC_EV(IAP, EVENT_11H_01H) \ 572 __PMC_EV(IAP, EVENT_11H_02H) \ 573 __PMC_EV(IAP, EVENT_11H_81H) \ 574 __PMC_EV(IAP, EVENT_12H_00H) \ 575 __PMC_EV(IAP, EVENT_12H_01H) \ 576 __PMC_EV(IAP, EVENT_12H_02H) \ 577 __PMC_EV(IAP, EVENT_12H_04H) \ 578 __PMC_EV(IAP, EVENT_12H_08H) \ 579 __PMC_EV(IAP, EVENT_12H_10H) \ 580 __PMC_EV(IAP, EVENT_12H_20H) \ 581 __PMC_EV(IAP, EVENT_12H_40H) \ 582 __PMC_EV(IAP, EVENT_12H_81H) \ 583 __PMC_EV(IAP, EVENT_13H_00H) \ 584 __PMC_EV(IAP, EVENT_13H_01H) \ 585 __PMC_EV(IAP, EVENT_13H_02H) \ 586 __PMC_EV(IAP, EVENT_13H_04H) \ 587 __PMC_EV(IAP, EVENT_13H_07H) \ 588 __PMC_EV(IAP, EVENT_13H_81H) \ 589 __PMC_EV(IAP, EVENT_14H_00H) \ 590 __PMC_EV(IAP, EVENT_14H_01H) \ 591 __PMC_EV(IAP, EVENT_14H_02H) \ 592 __PMC_EV(IAP, EVENT_17H_01H) \ 593 __PMC_EV(IAP, EVENT_18H_00H) \ 594 __PMC_EV(IAP, EVENT_18H_01H) \ 595 __PMC_EV(IAP, EVENT_19H_00H) \ 596 __PMC_EV(IAP, EVENT_19H_01H) \ 597 __PMC_EV(IAP, EVENT_19H_02H) \ 598 __PMC_EV(IAP, EVENT_1DH_01H) \ 599 __PMC_EV(IAP, EVENT_1DH_02H) \ 600 __PMC_EV(IAP, EVENT_1DH_04H) \ 601 __PMC_EV(IAP, EVENT_1EH_01H) \ 602 __PMC_EV(IAP, EVENT_20H_01H) \ 603 __PMC_EV(IAP, EVENT_21H) \ 604 __PMC_EV(IAP, EVENT_22H) \ 605 __PMC_EV(IAP, EVENT_22H_01H) \ 606 __PMC_EV(IAP, EVENT_22H_02H) \ 607 __PMC_EV(IAP, EVENT_22H_04H) \ 608 __PMC_EV(IAP, EVENT_22H_08H) \ 609 __PMC_EV(IAP, EVENT_22H_10H) \ 610 __PMC_EV(IAP, EVENT_22H_20H) \ 611 __PMC_EV(IAP, EVENT_22H_40H) \ 612 __PMC_EV(IAP, EVENT_22H_80H) \ 613 __PMC_EV(IAP, EVENT_23H) \ 614 __PMC_EV(IAP, EVENT_24H) \ 615 __PMC_EV(IAP, EVENT_24H_01H) \ 616 __PMC_EV(IAP, EVENT_24H_02H) \ 617 __PMC_EV(IAP, EVENT_24H_03H) \ 618 __PMC_EV(IAP, EVENT_24H_04H) \ 619 __PMC_EV(IAP, EVENT_24H_08H) \ 620 __PMC_EV(IAP, EVENT_24H_0CH) \ 621 __PMC_EV(IAP, EVENT_24H_10H) \ 622 __PMC_EV(IAP, EVENT_24H_20H) \ 623 __PMC_EV(IAP, EVENT_24H_21H) \ 624 __PMC_EV(IAP, EVENT_24H_22H) \ 625 __PMC_EV(IAP, EVENT_24H_24H) \ 626 __PMC_EV(IAP, EVENT_24H_27H) \ 627 __PMC_EV(IAP, EVENT_24H_30H) \ 628 __PMC_EV(IAP, EVENT_24H_38H) \ 629 __PMC_EV(IAP, EVENT_24H_3FH) \ 630 __PMC_EV(IAP, EVENT_24H_40H) \ 631 __PMC_EV(IAP, EVENT_24H_41H) \ 632 __PMC_EV(IAP, EVENT_24H_42H) \ 633 __PMC_EV(IAP, EVENT_24H_44H) \ 634 __PMC_EV(IAP, EVENT_24H_50H) \ 635 __PMC_EV(IAP, EVENT_24H_80H) \ 636 __PMC_EV(IAP, EVENT_24H_AAH) \ 637 __PMC_EV(IAP, EVENT_24H_BFH) \ 638 __PMC_EV(IAP, EVENT_24H_C0H) \ 639 __PMC_EV(IAP, EVENT_24H_D8H) \ 640 __PMC_EV(IAP, EVENT_24H_E1H) \ 641 __PMC_EV(IAP, EVENT_24H_E2H) \ 642 __PMC_EV(IAP, EVENT_24H_E4H) \ 643 __PMC_EV(IAP, EVENT_24H_E7H) \ 644 __PMC_EV(IAP, EVENT_24H_EFH) \ 645 __PMC_EV(IAP, EVENT_24H_F7H) \ 646 __PMC_EV(IAP, EVENT_24H_F8H) \ 647 __PMC_EV(IAP, EVENT_24H_FFH) \ 648 __PMC_EV(IAP, EVENT_25H) \ 649 __PMC_EV(IAP, EVENT_26H) \ 650 __PMC_EV(IAP, EVENT_26H_01H) \ 651 __PMC_EV(IAP, EVENT_26H_02H) \ 652 __PMC_EV(IAP, EVENT_26H_04H) \ 653 __PMC_EV(IAP, EVENT_26H_08H) \ 654 __PMC_EV(IAP, EVENT_26H_0FH) \ 655 __PMC_EV(IAP, EVENT_26H_10H) \ 656 __PMC_EV(IAP, EVENT_26H_20H) \ 657 __PMC_EV(IAP, EVENT_26H_40H) \ 658 __PMC_EV(IAP, EVENT_26H_80H) \ 659 __PMC_EV(IAP, EVENT_26H_F0H) \ 660 __PMC_EV(IAP, EVENT_26H_FFH) \ 661 __PMC_EV(IAP, EVENT_27H) \ 662 __PMC_EV(IAP, EVENT_27H_01H) \ 663 __PMC_EV(IAP, EVENT_27H_02H) \ 664 __PMC_EV(IAP, EVENT_27H_04H) \ 665 __PMC_EV(IAP, EVENT_27H_08H) \ 666 __PMC_EV(IAP, EVENT_27H_0EH) \ 667 __PMC_EV(IAP, EVENT_27H_0FH) \ 668 __PMC_EV(IAP, EVENT_27H_10H) \ 669 __PMC_EV(IAP, EVENT_27H_20H) \ 670 __PMC_EV(IAP, EVENT_27H_40H) \ 671 __PMC_EV(IAP, EVENT_27H_50H) \ 672 __PMC_EV(IAP, EVENT_27H_80H) \ 673 __PMC_EV(IAP, EVENT_27H_E0H) \ 674 __PMC_EV(IAP, EVENT_27H_F0H) \ 675 __PMC_EV(IAP, EVENT_28H) \ 676 __PMC_EV(IAP, EVENT_28H_01H) \ 677 __PMC_EV(IAP, EVENT_28H_02H) \ 678 __PMC_EV(IAP, EVENT_28H_04H) \ 679 __PMC_EV(IAP, EVENT_28H_07H) \ 680 __PMC_EV(IAP, EVENT_28H_08H) \ 681 __PMC_EV(IAP, EVENT_28H_0FH) \ 682 __PMC_EV(IAP, EVENT_28H_18H) \ 683 __PMC_EV(IAP, EVENT_28H_20H) \ 684 __PMC_EV(IAP, EVENT_28H_40H) \ 685 __PMC_EV(IAP, EVENT_29H) \ 686 __PMC_EV(IAP, EVENT_2AH) \ 687 __PMC_EV(IAP, EVENT_2BH) \ 688 __PMC_EV(IAP, EVENT_2EH) \ 689 __PMC_EV(IAP, EVENT_2EH_01H) \ 690 __PMC_EV(IAP, EVENT_2EH_02H) \ 691 __PMC_EV(IAP, EVENT_2EH_41H) \ 692 __PMC_EV(IAP, EVENT_2EH_4FH) \ 693 __PMC_EV(IAP, EVENT_30H) \ 694 __PMC_EV(IAP, EVENT_30H_00H) \ 695 __PMC_EV(IAP, EVENT_31H_00H) \ 696 __PMC_EV(IAP, EVENT_32H) \ 697 __PMC_EV(IAP, EVENT_3AH) \ 698 __PMC_EV(IAP, EVENT_3AH_00H) \ 699 __PMC_EV(IAP, EVENT_3BH_C0H) \ 700 __PMC_EV(IAP, EVENT_3CH_00H) \ 701 __PMC_EV(IAP, EVENT_3CH_01H) \ 702 __PMC_EV(IAP, EVENT_3CH_02H) \ 703 __PMC_EV(IAP, EVENT_3DH_01H) \ 704 __PMC_EV(IAP, EVENT_40H) \ 705 __PMC_EV(IAP, EVENT_40H_01H) \ 706 __PMC_EV(IAP, EVENT_40H_02H) \ 707 __PMC_EV(IAP, EVENT_40H_04H) \ 708 __PMC_EV(IAP, EVENT_40H_08H) \ 709 __PMC_EV(IAP, EVENT_40H_0FH) \ 710 __PMC_EV(IAP, EVENT_40H_21H) \ 711 __PMC_EV(IAP, EVENT_41H) \ 712 __PMC_EV(IAP, EVENT_41H_01H) \ 713 __PMC_EV(IAP, EVENT_41H_02H) \ 714 __PMC_EV(IAP, EVENT_41H_04H) \ 715 __PMC_EV(IAP, EVENT_41H_08H) \ 716 __PMC_EV(IAP, EVENT_41H_0FH) \ 717 __PMC_EV(IAP, EVENT_41H_22H) \ 718 __PMC_EV(IAP, EVENT_42H) \ 719 __PMC_EV(IAP, EVENT_42H_01H) \ 720 __PMC_EV(IAP, EVENT_42H_02H) \ 721 __PMC_EV(IAP, EVENT_42H_04H) \ 722 __PMC_EV(IAP, EVENT_42H_08H) \ 723 __PMC_EV(IAP, EVENT_42H_10H) \ 724 __PMC_EV(IAP, EVENT_43H_01H) \ 725 __PMC_EV(IAP, EVENT_43H_02H) \ 726 __PMC_EV(IAP, EVENT_44H_02H) \ 727 __PMC_EV(IAP, EVENT_45H_0FH) \ 728 __PMC_EV(IAP, EVENT_46H_00H) \ 729 __PMC_EV(IAP, EVENT_47H_00H) \ 730 __PMC_EV(IAP, EVENT_48H_00H) \ 731 __PMC_EV(IAP, EVENT_48H_01H) \ 732 __PMC_EV(IAP, EVENT_48H_02H) \ 733 __PMC_EV(IAP, EVENT_49H_00H) \ 734 __PMC_EV(IAP, EVENT_49H_01H) \ 735 __PMC_EV(IAP, EVENT_49H_02H) \ 736 __PMC_EV(IAP, EVENT_49H_04H) \ 737 __PMC_EV(IAP, EVENT_49H_08H) \ 738 __PMC_EV(IAP, EVENT_49H_0EH) \ 739 __PMC_EV(IAP, EVENT_49H_10H) \ 740 __PMC_EV(IAP, EVENT_49H_20H) \ 741 __PMC_EV(IAP, EVENT_49H_40H) \ 742 __PMC_EV(IAP, EVENT_49H_60H) \ 743 __PMC_EV(IAP, EVENT_49H_80H) \ 744 __PMC_EV(IAP, EVENT_4BH_00H) \ 745 __PMC_EV(IAP, EVENT_4BH_01H) \ 746 __PMC_EV(IAP, EVENT_4BH_02H) \ 747 __PMC_EV(IAP, EVENT_4BH_03H) \ 748 __PMC_EV(IAP, EVENT_4BH_08H) \ 749 __PMC_EV(IAP, EVENT_4CH_00H) \ 750 __PMC_EV(IAP, EVENT_4CH_01H) \ 751 __PMC_EV(IAP, EVENT_4CH_02H) \ 752 __PMC_EV(IAP, EVENT_4DH_01H) \ 753 __PMC_EV(IAP, EVENT_4EH_01H) \ 754 __PMC_EV(IAP, EVENT_4EH_02H) \ 755 __PMC_EV(IAP, EVENT_4EH_04H) \ 756 __PMC_EV(IAP, EVENT_4EH_10H) \ 757 __PMC_EV(IAP, EVENT_4FH_00H) \ 758 __PMC_EV(IAP, EVENT_4FH_02H) \ 759 __PMC_EV(IAP, EVENT_4FH_04H) \ 760 __PMC_EV(IAP, EVENT_4FH_08H) \ 761 __PMC_EV(IAP, EVENT_4FH_10H) \ 762 __PMC_EV(IAP, EVENT_51H_01H) \ 763 __PMC_EV(IAP, EVENT_51H_02H) \ 764 __PMC_EV(IAP, EVENT_51H_04H) \ 765 __PMC_EV(IAP, EVENT_51H_08H) \ 766 __PMC_EV(IAP, EVENT_52H_01H) \ 767 __PMC_EV(IAP, EVENT_53H_01H) \ 768 __PMC_EV(IAP, EVENT_54H_01H) \ 769 __PMC_EV(IAP, EVENT_54H_02H) \ 770 __PMC_EV(IAP, EVENT_54H_04H) \ 771 __PMC_EV(IAP, EVENT_54H_08H) \ 772 __PMC_EV(IAP, EVENT_54H_10H) \ 773 __PMC_EV(IAP, EVENT_54H_20H) \ 774 __PMC_EV(IAP, EVENT_54H_40H) \ 775 __PMC_EV(IAP, EVENT_58H_01H) \ 776 __PMC_EV(IAP, EVENT_58H_02H) \ 777 __PMC_EV(IAP, EVENT_58H_04H) \ 778 __PMC_EV(IAP, EVENT_58H_08H) \ 779 __PMC_EV(IAP, EVENT_59H_20H) \ 780 __PMC_EV(IAP, EVENT_59H_40H) \ 781 __PMC_EV(IAP, EVENT_59H_80H) \ 782 __PMC_EV(IAP, EVENT_5BH_0CH) \ 783 __PMC_EV(IAP, EVENT_5BH_0FH) \ 784 __PMC_EV(IAP, EVENT_5BH_40H) \ 785 __PMC_EV(IAP, EVENT_5BH_4FH) \ 786 __PMC_EV(IAP, EVENT_5CH_01H) \ 787 __PMC_EV(IAP, EVENT_5CH_02H) \ 788 __PMC_EV(IAP, EVENT_5DH_01H) \ 789 __PMC_EV(IAP, EVENT_5DH_02H) \ 790 __PMC_EV(IAP, EVENT_5DH_04H) \ 791 __PMC_EV(IAP, EVENT_5DH_08H) \ 792 __PMC_EV(IAP, EVENT_5DH_10H) \ 793 __PMC_EV(IAP, EVENT_5EH_01H) \ 794 __PMC_EV(IAP, EVENT_5FH_01H) \ 795 __PMC_EV(IAP, EVENT_5FH_04H) \ 796 __PMC_EV(IAP, EVENT_60H) \ 797 __PMC_EV(IAP, EVENT_60H_01H) \ 798 __PMC_EV(IAP, EVENT_60H_02H) \ 799 __PMC_EV(IAP, EVENT_60H_04H) \ 800 __PMC_EV(IAP, EVENT_60H_08H) \ 801 __PMC_EV(IAP, EVENT_60H_10H) \ 802 __PMC_EV(IAP, EVENT_61H) \ 803 __PMC_EV(IAP, EVENT_61H_00H) \ 804 __PMC_EV(IAP, EVENT_62H) \ 805 __PMC_EV(IAP, EVENT_62H_00H) \ 806 __PMC_EV(IAP, EVENT_63H) \ 807 __PMC_EV(IAP, EVENT_63H_01H) \ 808 __PMC_EV(IAP, EVENT_63H_02H) \ 809 __PMC_EV(IAP, EVENT_64H) \ 810 __PMC_EV(IAP, EVENT_64H_40H) \ 811 __PMC_EV(IAP, EVENT_65H) \ 812 __PMC_EV(IAP, EVENT_66H) \ 813 __PMC_EV(IAP, EVENT_67H) \ 814 __PMC_EV(IAP, EVENT_68H) \ 815 __PMC_EV(IAP, EVENT_69H) \ 816 __PMC_EV(IAP, EVENT_6AH) \ 817 __PMC_EV(IAP, EVENT_6BH) \ 818 __PMC_EV(IAP, EVENT_6CH) \ 819 __PMC_EV(IAP, EVENT_6CH_01H) \ 820 __PMC_EV(IAP, EVENT_6DH) \ 821 __PMC_EV(IAP, EVENT_6EH) \ 822 __PMC_EV(IAP, EVENT_6FH) \ 823 __PMC_EV(IAP, EVENT_70H) \ 824 __PMC_EV(IAP, EVENT_77H) \ 825 __PMC_EV(IAP, EVENT_78H) \ 826 __PMC_EV(IAP, EVENT_79H_02H) \ 827 __PMC_EV(IAP, EVENT_79H_04H) \ 828 __PMC_EV(IAP, EVENT_79H_08H) \ 829 __PMC_EV(IAP, EVENT_79H_10H) \ 830 __PMC_EV(IAP, EVENT_79H_18H) \ 831 __PMC_EV(IAP, EVENT_79H_20H) \ 832 __PMC_EV(IAP, EVENT_79H_24H) \ 833 __PMC_EV(IAP, EVENT_79H_30H) \ 834 __PMC_EV(IAP, EVENT_79H_3CH) \ 835 __PMC_EV(IAP, EVENT_7AH) \ 836 __PMC_EV(IAP, EVENT_7BH) \ 837 __PMC_EV(IAP, EVENT_7DH) \ 838 __PMC_EV(IAP, EVENT_7EH) \ 839 __PMC_EV(IAP, EVENT_7EH_00H) \ 840 __PMC_EV(IAP, EVENT_7FH) \ 841 __PMC_EV(IAP, EVENT_80H_00H) \ 842 __PMC_EV(IAP, EVENT_80H_01H) \ 843 __PMC_EV(IAP, EVENT_80H_02H) \ 844 __PMC_EV(IAP, EVENT_80H_03H) \ 845 __PMC_EV(IAP, EVENT_80H_04H) \ 846 __PMC_EV(IAP, EVENT_80H_10H) \ 847 __PMC_EV(IAP, EVENT_81H_00H) \ 848 __PMC_EV(IAP, EVENT_81H_01H) \ 849 __PMC_EV(IAP, EVENT_81H_02H) \ 850 __PMC_EV(IAP, EVENT_82H_01H) \ 851 __PMC_EV(IAP, EVENT_82H_02H) \ 852 __PMC_EV(IAP, EVENT_82H_04H) \ 853 __PMC_EV(IAP, EVENT_82H_10H) \ 854 __PMC_EV(IAP, EVENT_82H_12H) \ 855 __PMC_EV(IAP, EVENT_82H_40H) \ 856 __PMC_EV(IAP, EVENT_83H_01H) \ 857 __PMC_EV(IAP, EVENT_83H_02H) \ 858 __PMC_EV(IAP, EVENT_83H_04H) \ 859 __PMC_EV(IAP, EVENT_85H_00H) \ 860 __PMC_EV(IAP, EVENT_85H_01H) \ 861 __PMC_EV(IAP, EVENT_85H_02H) \ 862 __PMC_EV(IAP, EVENT_85H_04H) \ 863 __PMC_EV(IAP, EVENT_85H_08H) \ 864 __PMC_EV(IAP, EVENT_85H_0EH) \ 865 __PMC_EV(IAP, EVENT_85H_10H) \ 866 __PMC_EV(IAP, EVENT_85H_20H) \ 867 __PMC_EV(IAP, EVENT_85H_40H) \ 868 __PMC_EV(IAP, EVENT_85H_60H) \ 869 __PMC_EV(IAP, EVENT_85H_80H) \ 870 __PMC_EV(IAP, EVENT_86H_00H) \ 871 __PMC_EV(IAP, EVENT_87H_00H) \ 872 __PMC_EV(IAP, EVENT_87H_01H) \ 873 __PMC_EV(IAP, EVENT_87H_02H) \ 874 __PMC_EV(IAP, EVENT_87H_04H) \ 875 __PMC_EV(IAP, EVENT_87H_08H) \ 876 __PMC_EV(IAP, EVENT_87H_0FH) \ 877 __PMC_EV(IAP, EVENT_88H_00H) \ 878 __PMC_EV(IAP, EVENT_88H_01H) \ 879 __PMC_EV(IAP, EVENT_88H_02H) \ 880 __PMC_EV(IAP, EVENT_88H_04H) \ 881 __PMC_EV(IAP, EVENT_88H_07H) \ 882 __PMC_EV(IAP, EVENT_88H_08H) \ 883 __PMC_EV(IAP, EVENT_88H_10H) \ 884 __PMC_EV(IAP, EVENT_88H_20H) \ 885 __PMC_EV(IAP, EVENT_88H_30H) \ 886 __PMC_EV(IAP, EVENT_88H_40H) \ 887 __PMC_EV(IAP, EVENT_88H_41H) \ 888 __PMC_EV(IAP, EVENT_88H_80H) \ 889 __PMC_EV(IAP, EVENT_88H_81H) \ 890 __PMC_EV(IAP, EVENT_88H_82H) \ 891 __PMC_EV(IAP, EVENT_88H_84H) \ 892 __PMC_EV(IAP, EVENT_88H_88H) \ 893 __PMC_EV(IAP, EVENT_88H_90H) \ 894 __PMC_EV(IAP, EVENT_88H_A0H) \ 895 __PMC_EV(IAP, EVENT_88H_7FH) \ 896 __PMC_EV(IAP, EVENT_88H_FFH) \ 897 __PMC_EV(IAP, EVENT_89H_00H) \ 898 __PMC_EV(IAP, EVENT_89H_01H) \ 899 __PMC_EV(IAP, EVENT_89H_02H) \ 900 __PMC_EV(IAP, EVENT_89H_04H) \ 901 __PMC_EV(IAP, EVENT_89H_07H) \ 902 __PMC_EV(IAP, EVENT_89H_08H) \ 903 __PMC_EV(IAP, EVENT_89H_10H) \ 904 __PMC_EV(IAP, EVENT_89H_20H) \ 905 __PMC_EV(IAP, EVENT_89H_30H) \ 906 __PMC_EV(IAP, EVENT_89H_40H) \ 907 __PMC_EV(IAP, EVENT_89H_41H) \ 908 __PMC_EV(IAP, EVENT_89H_80H) \ 909 __PMC_EV(IAP, EVENT_89H_81H) \ 910 __PMC_EV(IAP, EVENT_89H_82H) \ 911 __PMC_EV(IAP, EVENT_89H_84H) \ 912 __PMC_EV(IAP, EVENT_89H_88H) \ 913 __PMC_EV(IAP, EVENT_89H_90H) \ 914 __PMC_EV(IAP, EVENT_89H_A0H) \ 915 __PMC_EV(IAP, EVENT_89H_7FH) \ 916 __PMC_EV(IAP, EVENT_89H_FFH) \ 917 __PMC_EV(IAP, EVENT_8AH_00H) \ 918 __PMC_EV(IAP, EVENT_8BH_00H) \ 919 __PMC_EV(IAP, EVENT_8CH_00H) \ 920 __PMC_EV(IAP, EVENT_8DH_00H) \ 921 __PMC_EV(IAP, EVENT_8EH_00H) \ 922 __PMC_EV(IAP, EVENT_8FH_00H) \ 923 __PMC_EV(IAP, EVENT_90H_00H) \ 924 __PMC_EV(IAP, EVENT_91H_00H) \ 925 __PMC_EV(IAP, EVENT_92H_00H) \ 926 __PMC_EV(IAP, EVENT_93H_00H) \ 927 __PMC_EV(IAP, EVENT_94H_00H) \ 928 __PMC_EV(IAP, EVENT_97H_00H) \ 929 __PMC_EV(IAP, EVENT_98H_00H) \ 930 __PMC_EV(IAP, EVENT_9CH_01H) \ 931 __PMC_EV(IAP, EVENT_A0H_00H) \ 932 __PMC_EV(IAP, EVENT_A1H_01H) \ 933 __PMC_EV(IAP, EVENT_A1H_02H) \ 934 __PMC_EV(IAP, EVENT_A1H_04H) \ 935 __PMC_EV(IAP, EVENT_A1H_08H) \ 936 __PMC_EV(IAP, EVENT_A1H_0CH) \ 937 __PMC_EV(IAP, EVENT_A1H_10H) \ 938 __PMC_EV(IAP, EVENT_A1H_20H) \ 939 __PMC_EV(IAP, EVENT_A1H_30H) \ 940 __PMC_EV(IAP, EVENT_A1H_40H) \ 941 __PMC_EV(IAP, EVENT_A1H_80H) \ 942 __PMC_EV(IAP, EVENT_A2H_00H) \ 943 __PMC_EV(IAP, EVENT_A2H_01H) \ 944 __PMC_EV(IAP, EVENT_A2H_02H) \ 945 __PMC_EV(IAP, EVENT_A2H_04H) \ 946 __PMC_EV(IAP, EVENT_A2H_08H) \ 947 __PMC_EV(IAP, EVENT_A2H_10H) \ 948 __PMC_EV(IAP, EVENT_A2H_20H) \ 949 __PMC_EV(IAP, EVENT_A2H_40H) \ 950 __PMC_EV(IAP, EVENT_A2H_80H) \ 951 __PMC_EV(IAP, EVENT_A3H_01H) \ 952 __PMC_EV(IAP, EVENT_A3H_02H) \ 953 __PMC_EV(IAP, EVENT_A3H_04H) \ 954 __PMC_EV(IAP, EVENT_A3H_05H) \ 955 __PMC_EV(IAP, EVENT_A3H_06H) \ 956 __PMC_EV(IAP, EVENT_A3H_08H) \ 957 __PMC_EV(IAP, EVENT_A3H_0CH) \ 958 __PMC_EV(IAP, EVENT_A3H_10H) \ 959 __PMC_EV(IAP, EVENT_A3H_14H) \ 960 __PMC_EV(IAP, EVENT_A6H_01H) \ 961 __PMC_EV(IAP, EVENT_A6H_02H) \ 962 __PMC_EV(IAP, EVENT_A6H_04H) \ 963 __PMC_EV(IAP, EVENT_A6H_08H) \ 964 __PMC_EV(IAP, EVENT_A6H_10H) \ 965 __PMC_EV(IAP, EVENT_A6H_40H) \ 966 __PMC_EV(IAP, EVENT_A7H_01H) \ 967 __PMC_EV(IAP, EVENT_A8H_01H) \ 968 __PMC_EV(IAP, EVENT_A8H_02H) \ 969 __PMC_EV(IAP, EVENT_AAH_01H) \ 970 __PMC_EV(IAP, EVENT_AAH_02H) \ 971 __PMC_EV(IAP, EVENT_AAH_03H) \ 972 __PMC_EV(IAP, EVENT_AAH_08H) \ 973 __PMC_EV(IAP, EVENT_ABH_01H) \ 974 __PMC_EV(IAP, EVENT_ABH_02H) \ 975 __PMC_EV(IAP, EVENT_ACH_02H) \ 976 __PMC_EV(IAP, EVENT_ACH_08H) \ 977 __PMC_EV(IAP, EVENT_ACH_0AH) \ 978 __PMC_EV(IAP, EVENT_AEH_01H) \ 979 __PMC_EV(IAP, EVENT_B0H_00H) \ 980 __PMC_EV(IAP, EVENT_B0H_01H) \ 981 __PMC_EV(IAP, EVENT_B0H_02H) \ 982 __PMC_EV(IAP, EVENT_B0H_04H) \ 983 __PMC_EV(IAP, EVENT_B0H_08H) \ 984 __PMC_EV(IAP, EVENT_B0H_10H) \ 985 __PMC_EV(IAP, EVENT_B0H_20H) \ 986 __PMC_EV(IAP, EVENT_B0H_40H) \ 987 __PMC_EV(IAP, EVENT_B0H_80H) \ 988 __PMC_EV(IAP, EVENT_B1H_00H) \ 989 __PMC_EV(IAP, EVENT_B1H_01H) \ 990 __PMC_EV(IAP, EVENT_B1H_02H) \ 991 __PMC_EV(IAP, EVENT_B1H_04H) \ 992 __PMC_EV(IAP, EVENT_B1H_08H) \ 993 __PMC_EV(IAP, EVENT_B1H_10H) \ 994 __PMC_EV(IAP, EVENT_B1H_1FH) \ 995 __PMC_EV(IAP, EVENT_B1H_20H) \ 996 __PMC_EV(IAP, EVENT_B1H_3FH) \ 997 __PMC_EV(IAP, EVENT_B1H_40H) \ 998 __PMC_EV(IAP, EVENT_B1H_80H) \ 999 __PMC_EV(IAP, EVENT_B2H_01H) \ 1000 __PMC_EV(IAP, EVENT_B3H_01H) \ 1001 __PMC_EV(IAP, EVENT_B3H_02H) \ 1002 __PMC_EV(IAP, EVENT_B3H_04H) \ 1003 __PMC_EV(IAP, EVENT_B3H_08H) \ 1004 __PMC_EV(IAP, EVENT_B3H_10H) \ 1005 __PMC_EV(IAP, EVENT_B3H_20H) \ 1006 __PMC_EV(IAP, EVENT_B3H_81H) \ 1007 __PMC_EV(IAP, EVENT_B3H_82H) \ 1008 __PMC_EV(IAP, EVENT_B3H_84H) \ 1009 __PMC_EV(IAP, EVENT_B3H_88H) \ 1010 __PMC_EV(IAP, EVENT_B3H_90H) \ 1011 __PMC_EV(IAP, EVENT_B3H_A0H) \ 1012 __PMC_EV(IAP, EVENT_B4H_01H) \ 1013 __PMC_EV(IAP, EVENT_B4H_02H) \ 1014 __PMC_EV(IAP, EVENT_B4H_04H) \ 1015 __PMC_EV(IAP, EVENT_B6H_01H) \ 1016 __PMC_EV(IAP, EVENT_B6H_04H) \ 1017 __PMC_EV(IAP, EVENT_B7H_01H) \ 1018 __PMC_EV(IAP, EVENT_B7H_02H) \ 1019 __PMC_EV(IAP, EVENT_B8H_01H) \ 1020 __PMC_EV(IAP, EVENT_B8H_02H) \ 1021 __PMC_EV(IAP, EVENT_B8H_04H) \ 1022 __PMC_EV(IAP, EVENT_BAH_01H) \ 1023 __PMC_EV(IAP, EVENT_BAH_02H) \ 1024 __PMC_EV(IAP, EVENT_BBH_01H) \ 1025 __PMC_EV(IAP, EVENT_BCH_11H) \ 1026 __PMC_EV(IAP, EVENT_BCH_12H) \ 1027 __PMC_EV(IAP, EVENT_BCH_14H) \ 1028 __PMC_EV(IAP, EVENT_BCH_18H) \ 1029 __PMC_EV(IAP, EVENT_BCH_21H) \ 1030 __PMC_EV(IAP, EVENT_BCH_22H) \ 1031 __PMC_EV(IAP, EVENT_BCH_24H) \ 1032 __PMC_EV(IAP, EVENT_BCH_28H) \ 1033 __PMC_EV(IAP, EVENT_BDH_01H) \ 1034 __PMC_EV(IAP, EVENT_BDH_20H) \ 1035 __PMC_EV(IAP, EVENT_BFH_05H) \ 1036 __PMC_EV(IAP, EVENT_C0H_00H) \ 1037 __PMC_EV(IAP, EVENT_C0H_01H) \ 1038 __PMC_EV(IAP, EVENT_C0H_02H) \ 1039 __PMC_EV(IAP, EVENT_C0H_04H) \ 1040 __PMC_EV(IAP, EVENT_C0H_08H) \ 1041 __PMC_EV(IAP, EVENT_C1H_00H) \ 1042 __PMC_EV(IAP, EVENT_C1H_01H) \ 1043 __PMC_EV(IAP, EVENT_C1H_02H) \ 1044 __PMC_EV(IAP, EVENT_C1H_08H) \ 1045 __PMC_EV(IAP, EVENT_C1H_10H) \ 1046 __PMC_EV(IAP, EVENT_C1H_20H) \ 1047 __PMC_EV(IAP, EVENT_C1H_3FH) \ 1048 __PMC_EV(IAP, EVENT_C1H_40H) \ 1049 __PMC_EV(IAP, EVENT_C1H_80H) \ 1050 __PMC_EV(IAP, EVENT_C1H_FEH) \ 1051 __PMC_EV(IAP, EVENT_C2H_00H) \ 1052 __PMC_EV(IAP, EVENT_C2H_01H) \ 1053 __PMC_EV(IAP, EVENT_C2H_02H) \ 1054 __PMC_EV(IAP, EVENT_C2H_04H) \ 1055 __PMC_EV(IAP, EVENT_C2H_07H) \ 1056 __PMC_EV(IAP, EVENT_C2H_08H) \ 1057 __PMC_EV(IAP, EVENT_C2H_0FH) \ 1058 __PMC_EV(IAP, EVENT_C2H_10H) \ 1059 __PMC_EV(IAP, EVENT_C3H_00H) \ 1060 __PMC_EV(IAP, EVENT_C3H_01H) \ 1061 __PMC_EV(IAP, EVENT_C3H_02H) \ 1062 __PMC_EV(IAP, EVENT_C3H_04H) \ 1063 __PMC_EV(IAP, EVENT_C3H_08H) \ 1064 __PMC_EV(IAP, EVENT_C3H_10H) \ 1065 __PMC_EV(IAP, EVENT_C3H_20H) \ 1066 __PMC_EV(IAP, EVENT_C4H_00H) \ 1067 __PMC_EV(IAP, EVENT_C4H_01H) \ 1068 __PMC_EV(IAP, EVENT_C4H_02H) \ 1069 __PMC_EV(IAP, EVENT_C4H_04H) \ 1070 __PMC_EV(IAP, EVENT_C4H_08H) \ 1071 __PMC_EV(IAP, EVENT_C4H_0CH) \ 1072 __PMC_EV(IAP, EVENT_C4H_0FH) \ 1073 __PMC_EV(IAP, EVENT_C4H_10H) \ 1074 __PMC_EV(IAP, EVENT_C4H_20H) \ 1075 __PMC_EV(IAP, EVENT_C4H_40H) \ 1076 __PMC_EV(IAP, EVENT_C4H_7EH) \ 1077 __PMC_EV(IAP, EVENT_C4H_BFH) \ 1078 __PMC_EV(IAP, EVENT_C4H_EBH) \ 1079 __PMC_EV(IAP, EVENT_C4H_F7H) \ 1080 __PMC_EV(IAP, EVENT_C4H_F9H) \ 1081 __PMC_EV(IAP, EVENT_C4H_FBH) \ 1082 __PMC_EV(IAP, EVENT_C4H_FDH) \ 1083 __PMC_EV(IAP, EVENT_C4H_FEH) \ 1084 __PMC_EV(IAP, EVENT_C5H_00H) \ 1085 __PMC_EV(IAP, EVENT_C5H_01H) \ 1086 __PMC_EV(IAP, EVENT_C5H_02H) \ 1087 __PMC_EV(IAP, EVENT_C5H_04H) \ 1088 __PMC_EV(IAP, EVENT_C5H_10H) \ 1089 __PMC_EV(IAP, EVENT_C5H_20H) \ 1090 __PMC_EV(IAP, EVENT_C5H_7EH) \ 1091 __PMC_EV(IAP, EVENT_C5H_BFH) \ 1092 __PMC_EV(IAP, EVENT_C5H_EBH) \ 1093 __PMC_EV(IAP, EVENT_C5H_F7H) \ 1094 __PMC_EV(IAP, EVENT_C5H_F9H) \ 1095 __PMC_EV(IAP, EVENT_C5H_FBH) \ 1096 __PMC_EV(IAP, EVENT_C5H_FDH) \ 1097 __PMC_EV(IAP, EVENT_C5H_FEH) \ 1098 __PMC_EV(IAP, EVENT_C6H_00H) \ 1099 __PMC_EV(IAP, EVENT_C6H_01H) \ 1100 __PMC_EV(IAP, EVENT_C6H_02H) \ 1101 __PMC_EV(IAP, EVENT_C7H_00H) \ 1102 __PMC_EV(IAP, EVENT_C7H_01H) \ 1103 __PMC_EV(IAP, EVENT_C7H_02H) \ 1104 __PMC_EV(IAP, EVENT_C7H_04H) \ 1105 __PMC_EV(IAP, EVENT_C7H_08H) \ 1106 __PMC_EV(IAP, EVENT_C7H_10H) \ 1107 __PMC_EV(IAP, EVENT_C7H_1FH) \ 1108 __PMC_EV(IAP, EVENT_C7H_20H) \ 1109 __PMC_EV(IAP, EVENT_C7H_40H) \ 1110 __PMC_EV(IAP, EVENT_C7H_80H) \ 1111 __PMC_EV(IAP, EVENT_C8H_00H) \ 1112 __PMC_EV(IAP, EVENT_C8H_01H) \ 1113 __PMC_EV(IAP, EVENT_C8H_02H) \ 1114 __PMC_EV(IAP, EVENT_C8H_04H) \ 1115 __PMC_EV(IAP, EVENT_C8H_08H) \ 1116 __PMC_EV(IAP, EVENT_C8H_10H) \ 1117 __PMC_EV(IAP, EVENT_C8H_20H) \ 1118 __PMC_EV(IAP, EVENT_C8H_40H) \ 1119 __PMC_EV(IAP, EVENT_C8H_80H) \ 1120 __PMC_EV(IAP, EVENT_C9H_00H) \ 1121 __PMC_EV(IAP, EVENT_C9H_01H) \ 1122 __PMC_EV(IAP, EVENT_C9H_02H) \ 1123 __PMC_EV(IAP, EVENT_C9H_04H) \ 1124 __PMC_EV(IAP, EVENT_C9H_08H) \ 1125 __PMC_EV(IAP, EVENT_C9H_10H) \ 1126 __PMC_EV(IAP, EVENT_C9H_20H) \ 1127 __PMC_EV(IAP, EVENT_C9H_40H) \ 1128 __PMC_EV(IAP, EVENT_C9H_80H) \ 1129 __PMC_EV(IAP, EVENT_CAH_00H) \ 1130 __PMC_EV(IAP, EVENT_CAH_01H) \ 1131 __PMC_EV(IAP, EVENT_CAH_02H) \ 1132 __PMC_EV(IAP, EVENT_CAH_04H) \ 1133 __PMC_EV(IAP, EVENT_CAH_08H) \ 1134 __PMC_EV(IAP, EVENT_CAH_10H) \ 1135 __PMC_EV(IAP, EVENT_CAH_20H) \ 1136 __PMC_EV(IAP, EVENT_CAH_1EH) \ 1137 __PMC_EV(IAP, EVENT_CAH_3FH) \ 1138 __PMC_EV(IAP, EVENT_CAH_50H) \ 1139 __PMC_EV(IAP, EVENT_CBH_01H) \ 1140 __PMC_EV(IAP, EVENT_CBH_02H) \ 1141 __PMC_EV(IAP, EVENT_CBH_04H) \ 1142 __PMC_EV(IAP, EVENT_CBH_08H) \ 1143 __PMC_EV(IAP, EVENT_CBH_10H) \ 1144 __PMC_EV(IAP, EVENT_CBH_1FH) \ 1145 __PMC_EV(IAP, EVENT_CBH_40H) \ 1146 __PMC_EV(IAP, EVENT_CBH_80H) \ 1147 __PMC_EV(IAP, EVENT_CCH_00H) \ 1148 __PMC_EV(IAP, EVENT_CCH_01H) \ 1149 __PMC_EV(IAP, EVENT_CCH_02H) \ 1150 __PMC_EV(IAP, EVENT_CCH_03H) \ 1151 __PMC_EV(IAP, EVENT_CCH_20H) \ 1152 __PMC_EV(IAP, EVENT_CDH_00H) \ 1153 __PMC_EV(IAP, EVENT_CDH_01H) \ 1154 __PMC_EV(IAP, EVENT_CDH_02H) \ 1155 __PMC_EV(IAP, EVENT_CEH_00H) \ 1156 __PMC_EV(IAP, EVENT_CFH_00H) \ 1157 __PMC_EV(IAP, EVENT_D0H_00H) \ 1158 __PMC_EV(IAP, EVENT_D0H_01H) \ 1159 __PMC_EV(IAP, EVENT_D0H_02H) \ 1160 __PMC_EV(IAP, EVENT_D0H_10H) \ 1161 __PMC_EV(IAP, EVENT_D0H_11H) \ 1162 __PMC_EV(IAP, EVENT_D0H_12H) \ 1163 __PMC_EV(IAP, EVENT_D0H_20H) \ 1164 __PMC_EV(IAP, EVENT_D0H_21H) \ 1165 __PMC_EV(IAP, EVENT_D0H_40H) \ 1166 __PMC_EV(IAP, EVENT_D0H_41H) \ 1167 __PMC_EV(IAP, EVENT_D0H_42H) \ 1168 __PMC_EV(IAP, EVENT_D0H_80H) \ 1169 __PMC_EV(IAP, EVENT_D0H_81H) \ 1170 __PMC_EV(IAP, EVENT_D0H_82H) \ 1171 __PMC_EV(IAP, EVENT_D1H_01H) \ 1172 __PMC_EV(IAP, EVENT_D1H_02H) \ 1173 __PMC_EV(IAP, EVENT_D1H_04H) \ 1174 __PMC_EV(IAP, EVENT_D1H_08H) \ 1175 __PMC_EV(IAP, EVENT_D1H_10H) \ 1176 __PMC_EV(IAP, EVENT_D1H_20H) \ 1177 __PMC_EV(IAP, EVENT_D1H_40H) \ 1178 __PMC_EV(IAP, EVENT_D2H_01H) \ 1179 __PMC_EV(IAP, EVENT_D2H_02H) \ 1180 __PMC_EV(IAP, EVENT_D2H_04H) \ 1181 __PMC_EV(IAP, EVENT_D2H_08H) \ 1182 __PMC_EV(IAP, EVENT_D2H_0FH) \ 1183 __PMC_EV(IAP, EVENT_D2H_10H) \ 1184 __PMC_EV(IAP, EVENT_D3H_01H) \ 1185 __PMC_EV(IAP, EVENT_D3H_02H) \ 1186 __PMC_EV(IAP, EVENT_D3H_03H) \ 1187 __PMC_EV(IAP, EVENT_D3H_04H) \ 1188 __PMC_EV(IAP, EVENT_D3H_08H) \ 1189 __PMC_EV(IAP, EVENT_D3H_0CH) \ 1190 __PMC_EV(IAP, EVENT_D3H_10H) \ 1191 __PMC_EV(IAP, EVENT_D3H_20H) \ 1192 __PMC_EV(IAP, EVENT_D4H_01H) \ 1193 __PMC_EV(IAP, EVENT_D4H_02H) \ 1194 __PMC_EV(IAP, EVENT_D4H_04H) \ 1195 __PMC_EV(IAP, EVENT_D4H_08H) \ 1196 __PMC_EV(IAP, EVENT_D4H_0FH) \ 1197 __PMC_EV(IAP, EVENT_D5H_01H) \ 1198 __PMC_EV(IAP, EVENT_D5H_02H) \ 1199 __PMC_EV(IAP, EVENT_D5H_04H) \ 1200 __PMC_EV(IAP, EVENT_D5H_08H) \ 1201 __PMC_EV(IAP, EVENT_D5H_0FH) \ 1202 __PMC_EV(IAP, EVENT_D7H_00H) \ 1203 __PMC_EV(IAP, EVENT_D8H_00H) \ 1204 __PMC_EV(IAP, EVENT_D8H_01H) \ 1205 __PMC_EV(IAP, EVENT_D8H_02H) \ 1206 __PMC_EV(IAP, EVENT_D8H_03H) \ 1207 __PMC_EV(IAP, EVENT_D8H_04H) \ 1208 __PMC_EV(IAP, EVENT_D9H_00H) \ 1209 __PMC_EV(IAP, EVENT_D9H_01H) \ 1210 __PMC_EV(IAP, EVENT_D9H_02H) \ 1211 __PMC_EV(IAP, EVENT_D9H_03H) \ 1212 __PMC_EV(IAP, EVENT_DAH_00H) \ 1213 __PMC_EV(IAP, EVENT_DAH_01H) \ 1214 __PMC_EV(IAP, EVENT_DAH_02H) \ 1215 __PMC_EV(IAP, EVENT_DBH_00H) \ 1216 __PMC_EV(IAP, EVENT_DBH_01H) \ 1217 __PMC_EV(IAP, EVENT_DCH_01H) \ 1218 __PMC_EV(IAP, EVENT_DCH_02H) \ 1219 __PMC_EV(IAP, EVENT_DCH_04H) \ 1220 __PMC_EV(IAP, EVENT_DCH_08H) \ 1221 __PMC_EV(IAP, EVENT_DCH_10H) \ 1222 __PMC_EV(IAP, EVENT_DCH_1FH) \ 1223 __PMC_EV(IAP, EVENT_E0H_00H) \ 1224 __PMC_EV(IAP, EVENT_E0H_01H) \ 1225 __PMC_EV(IAP, EVENT_E2H_00H) \ 1226 __PMC_EV(IAP, EVENT_E4H_00H) \ 1227 __PMC_EV(IAP, EVENT_E4H_01H) \ 1228 __PMC_EV(IAP, EVENT_E5H_01H) \ 1229 __PMC_EV(IAP, EVENT_E6H_00H) \ 1230 __PMC_EV(IAP, EVENT_E6H_01H) \ 1231 __PMC_EV(IAP, EVENT_E6H_02H) \ 1232 __PMC_EV(IAP, EVENT_E6H_08H) \ 1233 __PMC_EV(IAP, EVENT_E6H_10H) \ 1234 __PMC_EV(IAP, EVENT_E6H_1FH) \ 1235 __PMC_EV(IAP, EVENT_E7H_01H) \ 1236 __PMC_EV(IAP, EVENT_E8H_01H) \ 1237 __PMC_EV(IAP, EVENT_E8H_02H) \ 1238 __PMC_EV(IAP, EVENT_E8H_03H) \ 1239 __PMC_EV(IAP, EVENT_ECH_01H) \ 1240 __PMC_EV(IAP, EVENT_F0H_00H) \ 1241 __PMC_EV(IAP, EVENT_F0H_01H) \ 1242 __PMC_EV(IAP, EVENT_F0H_02H) \ 1243 __PMC_EV(IAP, EVENT_F0H_04H) \ 1244 __PMC_EV(IAP, EVENT_F0H_08H) \ 1245 __PMC_EV(IAP, EVENT_F0H_10H) \ 1246 __PMC_EV(IAP, EVENT_F0H_20H) \ 1247 __PMC_EV(IAP, EVENT_F0H_40H) \ 1248 __PMC_EV(IAP, EVENT_F0H_80H) \ 1249 __PMC_EV(IAP, EVENT_F1H_01H) \ 1250 __PMC_EV(IAP, EVENT_F1H_02H) \ 1251 __PMC_EV(IAP, EVENT_F1H_04H) \ 1252 __PMC_EV(IAP, EVENT_F1H_07H) \ 1253 __PMC_EV(IAP, EVENT_F1H_1FH) \ 1254 __PMC_EV(IAP, EVENT_F2H_01H) \ 1255 __PMC_EV(IAP, EVENT_F2H_02H) \ 1256 __PMC_EV(IAP, EVENT_F2H_04H) \ 1257 __PMC_EV(IAP, EVENT_F2H_05H) \ 1258 __PMC_EV(IAP, EVENT_F2H_06H) \ 1259 __PMC_EV(IAP, EVENT_F2H_08H) \ 1260 __PMC_EV(IAP, EVENT_F2H_0AH) \ 1261 __PMC_EV(IAP, EVENT_F2H_0FH) \ 1262 __PMC_EV(IAP, EVENT_F3H_01H) \ 1263 __PMC_EV(IAP, EVENT_F3H_02H) \ 1264 __PMC_EV(IAP, EVENT_F3H_04H) \ 1265 __PMC_EV(IAP, EVENT_F3H_08H) \ 1266 __PMC_EV(IAP, EVENT_F3H_10H) \ 1267 __PMC_EV(IAP, EVENT_F3H_20H) \ 1268 __PMC_EV(IAP, EVENT_F4H_01H) \ 1269 __PMC_EV(IAP, EVENT_F4H_02H) \ 1270 __PMC_EV(IAP, EVENT_F4H_04H) \ 1271 __PMC_EV(IAP, EVENT_F4H_08H) \ 1272 __PMC_EV(IAP, EVENT_F4H_10H) \ 1273 __PMC_EV(IAP, EVENT_F6H_01H) \ 1274 __PMC_EV(IAP, EVENT_F7H_01H) \ 1275 __PMC_EV(IAP, EVENT_F7H_02H) \ 1276 __PMC_EV(IAP, EVENT_F7H_04H) \ 1277 __PMC_EV(IAP, EVENT_F8H_00H) \ 1278 __PMC_EV(IAP, EVENT_F8H_01H) \ 1279 __PMC_EV(IAP, EVENT_FDH_01H) \ 1280 __PMC_EV(IAP, EVENT_FDH_02H) \ 1281 __PMC_EV(IAP, EVENT_FDH_04H) \ 1282 __PMC_EV(IAP, EVENT_FDH_08H) \ 1283 __PMC_EV(IAP, EVENT_FDH_10H) \ 1284 __PMC_EV(IAP, EVENT_FDH_20H) \ 1285 __PMC_EV(IAP, EVENT_FDH_40H) \ 1286 __PMC_EV(IAP, EVENT_FEH_02H) \ 1287 __PMC_EV(IAP, EVENT_FEH_04H) 1288 1289 #define PMC_EV_IAP_FIRST PMC_EV_IAP_ARCH_BR_INS_RET 1290 #define PMC_EV_IAP_LAST PMC_EV_IAP_EVENT_FDH_40H 1291 1292 /* 1293 * Map "architectural" event names to event ids. 1294 */ 1295 #define __PMC_EV_ALIAS_INTEL_ARCHITECTURAL() \ 1296 __PMC_EV_ALIAS("branch-instruction-retired", IAP_ARCH_BR_INS_RET) \ 1297 __PMC_EV_ALIAS("branch-misses-retired", IAP_ARCH_BR_MIS_RET) \ 1298 __PMC_EV_ALIAS("instruction-retired", IAP_ARCH_INS_RET) \ 1299 __PMC_EV_ALIAS("llc-misses", IAP_ARCH_LLC_MIS) \ 1300 __PMC_EV_ALIAS("llc-reference", IAP_ARCH_LLC_REF) \ 1301 __PMC_EV_ALIAS("unhalted-reference-cycles", IAP_ARCH_UNH_REF_CYC) \ 1302 __PMC_EV_ALIAS("unhalted-core-cycles", IAP_ARCH_UNH_COR_CYC) 1303 1304 /* 1305 * Aliases for Atom PMCs. 1306 */ 1307 #define __PMC_EV_ALIAS_ATOM() \ 1308 __PMC_EV_ALIAS_INTEL_ARCHITECTURAL() \ 1309 __PMC_EV_ALIAS("BACLEARS", IAP_EVENT_E6H_01H) \ 1310 __PMC_EV_ALIAS("BOGUS_BR", IAP_EVENT_E4H_00H) \ 1311 __PMC_EV_ALIAS("BR_BAC_MISSP_EXEC", IAP_EVENT_8AH_00H) \ 1312 __PMC_EV_ALIAS("BR_CALL_EXEC", IAP_EVENT_92H_00H) \ 1313 __PMC_EV_ALIAS("BR_CALL_MISSP_EXEC", IAP_EVENT_93H_00H) \ 1314 __PMC_EV_ALIAS("BR_CND_EXEC", IAP_EVENT_8BH_00H) \ 1315 __PMC_EV_ALIAS("BR_CND_MISSP_EXEC", IAP_EVENT_8CH_00H) \ 1316 __PMC_EV_ALIAS("BR_IND_CALL_EXEC", IAP_EVENT_94H_00H) \ 1317 __PMC_EV_ALIAS("BR_IND_EXEC", IAP_EVENT_8DH_00H) \ 1318 __PMC_EV_ALIAS("BR_IND_MISSP_EXEC", IAP_EVENT_8EH_00H) \ 1319 __PMC_EV_ALIAS("BR_INST_DECODED", IAP_EVENT_E0H_01H) \ 1320 __PMC_EV_ALIAS("BR_INST_EXEC", IAP_EVENT_88H_00H) \ 1321 __PMC_EV_ALIAS("BR_INST_RETIRED.ANY", IAP_EVENT_C4H_00H) \ 1322 __PMC_EV_ALIAS("BR_INST_RETIRED.ANY1", IAP_EVENT_C4H_0FH) \ 1323 __PMC_EV_ALIAS("BR_INST_RETIRED.MISPRED", IAP_EVENT_C5H_00H) \ 1324 __PMC_EV_ALIAS("BR_INST_RETIRED.MISPRED_NOT_TAKEN", \ 1325 IAP_EVENT_C4H_02H) \ 1326 __PMC_EV_ALIAS("BR_INST_RETIRED.MISPRED_TAKEN", IAP_EVENT_C4H_08H) \ 1327 __PMC_EV_ALIAS("BR_INST_RETIRED.PRED_NOT_TAKEN", IAP_EVENT_C4H_01H) \ 1328 __PMC_EV_ALIAS("BR_INST_RETIRED.PRED_TAKEN", IAP_EVENT_C4H_04H) \ 1329 __PMC_EV_ALIAS("BR_INST_RETIRED.TAKEN", IAP_EVENT_C4H_0CH) \ 1330 __PMC_EV_ALIAS("BR_MISSP_EXEC", IAP_EVENT_89H_00H) \ 1331 __PMC_EV_ALIAS("BR_RET_BAC_MISSP_EXEC", IAP_EVENT_91H_00H) \ 1332 __PMC_EV_ALIAS("BR_RET_EXEC", IAP_EVENT_8FH_00H) \ 1333 __PMC_EV_ALIAS("BR_RET_MISSP_EXEC", IAP_EVENT_90H_00H) \ 1334 __PMC_EV_ALIAS("BR_TKN_BUBBLE_1", IAP_EVENT_97H_00H) \ 1335 __PMC_EV_ALIAS("BR_TKN_BUBBLE_2", IAP_EVENT_98H_00H) \ 1336 __PMC_EV_ALIAS("BUSQ_EMPTY", IAP_EVENT_7DH) \ 1337 __PMC_EV_ALIAS("BUS_BNR_DRV", IAP_EVENT_61H) \ 1338 __PMC_EV_ALIAS("BUS_DATA_RCV", IAP_EVENT_64H) \ 1339 __PMC_EV_ALIAS("BUS_DRDY_CLOCKS", IAP_EVENT_62H) \ 1340 __PMC_EV_ALIAS("BUS_HITM_DRV", IAP_EVENT_7BH) \ 1341 __PMC_EV_ALIAS("BUS_HIT_DRV", IAP_EVENT_7AH) \ 1342 __PMC_EV_ALIAS("BUS_IO_WAIT", IAP_EVENT_7FH) \ 1343 __PMC_EV_ALIAS("BUS_LOCK_CLOCKS", IAP_EVENT_63H) \ 1344 __PMC_EV_ALIAS("BUS_REQUEST_OUTSTANDING", IAP_EVENT_60H) \ 1345 __PMC_EV_ALIAS("BUS_TRANS_ANY", IAP_EVENT_70H) \ 1346 __PMC_EV_ALIAS("BUS_TRANS_BRD", IAP_EVENT_65H) \ 1347 __PMC_EV_ALIAS("BUS_TRANS_BURST", IAP_EVENT_6EH) \ 1348 __PMC_EV_ALIAS("BUS_TRANS_DEF", IAP_EVENT_6DH) \ 1349 __PMC_EV_ALIAS("BUS_TRANS_IFETCH", IAP_EVENT_68H) \ 1350 __PMC_EV_ALIAS("BUS_TRANS_INVAL", IAP_EVENT_69H) \ 1351 __PMC_EV_ALIAS("BUS_TRANS_IO", IAP_EVENT_6CH) \ 1352 __PMC_EV_ALIAS("BUS_TRANS_MEM", IAP_EVENT_6FH) \ 1353 __PMC_EV_ALIAS("BUS_TRANS_P", IAP_EVENT_6BH) \ 1354 __PMC_EV_ALIAS("BUS_TRANS_PWR", IAP_EVENT_6AH) \ 1355 __PMC_EV_ALIAS("BUS_TRANS_RFO", IAP_EVENT_66H) \ 1356 __PMC_EV_ALIAS("BUS_TRANS_WB", IAP_EVENT_67H) \ 1357 __PMC_EV_ALIAS("CMP_SNOOP", IAP_EVENT_78H) \ 1358 __PMC_EV_ALIAS("CPU_CLK_UNHALTED.BUS", IAP_EVENT_3CH_01H) \ 1359 __PMC_EV_ALIAS("CPU_CLK_UNHALTED.CORE_P", IAP_EVENT_3CH_00H) \ 1360 __PMC_EV_ALIAS("CPU_CLK_UNHALTED.NO_OTHER", IAP_EVENT_3CH_02H) \ 1361 __PMC_EV_ALIAS("CYCLES_DIV_BUSY", IAP_EVENT_14H_01H) \ 1362 __PMC_EV_ALIAS("CYCLES_INT_MASKED.CYCLES_INT_MASKED", \ 1363 IAP_EVENT_C6H_01H) \ 1364 __PMC_EV_ALIAS("CYCLES_INT_MASKED.CYCLES_INT_PENDING_AND_MASKED", \ 1365 IAP_EVENT_C6H_02H) \ 1366 __PMC_EV_ALIAS("CYCLES_L1I_MEM_STALLED", IAP_EVENT_86H_00H) \ 1367 __PMC_EV_ALIAS("DATA_TLB_MISSES.DTLB_MISS", IAP_EVENT_08H_07H) \ 1368 __PMC_EV_ALIAS("DATA_TLB_MISSES.DTLB_MISS_LD", IAP_EVENT_08H_05H) \ 1369 __PMC_EV_ALIAS("DATA_TLB_MISSES.DTLB_MISS_ST", IAP_EVENT_08H_06H) \ 1370 __PMC_EV_ALIAS("DATA_TLB_MISSES.UTLB_MISS_LD", IAP_EVENT_08H_09H) \ 1371 __PMC_EV_ALIAS("DELAYED_BYPASS.FP", IAP_EVENT_19H_00H) \ 1372 __PMC_EV_ALIAS("DELAYED_BYPASS.LOAD", IAP_EVENT_19H_01H) \ 1373 __PMC_EV_ALIAS("DELAYED_BYPASS.SIMD", IAP_EVENT_19H_02H) \ 1374 __PMC_EV_ALIAS("DIV", IAP_EVENT_13H_00H) \ 1375 __PMC_EV_ALIAS("DIV.AR", IAP_EVENT_13H_81H) \ 1376 __PMC_EV_ALIAS("DIV.S", IAP_EVENT_13H_01H) \ 1377 __PMC_EV_ALIAS("DTLB_MISSES.ANY", IAP_EVENT_08H_01H) \ 1378 __PMC_EV_ALIAS("DTLB_MISSES.L0_MISS_LD", IAP_EVENT_08H_04H) \ 1379 __PMC_EV_ALIAS("DTLB_MISSES.MISS_LD", IAP_EVENT_08H_02H) \ 1380 __PMC_EV_ALIAS("DTLB_MISSES.MISS_ST", IAP_EVENT_08H_08H) \ 1381 __PMC_EV_ALIAS("EIST_TRANS", IAP_EVENT_3AH_00H) \ 1382 __PMC_EV_ALIAS("ESP.ADDITIONS", IAP_EVENT_ABH_02H) \ 1383 __PMC_EV_ALIAS("ESP.SYNCH", IAP_EVENT_ABH_01H) \ 1384 __PMC_EV_ALIAS("EXT_SNOOP", IAP_EVENT_77H) \ 1385 __PMC_EV_ALIAS("FP_ASSIST", IAP_EVENT_11H_01H) \ 1386 __PMC_EV_ALIAS("FP_ASSIST.AR", IAP_EVENT_11H_81H) \ 1387 __PMC_EV_ALIAS("FP_COMP_OPS_EXE", IAP_EVENT_10H_00H) \ 1388 __PMC_EV_ALIAS("FP_MMX_TRANS_TO_FP", IAP_EVENT_CCH_02H) \ 1389 __PMC_EV_ALIAS("FP_MMX_TRANS_TO_MMX", IAP_EVENT_CCH_01H) \ 1390 __PMC_EV_ALIAS("HW_INT_RCV", IAP_EVENT_C8H_00H) \ 1391 __PMC_EV_ALIAS("ICACHE.ACCESSES", IAP_EVENT_80H_03H) \ 1392 __PMC_EV_ALIAS("ICACHE.MISSES", IAP_EVENT_80H_02H) \ 1393 __PMC_EV_ALIAS("IDLE_DURING_DIV", IAP_EVENT_18H_00H) \ 1394 __PMC_EV_ALIAS("ILD_STALL", IAP_EVENT_87H_00H) \ 1395 __PMC_EV_ALIAS("INST_QUEUE.FULL", IAP_EVENT_83H_02H) \ 1396 __PMC_EV_ALIAS("INST_RETIRED.ANY_P", IAP_EVENT_C0H_00H) \ 1397 __PMC_EV_ALIAS("INST_RETIRED.LOADS", IAP_EVENT_C0H_01H) \ 1398 __PMC_EV_ALIAS("INST_RETIRED.OTHER", IAP_EVENT_C0H_04H) \ 1399 __PMC_EV_ALIAS("INST_RETIRED.STORES", IAP_EVENT_C0H_02H) \ 1400 __PMC_EV_ALIAS("ITLB.FLUSH", IAP_EVENT_82H_04H) \ 1401 __PMC_EV_ALIAS("ITLB.LARGE_MISS", IAP_EVENT_82H_10H) \ 1402 __PMC_EV_ALIAS("ITLB.MISSES", IAP_EVENT_82H_02H) \ 1403 __PMC_EV_ALIAS("ITLB.SMALL_MISS", IAP_EVENT_82H_02H) \ 1404 __PMC_EV_ALIAS("ITLB_MISS_RETIRED", IAP_EVENT_C9H_00H) \ 1405 __PMC_EV_ALIAS("L1D_ALL_CACHE_REF", IAP_EVENT_43H_02H) \ 1406 __PMC_EV_ALIAS("L1D_ALL_REF", IAP_EVENT_43H_01H) \ 1407 __PMC_EV_ALIAS("L1D_CACHE.LD", IAP_EVENT_40H_21H) \ 1408 __PMC_EV_ALIAS("L1D_CACHE.ST", IAP_EVENT_41H_22H) \ 1409 __PMC_EV_ALIAS("L1D_CACHE_LOCK", IAP_EVENT_42H) \ 1410 __PMC_EV_ALIAS("L1D_CACHE_LOCK_DURATION", IAP_EVENT_42H_10H) \ 1411 __PMC_EV_ALIAS("L1D_M_EVICT", IAP_EVENT_47H_00H) \ 1412 __PMC_EV_ALIAS("L1D_M_REPL", IAP_EVENT_46H_00H) \ 1413 __PMC_EV_ALIAS("L1D_PEND_MISS", IAP_EVENT_48H_00H) \ 1414 __PMC_EV_ALIAS("L1D_PREFETCH.REQUESTS", IAP_EVENT_4EH_10H) \ 1415 __PMC_EV_ALIAS("L1D_REPL", IAP_EVENT_45H_0FH) \ 1416 __PMC_EV_ALIAS("L1D_SPLIT.LOADS", IAP_EVENT_49H_01H) \ 1417 __PMC_EV_ALIAS("L1D_SPLIT.STORES", IAP_EVENT_49H_02H) \ 1418 __PMC_EV_ALIAS("L1I_MISSES", IAP_EVENT_81H_00H) \ 1419 __PMC_EV_ALIAS("L1I_READS", IAP_EVENT_80H_00H) \ 1420 __PMC_EV_ALIAS("L2_ADS", IAP_EVENT_21H) \ 1421 __PMC_EV_ALIAS("L2_DBUS_BUSY_RD", IAP_EVENT_23H) \ 1422 __PMC_EV_ALIAS("L2_IFETCH", IAP_EVENT_28H) \ 1423 __PMC_EV_ALIAS("L2_LD", IAP_EVENT_29H) \ 1424 __PMC_EV_ALIAS("L2_LINES_IN", IAP_EVENT_24H) \ 1425 __PMC_EV_ALIAS("L2_LINES_OUT", IAP_EVENT_26H) \ 1426 __PMC_EV_ALIAS("L2_LOCK", IAP_EVENT_2BH) \ 1427 __PMC_EV_ALIAS("L2_M_LINES_IN", IAP_EVENT_25H) \ 1428 __PMC_EV_ALIAS("L2_M_LINES_OUT", IAP_EVENT_27H) \ 1429 __PMC_EV_ALIAS("L2_NO_REQ", IAP_EVENT_32H) \ 1430 __PMC_EV_ALIAS("L2_REJECT_BUSQ", IAP_EVENT_30H) \ 1431 __PMC_EV_ALIAS("L2_RQSTS", IAP_EVENT_2EH) \ 1432 __PMC_EV_ALIAS("L2_RQSTS.SELF.DEMAND.I_STATE", IAP_EVENT_2EH_41H) \ 1433 __PMC_EV_ALIAS("L2_RQSTS.SELF.DEMAND.MESI", IAP_EVENT_2EH_4FH) \ 1434 __PMC_EV_ALIAS("L2_ST", IAP_EVENT_2AH) \ 1435 __PMC_EV_ALIAS("LOAD_BLOCK.L1D", IAP_EVENT_03H_20H) \ 1436 __PMC_EV_ALIAS("LOAD_BLOCK.OVERLAP_STORE", IAP_EVENT_03H_08H) \ 1437 __PMC_EV_ALIAS("LOAD_BLOCK.STA", IAP_EVENT_03H_02H) \ 1438 __PMC_EV_ALIAS("LOAD_BLOCK.STD", IAP_EVENT_03H_04H) \ 1439 __PMC_EV_ALIAS("LOAD_BLOCK.UNTIL_RETIRE", IAP_EVENT_03H_10H) \ 1440 __PMC_EV_ALIAS("LOAD_HIT_PRE", IAP_EVENT_4CH_00H) \ 1441 __PMC_EV_ALIAS("MACHINE_CLEARS.SMC", IAP_EVENT_C3H_01H) \ 1442 __PMC_EV_ALIAS("MACHINE_NUKES.MEM_ORDER", IAP_EVENT_C3H_04H) \ 1443 __PMC_EV_ALIAS("MACRO_INSTS.ALL_DECODED", IAP_EVENT_AAH_03H) \ 1444 __PMC_EV_ALIAS("MACRO_INSTS.CISC_DECODED", IAP_EVENT_AAH_02H) \ 1445 __PMC_EV_ALIAS("MEMORY_DISAMBIGUATION.RESET", IAP_EVENT_09H_01H) \ 1446 __PMC_EV_ALIAS("MEMORY_DISAMBIGUATION.SUCCESS", IAP_EVENT_09H_02H) \ 1447 __PMC_EV_ALIAS("MEM_LOAD_RETIRED.DTLB_MISS", IAP_EVENT_CBH_04H) \ 1448 __PMC_EV_ALIAS("MEM_LOAD_RETIRED.L2_HIT", IAP_EVENT_CBH_01H) \ 1449 __PMC_EV_ALIAS("MEM_LOAD_RETIRED.L2_LINE_MISS", IAP_EVENT_CBH_08H) \ 1450 __PMC_EV_ALIAS("MEM_LOAD_RETIRED.L2_MISS", IAP_EVENT_CBH_02H) \ 1451 __PMC_EV_ALIAS("MUL", IAP_EVENT_12H_00H) \ 1452 __PMC_EV_ALIAS("MUL.AR", IAP_EVENT_12H_81H) \ 1453 __PMC_EV_ALIAS("MUL.S", IAP_EVENT_12H_01H) \ 1454 __PMC_EV_ALIAS("PAGE_WALKS.CYCLES", IAP_EVENT_0CH_03H) \ 1455 __PMC_EV_ALIAS("PAGE_WALKS.WALKS", IAP_EVENT_0CH_03H) \ 1456 __PMC_EV_ALIAS("PREFETCH.PREFETCHNTA", IAP_EVENT_07H_08H) \ 1457 __PMC_EV_ALIAS("PREFETCH.PREFETCHT0", IAP_EVENT_07H_01H) \ 1458 __PMC_EV_ALIAS("PREFETCH.SW_L2", IAP_EVENT_07H_06H) \ 1459 __PMC_EV_ALIAS("PREF_RQSTS_DN", IAP_EVENT_F8H_00H) \ 1460 __PMC_EV_ALIAS("PREF_RQSTS_UP", IAP_EVENT_F0H_00H) \ 1461 __PMC_EV_ALIAS("RAT_STALLS.ANY", IAP_EVENT_D2H_0FH) \ 1462 __PMC_EV_ALIAS("RAT_STALLS.FLAGS", IAP_EVENT_D2H_04H) \ 1463 __PMC_EV_ALIAS("RAT_STALLS.FPSW", IAP_EVENT_D2H_08H) \ 1464 __PMC_EV_ALIAS("RAT_STALLS.PARTIAL_CYCLES", IAP_EVENT_D2H_02H) \ 1465 __PMC_EV_ALIAS("RAT_STALLS.ROB_READ_PORT", IAP_EVENT_D2H_01H) \ 1466 __PMC_EV_ALIAS("RESOURCE_STALLS.ANY", IAP_EVENT_DCH_1FH) \ 1467 __PMC_EV_ALIAS("RESOURCE_STALLS.BR_MISS_CLEAR", IAP_EVENT_DCH_10H) \ 1468 __PMC_EV_ALIAS("RESOURCE_STALLS.FPCW", IAP_EVENT_DCH_08H) \ 1469 __PMC_EV_ALIAS("RESOURCE_STALLS.LD_ST", IAP_EVENT_DCH_04H) \ 1470 __PMC_EV_ALIAS("RESOURCE_STALLS.ROB_FULL", IAP_EVENT_DCH_01H) \ 1471 __PMC_EV_ALIAS("RESOURCE_STALLS.RS_FULL", IAP_EVENT_DCH_02H) \ 1472 __PMC_EV_ALIAS("RS_UOPS_DISPATCHED", IAP_EVENT_A0H_00H) \ 1473 __PMC_EV_ALIAS("RS_UOPS_DISPATCHED.PORT0", IAP_EVENT_A1H_01H) \ 1474 __PMC_EV_ALIAS("RS_UOPS_DISPATCHED.PORT1", IAP_EVENT_A1H_02H) \ 1475 __PMC_EV_ALIAS("RS_UOPS_DISPATCHED.PORT2", IAP_EVENT_A1H_04H) \ 1476 __PMC_EV_ALIAS("RS_UOPS_DISPATCHED.PORT3", IAP_EVENT_A1H_08H) \ 1477 __PMC_EV_ALIAS("RS_UOPS_DISPATCHED.PORT4", IAP_EVENT_A1H_10H) \ 1478 __PMC_EV_ALIAS("RS_UOPS_DISPATCHED.PORT5", IAP_EVENT_A1H_20H) \ 1479 __PMC_EV_ALIAS("SB_DRAIN_CYCLES", IAP_EVENT_04H_01H) \ 1480 __PMC_EV_ALIAS("SEGMENT_REG_LOADS.ANY", IAP_EVENT_06H_00H) \ 1481 __PMC_EV_ALIAS("SEG_REG_RENAMES.ANY", IAP_EVENT_D5H_0FH) \ 1482 __PMC_EV_ALIAS("SEG_REG_RENAMES.DS", IAP_EVENT_D5H_02H) \ 1483 __PMC_EV_ALIAS("SEG_REG_RENAMES.ES", IAP_EVENT_D5H_01H) \ 1484 __PMC_EV_ALIAS("SEG_REG_RENAMES.FS", IAP_EVENT_D5H_04H) \ 1485 __PMC_EV_ALIAS("SEG_REG_RENAMES.GS", IAP_EVENT_D5H_08H) \ 1486 __PMC_EV_ALIAS("SEG_RENAME_STALLS.ANY", IAP_EVENT_D4H_0FH) \ 1487 __PMC_EV_ALIAS("SEG_RENAME_STALLS.DS", IAP_EVENT_D4H_02H) \ 1488 __PMC_EV_ALIAS("SEG_RENAME_STALLS.ES", IAP_EVENT_D4H_01H) \ 1489 __PMC_EV_ALIAS("SEG_RENAME_STALLS.FS", IAP_EVENT_D4H_04H) \ 1490 __PMC_EV_ALIAS("SEG_RENAME_STALLS.GS", IAP_EVENT_D4H_08H) \ 1491 __PMC_EV_ALIAS("SIMD_ASSIST", IAP_EVENT_CDH_00H) \ 1492 __PMC_EV_ALIAS("SIMD_COMP_INST_RETIRED.PACKED_DOUBLE", \ 1493 IAP_EVENT_CAH_04H) \ 1494 __PMC_EV_ALIAS("SIMD_COMP_INST_RETIRED.PACKED_SINGLE", \ 1495 IAP_EVENT_CAH_01H) \ 1496 __PMC_EV_ALIAS("SIMD_COMP_INST_RETIRED.SCALAR_DOUBLE", \ 1497 IAP_EVENT_CAH_08H) \ 1498 __PMC_EV_ALIAS("SIMD_COMP_INST_RETIRED.SCALAR_SINGLE", \ 1499 IAP_EVENT_CAH_02H) \ 1500 __PMC_EV_ALIAS("SIMD_INSTR_RETIRED", IAP_EVENT_CEH_00H) \ 1501 __PMC_EV_ALIAS("SIMD_INST_RETIRED.ANY", IAP_EVENT_C7H_1FH) \ 1502 __PMC_EV_ALIAS("SIMD_INST_RETIRED.PACKED_DOUBLE", IAP_EVENT_C7H_04H) \ 1503 __PMC_EV_ALIAS("SIMD_INST_RETIRED.PACKED_SINGLE", IAP_EVENT_C7H_01H) \ 1504 __PMC_EV_ALIAS("SIMD_INST_RETIRED.SCALAR_DOUBLE", IAP_EVENT_C7H_08H) \ 1505 __PMC_EV_ALIAS("SIMD_INST_RETIRED.SCALAR_SINGLE", IAP_EVENT_C7H_02H) \ 1506 __PMC_EV_ALIAS("SIMD_INST_RETIRED.VECTOR", IAP_EVENT_C7H_10H) \ 1507 __PMC_EV_ALIAS("SIMD_SAT_INSTR_RETIRED", IAP_EVENT_CFH_00H) \ 1508 __PMC_EV_ALIAS("SIMD_SAT_UOP_EXEC.AR", IAP_EVENT_B1H_80H) \ 1509 __PMC_EV_ALIAS("SIMD_SAT_UOP_EXEC.S", IAP_EVENT_B1H_00H) \ 1510 __PMC_EV_ALIAS("SIMD_UOPS_EXEC.AR", IAP_EVENT_B0H_80H) \ 1511 __PMC_EV_ALIAS("SIMD_UOPS_EXEC.S", IAP_EVENT_B0H_00H) \ 1512 __PMC_EV_ALIAS("SIMD_UOP_TYPE_EXEC.ARITHMETIC.AR", IAP_EVENT_B3H_A0H) \ 1513 __PMC_EV_ALIAS("SIMD_UOP_TYPE_EXEC.ARITHMETIC.S", IAP_EVENT_B3H_20H) \ 1514 __PMC_EV_ALIAS("SIMD_UOP_TYPE_EXEC.LOGICAL.AR", IAP_EVENT_B3H_90H) \ 1515 __PMC_EV_ALIAS("SIMD_UOP_TYPE_EXEC.LOGICAL.S", IAP_EVENT_B3H_10H) \ 1516 __PMC_EV_ALIAS("SIMD_UOP_TYPE_EXEC.MUL.AR", IAP_EVENT_B3H_81H) \ 1517 __PMC_EV_ALIAS("SIMD_UOP_TYPE_EXEC.MUL.S", IAP_EVENT_B3H_01H) \ 1518 __PMC_EV_ALIAS("SIMD_UOP_TYPE_EXEC.PACK.AR", IAP_EVENT_B3H_84H) \ 1519 __PMC_EV_ALIAS("SIMD_UOP_TYPE_EXEC.PACK.S", IAP_EVENT_B3H_04H) \ 1520 __PMC_EV_ALIAS("SIMD_UOP_TYPE_EXEC.SHIFT.AR", IAP_EVENT_B3H_82H) \ 1521 __PMC_EV_ALIAS("SIMD_UOP_TYPE_EXEC.SHIFT.S", IAP_EVENT_B3H_02H) \ 1522 __PMC_EV_ALIAS("SIMD_UOP_TYPE_EXEC.UNPACK.AR", IAP_EVENT_B3H_88H) \ 1523 __PMC_EV_ALIAS("SIMD_UOP_TYPE_EXEC.UNPACK.S", IAP_EVENT_B3H_08H) \ 1524 __PMC_EV_ALIAS("SNOOP_STALL_DRV", IAP_EVENT_7EH) \ 1525 __PMC_EV_ALIAS("SSE_PRE_EXEC.L2", IAP_EVENT_07H_02H) \ 1526 __PMC_EV_ALIAS("SSE_PRE_EXEC.STORES", IAP_EVENT_07H_03H) \ 1527 __PMC_EV_ALIAS("SSE_PRE_MISS.L1", IAP_EVENT_4BH_01H) \ 1528 __PMC_EV_ALIAS("SSE_PRE_MISS.L2", IAP_EVENT_4BH_02H) \ 1529 __PMC_EV_ALIAS("SSE_PRE_MISS.NTA", IAP_EVENT_4BH_00H) \ 1530 __PMC_EV_ALIAS("STORE_BLOCK.ORDER", IAP_EVENT_04H_02H) \ 1531 __PMC_EV_ALIAS("STORE_BLOCK.SNOOP", IAP_EVENT_04H_08H) \ 1532 __PMC_EV_ALIAS("STORE_FORWARDS.GOOD", IAP_EVENT_02H_81H) \ 1533 __PMC_EV_ALIAS("THERMAL_TRIP", IAP_EVENT_3BH_C0H) \ 1534 __PMC_EV_ALIAS("UOPS_RETIRED.ANY", IAP_EVENT_C2H_10H) \ 1535 __PMC_EV_ALIAS("UOPS_RETIRED.FUSED", IAP_EVENT_C2H_07H) \ 1536 __PMC_EV_ALIAS("UOPS_RETIRED.LD_IND_BR", IAP_EVENT_C2H_01H) \ 1537 __PMC_EV_ALIAS("UOPS_RETIRED.MACRO_FUSION", IAP_EVENT_C2H_04H) \ 1538 __PMC_EV_ALIAS("UOPS_RETIRED.NON_FUSED", IAP_EVENT_C2H_08H) \ 1539 __PMC_EV_ALIAS("UOPS_RETIRED.STD_STA", IAP_EVENT_C2H_02H) \ 1540 __PMC_EV_ALIAS("X87_COMP_OPS_EXE.ANY.AR", IAP_EVENT_10H_81H) \ 1541 __PMC_EV_ALIAS("X87_COMP_OPS_EXE.ANY.S", IAP_EVENT_10H_01H) \ 1542 __PMC_EV_ALIAS("X87_OPS_RETIRED.ANY", IAP_EVENT_C1H_FEH) \ 1543 __PMC_EV_ALIAS("X87_OPS_RETIRED.FXCH", IAP_EVENT_C1H_01H) 1544 1545 /* 1546 * Aliases for Atom Silvermont PMCs. 1547 */ 1548 #define __PMC_EV_ALIAS_ATOM_SILVERMONT() \ 1549 __PMC_EV_ALIAS_INTEL_ARCHITECTURAL() \ 1550 __PMC_EV_ALIAS("REHABQ.LD_BLOCK_ST_FORWARD", IAP_EVENT_03H_01H) \ 1551 __PMC_EV_ALIAS("REHABQ.LD_BLOCK_STD_NOTREADY", IAP_EVENT_03H_02H) \ 1552 __PMC_EV_ALIAS("REHABQ.ST_SPLITS", IAP_EVENT_03H_04H) \ 1553 __PMC_EV_ALIAS("REHABQ.LD_SPLITS", IAP_EVENT_03H_08H) \ 1554 __PMC_EV_ALIAS("REHABQ.LOCK", IAP_EVENT_03H_10H) \ 1555 __PMC_EV_ALIAS("REHABQ.STA_FULL", IAP_EVENT_03H_20H) \ 1556 __PMC_EV_ALIAS("REHABQ.ANY_LD", IAP_EVENT_03H_40H) \ 1557 __PMC_EV_ALIAS("REHABQ.ANY_ST", IAP_EVENT_03H_80H) \ 1558 __PMC_EV_ALIAS("MEM_UOPS_RETIRED.L1_MISS_LOADS", IAP_EVENT_04H_01H) \ 1559 __PMC_EV_ALIAS("MEM_UOPS_RETIRED.L2_HIT_LOADS", IAP_EVENT_04H_02H) \ 1560 __PMC_EV_ALIAS("MEM_UOPS_RETIRED.L2_MISS_LOADS", IAP_EVENT_04H_04H) \ 1561 __PMC_EV_ALIAS("MEM_UOPS_RETIRED.DTLB_MISS_LOADS", IAP_EVENT_04H_08H) \ 1562 __PMC_EV_ALIAS("MEM_UOPS_RETIRED.UTLB_MISS", IAP_EVENT_04H_10H) \ 1563 __PMC_EV_ALIAS("MEM_UOPS_RETIRED.HITM", IAP_EVENT_04H_20H) \ 1564 __PMC_EV_ALIAS("MEM_UOPS_RETIRED.ALL_LOADS", IAP_EVENT_04H_40H) \ 1565 __PMC_EV_ALIAS("MEM_UOP_RETIRED.ALL_STORES", IAP_EVENT_04H_80H) \ 1566 __PMC_EV_ALIAS("PAGE_WALKS.D_SIDE_CYCLES", IAP_EVENT_05H_01H) \ 1567 __PMC_EV_ALIAS("PAGE_WALKS.I_SIDE_CYCLES", IAP_EVENT_05H_02H) \ 1568 __PMC_EV_ALIAS("PAGE_WALKS.WALKS", IAP_EVENT_05H_03H) \ 1569 __PMC_EV_ALIAS("LONGEST_LAT_CACHE.MISS", IAP_EVENT_2EH_41H) \ 1570 __PMC_EV_ALIAS("LONGEST_LAT_CACHE.REFERENCE", IAP_EVENT_2EH_4FH) \ 1571 __PMC_EV_ALIAS("L2_REJECT_XQ.ALL", IAP_EVENT_30H_00H) \ 1572 __PMC_EV_ALIAS("CORE_REJECT_L2Q.ALL", IAP_EVENT_31H_00H) \ 1573 __PMC_EV_ALIAS("CPU_CLK_UNHALTED.CORE_P", IAP_EVENT_3CH_00H) \ 1574 __PMC_EV_ALIAS("CPU_CLK_UNHALTED.REF_P", IAP_EVENT_3CH_01H) \ 1575 __PMC_EV_ALIAS("ICACHE.HIT", IAP_EVENT_80H_01H) \ 1576 __PMC_EV_ALIAS("ICACHE.MISSES", IAP_EVENT_80H_02H) \ 1577 __PMC_EV_ALIAS("ICACHE.ACCESSES", IAP_EVENT_80H_03H) \ 1578 __PMC_EV_ALIAS("NIP_STALL.ICACHE_MISS", IAP_EVENT_B6H_04H) \ 1579 __PMC_EV_ALIAS("OFFCORE_RESPONSE_0", IAP_EVENT_B7H_01H) \ 1580 __PMC_EV_ALIAS("OFFCORE_RESPONSE_1", IAP_EVENT_B7H_02H) \ 1581 __PMC_EV_ALIAS("INST_RETIRED.ANY_P", IAP_EVENT_C0H_00H) \ 1582 __PMC_EV_ALIAS("UOPS_RETIRED.MS", IAP_EVENT_C2H_01H) \ 1583 __PMC_EV_ALIAS("UOPS_RETIRED.ALL", IAP_EVENT_C2H_10H) \ 1584 __PMC_EV_ALIAS("MACHINE_CLEARS.SMC", IAP_EVENT_C3H_01H) \ 1585 __PMC_EV_ALIAS("MACHINE_CLEARS.MEMORY_ORDERING", IAP_EVENT_C3H_02H) \ 1586 __PMC_EV_ALIAS("MACHINE_CLEARS.FP_ASSIST", IAP_EVENT_C3H_04H) \ 1587 __PMC_EV_ALIAS("MACHINE_CLEARS.ALL", IAP_EVENT_C3H_08H) \ 1588 __PMC_EV_ALIAS("BR_INST_RETIRED.ALL_BRANCHES", IAP_EVENT_C4H_00H) \ 1589 __PMC_EV_ALIAS("BR_INST_RETIRED.JCC", IAP_EVENT_C4H_7EH) \ 1590 __PMC_EV_ALIAS("BR_INST_RETIRED.FAR_BRANCH", IAP_EVENT_C4H_BFH) \ 1591 __PMC_EV_ALIAS("BR_INST_RETIRED.NON_RETURN_IND", IAP_EVENT_C4H_EBH) \ 1592 __PMC_EV_ALIAS("BR_INST_RETIRED.RETURN", IAP_EVENT_C4H_F7H) \ 1593 __PMC_EV_ALIAS("BR_INST_RETIRED.CALL", IAP_EVENT_C4H_F9H) \ 1594 __PMC_EV_ALIAS("BR_INST_RETIRED.IND_CALL", IAP_EVENT_C4H_FBH) \ 1595 __PMC_EV_ALIAS("BR_INST_RETIRED.REL_CALL", IAP_EVENT_C4H_FDH) \ 1596 __PMC_EV_ALIAS("BR_INST_RETIRED.TAKEN_JCC", IAP_EVENT_C4H_FEH) \ 1597 __PMC_EV_ALIAS("BR_MISP_RETIRED.ALL_BRANCHES", IAP_EVENT_C5H_00H) \ 1598 __PMC_EV_ALIAS("BR_MISP_RETIRED.JCC", IAP_EVENT_C5H_7EH) \ 1599 __PMC_EV_ALIAS("BR_MISP_RETIRED.FAR", IAP_EVENT_C5H_BFH) \ 1600 __PMC_EV_ALIAS("BR_MISP_RETIRED.NON_RETURN_IND", IAP_EVENT_C5H_EBH) \ 1601 __PMC_EV_ALIAS("BR_MISP_RETIRED.RETURN", IAP_EVENT_C5H_F7H) \ 1602 __PMC_EV_ALIAS("BR_MISP_RETIRED.CALL", IAP_EVENT_C5H_F9H) \ 1603 __PMC_EV_ALIAS("BR_MISP_RETIRED.IND_CALL", IAP_EVENT_C5H_FBH) \ 1604 __PMC_EV_ALIAS("BR_MISP_RETIRED.REL_CALL", IAP_EVENT_C5H_FDH) \ 1605 __PMC_EV_ALIAS("BR_MISP_RETIRED.TAKEN_JCC", IAP_EVENT_C5H_FEH) \ 1606 __PMC_EV_ALIAS("NO_ALLOC_CYCLES.ROB_FULL", IAP_EVENT_CAH_01H) \ 1607 __PMC_EV_ALIAS("NO_ALLOC_CYCLES.RAT_STALL", IAP_EVENT_CAH_20H) \ 1608 __PMC_EV_ALIAS("NO_ALLOC_CYCLES.ALL", IAP_EVENT_CAH_3FH) \ 1609 __PMC_EV_ALIAS("NO_ALLOC_CYCLES.NOT_DELIVERED", IAP_EVENT_CAH_50H) \ 1610 __PMC_EV_ALIAS("RS_FULL_STALL.MEC", IAP_EVENT_CBH_01H) \ 1611 __PMC_EV_ALIAS("RS_FULL_STALL.ALL", IAP_EVENT_CBH_1FH) \ 1612 __PMC_EV_ALIAS("CYCLES_DIV_BUSY.ANY", IAP_EVENT_CDH_01H) \ 1613 __PMC_EV_ALIAS("BACLEARS.ALL", IAP_EVENT_E6H_01H) \ 1614 __PMC_EV_ALIAS("BACLEARS.RETURN", IAP_EVENT_E6H_08H) \ 1615 __PMC_EV_ALIAS("BACLEARS.COND", IAP_EVENT_E6H_10H) \ 1616 __PMC_EV_ALIAS("MS_DECODED.MS_ENTRY", IAP_EVENT_E7H_01H) 1617 1618 /* 1619 * Aliases for Broadwell PMC events. 1620 */ 1621 #define __PMC_EV_ALIAS_BROADWELL() \ 1622 __PMC_EV_ALIAS_INTEL_ARCHITECTURAL() \ 1623 __PMC_EV_ALIAS("LD_BLOCKS.STORE_FORWARD", IAP_EVENT_03H_02H) \ 1624 __PMC_EV_ALIAS("LD_BLOCKS.NO_SR", IAP_EVENT_03H_08H) \ 1625 __PMC_EV_ALIAS("MISALIGN_MEM_REF.LOADS", IAP_EVENT_05H_01H) \ 1626 __PMC_EV_ALIAS("MISALIGN_MEM_REF.STORES", IAP_EVENT_05H_02H) \ 1627 __PMC_EV_ALIAS("LD_BLOCKS_PARTIAL.ADDRESS_ALIAS", IAP_EVENT_07H_01H) \ 1628 __PMC_EV_ALIAS("DTLB_LOAD_MISSES.MISS_CAUSES_A_WALK", IAP_EVENT_08H_01H)\ 1629 __PMC_EV_ALIAS("DTLB_LOAD_MISSES.WALK_COMPLETED_4K", IAP_EVENT_08H_02H) \ 1630 __PMC_EV_ALIAS("DTLB_LOAD_MISSES.WALK_DURATION", IAP_EVENT_08H_10H) \ 1631 __PMC_EV_ALIAS("DTLB_LOAD_MISSES.STLB_HIT_4K", IAP_EVENT_08H_20H) \ 1632 __PMC_EV_ALIAS("INT_MISC.RECOVERY_CYCLES", IAP_EVENT_0DH_03H) \ 1633 __PMC_EV_ALIAS("UOPS_ISSUED.ANY", IAP_EVENT_0EH_01H) \ 1634 __PMC_EV_ALIAS("UOPS_ISSUED.FLAGS_MERGE", IAP_EVENT_0EH_10H) \ 1635 __PMC_EV_ALIAS("UOPS_ISSUED.SLOW_LEA", IAP_EVENT_0EH_20H) \ 1636 __PMC_EV_ALIAS("UOPS_ISSUED.SINGLE_MUL", IAP_EVENT_0EH_40H) \ 1637 __PMC_EV_ALIAS("ARITH.FPU_DIV_ACTIVE", IAP_EVENT_14H_01H) \ 1638 __PMC_EV_ALIAS("L2_RQSTS.DEMAND_DATA_RD_MISS", IAP_EVENT_24H_21H) \ 1639 __PMC_EV_ALIAS("L2_RQSTS.DEMAND_DATA_RD_HIT", IAP_EVENT_24H_41H) \ 1640 __PMC_EV_ALIAS("L2_RQSTS.L2_PF_HIT", IAP_EVENT_24H_50H) \ 1641 __PMC_EV_ALIAS("L2_RQSTS.L2_PF_MISS", IAP_EVENT_24H_30H) \ 1642 __PMC_EV_ALIAS("L2_RQSTS.ALL_DEMAND_DATA_RD", IAP_EVENT_24H_E1H) \ 1643 __PMC_EV_ALIAS("L2_RQSTS.ALL_RFO", IAP_EVENT_24H_E2H) \ 1644 __PMC_EV_ALIAS("L2_RQSTS.ALL_CODE_RD", IAP_EVENT_24H_E4H) \ 1645 __PMC_EV_ALIAS("L2_RQSTS.ALL_PF", IAP_EVENT_24H_F8H) \ 1646 __PMC_EV_ALIAS("L2_DEMAND_RQSTS.WB_HIT", IAP_EVENT_27H_50H) \ 1647 __PMC_EV_ALIAS("LONGEST_LAT_CACHE.REFERENCE", IAP_EVENT_2EH_4FH) \ 1648 __PMC_EV_ALIAS("LONGEST_LAT_CACHE.MISS", IAP_EVENT_2EH_41H) \ 1649 __PMC_EV_ALIAS("CPU_CLK_UNHALTED.THREAD_P", IAP_EVENT_3CH_00H) \ 1650 __PMC_EV_ALIAS("CPU_CLK_THREAD_UNHALTED.REF_XCLK", IAP_EVENT_3CH_01H) \ 1651 __PMC_EV_ALIAS("L1D_PEND_MISS.PENDING", IAP_EVENT_48H_01H) \ 1652 __PMC_EV_ALIAS("DTLB_STORE_MISSES.MISS_CAUSES_A_WALK", \ 1653 IAP_EVENT_49H_01H) \ 1654 __PMC_EV_ALIAS("DTLB_STORE_MISSES.WALK_COMPLETED_4K", \ 1655 IAP_EVENT_49H_02H) \ 1656 __PMC_EV_ALIAS("DTLB_STORE_MISSES.WALK_DURATION", IAP_EVENT_49H_10H) \ 1657 __PMC_EV_ALIAS("DTLB_STORE_MISSES.STLB_HIT_4K", IAP_EVENT_49H_20H) \ 1658 __PMC_EV_ALIAS("LOAD_HIT_PRE.HW_PF", IAP_EVENT_4CH_02H) \ 1659 __PMC_EV_ALIAS("EPT.WALK_CYCLES", IAP_EVENT_4FH_10H) \ 1660 __PMC_EV_ALIAS("L1D.REPLACEMENT", IAP_EVENT_51H_01H) \ 1661 __PMC_EV_ALIAS("MOVE_ELIMINATION.INT_NOT_ELIMINATED", \ 1662 IAP_EVENT_58H_04H) \ 1663 __PMC_EV_ALIAS("MOVE_ELIMINATION.SMID_NOT_ELIMINATED", \ 1664 IAP_EVENT_58H_08H) \ 1665 __PMC_EV_ALIAS("MOVE_ELIMINATION.INT_ELIMINATED", IAP_EVENT_58H_01H) \ 1666 __PMC_EV_ALIAS("MOVE_ELIMINATION.SMID_ELIMINATED", IAP_EVENT_58H_02H) \ 1667 __PMC_EV_ALIAS("CPL_CYCLES.RING0", IAP_EVENT_5CH_01H) \ 1668 __PMC_EV_ALIAS("CPL_CYCLES.RING123", IAP_EVENT_5CH_02H) \ 1669 __PMC_EV_ALIAS("RS_EVENTS.EMPTY_CYCLES", IAP_EVENT_5EH_01H) \ 1670 __PMC_EV_ALIAS("OFFCORE_REQUESTS_OUTSTANDING.DEMAND_DATA_RD", \ 1671 IAP_EVENT_60H_01H) \ 1672 __PMC_EV_ALIAS("OFFCORE_REQUESTS_OUTSTANDING.DEMAND_CODE_RD", \ 1673 IAP_EVENT_60H_02H) \ 1674 __PMC_EV_ALIAS("OFFCORE_REQUESTS_OUTSTANDING.DEMAND_RFO", \ 1675 IAP_EVENT_60H_04H) \ 1676 __PMC_EV_ALIAS("OFFCORE_REQUESTS_OUTSTANDING.ALL_DATA_RD", \ 1677 IAP_EVENT_60H_08H) \ 1678 __PMC_EV_ALIAS("LOCK_CYCLES.SPLIT_LOCK_UC_LOCK_DURATION", \ 1679 IAP_EVENT_63H_01H) \ 1680 __PMC_EV_ALIAS("LOCK_CYCLES.CACHE_LOCK_DURATION", IAP_EVENT_63H_02H) \ 1681 __PMC_EV_ALIAS("IDQ.EMPTY", IAP_EVENT_79H_02H) \ 1682 __PMC_EV_ALIAS("IDQ.MITE_UOPS", IAP_EVENT_79H_04H) \ 1683 __PMC_EV_ALIAS("IDQ.DSB_UOPS", IAP_EVENT_79H_08H) \ 1684 __PMC_EV_ALIAS("IDQ.MS_DSB_UOPS", IAP_EVENT_79H_10H) \ 1685 __PMC_EV_ALIAS("IDQ.MS_MITE_UOPS", IAP_EVENT_79H_20H) \ 1686 __PMC_EV_ALIAS("IDQ.MS_UOPS", IAP_EVENT_79H_30H) \ 1687 __PMC_EV_ALIAS("IDQ.ALL_DSB_CYCLES_ANY_UOPS", IAP_EVENT_79H_18H) \ 1688 __PMC_EV_ALIAS("IDQ.ALL_MITE_CYCLES_ANY_UOPS", IAP_EVENT_79H_24H) \ 1689 __PMC_EV_ALIAS("IDQ.MITE_ALL_UOPS", IAP_EVENT_79H_3CH) \ 1690 __PMC_EV_ALIAS("ICACHE.MISSES", IAP_EVENT_80H_02H) \ 1691 __PMC_EV_ALIAS("ITLB_MISSES.MISS_CAUSES_A_WALK", IAP_EVENT_85H_01H) \ 1692 __PMC_EV_ALIAS("ITLB_MISSES.WALK_COMPLETED_4K", IAP_EVENT_85H_02H) \ 1693 __PMC_EV_ALIAS("ITLB_MISSES.WALK_DURATION", IAP_EVENT_85H_10H) \ 1694 __PMC_EV_ALIAS("ITLB_MISSES.STLB_HIT_4K", IAP_EVENT_85H_20H) \ 1695 __PMC_EV_ALIAS("ILD_STALL.LCP", IAP_EVENT_87H_01H) \ 1696 __PMC_EV_ALIAS("BR_INST_EXEC.COND", IAP_EVENT_88H_01H) \ 1697 __PMC_EV_ALIAS("BR_INST_EXEC.DIRECT", IAP_EVENT_88H_02H) \ 1698 __PMC_EV_ALIAS("BR_INST_EXEC.INDIRECT_NON_CALL", IAP_EVENT_88H_04H) \ 1699 __PMC_EV_ALIAS("BR_INST_EXEC.RETURN_NEAR", IAP_EVENT_88H_08H) \ 1700 __PMC_EV_ALIAS("BR_INST_EXEC.DIRECT_NEAR_CALL", IAP_EVENT_88H_10H) \ 1701 __PMC_EV_ALIAS("BR_INST_EXEC.INDIRECT_NEAR_CALL", IAP_EVENT_88H_20H) \ 1702 __PMC_EV_ALIAS("BR_INST_EXEC.NONTAKEN", IAP_EVENT_88H_40H) \ 1703 __PMC_EV_ALIAS("BR_INST_EXEC.TAKEN", IAP_EVENT_88H_80H) \ 1704 __PMC_EV_ALIAS("BR_INST_EXEC.ALL_BRANCHES", IAP_EVENT_88H_FFH) \ 1705 __PMC_EV_ALIAS("BR_MISP_EXE.COND", IAP_EVENT_89H_01H) \ 1706 __PMC_EV_ALIAS("BR_MISP_EXEC.INDIRECT_NON_CALL", IAP_EVENT_89H_04H) \ 1707 __PMC_EV_ALIAS("BR_MISP_EXEC.RETURN_NEAR", IAP_EVENT_89H_08H) \ 1708 __PMC_EV_ALIAS("BR_MISP_EXEC.DIRECT_NEAR_CALL", IAP_EVENT_89H_10H) \ 1709 __PMC_EV_ALIAS("BR_MISP_EXEC.INDIRECT_NEAR_CALL", IAP_EVENT_89H_20H) \ 1710 __PMC_EV_ALIAS("BR_MISP_EXEC.NONTAKEN", IAP_EVENT_89H_40H) \ 1711 __PMC_EV_ALIAS("BR_MISP_EXEC.TAKEN", IAP_EVENT_89H_80H) \ 1712 __PMC_EV_ALIAS("BR_MISP_EXEC.ALL_BRANCHES", IAP_EVENT_89H_FFH) \ 1713 __PMC_EV_ALIAS("IDQ_UOPS_NOT_DELIVERED.CORE", IAP_EVENT_9CH_01H) \ 1714 __PMC_EV_ALIAS("UOPS_EXECUTED_PORT.PORT_0", IAP_EVENT_A1H_01H) \ 1715 __PMC_EV_ALIAS("UOPS_EXECUTED_PORT.PORT_1", IAP_EVENT_A1H_02H) \ 1716 __PMC_EV_ALIAS("UOPS_EXECUTED_PORT.PORT_2", IAP_EVENT_A1H_04H) \ 1717 __PMC_EV_ALIAS("UOPS_EXECUTED_PORT.PORT_3", IAP_EVENT_A1H_08H) \ 1718 __PMC_EV_ALIAS("UOPS_EXECUTED_PORT.PORT_4", IAP_EVENT_A1H_10H) \ 1719 __PMC_EV_ALIAS("UOPS_EXECUTED_PORT.PORT_5", IAP_EVENT_A1H_20H) \ 1720 __PMC_EV_ALIAS("UOPS_EXECUTED_PORT.PORT_6", IAP_EVENT_A1H_40H) \ 1721 __PMC_EV_ALIAS("UOPS_EXECUTED_PORT.PORT_7", IAP_EVENT_A1H_80H) \ 1722 __PMC_EV_ALIAS("RESOURCE_STALLS.ANY", IAP_EVENT_A2H_01H) \ 1723 __PMC_EV_ALIAS("RESOURCE_STALLS.RS", IAP_EVENT_A2H_04H) \ 1724 __PMC_EV_ALIAS("RESOURCE_STALLS.SB", IAP_EVENT_A2H_08H) \ 1725 __PMC_EV_ALIAS("RESOURCE_STALLS.ROB", IAP_EVENT_A2H_10H) \ 1726 __PMC_EV_ALIAS("LSD.UOPS", IAP_EVENT_A8H_01H) \ 1727 __PMC_EV_ALIAS("ITLB.ITLB_FLUSH", IAP_EVENT_AEH_01H) \ 1728 __PMC_EV_ALIAS("OFFCORE_REQUESTS.DEMAND_DATA_RD", IAP_EVENT_B0H_01H) \ 1729 __PMC_EV_ALIAS("OFFCORE_REQUESTS.DEMAND_CODE_RD", IAP_EVENT_B0H_02H) \ 1730 __PMC_EV_ALIAS("OFFCORE_REQUESTS.DEMAND_RFO", IAP_EVENT_B0H_04H) \ 1731 __PMC_EV_ALIAS("OFFCORE_REQUESTS.ALL_DATA_RD", IAP_EVENT_B0H_08H) \ 1732 __PMC_EV_ALIAS("UOPS_EXECUTED.THREAD", IAP_EVENT_B1H_01H) \ 1733 __PMC_EV_ALIAS("UOPS_EXECUTED.CORE", IAP_EVENT_B1H_02H) \ 1734 __PMC_EV_ALIAS("OFF_CORE_RESPONSE_0", IAP_EVENT_B7H_01H) \ 1735 __PMC_EV_ALIAS("OFF_CORE_RESPONSE_1", IAP_EVENT_BBH_01H) \ 1736 __PMC_EV_ALIAS("PAGE_WALKER_LOADS.DTLB_L1", IAP_EVENT_BCH_11H) \ 1737 __PMC_EV_ALIAS("PAGE_WALKER_LOADS.ITLB_L1", IAP_EVENT_BCH_21H) \ 1738 __PMC_EV_ALIAS("PAGE_WALKER_LOADS.DTLB_L2", IAP_EVENT_BCH_12H) \ 1739 __PMC_EV_ALIAS("PAGE_WALKER_LOADS.ITLB_L2", IAP_EVENT_BCH_22H) \ 1740 __PMC_EV_ALIAS("PAGE_WALKER_LOADS.DTLB_L3", IAP_EVENT_BCH_14H) \ 1741 __PMC_EV_ALIAS("PAGE_WALKER_LOADS.ITLB_L3", IAP_EVENT_BCH_24H) \ 1742 __PMC_EV_ALIAS("PAGE_WALKER_LOADS.DTLB_MEMORY", IAP_EVENT_BCH_18H) \ 1743 __PMC_EV_ALIAS("INST_RETIRED.ANY_P", IAP_EVENT_C0H_00H) \ 1744 __PMC_EV_ALIAS("INST_RETIRED.PREC_DIST", IAP_EVENT_C0H_01H) \ 1745 __PMC_EV_ALIAS("INST_RETIRED.X87", IAP_EVENT_C0H_02H) \ 1746 __PMC_EV_ALIAS("OTHER_ASSISTS.AVX_TO_SSE", IAP_EVENT_C1H_08H) \ 1747 __PMC_EV_ALIAS("OTHER_ASSISTS.SSE_TO_AVX", IAP_EVENT_C1H_10H) \ 1748 __PMC_EV_ALIAS("OTHER_ASSISTS.ANY_WB_ASSIST", IAP_EVENT_C1H_40H) \ 1749 __PMC_EV_ALIAS("UOPS_RETIRED.ALL", IAP_EVENT_C2H_01H) \ 1750 __PMC_EV_ALIAS("UOPS_RETIRED.RETIRE_SLOTS", IAP_EVENT_C2H_02H) \ 1751 __PMC_EV_ALIAS("MACHINE_CLEARS.CYCLES", IAP_EVENT_C3H_01H) \ 1752 __PMC_EV_ALIAS("MACHINE_CLEARS.MEMORY_ORDERING", IAP_EVENT_C3H_02H) \ 1753 __PMC_EV_ALIAS("MACHINE_CLEARS.SMC", IAP_EVENT_C3H_04H) \ 1754 __PMC_EV_ALIAS("MACHINE_CLEARS.MASKMOV", IAP_EVENT_C3H_20H) \ 1755 __PMC_EV_ALIAS("BR_INST_RETIRED.ALL_BRANCHES", IAP_EVENT_C4H_00H) \ 1756 __PMC_EV_ALIAS("BR_INST_RETIRED.CONDITIONAL", IAP_EVENT_C4H_01H) \ 1757 __PMC_EV_ALIAS("BR_INST_RETIRED.NEAR_CALL", IAP_EVENT_C4H_02H) \ 1758 __PMC_EV_ALIAS("BR_INST_RETIRED.ALL_BRANCHES", IAP_EVENT_C4H_04H) \ 1759 __PMC_EV_ALIAS("BR_INST_RETIRED.NEAR_RETURN", IAP_EVENT_C4H_08H) \ 1760 __PMC_EV_ALIAS("BR_INST_RETIRED.NOT_TAKEN", IAP_EVENT_C4H_10H) \ 1761 __PMC_EV_ALIAS("BR_INST_RETIRED.NEAR_TAKEN", IAP_EVENT_C4H_20H) \ 1762 __PMC_EV_ALIAS("BR_INST_RETIRED.FAR_BRANCH", IAP_EVENT_C4H_40H) \ 1763 __PMC_EV_ALIAS("BR_MISP_RETIRED.ALL_BRANCHES", IAP_EVENT_C5H_00H) \ 1764 __PMC_EV_ALIAS("BR_MISP_RETIRED.CONDITIONAL", IAP_EVENT_C5H_01H) \ 1765 __PMC_EV_ALIAS("BR_MISP_U_RETIRED.ALL_BRANCHES", IAP_EVENT_C5H_04H) \ 1766 __PMC_EV_ALIAS("FP_ASSIST.X87_OUTPUT", IAP_EVENT_CAH_02H) \ 1767 __PMC_EV_ALIAS("FP_ASSIST.X87_INPUT", IAP_EVENT_CAH_04H) \ 1768 __PMC_EV_ALIAS("FP_ASSIST.SIMD_OUTPUT", IAP_EVENT_CAH_08H) \ 1769 __PMC_EV_ALIAS("FP_ASSIST.SIMD_INPUT", IAP_EVENT_CAH_10H) \ 1770 __PMC_EV_ALIAS("FP_ASSIST.ANY", IAP_EVENT_CAH_1EH) \ 1771 __PMC_EV_ALIAS("ROB_MISC_EVENTS.LBR_INSERTS", IAP_EVENT_CCH_20H) \ 1772 __PMC_EV_ALIAS("MEM_TRANS_RETIRED.LOAD_LATENCY", IAP_EVENT_CDH_01H) \ 1773 __PMC_EV_ALIAS("MEM_UOPS_RETIRED.STLB_MISS_LOADS", IAP_EVENT_D0H_11H) \ 1774 __PMC_EV_ALIAS("MEM_UOPS_RETIRED.STLB_MISS_STORES", IAP_EVENT_D0H_12H) \ 1775 __PMC_EV_ALIAS("MEM_UOPS_RETIRED.LOCK_LOADS", IAP_EVENT_D0H_21H) \ 1776 __PMC_EV_ALIAS("MEM_UOPS_RETIRED.SPLIT_LOADS", IAP_EVENT_D0H_41H) \ 1777 __PMC_EV_ALIAS("MEM_UOPS_RETIRED.SPLIT_STORES", IAP_EVENT_D0H_42H) \ 1778 __PMC_EV_ALIAS("MEM_UOPS_RETIRED.ALL_LOADS", IAP_EVENT_D0H_81H) \ 1779 __PMC_EV_ALIAS("MEM_UOPS_RETIRED.ALL_STORES", IAP_EVENT_D0H_82H) \ 1780 __PMC_EV_ALIAS("MEM_LOAD_UOPS_RETIRED.L1_HIT", IAP_EVENT_D1H_01H) \ 1781 __PMC_EV_ALIAS("MEM_LOAD_UOPS_RETIRED.L2_HIT", IAP_EVENT_D1H_02H) \ 1782 __PMC_EV_ALIAS("MEM_LOAD_UOPS_RETIRED.L3_HIT", IAP_EVENT_D1H_04H) \ 1783 __PMC_EV_ALIAS("MEM_LOAD_UOPS_RETIRED.L1_MISS", IAP_EVENT_D1H_08H) \ 1784 __PMC_EV_ALIAS("MEM_LOAD_UOPS_RETIRED.L2_MISS", IAP_EVENT_D1H_10H) \ 1785 __PMC_EV_ALIAS("MEM_LOAD_UOPS_RETIRED.L3_MISS", IAP_EVENT_D1H_20H) \ 1786 __PMC_EV_ALIAS("MEM_LOAD_UOPS_RETIRED.HIT_LFB", IAP_EVENT_D1H_40H) \ 1787 __PMC_EV_ALIAS("MEM_LOAD_UOPS_LLC_HIT_RETIRED.XSNP_MISS", \ 1788 IAP_EVENT_D2H_01H) \ 1789 __PMC_EV_ALIAS("MEM_LOAD_UOPS_LLC_HIT_RETIRED.XSNP_HIT", \ 1790 IAP_EVENT_D2H_02H) \ 1791 __PMC_EV_ALIAS("MEM_LOAD_UOPS_LLC_HIT_RETIRED.XSNP_HITM", \ 1792 IAP_EVENT_D2H_04H) \ 1793 __PMC_EV_ALIAS("MEM_LOAD_UOPS_LLC_HIT_RETIRED.XSNP_NONE", \ 1794 IAP_EVENT_D2H_08H) \ 1795 __PMC_EV_ALIAS("MEM_LOAD_UOPS_LLC_MISS_RETIRED.LOCAL_DRAM", \ 1796 IAP_EVENT_D3H_01H) \ 1797 __PMC_EV_ALIAS("L2_TRANS.DEMAND_DATA_RD", IAP_EVENT_F0H_01H) \ 1798 __PMC_EV_ALIAS("L2_TRANS.RFO", IAP_EVENT_F0H_02H) \ 1799 __PMC_EV_ALIAS("L2_TRANS.CODE_RD", IAP_EVENT_F0H_04H) \ 1800 __PMC_EV_ALIAS("L2_TRANS.ALL_PF", IAP_EVENT_F0H_08H) \ 1801 __PMC_EV_ALIAS("L2_TRANS.L1D_WB", IAP_EVENT_F0H_10H) \ 1802 __PMC_EV_ALIAS("L2_TRANS.L2_FILL", IAP_EVENT_F0H_20H) \ 1803 __PMC_EV_ALIAS("L2_TRANS.L2_WB", IAP_EVENT_F0H_40H) \ 1804 __PMC_EV_ALIAS("L2_TRANS.ALL_REQUESTS", IAP_EVENT_F0H_80H) \ 1805 __PMC_EV_ALIAS("L2_LINES_IN.I", IAP_EVENT_F1H_01H) \ 1806 __PMC_EV_ALIAS("L2_LINES_IN.S", IAP_EVENT_F1H_02H) \ 1807 __PMC_EV_ALIAS("L2_LINES_IN.E", IAP_EVENT_F1H_04H) \ 1808 __PMC_EV_ALIAS("L2_LINES_IN.ALL", IAP_EVENT_F1H_07H) \ 1809 __PMC_EV_ALIAS("L2_LINES_OUT.DEMAND_CLEAN", IAP_EVENT_F2H_05H) 1810 1811 /* 1812 * Aliases for Broadwell XEON PMC events. 1813 */ 1814 #define __PMC_EV_ALIAS_BROADWELL_XEON() \ 1815 __PMC_EV_ALIAS_INTEL_ARCHITECTURAL() \ 1816 __PMC_EV_ALIAS("LD_BLOCKS.STORE_FORWARD", IAP_EVENT_03H_02H) \ 1817 __PMC_EV_ALIAS("LD_BLOCKS.NO_SR", IAP_EVENT_03H_08H) \ 1818 __PMC_EV_ALIAS("MISALIGN_MEM_REF.LOADS", IAP_EVENT_05H_01H) \ 1819 __PMC_EV_ALIAS("MISALIGN_MEM_REF.STORES", IAP_EVENT_05H_02H) \ 1820 __PMC_EV_ALIAS("LD_BLOCKS_PARTIAL.ADDRESS_ALIAS", IAP_EVENT_07H_01H) \ 1821 __PMC_EV_ALIAS("DTLB_LOAD_MISSES.MISS_CAUSES_A_WALK", IAP_EVENT_08H_01H)\ 1822 __PMC_EV_ALIAS("DTLB_LOAD_MISSES.WALK_COMPLETED_4K", IAP_EVENT_08H_02H) \ 1823 __PMC_EV_ALIAS("DTLB_LOAD_MISSES.WALK_DURATION", IAP_EVENT_08H_10H) \ 1824 __PMC_EV_ALIAS("DTLB_LOAD_MISSES.STLB_HIT_4K", IAP_EVENT_08H_20H) \ 1825 __PMC_EV_ALIAS("INT_MISC.RECOVERY_CYCLES", IAP_EVENT_0DH_03H) \ 1826 __PMC_EV_ALIAS("UOPS_ISSUED.ANY", IAP_EVENT_0EH_01H) \ 1827 __PMC_EV_ALIAS("UOPS_ISSUED.FLAGS_MERGE", IAP_EVENT_0EH_10H) \ 1828 __PMC_EV_ALIAS("UOPS_ISSUED.SLOW_LEA", IAP_EVENT_0EH_20H) \ 1829 __PMC_EV_ALIAS("UOPS_ISSUED.SINGLE_MUL", IAP_EVENT_0EH_40H) \ 1830 __PMC_EV_ALIAS("ARITH.FPU_DIV_ACTIVE", IAP_EVENT_14H_01H) /**/ \ 1831 __PMC_EV_ALIAS("L2_RQSTS.DEMAND_DATA_RD_MISS", IAP_EVENT_24H_21H) \ 1832 __PMC_EV_ALIAS("L2_RQSTS.DEMAND_DATA_RD_HIT", IAP_EVENT_24H_41H) \ 1833 __PMC_EV_ALIAS("L2_RQSTS.L2_PF_HIT", IAP_EVENT_24H_50H) \ 1834 __PMC_EV_ALIAS("L2_RQSTS.L2_PF_MISS", IAP_EVENT_24H_30H) \ 1835 __PMC_EV_ALIAS("L2_RQSTS.ALL_DEMAND_DATA_RD", IAP_EVENT_24H_E1H) \ 1836 __PMC_EV_ALIAS("L2_RQSTS.ALL_RFO", IAP_EVENT_24H_E2H) \ 1837 __PMC_EV_ALIAS("L2_RQSTS.ALL_CODE_RD", IAP_EVENT_24H_E4H) \ 1838 __PMC_EV_ALIAS("L2_RQSTS.ALL_PF", IAP_EVENT_24H_F8H) \ 1839 __PMC_EV_ALIAS("L2_DEMAND_RQSTS.WB_HIT", IAP_EVENT_27H_50H) \ 1840 __PMC_EV_ALIAS("LONGEST_LAT_CACHE.REFERENCE", IAP_EVENT_2EH_4FH) \ 1841 __PMC_EV_ALIAS("LONGEST_LAT_CACHE.MISS", IAP_EVENT_2EH_41H) \ 1842 __PMC_EV_ALIAS("CPU_CLK_UNHALTED.THREAD_P", IAP_EVENT_3CH_00H) \ 1843 __PMC_EV_ALIAS("CPU_CLK_THREAD_UNHALTED.REF_XCLK", IAP_EVENT_3CH_01H) \ 1844 __PMC_EV_ALIAS("L1D_PEND_MISS.PENDING", IAP_EVENT_48H_01H) \ 1845 __PMC_EV_ALIAS("DTLB_STORE_MISSES.MISS_CAUSES_A_WALK", \ 1846 IAP_EVENT_49H_01H) \ 1847 __PMC_EV_ALIAS("DTLB_STORE_MISSES.WALK_COMPLETED_4K", \ 1848 IAP_EVENT_49H_02H) \ 1849 __PMC_EV_ALIAS("DTLB_STORE_MISSES.WALK_DURATION", IAP_EVENT_49H_10H) \ 1850 __PMC_EV_ALIAS("DTLB_STORE_MISSES.STLB_HIT_4K", IAP_EVENT_49H_20H) \ 1851 __PMC_EV_ALIAS("LOAD_HIT_PRE.HW_PF", IAP_EVENT_4CH_02H) \ 1852 __PMC_EV_ALIAS("EPT.WALK_CYCLES", IAP_EVENT_4FH_10H) \ 1853 __PMC_EV_ALIAS("L1D.REPLACEMENT", IAP_EVENT_51H_01H) \ 1854 __PMC_EV_ALIAS("MOVE_ELIMINATION.INT_NOT_ELIMINATED", \ 1855 IAP_EVENT_58H_04H) \ 1856 __PMC_EV_ALIAS("MOVE_ELIMINATION.SMID_NOT_ELIMINATED", \ 1857 IAP_EVENT_58H_08H) \ 1858 __PMC_EV_ALIAS("MOVE_ELIMINATION.INT_ELIMINATED", IAP_EVENT_58H_01H) \ 1859 __PMC_EV_ALIAS("MOVE_ELIMINATION.SMID_ELIMINATED", IAP_EVENT_58H_02H) \ 1860 __PMC_EV_ALIAS("CPL_CYCLES.RING0", IAP_EVENT_5CH_01H) \ 1861 __PMC_EV_ALIAS("CPL_CYCLES.RING123", IAP_EVENT_5CH_02H) \ 1862 __PMC_EV_ALIAS("RS_EVENTS.EMPTY_CYCLES", IAP_EVENT_5EH_01H) \ 1863 __PMC_EV_ALIAS("OFFCORE_REQUESTS_OUTSTANDING.DEMAND_DATA_RD", \ 1864 IAP_EVENT_60H_01H) \ 1865 __PMC_EV_ALIAS("OFFCORE_REQUESTS_OUTSTANDING.DEMAND_CODE_RD", \ 1866 IAP_EVENT_60H_02H) \ 1867 __PMC_EV_ALIAS("OFFCORE_REQUESTS_OUTSTANDING.DEMAND_RFO", \ 1868 IAP_EVENT_60H_04H) \ 1869 __PMC_EV_ALIAS("OFFCORE_REQUESTS_OUTSTANDING.ALL_DATA_RD", \ 1870 IAP_EVENT_60H_08H) \ 1871 __PMC_EV_ALIAS("LOCK_CYCLES.SPLIT_LOCK_UC_LOCK_DURATION", \ 1872 IAP_EVENT_63H_01H) \ 1873 __PMC_EV_ALIAS("LOCK_CYCLES.CACHE_LOCK_DURATION", IAP_EVENT_63H_02H) \ 1874 __PMC_EV_ALIAS("IDQ.EMPTY", IAP_EVENT_79H_02H) \ 1875 __PMC_EV_ALIAS("IDQ.MITE_UOPS", IAP_EVENT_79H_04H) \ 1876 __PMC_EV_ALIAS("IDQ.DSB_UOPS", IAP_EVENT_79H_08H) \ 1877 __PMC_EV_ALIAS("IDQ.MS_DSB_UOPS", IAP_EVENT_79H_10H) \ 1878 __PMC_EV_ALIAS("IDQ.MS_MITE_UOPS", IAP_EVENT_79H_20H) \ 1879 __PMC_EV_ALIAS("IDQ.MS_UOPS", IAP_EVENT_79H_30H) \ 1880 __PMC_EV_ALIAS("IDQ.ALL_DSB_CYCLES_ANY_UOPS", IAP_EVENT_79H_18H) \ 1881 __PMC_EV_ALIAS("IDQ.ALL_MITE_CYCLES_ANY_UOPS", IAP_EVENT_79H_24H) \ 1882 __PMC_EV_ALIAS("IDQ.MITE_ALL_UOPS", IAP_EVENT_79H_3CH) \ 1883 __PMC_EV_ALIAS("ICACHE.MISSES", IAP_EVENT_80H_02H) \ 1884 __PMC_EV_ALIAS("ITLB_MISSES.MISS_CAUSES_A_WALK", IAP_EVENT_85H_01H) \ 1885 __PMC_EV_ALIAS("ITLB_MISSES.WALK_COMPLETED_4K", IAP_EVENT_85H_02H) \ 1886 __PMC_EV_ALIAS("ITLB_MISSES.WALK_DURATION", IAP_EVENT_85H_10H) \ 1887 __PMC_EV_ALIAS("ITLB_MISSES.STLB_HIT_4K", IAP_EVENT_85H_20H) \ 1888 __PMC_EV_ALIAS("ILD_STALL.LCP", IAP_EVENT_87H_01H) \ 1889 __PMC_EV_ALIAS("BR_INST_EXEC.COND", IAP_EVENT_88H_01H) \ 1890 __PMC_EV_ALIAS("BR_INST_EXEC.DIRECT", IAP_EVENT_88H_02H) \ 1891 __PMC_EV_ALIAS("BR_INST_EXEC.INDIRECT_NON_CALL", IAP_EVENT_88H_04H) \ 1892 __PMC_EV_ALIAS("BR_INST_EXEC.RETURN_NEAR", IAP_EVENT_88H_08H) \ 1893 __PMC_EV_ALIAS("BR_INST_EXEC.DIRECT_NEAR_CALL", IAP_EVENT_88H_10H) \ 1894 __PMC_EV_ALIAS("BR_INST_EXEC.INDIRECT_NEAR_CALL", IAP_EVENT_88H_20H) \ 1895 __PMC_EV_ALIAS("BR_INST_EXEC.NONTAKEN", IAP_EVENT_88H_40H) \ 1896 __PMC_EV_ALIAS("BR_INST_EXEC.TAKEN", IAP_EVENT_88H_80H) \ 1897 __PMC_EV_ALIAS("BR_INST_EXEC.ALL_BRANCHES", IAP_EVENT_88H_FFH) \ 1898 __PMC_EV_ALIAS("BR_MISP_EXE.COND", IAP_EVENT_89H_01H) \ 1899 __PMC_EV_ALIAS("BR_MISP_EXEC.INDIRECT_NON_CALL", IAP_EVENT_89H_04H) \ 1900 __PMC_EV_ALIAS("BR_MISP_EXEC.RETURN_NEAR", IAP_EVENT_89H_08H) \ 1901 __PMC_EV_ALIAS("BR_MISP_EXEC.DIRECT_NEAR_CALL", IAP_EVENT_89H_10H) \ 1902 __PMC_EV_ALIAS("BR_MISP_EXEC.INDIRECT_NEAR_CALL", IAP_EVENT_89H_20H) \ 1903 __PMC_EV_ALIAS("BR_MISP_EXEC.NONTAKEN", IAP_EVENT_89H_40H) \ 1904 __PMC_EV_ALIAS("BR_MISP_EXEC.TAKEN", IAP_EVENT_89H_80H) \ 1905 __PMC_EV_ALIAS("BR_MISP_EXEC.ALL_BRANCHES", IAP_EVENT_89H_FFH) \ 1906 __PMC_EV_ALIAS("IDQ_UOPS_NOT_DELIVERED.CORE", IAP_EVENT_9CH_01H) \ 1907 __PMC_EV_ALIAS("UOPS_EXECUTED_PORT.PORT_0", IAP_EVENT_A1H_01H) \ 1908 __PMC_EV_ALIAS("UOPS_EXECUTED_PORT.PORT_1", IAP_EVENT_A1H_02H) \ 1909 __PMC_EV_ALIAS("UOPS_EXECUTED_PORT.PORT_2", IAP_EVENT_A1H_04H) \ 1910 __PMC_EV_ALIAS("UOPS_EXECUTED_PORT.PORT_3", IAP_EVENT_A1H_08H) \ 1911 __PMC_EV_ALIAS("UOPS_EXECUTED_PORT.PORT_4", IAP_EVENT_A1H_10H) \ 1912 __PMC_EV_ALIAS("UOPS_EXECUTED_PORT.PORT_5", IAP_EVENT_A1H_20H) \ 1913 __PMC_EV_ALIAS("UOPS_EXECUTED_PORT.PORT_6", IAP_EVENT_A1H_40H) \ 1914 __PMC_EV_ALIAS("UOPS_EXECUTED_PORT.PORT_7", IAP_EVENT_A1H_80H) \ 1915 __PMC_EV_ALIAS("RESOURCE_STALLS.ANY", IAP_EVENT_A2H_01H) \ 1916 __PMC_EV_ALIAS("RESOURCE_STALLS.RS", IAP_EVENT_A2H_04H) \ 1917 __PMC_EV_ALIAS("RESOURCE_STALLS.SB", IAP_EVENT_A2H_08H) \ 1918 __PMC_EV_ALIAS("RESOURCE_STALLS.ROB", IAP_EVENT_A2H_10H) \ 1919 __PMC_EV_ALIAS("LSD.UOPS", IAP_EVENT_A8H_01H) \ 1920 __PMC_EV_ALIAS("ITLB.ITLB_FLUSH", IAP_EVENT_AEH_01H) \ 1921 __PMC_EV_ALIAS("OFFCORE_REQUESTS.DEMAND_DATA_RD", IAP_EVENT_B0H_01H) \ 1922 __PMC_EV_ALIAS("OFFCORE_REQUESTS.DEMAND_CODE_RD", IAP_EVENT_B0H_02H) \ 1923 __PMC_EV_ALIAS("OFFCORE_REQUESTS.DEMAND_RFO", IAP_EVENT_B0H_04H) \ 1924 __PMC_EV_ALIAS("OFFCORE_REQUESTS.ALL_DATA_RD", IAP_EVENT_B0H_08H) \ 1925 __PMC_EV_ALIAS("UOPS_EXECUTED.THREAD", IAP_EVENT_B1H_01H) \ 1926 __PMC_EV_ALIAS("UOPS_EXECUTED.CORE", IAP_EVENT_B1H_02H) \ 1927 __PMC_EV_ALIAS("OFF_CORE_RESPONSE_0", IAP_EVENT_B7H_01H) \ 1928 __PMC_EV_ALIAS("OFF_CORE_RESPONSE_1", IAP_EVENT_BBH_01H) \ 1929 __PMC_EV_ALIAS("PAGE_WALKER_LOADS.DTLB_L1", IAP_EVENT_BCH_11H) \ 1930 __PMC_EV_ALIAS("PAGE_WALKER_LOADS.ITLB_L1", IAP_EVENT_BCH_21H) \ 1931 __PMC_EV_ALIAS("PAGE_WALKER_LOADS.DTLB_L2", IAP_EVENT_BCH_12H) \ 1932 __PMC_EV_ALIAS("PAGE_WALKER_LOADS.ITLB_L2", IAP_EVENT_BCH_22H) \ 1933 __PMC_EV_ALIAS("PAGE_WALKER_LOADS.DTLB_L3", IAP_EVENT_BCH_14H) \ 1934 __PMC_EV_ALIAS("PAGE_WALKER_LOADS.ITLB_L3", IAP_EVENT_BCH_24H) \ 1935 __PMC_EV_ALIAS("PAGE_WALKER_LOADS.DTLB_MEMORY", IAP_EVENT_BCH_18H) \ 1936 __PMC_EV_ALIAS("INST_RETIRED.ANY_P", IAP_EVENT_C0H_00H) \ 1937 __PMC_EV_ALIAS("INST_RETIRED.PREC_DIST", IAP_EVENT_C0H_01H) \ 1938 __PMC_EV_ALIAS("INST_RETIRED.X87", IAP_EVENT_C0H_02H) \ 1939 __PMC_EV_ALIAS("OTHER_ASSISTS.AVX_TO_SSE", IAP_EVENT_C1H_08H) \ 1940 __PMC_EV_ALIAS("OTHER_ASSISTS.SSE_TO_AVX", IAP_EVENT_C1H_10H) \ 1941 __PMC_EV_ALIAS("OTHER_ASSISTS.ANY_WB_ASSIST", IAP_EVENT_C1H_40H) \ 1942 __PMC_EV_ALIAS("UOPS_RETIRED.ALL", IAP_EVENT_C2H_01H) \ 1943 __PMC_EV_ALIAS("UOPS_RETIRED.RETIRE_SLOTS", IAP_EVENT_C2H_02H) \ 1944 __PMC_EV_ALIAS("MACHINE_CLEARS.CYCLES", IAP_EVENT_C3H_01H) \ 1945 __PMC_EV_ALIAS("MACHINE_CLEARS.MEMORY_ORDERING", IAP_EVENT_C3H_02H) \ 1946 __PMC_EV_ALIAS("MACHINE_CLEARS.SMC", IAP_EVENT_C3H_04H) \ 1947 __PMC_EV_ALIAS("MACHINE_CLEARS.MASKMOV", IAP_EVENT_C3H_20H) \ 1948 __PMC_EV_ALIAS("BR_INST_RETIRED.ALL_BRANCHES", IAP_EVENT_C4H_00H) \ 1949 __PMC_EV_ALIAS("BR_INST_RETIRED.CONDITIONAL", IAP_EVENT_C4H_01H) \ 1950 __PMC_EV_ALIAS("BR_INST_RETIRED.NEAR_CALL", IAP_EVENT_C4H_02H) \ 1951 __PMC_EV_ALIAS("BR_INST_RETIRED.ALL_BRANCHES", IAP_EVENT_C4H_04H) \ 1952 __PMC_EV_ALIAS("BR_INST_RETIRED.NEAR_RETURN", IAP_EVENT_C4H_08H) \ 1953 __PMC_EV_ALIAS("BR_INST_RETIRED.NOT_TAKEN", IAP_EVENT_C4H_10H) \ 1954 __PMC_EV_ALIAS("BR_INST_RETIRED.NEAR_TAKEN", IAP_EVENT_C4H_20H) \ 1955 __PMC_EV_ALIAS("BR_INST_RETIRED.FAR_BRANCH", IAP_EVENT_C4H_40H) \ 1956 __PMC_EV_ALIAS("BR_MISP_RETIRED.ALL_BRANCHES", IAP_EVENT_C5H_00H) \ 1957 __PMC_EV_ALIAS("BR_MISP_RETIRED.CONDITIONAL", IAP_EVENT_C5H_01H) \ 1958 __PMC_EV_ALIAS("BR_MISP_U_RETIRED.ALL_BRANCHES", IAP_EVENT_C5H_04H) \ 1959 __PMC_EV_ALIAS("FP_ASSIST.X87_OUTPUT", IAP_EVENT_CAH_02H) \ 1960 __PMC_EV_ALIAS("FP_ASSIST.X87_INPUT", IAP_EVENT_CAH_04H) \ 1961 __PMC_EV_ALIAS("FP_ASSIST.SIMD_OUTPUT", IAP_EVENT_CAH_08H) \ 1962 __PMC_EV_ALIAS("FP_ASSIST.SIMD_INPUT", IAP_EVENT_CAH_10H) \ 1963 __PMC_EV_ALIAS("FP_ASSIST.ANY", IAP_EVENT_CAH_1EH) \ 1964 __PMC_EV_ALIAS("ROB_MISC_EVENTS.LBR_INSERTS", IAP_EVENT_CCH_20H) \ 1965 __PMC_EV_ALIAS("MEM_TRANS_RETIRED.LOAD_LATENCY", IAP_EVENT_CDH_01H) \ 1966 __PMC_EV_ALIAS("MEM_UOPS_RETIRED.STLB_MISS_LOADS", IAP_EVENT_D0H_11H) \ 1967 __PMC_EV_ALIAS("MEM_UOPS_RETIRED.STLB_MISS_STORES", IAP_EVENT_D0H_12H) \ 1968 __PMC_EV_ALIAS("MEM_UOPS_RETIRED.LOCK_LOADS", IAP_EVENT_D0H_21H) \ 1969 __PMC_EV_ALIAS("MEM_UOPS_RETIRED.SPLIT_LOADS", IAP_EVENT_D0H_41H) \ 1970 __PMC_EV_ALIAS("MEM_UOPS_RETIRED.SPLIT_STORES", IAP_EVENT_D0H_42H) \ 1971 __PMC_EV_ALIAS("MEM_UOPS_RETIRED.ALL_LOADS", IAP_EVENT_D0H_81H) \ 1972 __PMC_EV_ALIAS("MEM_UOPS_RETIRED.ALL_STORES", IAP_EVENT_D0H_82H) \ 1973 __PMC_EV_ALIAS("MEM_LOAD_UOPS_RETIRED.L1_HIT", IAP_EVENT_D1H_01H) \ 1974 __PMC_EV_ALIAS("MEM_LOAD_UOPS_RETIRED.L2_HIT", IAP_EVENT_D1H_02H) \ 1975 __PMC_EV_ALIAS("MEM_LOAD_UOPS_RETIRED.L3_HIT", IAP_EVENT_D1H_04H) \ 1976 __PMC_EV_ALIAS("MEM_LOAD_UOPS_RETIRED.L1_MISS", IAP_EVENT_D1H_08H) \ 1977 __PMC_EV_ALIAS("MEM_LOAD_UOPS_RETIRED.L2_MISS", IAP_EVENT_D1H_10H) \ 1978 __PMC_EV_ALIAS("MEM_LOAD_UOPS_RETIRED.L3_MISS", IAP_EVENT_D1H_20H) \ 1979 __PMC_EV_ALIAS("MEM_LOAD_UOPS_RETIRED.HIT_LFB", IAP_EVENT_D1H_40H) \ 1980 __PMC_EV_ALIAS("MEM_LOAD_UOPS_LLC_HIT_RETIRED.XSNP_MISS", \ 1981 IAP_EVENT_D2H_01H) \ 1982 __PMC_EV_ALIAS("MEM_LOAD_UOPS_LLC_HIT_RETIRED.XSNP_HIT", \ 1983 IAP_EVENT_D2H_02H) \ 1984 __PMC_EV_ALIAS("MEM_LOAD_UOPS_LLC_HIT_RETIRED.XSNP_HITM", \ 1985 IAP_EVENT_D2H_04H) \ 1986 __PMC_EV_ALIAS("MEM_LOAD_UOPS_LLC_HIT_RETIRED.XSNP_NONE", \ 1987 IAP_EVENT_D2H_08H) \ 1988 __PMC_EV_ALIAS("MEM_LOAD_UOPS_LLC_MISS_RETIRED.LOCAL_DRAM", \ 1989 IAP_EVENT_D3H_01H) \ 1990 __PMC_EV_ALIAS("L2_TRANS.DEMAND_DATA_RD", IAP_EVENT_F0H_01H) \ 1991 __PMC_EV_ALIAS("L2_TRANS.RFO", IAP_EVENT_F0H_02H) \ 1992 __PMC_EV_ALIAS("L2_TRANS.CODE_RD", IAP_EVENT_F0H_04H) \ 1993 __PMC_EV_ALIAS("L2_TRANS.ALL_PF", IAP_EVENT_F0H_08H) \ 1994 __PMC_EV_ALIAS("L2_TRANS.L1D_WB", IAP_EVENT_F0H_10H) \ 1995 __PMC_EV_ALIAS("L2_TRANS.L2_FILL", IAP_EVENT_F0H_20H) \ 1996 __PMC_EV_ALIAS("L2_TRANS.L2_WB", IAP_EVENT_F0H_40H) \ 1997 __PMC_EV_ALIAS("L2_TRANS.ALL_REQUESTS", IAP_EVENT_F0H_80H) \ 1998 __PMC_EV_ALIAS("L2_LINES_IN.I", IAP_EVENT_F1H_01H) \ 1999 __PMC_EV_ALIAS("L2_LINES_IN.S", IAP_EVENT_F1H_02H) \ 2000 __PMC_EV_ALIAS("L2_LINES_IN.E", IAP_EVENT_F1H_04H) \ 2001 __PMC_EV_ALIAS("L2_LINES_IN.ALL", IAP_EVENT_F1H_07H) \ 2002 __PMC_EV_ALIAS("L2_LINES_OUT.DEMAND_CLEAN", IAP_EVENT_F2H_05H) 2003 2004 /* 2005 * Alisases for Skylake 2006 */ 2007 #define __PMC_EV_ALIAS_SKYLAKE() \ 2008 __PMC_EV_ALIAS_INTEL_ARCHITECTURAL() \ 2009 __PMC_EV_ALIAS("LD_BLOCKS.STORE_FORWARD", IAP_EVENT_03H_02H) \ 2010 __PMC_EV_ALIAS("LD_BLOCKS.NO_SR", IAP_EVENT_03H_08H) \ 2011 __PMC_EV_ALIAS("LD_BLOCKS_PARTIAL.ADDRESS_ALIAS", IAP_EVENT_07H_01H) \ 2012 __PMC_EV_ALIAS("DTLB_LOAD_MISSES.MISS_CAUSES_A_WALK", IAP_EVENT_08H_01H)\ 2013 __PMC_EV_ALIAS("DTLB_LOAD_MISSES.WALK_COMPLETED", IAP_EVENT_08H_0EH) \ 2014 __PMC_EV_ALIAS("DTLB_LOAD_MISSES.WALK_PENDING", IAP_EVENT_08H_10H) \ 2015 __PMC_EV_ALIAS("DTLB_LOAD_MISSES.STLB_HIT", IAP_EVENT_08H_20H) \ 2016 __PMC_EV_ALIAS("INT_MISC.RECOVERY_CYCLES", IAP_EVENT_0DH_01H) \ 2017 __PMC_EV_ALIAS("INT_MISC.CLEAR_RESTEER_CYCLES", IAP_EVENT_0DH_80H) \ 2018 __PMC_EV_ALIAS("UOPS_ISSUED.ANY", IAP_EVENT_0EH_01H) \ 2019 __PMC_EV_ALIAS("UOPS_ISSUED.VECTORS_WIDTH_MISMATCH", IAP_EVENT_0EH_02H) \ 2020 __PMC_EV_ALIAS("UOPS_ISSUED.SLOW_LEA", IAP_EVENT_0EH_20H) \ 2021 __PMC_EV_ALIAS("ARITH.FPU_DIV_ACTIVE", IAP_EVENT_14H_01H) \ 2022 __PMC_EV_ALIAS("L2_RQSTS.DEMAND_DATA_RD_MISS", IAP_EVENT_24H_21H) \ 2023 __PMC_EV_ALIAS("L2_RQSTS.RFO_MISS", IAP_EVENT_24H_22H) \ 2024 __PMC_EV_ALIAS("L2_RQSTS.CODE_RD_MISS", IAP_EVENT_24H_24H) \ 2025 __PMC_EV_ALIAS("L2_RQSTS.ALL_DEMAND_MISS", IAP_EVENT_24H_27H) \ 2026 __PMC_EV_ALIAS("L2_RQSTS.PF_MISS", IAP_EVENT_24H_38H) \ 2027 __PMC_EV_ALIAS("L2_RQSTS.MISS", IAP_EVENT_24H_3FH) \ 2028 __PMC_EV_ALIAS("L2_RQSTS.DEMAND_DATA_RD_HIT", IAP_EVENT_24H_41H) \ 2029 __PMC_EV_ALIAS("L2_RQSTS.RFO_HIT", IAP_EVENT_24H_42H) \ 2030 __PMC_EV_ALIAS("L2_RQSTS.CODE_RD_HIT", IAP_EVENT_24H_44H) \ 2031 __PMC_EV_ALIAS("L2_RQSTS.PF_HIT", IAP_EVENT_24H_D8H) \ 2032 __PMC_EV_ALIAS("L2_RQSTS.ALL_DEMAND_DATA_RD", IAP_EVENT_24H_E1H) \ 2033 __PMC_EV_ALIAS("L2_RQSTS.ALL_RFO", IAP_EVENT_24H_E2H) \ 2034 __PMC_EV_ALIAS("L2_RQSTS.ALL_CODE_RD", IAP_EVENT_24H_E4H) \ 2035 __PMC_EV_ALIAS("L2_RQSTS.ALL_DEMAND_REFERENCES", IAP_EVENT_24H_E7H) \ 2036 __PMC_EV_ALIAS("L2_RQSTS.ALL_PF", IAP_EVENT_24H_F8H) \ 2037 __PMC_EV_ALIAS("L2_RQSTS.REFERENCES", IAP_EVENT_24H_EFH) \ 2038 __PMC_EV_ALIAS("LONGEST_LAT_CACHE.REFERENCE", IAP_EVENT_2EH_4FH) \ 2039 __PMC_EV_ALIAS("LONGEST_LAT_CACHE.MISS", IAP_EVENT_2EH_41H) \ 2040 __PMC_EV_ALIAS("CPU_CLK_UNHALTED.THREAD_P", IAP_EVENT_3CH_00H) \ 2041 __PMC_EV_ALIAS("CPU_CLK_THREAD_UNHALTED.REF_XCLK", IAP_EVENT_3CH_01H) \ 2042 __PMC_EV_ALIAS("CPU_CLK_THREAD_UNHALTED.ONE_THREAD_ACTIVE", \ 2043 IAP_EVENT_3CH_02H) \ 2044 __PMC_EV_ALIAS("L1D_PEND_MISS.PENDING", IAP_EVENT_48H_01H) \ 2045 __PMC_EV_ALIAS("L1D_PEND_MISS.FB_FULL", IAP_EVENT_48H_02H) \ 2046 __PMC_EV_ALIAS("DTLB_STORE_MISSES.MISS_CAUSES_A_WALK", \ 2047 IAP_EVENT_49H_01H) \ 2048 __PMC_EV_ALIAS("DTLB_STORE_MISSES.WALK_COMPLETED", IAP_EVENT_49H_0EH) \ 2049 __PMC_EV_ALIAS("DTLB_STORE_MISSES.WALK_PENDING", IAP_EVENT_49H_10H) \ 2050 __PMC_EV_ALIAS("DTLB_STORE_MISSES.STLB_HIT", IAP_EVENT_49H_20H) \ 2051 __PMC_EV_ALIAS("LOAD_HIT_PRE.HW_PF", IAP_EVENT_4CH_01H) \ 2052 __PMC_EV_ALIAS("EPT.WALK_CYCLES", IAP_EVENT_4FH_10H) \ 2053 __PMC_EV_ALIAS("L1D.REPLACEMENT", IAP_EVENT_51H_01H) \ 2054 __PMC_EV_ALIAS("RS_EVENTS.EMPTY_CYCLES", IAP_EVENT_5EH_01H) \ 2055 __PMC_EV_ALIAS("OFFCORE_REQUESTS_OUTSTANDING.DEMAND_DATA_RD", \ 2056 IAP_EVENT_60H_01H) \ 2057 __PMC_EV_ALIAS("OFFCORE_REQUESTS_OUTSTANDING.DEMAND_CODE_RD", \ 2058 IAP_EVENT_60H_02H) \ 2059 __PMC_EV_ALIAS("OFFCORE_REQUESTS_OUTSTANDING.DEMAND_RFO", \ 2060 IAP_EVENT_60H_04H) \ 2061 __PMC_EV_ALIAS("OFFCORE_REQUESTS_OUTSTANDING.ALL_DATA_RD", \ 2062 IAP_EVENT_60H_08H) \ 2063 __PMC_EV_ALIAS("OFFCORE_REQUESTS_OUTSTANDING.L3_MISS_DEMAND_DATA_RD", \ 2064 IAP_EVENT_60H_10H) \ 2065 __PMC_EV_ALIAS("LOCK_CYCLES.CACHE_LOCK_DURATION", IAP_EVENT_63H_02H) \ 2066 __PMC_EV_ALIAS("IDQ.MITE_UOPS", IAP_EVENT_79H_04H) \ 2067 __PMC_EV_ALIAS("IDQ.DSB_UOPS", IAP_EVENT_79H_08H) \ 2068 __PMC_EV_ALIAS("IDQ.MS_DSB_UOPS", IAP_EVENT_79H_10H) \ 2069 __PMC_EV_ALIAS("IDQ.ALL_DSB_CYCLES_ANY_UOPS", IAP_EVENT_79H_18H) \ 2070 __PMC_EV_ALIAS("IDQ.MS_MITE_UOPS", IAP_EVENT_79H_20H) \ 2071 __PMC_EV_ALIAS("IDQ.MS_UOPS", IAP_EVENT_79H_30H) \ 2072 __PMC_EV_ALIAS("ICACHE_16B.IFDATA_STALL", IAP_EVENT_80H_04H) \ 2073 __PMC_EV_ALIAS("ICACHE_64B.IFTAG_HIT", IAP_EVENT_83H_01H) \ 2074 __PMC_EV_ALIAS("ICACHE_64B.IFTAG_MISS", IAP_EVENT_83H_02H) \ 2075 __PMC_EV_ALIAS("ITLB_MISSES.MISS_CAUSES_A_WALK", IAP_EVENT_85H_01H) \ 2076 __PMC_EV_ALIAS("ITLB_MISSES.WALK_COMPLETED", IAP_EVENT_85H_0EH) \ 2077 __PMC_EV_ALIAS("ITLB_MISSES.WALK_PENDING", IAP_EVENT_85H_10H) \ 2078 __PMC_EV_ALIAS("ITLB_MISSES.STLB_HIT", IAP_EVENT_85H_20H) \ 2079 __PMC_EV_ALIAS("ILD_STALL.LCP", IAP_EVENT_87H_01H) \ 2080 __PMC_EV_ALIAS("IDQ_UOPS_NOT_DELIVERED.CORE", IAP_EVENT_9CH_01H) \ 2081 __PMC_EV_ALIAS("UOPS_EXECUTED_PORT.PORT_0", IAP_EVENT_A1H_01H) \ 2082 __PMC_EV_ALIAS("UOPS_EXECUTED_PORT.PORT_1", IAP_EVENT_A1H_02H) \ 2083 __PMC_EV_ALIAS("UOPS_EXECUTED_PORT.PORT_2", IAP_EVENT_A1H_04H) \ 2084 __PMC_EV_ALIAS("UOPS_EXECUTED_PORT.PORT_3", IAP_EVENT_A1H_08H) \ 2085 __PMC_EV_ALIAS("UOPS_EXECUTED_PORT.PORT_4", IAP_EVENT_A1H_10H) \ 2086 __PMC_EV_ALIAS("UOPS_EXECUTED_PORT.PORT_5", IAP_EVENT_A1H_20H) \ 2087 __PMC_EV_ALIAS("UOPS_EXECUTED_PORT.PORT_6", IAP_EVENT_A1H_40H) \ 2088 __PMC_EV_ALIAS("UOPS_EXECUTED_PORT.PORT_7", IAP_EVENT_A1H_80H) \ 2089 __PMC_EV_ALIAS("RESOURCE_STALLS.ANY", IAP_EVENT_A2H_01H) \ 2090 __PMC_EV_ALIAS("RESOURCE_STALLS.SB", IAP_EVENT_A2H_08H) \ 2091 __PMC_EV_ALIAS("CYCLE_ACTIVITY.CYCLES_L2_MISS", IAP_EVENT_A3H_01H) \ 2092 __PMC_EV_ALIAS("CYCLE_ACTIVITY.CYCLES_L3_MISS", IAP_EVENT_A3H_02H) \ 2093 __PMC_EV_ALIAS("CYCLE_ACTIVITY.STALLS_TOTAL", IAP_EVENT_A3H_04H) \ 2094 __PMC_EV_ALIAS("CYCLE_ACTIVITY.STALLS_L2_MISS", IAP_EVENT_A3H_05H) \ 2095 __PMC_EV_ALIAS("CYCLE_ACTIVITY.STALLS_L3_MISS", IAP_EVENT_A3H_06H) \ 2096 __PMC_EV_ALIAS("CYCLE_ACTIVITY.CYCLES_L1D_MISS", IAP_EVENT_A3H_08H) \ 2097 __PMC_EV_ALIAS("CYCLE_ACTIVITY.STALLS_L1D_MISS", IAP_EVENT_A3H_0CH) \ 2098 __PMC_EV_ALIAS("CYCLE_ACTIVITY.CYCLES_MEM_ANY", IAP_EVENT_A3H_10H) \ 2099 __PMC_EV_ALIAS("CYCLE_ACTIVITY.STALLS_MEM_ANY", IAP_EVENT_A3H_14H) \ 2100 __PMC_EV_ALIAS("EXE_ACTIVITY.EXE_BOUND_0_PORTS", IAP_EVENT_A6H_01H) \ 2101 __PMC_EV_ALIAS("EXE_ACTIVITY.1_PORTS_UTIL", IAP_EVENT_A6H_02H) \ 2102 __PMC_EV_ALIAS("EXE_ACTIVITY.2_PORTS_UTIL", IAP_EVENT_A6H_04H) \ 2103 __PMC_EV_ALIAS("EXE_ACTIVITY.3_PORTS_UTIL", IAP_EVENT_A6H_08H) \ 2104 __PMC_EV_ALIAS("EXE_ACTIVITY.4_PORTS_UTIL", IAP_EVENT_A6H_10H) \ 2105 __PMC_EV_ALIAS("EXE_ACTIVITY.BOUND_ON_STORES", IAP_EVENT_A6H_40H) \ 2106 __PMC_EV_ALIAS("LSD.UOPS", IAP_EVENT_A8H_01H) \ 2107 __PMC_EV_ALIAS("DSB2MITE_SWITCHES.PENALTY_CYCLES", IAP_EVENT_ABH_02H) \ 2108 __PMC_EV_ALIAS("ITLB.ITLB_FLUSH", IAP_EVENT_AEH_01H) \ 2109 __PMC_EV_ALIAS("OFFCORE_REQUESTS.DEMAND_DATA_RD", IAP_EVENT_B0H_01H) \ 2110 __PMC_EV_ALIAS("OFFCORE_REQUESTS.DEMAND_CODE_RD", IAP_EVENT_B0H_02H) \ 2111 __PMC_EV_ALIAS("OFFCORE_REQUESTS.DEMAND_RFO", IAP_EVENT_B0H_04H) \ 2112 __PMC_EV_ALIAS("OFFCORE_REQUESTS.ALL_DATA_RD", IAP_EVENT_B0H_08H) \ 2113 __PMC_EV_ALIAS("OFFCORE_REQUESTS.L3_MISS_DEMAND_DATA_RD", \ 2114 IAP_EVENT_B0H_10H) \ 2115 __PMC_EV_ALIAS("OFFCORE_REQUESTS.ALL_REQUESTS", IAP_EVENT_B0H_80H) \ 2116 __PMC_EV_ALIAS("UOPS_EXECUTED.THREAD", IAP_EVENT_B1H_01H) \ 2117 __PMC_EV_ALIAS("UOPS_EXECUTED.CORE", IAP_EVENT_B1H_02H) \ 2118 __PMC_EV_ALIAS("UOPS_EXECUTED.X87", IAP_EVENT_B1H_10H) \ 2119 __PMC_EV_ALIAS("OFF_CORE_REQUEST_BUFFER.SQ_FULL", IAP_EVENT_B2H_01H) \ 2120 __PMC_EV_ALIAS("OFF_CORE_RESPONSE_0", IAP_EVENT_B7H_01H) \ 2121 __PMC_EV_ALIAS("OFF_CORE_RESPONSE_1", IAP_EVENT_BBH_01H) \ 2122 __PMC_EV_ALIAS("TLB_FLUSH.DTLB_THREAD", IAP_EVENT_BDH_01H) \ 2123 __PMC_EV_ALIAS("INST_RETIRED.ANY_P", IAP_EVENT_C0H_00H) \ 2124 __PMC_EV_ALIAS("INST_RETIRED.PREC_DIST", IAP_EVENT_C0H_01H) \ 2125 __PMC_EV_ALIAS("OTHER_ASSISTS.ANY", IAP_EVENT_C1H_3FH) \ 2126 __PMC_EV_ALIAS("UOPS_RETIRED.STALL_CYCLES", IAP_EVENT_C2H_01H) \ 2127 __PMC_EV_ALIAS("UOPS_RETIRED.RETIRE_SLOTS", IAP_EVENT_C2H_02H) \ 2128 __PMC_EV_ALIAS("MACHINE_CLEARS.CYCLES", IAP_EVENT_C3H_01H) \ 2129 __PMC_EV_ALIAS("MACHINE_CLEARS.MEMORY_ORDERING", IAP_EVENT_C3H_02H) \ 2130 __PMC_EV_ALIAS("MACHINE_CLEARS.SMC", IAP_EVENT_C3H_04H) \ 2131 __PMC_EV_ALIAS("BR_INST_RETIRED.ALL_BRANCHES", IAP_EVENT_C4H_00H) \ 2132 __PMC_EV_ALIAS("BR_INST_RETIRED.CONDITIONAL", IAP_EVENT_C4H_01H) \ 2133 __PMC_EV_ALIAS("BR_INST_RETIRED.NEAR_CALL", IAP_EVENT_C4H_02H) \ 2134 __PMC_EV_ALIAS("BR_INST_RETIRED.ALL_BRANCHES", IAP_EVENT_C4H_04H) \ 2135 __PMC_EV_ALIAS("BR_INST_RETIRED.NEAR_RETURN", IAP_EVENT_C4H_08H) \ 2136 __PMC_EV_ALIAS("BR_INST_RETIRED.NOT_TAKEN", IAP_EVENT_C4H_10H) \ 2137 __PMC_EV_ALIAS("BR_INST_RETIRED.NEAR_TAKEN", IAP_EVENT_C4H_20H) \ 2138 __PMC_EV_ALIAS("BR_INST_RETIRED.FAR_BRANCH", IAP_EVENT_C4H_40H) \ 2139 __PMC_EV_ALIAS("BR_MISP_RETIRED.ALL_BRANCHES", IAP_EVENT_C5H_00H) \ 2140 __PMC_EV_ALIAS("BR_MISP_RETIRED.CONDITIONAL", IAP_EVENT_C5H_01H) \ 2141 __PMC_EV_ALIAS("BR_MISP_U_RETIRED.ALL_BRANCHES", IAP_EVENT_C5H_04H) \ 2142 __PMC_EV_ALIAS("BR_MISP_RETIRED.NEAR_TAKEN", IAP_EVENT_C5H_20H) \ 2143 __PMC_EV_ALIAS("FRONTEND_RETIRED.DSB_MISS", IAP_EVENT_C6H_01H) \ 2144 __PMC_EV_ALIAS("FP_ARIT_INST_RETIRED.SCALAR_DOUBLE", IAP_EVENT_C7H_01H) \ 2145 __PMC_EV_ALIAS("FP_ARIT_INST_RETIRED.SCALAR_SINGLE", IAP_EVENT_C7H_02H) \ 2146 __PMC_EV_ALIAS("FP_ARIT_INST_RETIRED.128B_PACKED_DOUBLE", \ 2147 IAP_EVENT_C7H_04H) \ 2148 __PMC_EV_ALIAS("FP_ARIT_INST_RETIRED.128B_PACKED_SINGLE", \ 2149 IAP_EVENT_C7H_08H) \ 2150 __PMC_EV_ALIAS("FP_ARIT_INST_RETIRED.256B_PACKED_DOUBLE", \ 2151 IAP_EVENT_C7H_10H) \ 2152 __PMC_EV_ALIAS("FP_ARIT_INST_RETIRED.256B_PACKED_SINGLE", \ 2153 IAP_EVENT_C7H_20H) \ 2154 __PMC_EV_ALIAS("FP_ASSIST.ANY", IAP_EVENT_CAH_1EH) \ 2155 __PMC_EV_ALIAS("HW_INTERRUPTS.RECEIVED", IAP_EVENT_CBH_01H) \ 2156 __PMC_EV_ALIAS("MEM_TRANS_RETIRED.LOAD_LATENCY", IAP_EVENT_CDH_01H) \ 2157 __PMC_EV_ALIAS("MEM_UOPS_RETIRED.STLB_MISS_LOADS", IAP_EVENT_D0H_11H) \ 2158 __PMC_EV_ALIAS("MEM_UOPS_RETIRED.STLB_MISS_STORES", IAP_EVENT_D0H_12H) \ 2159 __PMC_EV_ALIAS("MEM_UOPS_RETIRED.LOCK_LOADS", IAP_EVENT_D0H_21H) \ 2160 __PMC_EV_ALIAS("MEM_UOPS_RETIRED.SPLIT_LOADS", IAP_EVENT_D0H_41H) \ 2161 __PMC_EV_ALIAS("MEM_UOPS_RETIRED.SPLIT_STORES", IAP_EVENT_D0H_42H) \ 2162 __PMC_EV_ALIAS("MEM_UOPS_RETIRED.ALL_LOADS", IAP_EVENT_D0H_81H) \ 2163 __PMC_EV_ALIAS("MEM_UOPS_RETIRED.ALL_STORES", IAP_EVENT_D0H_82H) \ 2164 __PMC_EV_ALIAS("MEM_LOAD_UOPS_RETIRED.L1_HIT", IAP_EVENT_D1H_01H) \ 2165 __PMC_EV_ALIAS("MEM_LOAD_UOPS_RETIRED.L2_HIT", IAP_EVENT_D1H_02H) \ 2166 __PMC_EV_ALIAS("MEM_LOAD_UOPS_RETIRED.L3_HIT", IAP_EVENT_D1H_04H) \ 2167 __PMC_EV_ALIAS("MEM_LOAD_UOPS_RETIRED.L1_MISS", IAP_EVENT_D1H_08H) \ 2168 __PMC_EV_ALIAS("MEM_LOAD_UOPS_RETIRED.L2_MISS", IAP_EVENT_D1H_10H) \ 2169 __PMC_EV_ALIAS("MEM_LOAD_UOPS_RETIRED.L3_MISS", IAP_EVENT_D1H_20H) \ 2170 __PMC_EV_ALIAS("MEM_LOAD_UOPS_RETIRED.FB_HIT", IAP_EVENT_D1H_40H) \ 2171 __PMC_EV_ALIAS("MEM_LOAD_L3_HIT_RETIRED.XSNP_MISS", \ 2172 IAP_EVENT_D2H_01H) \ 2173 __PMC_EV_ALIAS("MEM_LOAD_L3_HIT_RETIRED.XSNP_HIT", \ 2174 IAP_EVENT_D2H_02H) \ 2175 __PMC_EV_ALIAS("MEM_LOAD_L3_HIT_RETIRED.XSNP_HITM", \ 2176 IAP_EVENT_D2H_04H) \ 2177 __PMC_EV_ALIAS("MEM_LOAD_L3_HIT_RETIRED.XSNP_NONE", \ 2178 IAP_EVENT_D2H_08H) \ 2179 __PMC_EV_ALIAS("BACLEARS.ANY", IAP_EVENT_E6H_01H) \ 2180 __PMC_EV_ALIAS("L2_TRANS.L2_WB", IAP_EVENT_F0H_40H) \ 2181 __PMC_EV_ALIAS("L2_LINES_IN.ALL", IAP_EVENT_F1H_07H) 2182 2183 /* 2184 * Alisases for Skylake Xeon (Intel Xeon Scalable Processors). 2185 */ 2186 #define __PMC_EV_ALIAS_SKYLAKE_XEON() \ 2187 __PMC_EV_ALIAS_INTEL_ARCHITECTURAL() \ 2188 __PMC_EV_ALIAS("LD_BLOCKS.STORE_FORWARD", IAP_EVENT_03H_02H) \ 2189 __PMC_EV_ALIAS("LD_BLOCKS.NO_SR", IAP_EVENT_03H_08H) \ 2190 __PMC_EV_ALIAS("LD_BLOCKS_PARTIAL.ADDRESS_ALIAS", IAP_EVENT_07H_01H) \ 2191 __PMC_EV_ALIAS("DTLB_LOAD_MISSES.MISS_CAUSES_A_WALK", IAP_EVENT_08H_01H)\ 2192 __PMC_EV_ALIAS("DTLB_LOAD_MISSES.WALK_COMPLETED_4K", IAP_EVENT_08H_02H) \ 2193 __PMC_EV_ALIAS("DTLB_LOAD_MISSES.WALK_COMPLETED_2M_4M", \ 2194 IAP_EVENT_08H_04H) \ 2195 __PMC_EV_ALIAS("DTLB_LOAD_MISSES.WALK_COMPLETED_1G", IAP_EVENT_08H_08H) \ 2196 __PMC_EV_ALIAS("DTLB_LOAD_MISSES.WALK_COMPLETED", IAP_EVENT_08H_0EH) \ 2197 __PMC_EV_ALIAS("DTLB_LOAD_MISSES.WALK_PENDING", IAP_EVENT_08H_10H) \ 2198 __PMC_EV_ALIAS("DTLB_LOAD_MISSES.STLB_HIT", IAP_EVENT_08H_20H) \ 2199 __PMC_EV_ALIAS("INT_MISC.RECOVERY_CYCLES", IAP_EVENT_0DH_01H) \ 2200 __PMC_EV_ALIAS("INT_MISC.CLEAR_RESTEER_CYCLES", IAP_EVENT_0DH_80H) \ 2201 __PMC_EV_ALIAS("UOPS_ISSUED.ANY", IAP_EVENT_0EH_01H) \ 2202 __PMC_EV_ALIAS("UOPS_ISSUED.VECTORS_WIDTH_MISMATCH", IAP_EVENT_0EH_02H) \ 2203 __PMC_EV_ALIAS("UOPS_ISSUED.SLOW_LEA", IAP_EVENT_0EH_20H) \ 2204 __PMC_EV_ALIAS("ARITH.DIVIDER_ACTIVE", IAP_EVENT_14H_01H) \ 2205 __PMC_EV_ALIAS("L2_RQSTS.DEMAND_DATA_RD_MISS", IAP_EVENT_24H_21H) \ 2206 __PMC_EV_ALIAS("L2_RQSTS.RFO_MISS", IAP_EVENT_24H_22H) \ 2207 __PMC_EV_ALIAS("L2_RQSTS.CODE_RD_MISS", IAP_EVENT_24H_24H) \ 2208 __PMC_EV_ALIAS("L2_RQSTS.ALL_DEMAND_MISS", IAP_EVENT_24H_27H) \ 2209 __PMC_EV_ALIAS("L2_RQSTS.PF_MISS", IAP_EVENT_24H_38H) \ 2210 __PMC_EV_ALIAS("L2_RQSTS.MISS", IAP_EVENT_24H_3FH) \ 2211 __PMC_EV_ALIAS("L2_RQSTS.DEMAND_DATA_RD_HIT", IAP_EVENT_24H_41H) \ 2212 __PMC_EV_ALIAS("L2_RQSTS.RFO_HIT", IAP_EVENT_24H_42H) \ 2213 __PMC_EV_ALIAS("L2_RQSTS.CODE_RD_HIT", IAP_EVENT_24H_44H) \ 2214 __PMC_EV_ALIAS("L2_RQSTS.PF_HIT", IAP_EVENT_24H_D8H) \ 2215 __PMC_EV_ALIAS("L2_RQSTS.ALL_DEMAND_DATA_RD", IAP_EVENT_24H_E1H) \ 2216 __PMC_EV_ALIAS("L2_RQSTS.ALL_RFO", IAP_EVENT_24H_E2H) \ 2217 __PMC_EV_ALIAS("L2_RQSTS.ALL_CODE_RD", IAP_EVENT_24H_E4H) \ 2218 __PMC_EV_ALIAS("L2_RQSTS.ALL_DEMAND_REFERENCES", IAP_EVENT_24H_E7H) \ 2219 __PMC_EV_ALIAS("L2_RQSTS.ALL_PF", IAP_EVENT_24H_F8H) \ 2220 __PMC_EV_ALIAS("L2_RQSTS.REFERENCES", IAP_EVENT_24H_FFH) \ 2221 __PMC_EV_ALIAS("CORE_POWER.LVL0_TURBO_LICENSE", IAP_EVENT_28H_07H) \ 2222 __PMC_EV_ALIAS("CORE_POWER.LVL1_TURBO_LICENSE", IAP_EVENT_28H_18H) \ 2223 __PMC_EV_ALIAS("CORE_POWER.LVL2_TURBO_LICENSE", IAP_EVENT_28H_20H) \ 2224 __PMC_EV_ALIAS("CORE_POWER.THROTTLE", IAP_EVENT_28H_40H) \ 2225 __PMC_EV_ALIAS("LONGEST_LAT_CACHE.MISS", IAP_EVENT_2EH_41H) \ 2226 __PMC_EV_ALIAS("LONGEST_LAT_CACHE.REFERENCE", IAP_EVENT_2EH_4FH) \ 2227 __PMC_EV_ALIAS("CPU_CLK_UNHALTED.THREAD_P", IAP_EVENT_3CH_00H) \ 2228 __PMC_EV_ALIAS("CPU_CLK_THREAD_UNHALTED.REF_XCLK", IAP_EVENT_3CH_01H) \ 2229 __PMC_EV_ALIAS("CPU_CLK_THREAD_UNHALTED.ONE_THREAD_ACTIVE", \ 2230 IAP_EVENT_3CH_02H) \ 2231 __PMC_EV_ALIAS("L1D_PEND_MISS.PENDING", IAP_EVENT_48H_01H) \ 2232 __PMC_EV_ALIAS("L1D_PEND_MISS.FB_FULL", IAP_EVENT_48H_02H) \ 2233 __PMC_EV_ALIAS("DTLB_STORE_MISSES.MISS_CAUSES_A_WALK", \ 2234 IAP_EVENT_49H_01H) \ 2235 __PMC_EV_ALIAS("DTLB_STORE_MISSES.WALK_COMPLETED_4K", \ 2236 IAP_EVENT_49H_02H) \ 2237 __PMC_EV_ALIAS("DTLB_STORE_MISSES.WALK_COMPLETED_2M_4M", \ 2238 IAP_EVENT_49H_04H) \ 2239 __PMC_EV_ALIAS("DTLB_STORE_MISSES.WALK_COMPLETED_1G", \ 2240 IAP_EVENT_49H_08H) \ 2241 __PMC_EV_ALIAS("DTLB_STORE_MISSES.WALK_COMPLETED", IAP_EVENT_49H_0EH) \ 2242 __PMC_EV_ALIAS("DTLB_STORE_MISSES.WALK_PENDING", IAP_EVENT_49H_10H) \ 2243 __PMC_EV_ALIAS("DTLB_STORE_MISSES.STLB_HIT", IAP_EVENT_49H_20H) \ 2244 __PMC_EV_ALIAS("LOAD_HIT_PRE.SW_PF", IAP_EVENT_4CH_01H) \ 2245 __PMC_EV_ALIAS("EPT.WALK_PENDING", IAP_EVENT_4FH_10H) \ 2246 __PMC_EV_ALIAS("L1D.REPLACEMENT", IAP_EVENT_51H_01H) \ 2247 __PMC_EV_ALIAS("TX_MEM.ABORT_CONFLICT", IAP_EVENT_54H_01H) \ 2248 __PMC_EV_ALIAS("TX_MEM.ABORT_CAPACITY", IAP_EVENT_54H_02H) \ 2249 __PMC_EV_ALIAS("TX_MEM.ABORT_HLE_STORE_TO_ELIDED_LOCK", \ 2250 IAP_EVENT_54H_04H) \ 2251 __PMC_EV_ALIAS("TX_MEM.ABORT_HLE_ELISION_BUFFER_NOT_EMPTY", \ 2252 IAP_EVENT_54H_08H) \ 2253 __PMC_EV_ALIAS("TX_MEM.ABORT_HLE_ELISION_BUFFER_MISMATCH", \ 2254 IAP_EVENT_54H_10H) \ 2255 __PMC_EV_ALIAS("TX_MEM.ABORT_HLE_ELISION_BUFFER_UNSUPPORTED_ALIGNMENT", \ 2256 IAP_EVENT_54H_20H) \ 2257 __PMC_EV_ALIAS("TX_MEM.ABORT_HLE_ELISION_BUFFER_FULL", \ 2258 IAP_EVENT_54H_40H) \ 2259 __PMC_EV_ALIAS("TX_EXEC.MISC1", IAP_EVENT_5DH_01H) \ 2260 __PMC_EV_ALIAS("TX_EXEC.MISC2", IAP_EVENT_5DH_02H) \ 2261 __PMC_EV_ALIAS("TX_EXEC.MISC3", IAP_EVENT_5DH_04H) \ 2262 __PMC_EV_ALIAS("TX_EXEC.MISC4", IAP_EVENT_5DH_08H) \ 2263 __PMC_EV_ALIAS("TX_EXEC.MISC5", IAP_EVENT_5DH_10H) \ 2264 __PMC_EV_ALIAS("RS_EVENTS.EMPTY_CYCLES", IAP_EVENT_5EH_01H) \ 2265 __PMC_EV_ALIAS("OFFCORE_REQUESTS_OUTSTANDING.DEMAND_DATA_RD", \ 2266 IAP_EVENT_60H_01H) \ 2267 __PMC_EV_ALIAS("OFFCORE_REQUESTS_OUTSTANDING.DEMAND_CODE_RD", \ 2268 IAP_EVENT_60H_02H) \ 2269 __PMC_EV_ALIAS("OFFCORE_REQUESTS_OUTSTANDING.DEMAND_RFO", \ 2270 IAP_EVENT_60H_04H) \ 2271 __PMC_EV_ALIAS("OFFCORE_REQUESTS_OUTSTANDING.ALL_DATA_RD", \ 2272 IAP_EVENT_60H_08H) \ 2273 __PMC_EV_ALIAS("OFFCORE_REQUESTS_OUTSTANDING.L3_MISS_DEMAND_DATA_RD", \ 2274 IAP_EVENT_60H_10H) \ 2275 __PMC_EV_ALIAS("IDQ.MITE_UOPS", IAP_EVENT_79H_04H) \ 2276 __PMC_EV_ALIAS("IDQ.DSB_UOPS", IAP_EVENT_79H_08H) \ 2277 __PMC_EV_ALIAS("IDQ.MS_DSB_UOPS", IAP_EVENT_79H_10H) \ 2278 __PMC_EV_ALIAS("IDQ.ALL_DSB_CYCLES_ANY_UOPS", IAP_EVENT_79H_18H) \ 2279 __PMC_EV_ALIAS("IDQ.MS_MITE_UOPS", IAP_EVENT_79H_20H) \ 2280 __PMC_EV_ALIAS("IDQ.ALL_MITE_CYCLES_4_UOPS", IAP_EVENT_79H_24H) \ 2281 __PMC_EV_ALIAS("IDQ.MS_UOPS", IAP_EVENT_79H_30H) \ 2282 __PMC_EV_ALIAS("ICACHE_16B.IFDATA_STALL", IAP_EVENT_80H_04H) \ 2283 __PMC_EV_ALIAS("ICACHE_64B.IFTAG_HIT", IAP_EVENT_83H_01H) \ 2284 __PMC_EV_ALIAS("ICACHE_64B.IFTAG_MISS", IAP_EVENT_83H_02H) \ 2285 __PMC_EV_ALIAS("ICACHE_64B.IFTAG_STALL", IAP_EVENT_83H_04H) \ 2286 __PMC_EV_ALIAS("ITLB_MISSES.MISS_CAUSES_A_WALK", IAP_EVENT_85H_01H) \ 2287 __PMC_EV_ALIAS("ITLB_MISSES.WALK_COMPLETED_4K", IAP_EVENT_85H_02H) \ 2288 __PMC_EV_ALIAS("ITLB_MISSES.WALK_COMPLETED_2M_4M", IAP_EVENT_85H_04H) \ 2289 __PMC_EV_ALIAS("ITLB_MISSES.WALK_COMPLETED_1G", IAP_EVENT_85H_08H) \ 2290 __PMC_EV_ALIAS("ITLB_MISSES.WALK_COMPLETED", IAP_EVENT_85H_0EH) \ 2291 __PMC_EV_ALIAS("ITLB_MISSES.WALK_PENDING", IAP_EVENT_85H_10H) \ 2292 __PMC_EV_ALIAS("ITLB_MISSES.STLB_HIT", IAP_EVENT_85H_20H) \ 2293 __PMC_EV_ALIAS("ILD_STALL.LCP", IAP_EVENT_87H_01H) \ 2294 __PMC_EV_ALIAS("IDQ_UOPS_NOT_DELIVERED.CORE", IAP_EVENT_9CH_01H) \ 2295 __PMC_EV_ALIAS("UOPS_DISPATCHED_PORT.PORT_0", IAP_EVENT_A1H_01H) \ 2296 __PMC_EV_ALIAS("UOPS_DISPATCHED_PORT.PORT_1", IAP_EVENT_A1H_02H) \ 2297 __PMC_EV_ALIAS("UOPS_DISPATCHED_PORT.PORT_2", IAP_EVENT_A1H_04H) \ 2298 __PMC_EV_ALIAS("UOPS_DISPATCHED_PORT.PORT_3", IAP_EVENT_A1H_08H) \ 2299 __PMC_EV_ALIAS("UOPS_DISPATCHED_PORT.PORT_4", IAP_EVENT_A1H_10H) \ 2300 __PMC_EV_ALIAS("UOPS_DISPATCHED_PORT.PORT_5", IAP_EVENT_A1H_20H) \ 2301 __PMC_EV_ALIAS("UOPS_DISPATCHED_PORT.PORT_6", IAP_EVENT_A1H_40H) \ 2302 __PMC_EV_ALIAS("UOPS_DISPATCHED_PORT.PORT_7", IAP_EVENT_A1H_80H) \ 2303 __PMC_EV_ALIAS("RESOURCE_STALLS.ANY", IAP_EVENT_A2H_01H) \ 2304 __PMC_EV_ALIAS("RESOURCE_STALLS.SB", IAP_EVENT_A2H_08H) \ 2305 __PMC_EV_ALIAS("CYCLE_ACTIVITY.CYCLES_L2_MISS", IAP_EVENT_A3H_01H) \ 2306 __PMC_EV_ALIAS("CYCLE_ACTIVITY.CYCLES_L3_MISS", IAP_EVENT_A3H_02H) \ 2307 __PMC_EV_ALIAS("CYCLE_ACTIVITY.STALLS_TOTAL", IAP_EVENT_A3H_04H) \ 2308 __PMC_EV_ALIAS("CYCLE_ACTIVITY.STALLS_L2_MISS", IAP_EVENT_A3H_05H) \ 2309 __PMC_EV_ALIAS("CYCLE_ACTIVITY.STALLS_L3_MISS", IAP_EVENT_A3H_06H) \ 2310 __PMC_EV_ALIAS("CYCLE_ACTIVITY.CYCLES_L1D_MISS", IAP_EVENT_A3H_08H) \ 2311 __PMC_EV_ALIAS("CYCLE_ACTIVITY.STALLS_L1D_MISS", IAP_EVENT_A3H_0CH) \ 2312 __PMC_EV_ALIAS("CYCLE_ACTIVITY.CYCLES_MEM_ANY", IAP_EVENT_A3H_10H) \ 2313 __PMC_EV_ALIAS("CYCLE_ACTIVITY.STALLS_MEM_ANY", IAP_EVENT_A3H_14H) \ 2314 __PMC_EV_ALIAS("EXE_ACTIVITY.EXE_BOUND_0_PORTS", IAP_EVENT_A6H_01H) \ 2315 __PMC_EV_ALIAS("EXE_ACTIVITY.1_PORTS_UTIL", IAP_EVENT_A6H_02H) \ 2316 __PMC_EV_ALIAS("EXE_ACTIVITY.2_PORTS_UTIL", IAP_EVENT_A6H_04H) \ 2317 __PMC_EV_ALIAS("EXE_ACTIVITY.3_PORTS_UTIL", IAP_EVENT_A6H_08H) \ 2318 __PMC_EV_ALIAS("EXE_ACTIVITY.4_PORTS_UTIL", IAP_EVENT_A6H_10H) \ 2319 __PMC_EV_ALIAS("EXE_ACTIVITY.BOUND_ON_STORES", IAP_EVENT_A6H_40H) \ 2320 __PMC_EV_ALIAS("LSD.UOPS", IAP_EVENT_A8H_01H) \ 2321 __PMC_EV_ALIAS("DSB2MITE_SWITCHES.PENALTY_CYCLES", IAP_EVENT_ABH_02H) \ 2322 __PMC_EV_ALIAS("ITLB.ITLB_FLUSH", IAP_EVENT_AEH_01H) \ 2323 __PMC_EV_ALIAS("OFFCORE_REQUESTS.DEMAND_DATA_RD", IAP_EVENT_B0H_01H) \ 2324 __PMC_EV_ALIAS("OFFCORE_REQUESTS.DEMAND_CODE_RD", IAP_EVENT_B0H_02H) \ 2325 __PMC_EV_ALIAS("OFFCORE_REQUESTS.DEMAND_RFO", IAP_EVENT_B0H_04H) \ 2326 __PMC_EV_ALIAS("OFFCORE_REQUESTS.ALL_DATA_RD", IAP_EVENT_B0H_08H) \ 2327 __PMC_EV_ALIAS("OFFCORE_REQUESTS.L3_MISS_DEMAND_DATA_RD", \ 2328 IAP_EVENT_B0H_10H) \ 2329 __PMC_EV_ALIAS("OFFCORE_REQUESTS.ALL_REQUESTS", IAP_EVENT_B0H_80H) \ 2330 __PMC_EV_ALIAS("UOPS_EXECUTED.THREAD", IAP_EVENT_B1H_01H) \ 2331 __PMC_EV_ALIAS("UOPS_EXECUTED.CORE", IAP_EVENT_B1H_02H) \ 2332 __PMC_EV_ALIAS("UOPS_EXECUTED.X87", IAP_EVENT_B1H_10H) \ 2333 __PMC_EV_ALIAS("OFF_CORE_REQUEST_BUFFER.SQ_FULL", IAP_EVENT_B2H_01H) \ 2334 __PMC_EV_ALIAS("TLB_FLUSH.DTLB_THREAD", IAP_EVENT_BDH_01H) \ 2335 __PMC_EV_ALIAS("TLB_FLUSH.STLB_ANY", IAP_EVENT_BDH_20H) \ 2336 __PMC_EV_ALIAS("INST_RETIRED.ANY_P", IAP_EVENT_C0H_00H) \ 2337 __PMC_EV_ALIAS("INST_RETIRED.PREC_DIST", IAP_EVENT_C0H_01H) \ 2338 __PMC_EV_ALIAS("OTHER_ASSISTS.ANY", IAP_EVENT_C1H_3FH) \ 2339 __PMC_EV_ALIAS("UOPS_RETIRED.STALL_CYCLES", IAP_EVENT_C2H_01H) \ 2340 __PMC_EV_ALIAS("UOPS_RETIRED.RETIRE_SLOTS", IAP_EVENT_C2H_02H) \ 2341 __PMC_EV_ALIAS("MACHINE_CLEARS.COUNT", IAP_EVENT_C3H_01H) \ 2342 __PMC_EV_ALIAS("MACHINE_CLEARS.MEMORY_ORDERING", IAP_EVENT_C3H_02H) \ 2343 __PMC_EV_ALIAS("MACHINE_CLEARS.SMC", IAP_EVENT_C3H_04H) \ 2344 __PMC_EV_ALIAS("BR_INST_RETIRED.ALL_BRANCHES", IAP_EVENT_C4H_00H) \ 2345 __PMC_EV_ALIAS("BR_INST_RETIRED.CONDITIONAL", IAP_EVENT_C4H_01H) \ 2346 __PMC_EV_ALIAS("BR_INST_RETIRED.NEAR_CALL", IAP_EVENT_C4H_02H) \ 2347 __PMC_EV_ALIAS("BR_INST_RETIRED.ALL_BRANCHES", IAP_EVENT_C4H_04H) \ 2348 __PMC_EV_ALIAS("BR_INST_RETIRED.NEAR_RETURN", IAP_EVENT_C4H_08H) \ 2349 __PMC_EV_ALIAS("BR_INST_RETIRED.NOT_TAKEN", IAP_EVENT_C4H_10H) \ 2350 __PMC_EV_ALIAS("BR_INST_RETIRED.NEAR_TAKEN", IAP_EVENT_C4H_20H) \ 2351 __PMC_EV_ALIAS("BR_INST_RETIRED.FAR_BRANCH", IAP_EVENT_C4H_40H) \ 2352 __PMC_EV_ALIAS("BR_MISP_RETIRED.ALL_BRANCHES", IAP_EVENT_C5H_00H) \ 2353 __PMC_EV_ALIAS("BR_MISP_RETIRED.CONDITIONAL", IAP_EVENT_C5H_01H) \ 2354 __PMC_EV_ALIAS("BR_MISP_RETIRED.NEAR_CALL", IAP_EVENT_C5H_02H) \ 2355 __PMC_EV_ALIAS("BR_MISP_RETIRED.NEAR_TAKEN", IAP_EVENT_C5H_20H) \ 2356 __PMC_EV_ALIAS("FRONTEND_RETIRED.DSB_MISS", IAP_EVENT_C6H_01H) \ 2357 __PMC_EV_ALIAS("FP_ARIT_INST_RETIRED.SCALAR_DOUBLE", IAP_EVENT_C7H_01H) \ 2358 __PMC_EV_ALIAS("FP_ARIT_INST_RETIRED.SCALAR_SINGLE", IAP_EVENT_C7H_02H) \ 2359 __PMC_EV_ALIAS("FP_ARIT_INST_RETIRED.128B_PACKED_DOUBLE", \ 2360 IAP_EVENT_C7H_04H) \ 2361 __PMC_EV_ALIAS("FP_ARIT_INST_RETIRED.128B_PACKED_SINGLE", \ 2362 IAP_EVENT_C7H_08H) \ 2363 __PMC_EV_ALIAS("FP_ARIT_INST_RETIRED.256B_PACKED_DOUBLE", \ 2364 IAP_EVENT_C7H_10H) \ 2365 __PMC_EV_ALIAS("FP_ARIT_INST_RETIRED.256B_PACKED_SINGLE", \ 2366 IAP_EVENT_C7H_20H) \ 2367 __PMC_EV_ALIAS("FP_ARIT_INST_RETIRED.512B_PACKED_DOUBLE", \ 2368 IAP_EVENT_C7H_40H) \ 2369 __PMC_EV_ALIAS("FP_ARIT_INST_RETIRED.512B_PACKED_SINGLE", \ 2370 IAP_EVENT_C7H_80H) \ 2371 __PMC_EV_ALIAS("HLE_RETIRED.START", IAP_EVENT_C8H_01H) \ 2372 __PMC_EV_ALIAS("HLE_RETIRED.COMMIT", IAP_EVENT_C8H_02H) \ 2373 __PMC_EV_ALIAS("HLE_RETIRED.ABORTED", IAP_EVENT_C8H_04H) \ 2374 __PMC_EV_ALIAS("HLE_RETIRED.ABORTED_MEM", IAP_EVENT_C8H_08H) \ 2375 __PMC_EV_ALIAS("HLE_RETIRED.ABORTED_TIMER", IAP_EVENT_C8H_10H) \ 2376 __PMC_EV_ALIAS("HLE_RETIRED.ABORTED_UNFRIENDLY", IAP_EVENT_C8H_20H) \ 2377 __PMC_EV_ALIAS("HLE_RETIRED.ABORTED_MEMTYPE", IAP_EVENT_C8H_40H) \ 2378 __PMC_EV_ALIAS("HLE_RETIRED.ABORTED_EVENTS", IAP_EVENT_C8H_80H) \ 2379 __PMC_EV_ALIAS("RTM_RETIRED.START", IAP_EVENT_C9H_01H) \ 2380 __PMC_EV_ALIAS("RTM_RETIRED.COMMIT", IAP_EVENT_C9H_02H) \ 2381 __PMC_EV_ALIAS("RTM_RETIRED.ABORTED", IAP_EVENT_C9H_04H) \ 2382 __PMC_EV_ALIAS("RTM_RETIRED.ABORTED_MEM", IAP_EVENT_C9H_08H) \ 2383 __PMC_EV_ALIAS("RTM_RETIRED.ABORTED_TIMER", IAP_EVENT_C9H_10H) \ 2384 __PMC_EV_ALIAS("RTM_RETIRED.ABORTED_UNFRIENDLY", IAP_EVENT_C9H_20H) \ 2385 __PMC_EV_ALIAS("RTM_RETIRED.ABORTED_MEMTYPE", IAP_EVENT_C9H_40H) \ 2386 __PMC_EV_ALIAS("RTM_RETIRED.ABORTED_EVENTS", IAP_EVENT_C9H_80H) \ 2387 __PMC_EV_ALIAS("FP_ASSIST.ANY", IAP_EVENT_CAH_1EH) \ 2388 __PMC_EV_ALIAS("HW_INTERRUPTS.RECEIVED", IAP_EVENT_CBH_01H) \ 2389 __PMC_EV_ALIAS("ROB_MISC_EVENTS.LBR_INSERTS", IAP_EVENT_CCH_20H) \ 2390 __PMC_EV_ALIAS("MEM_TRANS_RETIRED.LOAD_LATENCY", IAP_EVENT_CDH_01H) \ 2391 __PMC_EV_ALIAS("MEM_UOPS_RETIRED.STLB_MISS_LOADS", IAP_EVENT_D0H_11H) \ 2392 __PMC_EV_ALIAS("MEM_UOPS_RETIRED.STLB_MISS_STORES", IAP_EVENT_D0H_12H) \ 2393 __PMC_EV_ALIAS("MEM_UOPS_RETIRED.LOCK_LOADS", IAP_EVENT_D0H_21H) \ 2394 __PMC_EV_ALIAS("MEM_UOPS_RETIRED.SPLIT_LOADS", IAP_EVENT_D0H_41H) \ 2395 __PMC_EV_ALIAS("MEM_UOPS_RETIRED.SPLIT_STORES", IAP_EVENT_D0H_42H) \ 2396 __PMC_EV_ALIAS("MEM_UOPS_RETIRED.ALL_LOADS", IAP_EVENT_D0H_81H) \ 2397 __PMC_EV_ALIAS("MEM_UOPS_RETIRED.ALL_STORES", IAP_EVENT_D0H_82H) \ 2398 __PMC_EV_ALIAS("MEM_LOAD_UOPS_RETIRED.L1_HIT", IAP_EVENT_D1H_01H) \ 2399 __PMC_EV_ALIAS("MEM_LOAD_UOPS_RETIRED.L2_HIT", IAP_EVENT_D1H_02H) \ 2400 __PMC_EV_ALIAS("MEM_LOAD_UOPS_RETIRED.L3_HIT", IAP_EVENT_D1H_04H) \ 2401 __PMC_EV_ALIAS("MEM_LOAD_UOPS_RETIRED.L1_MISS", IAP_EVENT_D1H_08H) \ 2402 __PMC_EV_ALIAS("MEM_LOAD_UOPS_RETIRED.L2_MISS", IAP_EVENT_D1H_10H) \ 2403 __PMC_EV_ALIAS("MEM_LOAD_UOPS_RETIRED.L3_MISS", IAP_EVENT_D1H_20H) \ 2404 __PMC_EV_ALIAS("MEM_LOAD_UOPS_RETIRED.FB_HIT", IAP_EVENT_D1H_40H) \ 2405 __PMC_EV_ALIAS("MEM_LOAD_L3_HIT_RETIRED.XSNP_MISS", \ 2406 IAP_EVENT_D2H_01H) \ 2407 __PMC_EV_ALIAS("MEM_LOAD_L3_HIT_RETIRED.XSNP_HIT", \ 2408 IAP_EVENT_D2H_02H) \ 2409 __PMC_EV_ALIAS("MEM_LOAD_L3_HIT_RETIRED.XSNP_HITM", \ 2410 IAP_EVENT_D2H_04H) \ 2411 __PMC_EV_ALIAS("MEM_LOAD_L3_HIT_RETIRED.XSNP_NONE", \ 2412 IAP_EVENT_D2H_08H) \ 2413 __PMC_EV_ALIAS("MEM_LOAD_L3_MISS_RETIRED.LOCAL_DRAM", \ 2414 IAP_EVENT_D3H_01H) \ 2415 __PMC_EV_ALIAS("MEM_LOAD_L3_MISS_RETIRED.REMOTE_DRAM", \ 2416 IAP_EVENT_D3H_02H) \ 2417 __PMC_EV_ALIAS("MEM_LOAD_L3_MISS_RETIRED.REMOTE_HITM", \ 2418 IAP_EVENT_D3H_04H) \ 2419 __PMC_EV_ALIAS("MEM_LOAD_L3_MISS_RETIRED.REMOTE_FWD", \ 2420 IAP_EVENT_D3H_08H) \ 2421 __PMC_EV_ALIAS("MEM_LOAD_MISC_RETIRED.UC", IAP_EVENT_D4H_04H) \ 2422 __PMC_EV_ALIAS("BACLEARS.ANY", IAP_EVENT_E6H_01H) \ 2423 __PMC_EV_ALIAS("L2_TRANS.L2_WB", IAP_EVENT_F0H_40H) \ 2424 __PMC_EV_ALIAS("L2_LINES_IN.ALL", IAP_EVENT_F1H_1FH) \ 2425 __PMC_EV_ALIAS("L2_LINES_OUT.SILENT", IAP_EVENT_F2H_01H) \ 2426 __PMC_EV_ALIAS("L2_LINES_OUT.NON_SILENT", IAP_EVENT_F2H_02H) \ 2427 __PMC_EV_ALIAS("L2_LINES_OUT.USELESS_PREF", IAP_EVENT_F2H_04H) \ 2428 __PMC_EV_ALIAS("SQ_MISC.SPLIT_LOCK", IAP_EVENT_F4H_10H) \ 2429 __PMC_EV_ALIAS("IDI_MISC.WB_UPGRADE", IAP_EVENT_FEH_02H) \ 2430 __PMC_EV_ALIAS("IDI_MISC.WB_DOWNGRADE", IAP_EVENT_FEH_04H) 2431 2432 /* 2433 * Aliases for Core PMC events. 2434 */ 2435 #define __PMC_EV_ALIAS_CORE() \ 2436 __PMC_EV_ALIAS_INTEL_ARCHITECTURAL() \ 2437 __PMC_EV_ALIAS("BAClears", IAP_EVENT_E6H_00H) \ 2438 __PMC_EV_ALIAS("BTB_Misses", IAP_EVENT_E2H_00H) \ 2439 __PMC_EV_ALIAS("Br_BAC_Missp_Exec", IAP_EVENT_8AH_00H) \ 2440 __PMC_EV_ALIAS("Br_Bogus", IAP_EVENT_E4H_00H) \ 2441 __PMC_EV_ALIAS("Br_Call_Exec", IAP_EVENT_92H_00H) \ 2442 __PMC_EV_ALIAS("Br_Call_Missp_Exec", IAP_EVENT_93H_00H) \ 2443 __PMC_EV_ALIAS("Br_Cnd_Exec", IAP_EVENT_8BH_00H) \ 2444 __PMC_EV_ALIAS("Br_Cnd_Missp_Exec", IAP_EVENT_8CH_00H) \ 2445 __PMC_EV_ALIAS("Br_Ind_Call_Exec", IAP_EVENT_94H_00H) \ 2446 __PMC_EV_ALIAS("Br_Ind_Exec", IAP_EVENT_8DH_00H) \ 2447 __PMC_EV_ALIAS("Br_Ind_Missp_Exec", IAP_EVENT_8EH_00H) \ 2448 __PMC_EV_ALIAS("Br_Inst_Exec", IAP_EVENT_88H_00H) \ 2449 __PMC_EV_ALIAS("Br_Instr_Decoded", IAP_EVENT_E0H_00H) \ 2450 __PMC_EV_ALIAS("Br_Instr_Ret", IAP_EVENT_C4H_00H) \ 2451 __PMC_EV_ALIAS("Br_MisPred_Ret", IAP_EVENT_C5H_00H) \ 2452 __PMC_EV_ALIAS("Br_MisPred_Taken_Ret", IAP_EVENT_CAH_00H) \ 2453 __PMC_EV_ALIAS("Br_Missp_Exec", IAP_EVENT_89H_00H) \ 2454 __PMC_EV_ALIAS("Br_Ret_BAC_Missp_Exec", IAP_EVENT_91H_00H) \ 2455 __PMC_EV_ALIAS("Br_Ret_Exec", IAP_EVENT_8FH_00H) \ 2456 __PMC_EV_ALIAS("Br_Ret_Missp_Exec", IAP_EVENT_90H_00H) \ 2457 __PMC_EV_ALIAS("Br_Taken_Ret", IAP_EVENT_C9H_00H) \ 2458 __PMC_EV_ALIAS("Bus_BNR_Clocks", IAP_EVENT_61H_00H) \ 2459 __PMC_EV_ALIAS("Bus_DRDY_Clocks", IAP_EVENT_62H_00H) \ 2460 __PMC_EV_ALIAS("Bus_Data_Rcv", IAP_EVENT_64H_40H) \ 2461 __PMC_EV_ALIAS("Bus_Locks_Clocks", IAP_EVENT_63H) \ 2462 __PMC_EV_ALIAS("Bus_Not_In_Use", IAP_EVENT_7DH) \ 2463 __PMC_EV_ALIAS("Bus_Req_Outstanding", IAP_EVENT_60H) \ 2464 __PMC_EV_ALIAS("Bus_Snoop_Stall", IAP_EVENT_7EH_00H) \ 2465 __PMC_EV_ALIAS("Bus_Snoops", IAP_EVENT_77H) \ 2466 __PMC_EV_ALIAS("Bus_Trans_Any", IAP_EVENT_70H) \ 2467 __PMC_EV_ALIAS("Bus_Trans_Brd", IAP_EVENT_65H) \ 2468 __PMC_EV_ALIAS("Bus_Trans_Burst", IAP_EVENT_6EH) \ 2469 __PMC_EV_ALIAS("Bus_Trans_Def", IAP_EVENT_6DH) \ 2470 __PMC_EV_ALIAS("Bus_Trans_IO", IAP_EVENT_6CH) \ 2471 __PMC_EV_ALIAS("Bus_Trans_Ifetch", IAP_EVENT_68H) \ 2472 __PMC_EV_ALIAS("Bus_Trans_Inval", IAP_EVENT_69H) \ 2473 __PMC_EV_ALIAS("Bus_Trans_Mem", IAP_EVENT_6FH) \ 2474 __PMC_EV_ALIAS("Bus_Trans_P", IAP_EVENT_6BH) \ 2475 __PMC_EV_ALIAS("Bus_Trans_Pwr", IAP_EVENT_6AH) \ 2476 __PMC_EV_ALIAS("Bus_Trans_RFO", IAP_EVENT_66H) \ 2477 __PMC_EV_ALIAS("Bus_Trans_WB", IAP_EVENT_67H) \ 2478 __PMC_EV_ALIAS("Cycles_Div_Busy", IAP_EVENT_14H_00H) \ 2479 __PMC_EV_ALIAS("Cycles_Int_Masked", IAP_EVENT_C6H_00H) \ 2480 __PMC_EV_ALIAS("Cycles_Int_Pending_Masked", IAP_EVENT_C7H_00H) \ 2481 __PMC_EV_ALIAS("DCU_Snoop_To_Share", IAP_EVENT_78H) \ 2482 __PMC_EV_ALIAS("DCache_Cache_LD", IAP_EVENT_40H) \ 2483 __PMC_EV_ALIAS("DCache_Cache_Lock", IAP_EVENT_42H) \ 2484 __PMC_EV_ALIAS("DCache_Cache_ST", IAP_EVENT_41H) \ 2485 __PMC_EV_ALIAS("DCache_M_Evict", IAP_EVENT_47H_00H) \ 2486 __PMC_EV_ALIAS("DCache_M_Repl", IAP_EVENT_46H_00H) \ 2487 __PMC_EV_ALIAS("DCache_Pend_Miss", IAP_EVENT_48H_00H) \ 2488 __PMC_EV_ALIAS("DCache_Repl", IAP_EVENT_45H_0FH) \ 2489 __PMC_EV_ALIAS("Data_Mem_Cache_Ref", IAP_EVENT_44H_02H) \ 2490 __PMC_EV_ALIAS("Data_Mem_Ref", IAP_EVENT_43H_01H) \ 2491 __PMC_EV_ALIAS("Dbus_Busy", IAP_EVENT_22H) \ 2492 __PMC_EV_ALIAS("Dbus_Busy_Rd", IAP_EVENT_23H) \ 2493 __PMC_EV_ALIAS("Div", IAP_EVENT_13H_00H) \ 2494 __PMC_EV_ALIAS("Dtlb_Miss", IAP_EVENT_49H_00H) \ 2495 __PMC_EV_ALIAS("ESP_Uops", IAP_EVENT_D7H_00H) \ 2496 __PMC_EV_ALIAS("EST_Trans", IAP_EVENT_3AH) \ 2497 __PMC_EV_ALIAS("FP_Assist", IAP_EVENT_11H_00H) \ 2498 __PMC_EV_ALIAS("FP_Comp_Instr_Ret", IAP_EVENT_C1H_00H) \ 2499 __PMC_EV_ALIAS("FP_Comps_Op_Exe", IAP_EVENT_10H_00H) \ 2500 __PMC_EV_ALIAS("FP_MMX_Trans", IAP_EVENT_CCH_01H) \ 2501 __PMC_EV_ALIAS("Fused_Ld_Uops_Ret", IAP_EVENT_DAH_01H) \ 2502 __PMC_EV_ALIAS("Fused_St_Uops_Ret", IAP_EVENT_DAH_02H) \ 2503 __PMC_EV_ALIAS("Fused_Uops_Ret", IAP_EVENT_DAH_00H) \ 2504 __PMC_EV_ALIAS("HW_Int_Rx", IAP_EVENT_C8H_00H) \ 2505 __PMC_EV_ALIAS("ICache_Misses", IAP_EVENT_81H_00H) \ 2506 __PMC_EV_ALIAS("ICache_Reads", IAP_EVENT_80H_00H) \ 2507 __PMC_EV_ALIAS("IFU_Mem_Stall", IAP_EVENT_86H_00H) \ 2508 __PMC_EV_ALIAS("ILD_Stall", IAP_EVENT_87H_00H) \ 2509 __PMC_EV_ALIAS("ITLB_Misses", IAP_EVENT_85H_00H) \ 2510 __PMC_EV_ALIAS("Instr_Decoded", IAP_EVENT_D0H_00H) \ 2511 __PMC_EV_ALIAS("Instr_Ret", IAP_EVENT_C0H_00H) \ 2512 __PMC_EV_ALIAS("L1_Pref_Req", IAP_EVENT_4FH_00H) \ 2513 __PMC_EV_ALIAS("L2_ADS", IAP_EVENT_21H) \ 2514 __PMC_EV_ALIAS("L2_IFetch", IAP_EVENT_28H) \ 2515 __PMC_EV_ALIAS("L2_LD", IAP_EVENT_29H) \ 2516 __PMC_EV_ALIAS("L2_Lines_In", IAP_EVENT_24H) \ 2517 __PMC_EV_ALIAS("L2_Lines_Out", IAP_EVENT_26H) \ 2518 __PMC_EV_ALIAS("L2_M_Lines_In", IAP_EVENT_25H) \ 2519 __PMC_EV_ALIAS("L2_M_Lines_Out", IAP_EVENT_27H) \ 2520 __PMC_EV_ALIAS("L2_No_Request_Cycles", IAP_EVENT_32H) \ 2521 __PMC_EV_ALIAS("L2_Reject_Cycles", IAP_EVENT_30H) \ 2522 __PMC_EV_ALIAS("L2_Rqsts", IAP_EVENT_2EH) \ 2523 __PMC_EV_ALIAS("L2_ST", IAP_EVENT_2AH) \ 2524 __PMC_EV_ALIAS("LD_Blocks", IAP_EVENT_03H_00H) \ 2525 __PMC_EV_ALIAS("LLC_Misses", IAP_EVENT_2EH_41H) \ 2526 __PMC_EV_ALIAS("LLC_Reference", IAP_EVENT_2EH_4FH) \ 2527 __PMC_EV_ALIAS("MMX_Assist", IAP_EVENT_CDH_00H) \ 2528 __PMC_EV_ALIAS("MMX_FP_Trans", IAP_EVENT_CCH_00H) \ 2529 __PMC_EV_ALIAS("MMX_Instr_Exec", IAP_EVENT_B0H_00H) \ 2530 __PMC_EV_ALIAS("MMX_Instr_Ret", IAP_EVENT_CEH_00H) \ 2531 __PMC_EV_ALIAS("Misalign_Mem_Ref", IAP_EVENT_05H_00H) \ 2532 __PMC_EV_ALIAS("Mul", IAP_EVENT_12H_00H) \ 2533 __PMC_EV_ALIAS("NonHlt_Ref_Cycles", IAP_EVENT_3CH_01H) \ 2534 __PMC_EV_ALIAS("Pref_Rqsts_Dn", IAP_EVENT_F8H_00H) \ 2535 __PMC_EV_ALIAS("Pref_Rqsts_Up", IAP_EVENT_F0H_00H) \ 2536 __PMC_EV_ALIAS("Resource_Stall", IAP_EVENT_A2H_00H) \ 2537 __PMC_EV_ALIAS("SD_Drains", IAP_EVENT_04H_00H) \ 2538 __PMC_EV_ALIAS("SIMD_FP_DP_P_Comp_Ret", IAP_EVENT_D9H_02H) \ 2539 __PMC_EV_ALIAS("SIMD_FP_DP_P_Ret", IAP_EVENT_D8H_02H) \ 2540 __PMC_EV_ALIAS("SIMD_FP_DP_S_Comp_Ret", IAP_EVENT_D9H_03H) \ 2541 __PMC_EV_ALIAS("SIMD_FP_DP_S_Ret", IAP_EVENT_D8H_03H) \ 2542 __PMC_EV_ALIAS("SIMD_FP_SP_P_Comp_Ret", IAP_EVENT_D9H_00H) \ 2543 __PMC_EV_ALIAS("SIMD_FP_SP_Ret", IAP_EVENT_D8H_00H) \ 2544 __PMC_EV_ALIAS("SIMD_FP_SP_S_Comp_Ret", IAP_EVENT_D9H_01H) \ 2545 __PMC_EV_ALIAS("SIMD_FP_SP_S_Ret", IAP_EVENT_D8H_01H) \ 2546 __PMC_EV_ALIAS("SIMD_Int_128_Ret", IAP_EVENT_D8H_04H) \ 2547 __PMC_EV_ALIAS("SIMD_Int_Pari_Exec", IAP_EVENT_B3H_20H) \ 2548 __PMC_EV_ALIAS("SIMD_Int_Pck_Exec", IAP_EVENT_B3H_04H) \ 2549 __PMC_EV_ALIAS("SIMD_Int_Plog_Exec", IAP_EVENT_B3H_10H) \ 2550 __PMC_EV_ALIAS("SIMD_Int_Pmul_Exec", IAP_EVENT_B3H_01H) \ 2551 __PMC_EV_ALIAS("SIMD_Int_Psft_Exec", IAP_EVENT_B3H_02H) \ 2552 __PMC_EV_ALIAS("SIMD_Int_Sat_Exec", IAP_EVENT_B1H_00H) \ 2553 __PMC_EV_ALIAS("SIMD_Int_Upck_Exec", IAP_EVENT_B3H_08H) \ 2554 __PMC_EV_ALIAS("SMC_Detected", IAP_EVENT_C3H_00H) \ 2555 __PMC_EV_ALIAS("SSE_NTStores_Miss", IAP_EVENT_4BH_03H) \ 2556 __PMC_EV_ALIAS("SSE_NTStores_Ret", IAP_EVENT_07H_03H) \ 2557 __PMC_EV_ALIAS("SSE_PrefNta_Miss", IAP_EVENT_4BH_00H) \ 2558 __PMC_EV_ALIAS("SSE_PrefNta_Ret", IAP_EVENT_07H_00H) \ 2559 __PMC_EV_ALIAS("SSE_PrefT1_Miss", IAP_EVENT_4BH_01H) \ 2560 __PMC_EV_ALIAS("SSE_PrefT1_Ret", IAP_EVENT_07H_01H) \ 2561 __PMC_EV_ALIAS("SSE_PrefT2_Miss", IAP_EVENT_4BH_02H) \ 2562 __PMC_EV_ALIAS("SSE_PrefT2_Ret", IAP_EVENT_07H_02H) \ 2563 __PMC_EV_ALIAS("Seg_Reg_Loads", IAP_EVENT_06H_00H) \ 2564 __PMC_EV_ALIAS("Serial_Execution_Cycles", IAP_EVENT_3CH_02H) \ 2565 __PMC_EV_ALIAS("Thermal_Trip", IAP_EVENT_3BH_C0H) \ 2566 __PMC_EV_ALIAS("Unfusion", IAP_EVENT_DBH_00H) \ 2567 __PMC_EV_ALIAS("Unhalted_Core_Cycles", IAP_EVENT_3CH_00H) \ 2568 __PMC_EV_ALIAS("Uops_Ret", IAP_EVENT_C2H_00H) 2569 2570 /* 2571 * Aliases for Core2 PMC events. 2572 */ 2573 #define __PMC_EV_ALIAS_CORE2() \ 2574 __PMC_EV_ALIAS_INTEL_ARCHITECTURAL() \ 2575 __PMC_EV_ALIAS("BACLEARS", IAP_EVENT_E6H_00H) \ 2576 __PMC_EV_ALIAS("BOGUS_BR", IAP_EVENT_E4H_00H) \ 2577 __PMC_EV_ALIAS("BR_BAC_MISSP_EXEC", IAP_EVENT_8AH_00H) \ 2578 __PMC_EV_ALIAS("BR_CALL_EXEC", IAP_EVENT_92H_00H) \ 2579 __PMC_EV_ALIAS("BR_CALL_MISSP_EXEC", IAP_EVENT_93H_00H) \ 2580 __PMC_EV_ALIAS("BR_CND_EXEC", IAP_EVENT_8BH_00H) \ 2581 __PMC_EV_ALIAS("BR_CND_MISSP_EXEC", IAP_EVENT_8CH_00H) \ 2582 __PMC_EV_ALIAS("BR_IND_CALL_EXEC", IAP_EVENT_94H_00H) \ 2583 __PMC_EV_ALIAS("BR_IND_EXEC", IAP_EVENT_8DH_00H) \ 2584 __PMC_EV_ALIAS("BR_IND_MISSP_EXEC", IAP_EVENT_8EH_00H) \ 2585 __PMC_EV_ALIAS("BR_INST_DECODED", IAP_EVENT_E0H_00H) \ 2586 __PMC_EV_ALIAS("BR_INST_EXEC", IAP_EVENT_88H_00H) \ 2587 __PMC_EV_ALIAS("BR_INST_RETIRED.ANY", IAP_EVENT_C4H_00H) \ 2588 __PMC_EV_ALIAS("BR_INST_RETIRED.MISPRED", IAP_EVENT_C5H_00H) \ 2589 __PMC_EV_ALIAS("BR_INST_RETIRED.MISPRED_NOT_TAKEN", \ 2590 IAP_EVENT_C4H_02H) \ 2591 __PMC_EV_ALIAS("BR_INST_RETIRED.MISPRED_TAKEN", \ 2592 IAP_EVENT_C4H_08H) \ 2593 __PMC_EV_ALIAS("BR_INST_RETIRED.PRED_NOT_TAKEN", \ 2594 IAP_EVENT_C4H_01H) \ 2595 __PMC_EV_ALIAS("BR_INST_RETIRED.PRED_TAKEN", \ 2596 IAP_EVENT_C4H_04H) \ 2597 __PMC_EV_ALIAS("BR_INST_RETIRED.TAKEN", IAP_EVENT_C4H_0CH) \ 2598 __PMC_EV_ALIAS("BR_MISSP_EXEC", IAP_EVENT_89H_00H) \ 2599 __PMC_EV_ALIAS("BR_RET_BAC_MISSP_EXEC", IAP_EVENT_91H_00H) \ 2600 __PMC_EV_ALIAS("BR_RET_EXEC", IAP_EVENT_8FH_00H) \ 2601 __PMC_EV_ALIAS("BR_RET_MISSP_EXEC", IAP_EVENT_90H_00H) \ 2602 __PMC_EV_ALIAS("BR_TKN_BUBBLE_1", IAP_EVENT_97H_00H) \ 2603 __PMC_EV_ALIAS("BR_TKN_BUBBLE_2", IAP_EVENT_98H_00H) \ 2604 __PMC_EV_ALIAS("BUSQ_EMPTY", IAP_EVENT_7DH) \ 2605 __PMC_EV_ALIAS("BUS_BNR_DRV", IAP_EVENT_61H) \ 2606 __PMC_EV_ALIAS("BUS_DATA_RCV", IAP_EVENT_64H) \ 2607 __PMC_EV_ALIAS("BUS_DRDY_CLOCKS", IAP_EVENT_62H) \ 2608 __PMC_EV_ALIAS("BUS_HITM_DRV", IAP_EVENT_7BH) \ 2609 __PMC_EV_ALIAS("BUS_HIT_DRV", IAP_EVENT_7AH) \ 2610 __PMC_EV_ALIAS("BUS_IO_WAIT", IAP_EVENT_7FH) \ 2611 __PMC_EV_ALIAS("BUS_LOCK_CLOCKS", IAP_EVENT_63H) \ 2612 __PMC_EV_ALIAS("BUS_REQUEST_OUTSTANDING", \ 2613 IAP_EVENT_60H) \ 2614 __PMC_EV_ALIAS("BUS_TRANS_ANY", IAP_EVENT_70H) \ 2615 __PMC_EV_ALIAS("BUS_TRANS_BRD", IAP_EVENT_65H) \ 2616 __PMC_EV_ALIAS("BUS_TRANS_BURST", IAP_EVENT_6EH) \ 2617 __PMC_EV_ALIAS("BUS_TRANS_DEF", IAP_EVENT_6DH) \ 2618 __PMC_EV_ALIAS("BUS_TRANS_IFETCH", IAP_EVENT_68H) \ 2619 __PMC_EV_ALIAS("BUS_TRANS_INVAL", IAP_EVENT_69H) \ 2620 __PMC_EV_ALIAS("BUS_TRANS_IO", IAP_EVENT_6CH) \ 2621 __PMC_EV_ALIAS("BUS_TRANS_MEM", IAP_EVENT_6FH) \ 2622 __PMC_EV_ALIAS("BUS_TRANS_P", IAP_EVENT_6BH) \ 2623 __PMC_EV_ALIAS("BUS_TRANS_PWR", IAP_EVENT_6AH) \ 2624 __PMC_EV_ALIAS("BUS_TRANS_RFO", IAP_EVENT_66H) \ 2625 __PMC_EV_ALIAS("BUS_TRANS_WB", IAP_EVENT_67H) \ 2626 __PMC_EV_ALIAS("CMP_SNOOP", IAP_EVENT_78H) \ 2627 __PMC_EV_ALIAS("CPU_CLK_UNHALTED.BUS", IAP_EVENT_3CH_01H) \ 2628 __PMC_EV_ALIAS("CPU_CLK_UNHALTED.CORE_P", \ 2629 IAP_EVENT_3CH_00H) \ 2630 __PMC_EV_ALIAS("CPU_CLK_UNHALTED.NO_OTHER", \ 2631 IAP_EVENT_3CH_02H) \ 2632 __PMC_EV_ALIAS("CYCLES_DIV_BUSY", IAP_EVENT_14H_00H) \ 2633 __PMC_EV_ALIAS("CYCLES_INT_MASKED", IAP_EVENT_C6H_01H) \ 2634 __PMC_EV_ALIAS("CYCLES_INT_PENDING_AND_MASKED", \ 2635 IAP_EVENT_C6H_02H) \ 2636 __PMC_EV_ALIAS("CYCLES_L1I_MEM_STALLED", IAP_EVENT_86H_00H) \ 2637 __PMC_EV_ALIAS("DELAYED_BYPASS.FP", IAP_EVENT_19H_00H) \ 2638 __PMC_EV_ALIAS("DELAYED_BYPASS.LOAD", IAP_EVENT_19H_01H) \ 2639 __PMC_EV_ALIAS("DELAYED_BYPASS.SIMD", IAP_EVENT_19H_02H) \ 2640 __PMC_EV_ALIAS("DIV", IAP_EVENT_13H_00H) \ 2641 __PMC_EV_ALIAS("DTLB_MISSES.ANY", IAP_EVENT_08H_01H) \ 2642 __PMC_EV_ALIAS("DTLB_MISSES.L0_MISS_LD", IAP_EVENT_08H_04H) \ 2643 __PMC_EV_ALIAS("DTLB_MISSES.MISS_LD", IAP_EVENT_08H_02H) \ 2644 __PMC_EV_ALIAS("DTLB_MISSES.MISS_ST", IAP_EVENT_08H_08H) \ 2645 __PMC_EV_ALIAS("EIST_TRANS", IAP_EVENT_3AH_00H) \ 2646 __PMC_EV_ALIAS("ESP.ADDITIONS", IAP_EVENT_ABH_02H) \ 2647 __PMC_EV_ALIAS("ESP.SYNCH", IAP_EVENT_ABH_01H) \ 2648 __PMC_EV_ALIAS("EXT_SNOOP", IAP_EVENT_77H) \ 2649 __PMC_EV_ALIAS("FP_ASSIST", IAP_EVENT_11H_00H) \ 2650 __PMC_EV_ALIAS("FP_COMP_OPS_EXE", IAP_EVENT_10H_00H) \ 2651 __PMC_EV_ALIAS("FP_MMX_TRANS_TO_FP", IAP_EVENT_CCH_02H) \ 2652 __PMC_EV_ALIAS("FP_MMX_TRANS_TO_MMX", IAP_EVENT_CCH_01H) \ 2653 __PMC_EV_ALIAS("HW_INT_RCV", IAP_EVENT_C8H_00H) \ 2654 __PMC_EV_ALIAS("IDLE_DURING_DIV", IAP_EVENT_18H_00H) \ 2655 __PMC_EV_ALIAS("ILD_STALL", IAP_EVENT_87H_00H) \ 2656 __PMC_EV_ALIAS("INST_QUEUE.FULL", IAP_EVENT_83H_02H) \ 2657 __PMC_EV_ALIAS("INST_RETIRED.ANY_P", IAP_EVENT_C0H_00H) \ 2658 __PMC_EV_ALIAS("INST_RETIRED.LOADS", IAP_EVENT_C0H_01H) \ 2659 __PMC_EV_ALIAS("INST_RETIRED.OTHER", IAP_EVENT_C0H_04H) \ 2660 __PMC_EV_ALIAS("INST_RETIRED.STORES", IAP_EVENT_C0H_02H) \ 2661 __PMC_EV_ALIAS("INST_RETIRED.VM_H", IAP_EVENT_C0H_08H) \ 2662 __PMC_EV_ALIAS("ITLB.FLUSH", IAP_EVENT_82H_40H) \ 2663 __PMC_EV_ALIAS("ITLB.LARGE_MISS", IAP_EVENT_82H_10H) \ 2664 __PMC_EV_ALIAS("ITLB.MISSES", IAP_EVENT_82H_12H) \ 2665 __PMC_EV_ALIAS("ITLB.SMALL_MISS", IAP_EVENT_82H_02H) \ 2666 __PMC_EV_ALIAS("ITLB_MISS_RETIRED", IAP_EVENT_C9H_00H) \ 2667 __PMC_EV_ALIAS("L1D_ALL_CACHE_REF", IAP_EVENT_43H_02H) \ 2668 __PMC_EV_ALIAS("L1D_ALL_REF", IAP_EVENT_43H_01H) \ 2669 __PMC_EV_ALIAS("L1D_CACHE_LD", IAP_EVENT_40H) \ 2670 __PMC_EV_ALIAS("L1D_CACHE_LOCK", IAP_EVENT_42H) \ 2671 __PMC_EV_ALIAS("L1D_CACHE_LOCK_DURATION", IAP_EVENT_42H_10H) \ 2672 __PMC_EV_ALIAS("L1D_CACHE_ST", IAP_EVENT_41H) \ 2673 __PMC_EV_ALIAS("L1D_M_EVICT", IAP_EVENT_47H_00H) \ 2674 __PMC_EV_ALIAS("L1D_M_REPL", IAP_EVENT_46H_00H) \ 2675 __PMC_EV_ALIAS("L1D_PEND_MISS", IAP_EVENT_48H_00H) \ 2676 __PMC_EV_ALIAS("L1D_PREFETCH.REQUESTS", IAP_EVENT_4EH_10H) \ 2677 __PMC_EV_ALIAS("L1D_REPL", IAP_EVENT_45H_0FH) \ 2678 __PMC_EV_ALIAS("L1D_SPLIT.LOADS", IAP_EVENT_49H_01H) \ 2679 __PMC_EV_ALIAS("L1D_SPLIT.STORES", IAP_EVENT_49H_02H) \ 2680 __PMC_EV_ALIAS("L1I_MISSES", IAP_EVENT_81H_00H) \ 2681 __PMC_EV_ALIAS("L1I_READS", IAP_EVENT_80H_00H) \ 2682 __PMC_EV_ALIAS("L2_ADS", IAP_EVENT_21H) \ 2683 __PMC_EV_ALIAS("L2_DBUS_BUSY_RD", IAP_EVENT_23H) \ 2684 __PMC_EV_ALIAS("L2_IFETCH", IAP_EVENT_28H) \ 2685 __PMC_EV_ALIAS("L2_LD", IAP_EVENT_29H) \ 2686 __PMC_EV_ALIAS("L2_LINES_IN", IAP_EVENT_24H) \ 2687 __PMC_EV_ALIAS("L2_LINES_OUT", IAP_EVENT_26H) \ 2688 __PMC_EV_ALIAS("L2_LOCK", IAP_EVENT_2BH) \ 2689 __PMC_EV_ALIAS("L2_M_LINES_IN", IAP_EVENT_25H) \ 2690 __PMC_EV_ALIAS("L2_M_LINES_OUT", IAP_EVENT_27H) \ 2691 __PMC_EV_ALIAS("L2_NO_REQ", IAP_EVENT_32H) \ 2692 __PMC_EV_ALIAS("L2_REJECT_BUSQ", IAP_EVENT_30H) \ 2693 __PMC_EV_ALIAS("L2_RQSTS", IAP_EVENT_2EH) \ 2694 __PMC_EV_ALIAS("L2_RQSTS.SELF.DEMAND.I_STATE", \ 2695 IAP_EVENT_2EH_41H) \ 2696 __PMC_EV_ALIAS("L2_RQSTS.SELF.DEMAND.MESI", \ 2697 IAP_EVENT_2EH_4FH) \ 2698 __PMC_EV_ALIAS("L2_ST", IAP_EVENT_2AH) \ 2699 __PMC_EV_ALIAS("LOAD_BLOCK.L1D", IAP_EVENT_03H_20H) \ 2700 __PMC_EV_ALIAS("LOAD_BLOCK.OVERLAP_STORE", \ 2701 IAP_EVENT_03H_08H) \ 2702 __PMC_EV_ALIAS("LOAD_BLOCK.STA", IAP_EVENT_03H_02H) \ 2703 __PMC_EV_ALIAS("LOAD_BLOCK.STD", IAP_EVENT_03H_04H) \ 2704 __PMC_EV_ALIAS("LOAD_BLOCK.UNTIL_RETIRE", IAP_EVENT_03H_10H) \ 2705 __PMC_EV_ALIAS("LOAD_HIT_PRE", IAP_EVENT_4CH_00H) \ 2706 __PMC_EV_ALIAS("MACHINE_NUKES.MEM_ORDER", IAP_EVENT_C3H_04H) \ 2707 __PMC_EV_ALIAS("MACHINE_NUKES.SMC", IAP_EVENT_C3H_01H) \ 2708 __PMC_EV_ALIAS("MACRO_INSTS.CISC_DECODED", IAP_EVENT_AAH_08H) \ 2709 __PMC_EV_ALIAS("MACRO_INSTS.DECODED", IAP_EVENT_AAH_01H) \ 2710 __PMC_EV_ALIAS("MEMORY_DISAMBIGUATION.RESET", \ 2711 IAP_EVENT_09H_01H) \ 2712 __PMC_EV_ALIAS("MEMORY_DISAMBIGUATION.SUCCESS", \ 2713 IAP_EVENT_09H_02H) \ 2714 __PMC_EV_ALIAS("MEM_LOAD_RETIRED.DTLB_MISS", \ 2715 IAP_EVENT_CBH_10H) \ 2716 __PMC_EV_ALIAS("MEM_LOAD_RETIRED.L1D_LINE_MISS", \ 2717 IAP_EVENT_CBH_02H) \ 2718 __PMC_EV_ALIAS("MEM_LOAD_RETIRED.L1D_MISS", \ 2719 IAP_EVENT_CBH_01H) \ 2720 __PMC_EV_ALIAS("MEM_LOAD_RETIRED.L2_LINE_MISS", \ 2721 IAP_EVENT_CBH_08H) \ 2722 __PMC_EV_ALIAS("MEM_LOAD_RETIRED.L2_MISS", \ 2723 IAP_EVENT_CBH_04H) \ 2724 __PMC_EV_ALIAS("MUL", IAP_EVENT_12H_00H) \ 2725 __PMC_EV_ALIAS("PAGE_WALKS.COUNT", IAP_EVENT_0CH_01H) \ 2726 __PMC_EV_ALIAS("PAGE_WALKS.CYCLES", IAP_EVENT_0CH_02H) \ 2727 __PMC_EV_ALIAS("PREF_RQSTS_DN", IAP_EVENT_F8H_00H) \ 2728 __PMC_EV_ALIAS("PREF_RQSTS_UP", IAP_EVENT_F0H_00H) \ 2729 __PMC_EV_ALIAS("RAT_STALLS.ANY", IAP_EVENT_D2H_0FH) \ 2730 __PMC_EV_ALIAS("RAT_STALLS.FLAGS", IAP_EVENT_D2H_04H) \ 2731 __PMC_EV_ALIAS("RAT_STALLS.FPSW", IAP_EVENT_D2H_08H) \ 2732 __PMC_EV_ALIAS("RAT_STALLS.OTHER_SERIALIZATION_STALLS", \ 2733 IAP_EVENT_D2H_10H) \ 2734 __PMC_EV_ALIAS("RAT_STALLS.PARTIAL_CYCLES", \ 2735 IAP_EVENT_D2H_02H) \ 2736 __PMC_EV_ALIAS("RAT_STALLS.ROB_READ_PORT", \ 2737 IAP_EVENT_D2H_01H) \ 2738 __PMC_EV_ALIAS("RESOURCE_STALLS.ANY", IAP_EVENT_DCH_1FH) \ 2739 __PMC_EV_ALIAS("RESOURCE_STALLS.BR_MISS_CLEAR", \ 2740 IAP_EVENT_DCH_10H) \ 2741 __PMC_EV_ALIAS("RESOURCE_STALLS.FPCW", IAP_EVENT_DCH_08H) \ 2742 __PMC_EV_ALIAS("RESOURCE_STALLS.LD_ST", IAP_EVENT_DCH_04H) \ 2743 __PMC_EV_ALIAS("RESOURCE_STALLS.ROB_FULL", \ 2744 IAP_EVENT_DCH_01H) \ 2745 __PMC_EV_ALIAS("RESOURCE_STALLS.RS_FULL", IAP_EVENT_DCH_02H) \ 2746 __PMC_EV_ALIAS("RS_UOPS_DISPATCHED", IAP_EVENT_A0H_00H) \ 2747 __PMC_EV_ALIAS("RS_UOPS_DISPATCHED.PORT0", IAP_EVENT_A1H_01H) \ 2748 __PMC_EV_ALIAS("RS_UOPS_DISPATCHED.PORT1", IAP_EVENT_A1H_02H) \ 2749 __PMC_EV_ALIAS("RS_UOPS_DISPATCHED.PORT2", IAP_EVENT_A1H_04H) \ 2750 __PMC_EV_ALIAS("RS_UOPS_DISPATCHED.PORT3", IAP_EVENT_A1H_08H) \ 2751 __PMC_EV_ALIAS("RS_UOPS_DISPATCHED.PORT4", IAP_EVENT_A1H_10H) \ 2752 __PMC_EV_ALIAS("RS_UOPS_DISPATCHED.PORT5", IAP_EVENT_A1H_20H) \ 2753 __PMC_EV_ALIAS("SB_DRAIN_CYCLES", IAP_EVENT_04H_01H) \ 2754 __PMC_EV_ALIAS("SEGMENT_REG_LOADS", IAP_EVENT_06H_00H) \ 2755 __PMC_EV_ALIAS("SEG_REG_RENAMES.ANY", IAP_EVENT_D5H_0FH) \ 2756 __PMC_EV_ALIAS("SEG_REG_RENAMES.DS", IAP_EVENT_D5H_02H) \ 2757 __PMC_EV_ALIAS("SEG_REG_RENAMES.ES", IAP_EVENT_D5H_01H) \ 2758 __PMC_EV_ALIAS("SEG_REG_RENAMES.FS", IAP_EVENT_D5H_04H) \ 2759 __PMC_EV_ALIAS("SEG_REG_RENAMES.GS", IAP_EVENT_D5H_08H) \ 2760 __PMC_EV_ALIAS("SEG_RENAME_STALLS.ANY", IAP_EVENT_D4H_0FH) \ 2761 __PMC_EV_ALIAS("SEG_RENAME_STALLS.DS", IAP_EVENT_D4H_02H) \ 2762 __PMC_EV_ALIAS("SEG_RENAME_STALLS.ES", IAP_EVENT_D4H_01H) \ 2763 __PMC_EV_ALIAS("SEG_RENAME_STALLS.FS", IAP_EVENT_D4H_04H) \ 2764 __PMC_EV_ALIAS("SEG_RENAME_STALLS.GS", IAP_EVENT_D4H_08H) \ 2765 __PMC_EV_ALIAS("SIMD_ASSIST", IAP_EVENT_CDH_00H) \ 2766 __PMC_EV_ALIAS("SIMD_COMP_INST_RETIRED.PACKED_DOUBLE", \ 2767 IAP_EVENT_CAH_04H) \ 2768 __PMC_EV_ALIAS("SIMD_COMP_INST_RETIRED.PACKED_SINGLE", \ 2769 IAP_EVENT_CAH_01H) \ 2770 __PMC_EV_ALIAS("SIMD_COMP_INST_RETIRED.SCALAR_DOUBLE", \ 2771 IAP_EVENT_CAH_08H) \ 2772 __PMC_EV_ALIAS("SIMD_COMP_INST_RETIRED.SCALAR_SINGLE", \ 2773 IAP_EVENT_CAH_02H) \ 2774 __PMC_EV_ALIAS("SIMD_INSTR_RETIRED", IAP_EVENT_CEH_00H) \ 2775 __PMC_EV_ALIAS("SIMD_INST_RETIRED.ANY", IAP_EVENT_C7H_1FH) \ 2776 __PMC_EV_ALIAS("SIMD_INST_RETIRED.PACKED_DOUBLE", \ 2777 IAP_EVENT_C7H_04H) \ 2778 __PMC_EV_ALIAS("SIMD_INST_RETIRED.PACKED_SINGLE", \ 2779 IAP_EVENT_C7H_01H) \ 2780 __PMC_EV_ALIAS("SIMD_INST_RETIRED.SCALAR_DOUBLE", \ 2781 IAP_EVENT_C7H_08H) \ 2782 __PMC_EV_ALIAS("SIMD_INST_RETIRED.SCALAR_SINGLE", \ 2783 IAP_EVENT_C7H_02H) \ 2784 __PMC_EV_ALIAS("SIMD_INST_RETIRED.VECTOR", IAP_EVENT_C7H_10H) \ 2785 __PMC_EV_ALIAS("SIMD_SAT_INSTR_RETIRED", IAP_EVENT_CFH_00H) \ 2786 __PMC_EV_ALIAS("SIMD_SAT_UOP_EXEC", IAP_EVENT_B1H_00H) \ 2787 __PMC_EV_ALIAS("SIMD_UOPS_EXEC", IAP_EVENT_B0H_00H) \ 2788 __PMC_EV_ALIAS("SIMD_UOP_TYPE_EXEC.ARITHMETIC", IAP_EVENT_B3H_20H) \ 2789 __PMC_EV_ALIAS("SIMD_UOP_TYPE_EXEC.LOGICAL", IAP_EVENT_B3H_10H) \ 2790 __PMC_EV_ALIAS("SIMD_UOP_TYPE_EXEC.MUL", IAP_EVENT_B3H_01H) \ 2791 __PMC_EV_ALIAS("SIMD_UOP_TYPE_EXEC.PACK", IAP_EVENT_B3H_04H) \ 2792 __PMC_EV_ALIAS("SIMD_UOP_TYPE_EXEC.SHIFT", IAP_EVENT_B3H_02H) \ 2793 __PMC_EV_ALIAS("SIMD_UOP_TYPE_EXEC.UNPACK", IAP_EVENT_B3H_08H) \ 2794 __PMC_EV_ALIAS("SNOOP_STALL_DRV", IAP_EVENT_7EH) \ 2795 __PMC_EV_ALIAS("SSE_PRE_EXEC.L1", IAP_EVENT_07H_01H) \ 2796 __PMC_EV_ALIAS("SSE_PRE_EXEC.L2", IAP_EVENT_07H_02H) \ 2797 __PMC_EV_ALIAS("SSE_PRE_EXEC.NTA", IAP_EVENT_07H_00H) \ 2798 __PMC_EV_ALIAS("SSE_PRE_EXEC.STORES", IAP_EVENT_07H_03H) \ 2799 __PMC_EV_ALIAS("SSE_PRE_MISS.L1", IAP_EVENT_4BH_01H) \ 2800 __PMC_EV_ALIAS("SSE_PRE_MISS.L2", IAP_EVENT_4BH_02H) \ 2801 __PMC_EV_ALIAS("SSE_PRE_MISS.NTA", IAP_EVENT_4BH_00H) \ 2802 __PMC_EV_ALIAS("STORE_BLOCK.ORDER", IAP_EVENT_04H_02H) \ 2803 __PMC_EV_ALIAS("STORE_BLOCK.SNOOP", IAP_EVENT_04H_08H) \ 2804 __PMC_EV_ALIAS("THERMAL_TRIP", IAP_EVENT_3BH_C0H) \ 2805 __PMC_EV_ALIAS("UOPS_RETIRED.ANY", IAP_EVENT_C2H_0FH) \ 2806 __PMC_EV_ALIAS("UOPS_RETIRED.FUSED", IAP_EVENT_C2H_07H) \ 2807 __PMC_EV_ALIAS("UOPS_RETIRED.LD_IND_BR", IAP_EVENT_C2H_01H) \ 2808 __PMC_EV_ALIAS("UOPS_RETIRED.MACRO_FUSION", IAP_EVENT_C2H_04H) \ 2809 __PMC_EV_ALIAS("UOPS_RETIRED.NON_FUSED", IAP_EVENT_C2H_08H) \ 2810 __PMC_EV_ALIAS("UOPS_RETIRED.STD_STA", IAP_EVENT_C2H_02H) \ 2811 __PMC_EV_ALIAS("X87_OPS_RETIRED.ANY", IAP_EVENT_C1H_FEH) \ 2812 __PMC_EV_ALIAS("X87_OPS_RETIRED.FXCH", IAP_EVENT_C1H_01H) 2813 2814 /* 2815 * Core i7 and Xeon 5500 events removed between 253669-031US June 2009 2816 * and 253669-040US October 2011. 2817 */ 2818 #define __PMC_EV_ALIAS_COREI7_OLD() \ 2819 __PMC_EV_ALIAS("SB_FORWARD.ANY", IAP_EVENT_02H_01H) \ 2820 __PMC_EV_ALIAS("LOAD_BLOCK.STD", IAP_EVENT_03H_01H) \ 2821 __PMC_EV_ALIAS("LOAD_BLOCK.ADDRESS_OFFSET", IAP_EVENT_03H_04H) \ 2822 __PMC_EV_ALIAS("SB_DRAIN.CYCLES", IAP_EVENT_04H_01H) \ 2823 __PMC_EV_ALIAS("MISALIGN_MEM_REF.LOAD", IAP_EVENT_05H_01H) \ 2824 __PMC_EV_ALIAS("MISALIGN_MEM_REF.STORE", IAP_EVENT_05H_02H) \ 2825 __PMC_EV_ALIAS("MISALIGN_MEM_REF.ANY", IAP_EVENT_05H_03H) \ 2826 __PMC_EV_ALIAS("STORE_BLOCKS.NOT_STA", IAP_EVENT_06H_01H) \ 2827 __PMC_EV_ALIAS("STORE_BLOCKS.STA", IAP_EVENT_06H_02H) \ 2828 __PMC_EV_ALIAS("STORE_BLOCKS.ANY", IAP_EVENT_06H_0FH) \ 2829 __PMC_EV_ALIAS("DTLB_LOAD_MISSES.PDP_MISS", IAP_EVENT_08H_40H) \ 2830 __PMC_EV_ALIAS("MEMORY_DISAMBIGURATION.RESET", IAP_EVENT_09H_01H) \ 2831 __PMC_EV_ALIAS("MEMORY_DISAMBIGURATION.SUCCESS", IAP_EVENT_09H_02H) \ 2832 __PMC_EV_ALIAS("MEMORY_DISAMBIGURATION.WATCHDOG", IAP_EVENT_09H_04H) \ 2833 __PMC_EV_ALIAS("MEMORY_DISAMBIGURATION.WATCH_CYCLES", IAP_EVENT_09H_08H)\ 2834 __PMC_EV_ALIAS("HW_INT.RCV", IAP_EVENT_1DH_01H) \ 2835 __PMC_EV_ALIAS("HW_INT.CYCLES_MASKED", IAP_EVENT_1DH_02H) \ 2836 __PMC_EV_ALIAS("HW_INT.CYCLES_PENDING_AND_MASKED", IAP_EVENT_1DH_04H) \ 2837 __PMC_EV_ALIAS("L2_WRITE.RFO.E_STATE", IAP_EVENT_27H_04H) \ 2838 __PMC_EV_ALIAS("UOPS_DECODED.DEC0", IAP_EVENT_3DH_01H) \ 2839 __PMC_EV_ALIAS("L1D_CACHE_ST.I_STATE", IAP_EVENT_41H_01H) \ 2840 __PMC_EV_ALIAS("L1D_CACHE_ST.MESI", IAP_EVENT_41H_0FH) \ 2841 __PMC_EV_ALIAS("L1D_PEND_MISS.LOAD_BUFFERS_FULL", IAP_EVENT_48H_02H) \ 2842 __PMC_EV_ALIAS("DTLB_MISSES.PDP_MISS", IAP_EVENT_49H_40H) \ 2843 __PMC_EV_ALIAS("SSE_MEM_EXEC.NTA", IAP_EVENT_4BH_01H) \ 2844 __PMC_EV_ALIAS("SSE_MEM_EXEC.STREAMING_STORES", IAP_EVENT_4BH_08H) \ 2845 __PMC_EV_ALIAS("SFENCE_CYCLES", IAP_EVENT_4DH_01H) \ 2846 __PMC_EV_ALIAS("EPT.EPDE_MISS", IAP_EVENT_4FH_02H) \ 2847 __PMC_EV_ALIAS("EPT.EPDPE_HIT", IAP_EVENT_4FH_04H) \ 2848 __PMC_EV_ALIAS("EPT.EPDPE_MISS", IAP_EVENT_4FH_08H) \ 2849 __PMC_EV_ALIAS("OFFCORE_REQUESTS_OUTSTANDING.DEMAND.READ_DATA", \ 2850 IAP_EVENT_60H_01H) \ 2851 __PMC_EV_ALIAS("OFFCORE_REQUESTS_OUTSTANDING.DEMAND.READ_CODE", \ 2852 IAP_EVENT_60H_02H) \ 2853 __PMC_EV_ALIAS("OFFCORE_REQUESTS_OUTSTANDING.DEMAND.RFO", \ 2854 IAP_EVENT_60H_04H) \ 2855 __PMC_EV_ALIAS("OFFCORE_REQUESTS_OUTSTANDING.ANY.READ", \ 2856 IAP_EVENT_60H_08H) \ 2857 __PMC_EV_ALIAS("IFU_IVC.FULL", IAP_EVENT_81H_01H) \ 2858 __PMC_EV_ALIAS("IFU_IVC.L1I_EVICTION", IAP_EVENT_81H_02H) \ 2859 __PMC_EV_ALIAS("L1I_OPPORTUNISTIC_HITS", IAP_EVENT_83H_01H) \ 2860 __PMC_EV_ALIAS("ITLB_MISSES.WALK_CYCLES", IAP_EVENT_85H_04H) \ 2861 __PMC_EV_ALIAS("ITLB_MISSES.PMH_BUSY_CYCLES", IAP_EVENT_85H_04H) \ 2862 __PMC_EV_ALIAS("ITLB_MISSES.STLB_HIT", IAP_EVENT_85H_10H) \ 2863 __PMC_EV_ALIAS("ITLB_MISSES.PDE_MISS", IAP_EVENT_85H_20H) \ 2864 __PMC_EV_ALIAS("ITLB_MISSES.PDP_MISS", IAP_EVENT_85H_40H) \ 2865 __PMC_EV_ALIAS("ITLB_MISSES.LARGE_WALK_COMPLETED", IAP_EVENT_85H_80H) \ 2866 __PMC_EV_ALIAS("OFFCORE_REQUESTS.DEMAND.READ_DATA", IAP_EVENT_B0H_01H) \ 2867 __PMC_EV_ALIAS("OFFCORE_REQUESTS.DEMAND.READ_CODE", IAP_EVENT_B0H_02H) \ 2868 __PMC_EV_ALIAS("OFFCORE_REQUESTS.DEMAND.RFO", IAP_EVENT_B0H_04H) \ 2869 __PMC_EV_ALIAS("OFFCORE_REQUESTS.ANY.READ", IAP_EVENT_B0H_08H) \ 2870 __PMC_EV_ALIAS("OFFCORE_REQUESTS.ANY.RFO", IAP_EVENT_B0H_10H) \ 2871 __PMC_EV_ALIAS("OFFCORE_REQUESTS.UNCACHED_MEM", IAP_EVENT_B0H_20H) \ 2872 __PMC_EV_ALIAS("OFFCORE_REQUESTS.ANY", IAP_EVENT_B0H_80H) \ 2873 __PMC_EV_ALIAS("SNOOPQ_REQUESTS_OUTSTANDING.DATA", IAP_EVENT_B3H_01H) \ 2874 __PMC_EV_ALIAS("SNOOPQ_REQUESTS_OUTSTANDING.INVALIDATE", \ 2875 IAP_EVENT_B3H_02H) \ 2876 __PMC_EV_ALIAS("SNOOPQ_REQUESTS_OUTSTANDING.CODE", IAP_EVENT_B3H_04H) \ 2877 __PMC_EV_ALIAS("PIC_ACCESSES.TPR_READS", IAP_EVENT_BAH_01H) \ 2878 __PMC_EV_ALIAS("PIC_ACCESSES.TPR_WRITES", IAP_EVENT_BAH_02H) \ 2879 __PMC_EV_ALIAS("MACHINE_CLEARS.FUSION_ASSIST", IAP_EVENT_C3H_10H) \ 2880 __PMC_EV_ALIAS("BOGUS_BR", IAP_EVENT_E4H_01H) \ 2881 __PMC_EV_ALIAS("BPU_CLEARS.ANY", IAP_EVENT_E8H_03H) \ 2882 __PMC_EV_ALIAS("L2_HW_PREFETCH.HIT", IAP_EVENT_F3H_01H) \ 2883 __PMC_EV_ALIAS("L2_HW_PREFETCH.ALLOC", IAP_EVENT_F3H_02H) \ 2884 __PMC_EV_ALIAS("L2_HW_PREFETCH.DATA_TRIGGER", IAP_EVENT_F3H_04H) \ 2885 __PMC_EV_ALIAS("L2_HW_PREFETCH.CODE_TRIGGER", IAP_EVENT_F3H_08H) \ 2886 __PMC_EV_ALIAS("L2_HW_PREFETCH.DCA_TRIGGER", IAP_EVENT_F3H_10H) \ 2887 __PMC_EV_ALIAS("L2_HW_PREFETCH.KICK_START", IAP_EVENT_F3H_20H) \ 2888 __PMC_EV_ALIAS("SQ_MISC.PROMOTION", IAP_EVENT_F4H_01H) \ 2889 __PMC_EV_ALIAS("SQ_MISC.PROMOTION_POST_GO", IAP_EVENT_F4H_02H) \ 2890 __PMC_EV_ALIAS("SQ_MISC.LRU_HINTS", IAP_EVENT_F4H_04H) \ 2891 __PMC_EV_ALIAS("SQ_MISC.FILL_DROPPED", IAP_EVENT_F4H_08H) \ 2892 __PMC_EV_ALIAS("SEGMENT_REG_LOADS", IAP_EVENT_F8H_01H) 2893 2894 /* 2895 * Aliases for Core i7 and Xeon 5500 PMC events (253669-033US December 2009) 2896 */ 2897 #define __PMC_EV_ALIAS_COREI7() \ 2898 __PMC_EV_ALIAS_INTEL_ARCHITECTURAL() \ 2899 __PMC_EV_ALIAS("SB_DRAIN.ANY", IAP_EVENT_04H_07H) \ 2900 __PMC_EV_ALIAS("STORE_BLOCKS.AT_RET", IAP_EVENT_06H_04H) \ 2901 __PMC_EV_ALIAS("STORE_BLOCKS.L1D_BLOCK", IAP_EVENT_06H_08H) \ 2902 __PMC_EV_ALIAS("PARTIAL_ADDRESS_ALIAS", IAP_EVENT_07H_01H) \ 2903 __PMC_EV_ALIAS("DTLB_LOAD_MISSES.ANY", IAP_EVENT_08H_01H) \ 2904 __PMC_EV_ALIAS("DTLB_LOAD_MISSES.WALK_COMPLETED", IAP_EVENT_08H_02H) \ 2905 __PMC_EV_ALIAS("DTLB_LOAD_MISSES.STLB_HIT", IAP_EVENT_08H_10H) \ 2906 __PMC_EV_ALIAS("DTLB_LOAD_MISSES.PDE_MISS", IAP_EVENT_08H_20H) \ 2907 __PMC_EV_ALIAS("DTLB_LOAD_MISSES.LARGE_WALK_COMPLETED", \ 2908 IAP_EVENT_08H_80H) \ 2909 __PMC_EV_ALIAS("MEM_INST_RETIRED.LOADS", IAP_EVENT_0BH_01H) \ 2910 __PMC_EV_ALIAS("MEM_INST_RETIRED.STORES", IAP_EVENT_0BH_02H) \ 2911 __PMC_EV_ALIAS("MEM_INST_RETIRED.LATENCY_ABOVE_THRESHOLD", \ 2912 IAP_EVENT_0BH_10H) \ 2913 __PMC_EV_ALIAS("MEM_STORE_RETIRED.DTLB_MISS", IAP_EVENT_0CH_01H) \ 2914 __PMC_EV_ALIAS("UOPS_ISSUED.ANY", IAP_EVENT_0EH_01H) \ 2915 __PMC_EV_ALIAS("UOPS_ISSUED.STALLED_CYCLES", IAP_EVENT_0EH_01H) \ 2916 __PMC_EV_ALIAS("UOPS_ISSUED.FUSED", IAP_EVENT_0EH_02H) \ 2917 __PMC_EV_ALIAS("MEM_UNCORE_RETIRED.L3_DATA_MISS_UNKNOWN", \ 2918 IAP_EVENT_0FH_01H) \ 2919 __PMC_EV_ALIAS("MEM_UNCORE_RETIRED.OTHER_CORE_L2_HITM", \ 2920 IAP_EVENT_0FH_02H) \ 2921 __PMC_EV_ALIAS("MEM_UNCORE_RETIRED.REMOTE_CACHE_LOCAL_HOME_HIT", \ 2922 IAP_EVENT_0FH_08H) \ 2923 __PMC_EV_ALIAS("MEM_UNCORE_RETIRED.REMOTE_DRAM", \ 2924 IAP_EVENT_0FH_10H) \ 2925 __PMC_EV_ALIAS("MEM_UNCORE_RETIRED.LOCAL_DRAM", IAP_EVENT_0FH_20H) \ 2926 __PMC_EV_ALIAS("MEM_UNCORE_RETIRED.UNCACHEABLE", IAP_EVENT_0FH_80H) \ 2927 __PMC_EV_ALIAS("FP_COMP_OPS_EXE.X87", IAP_EVENT_10H_01H) \ 2928 __PMC_EV_ALIAS("FP_COMP_OPS_EXE.MMX", IAP_EVENT_10H_02H) \ 2929 __PMC_EV_ALIAS("FP_COMP_OPS_EXE.SSE_FP", IAP_EVENT_10H_04H) \ 2930 __PMC_EV_ALIAS("FP_COMP_OPS_EXE.SSE2_INTEGER", IAP_EVENT_10H_08H) \ 2931 __PMC_EV_ALIAS("FP_COMP_OPS_EXE.SSE_FP_PACKED", IAP_EVENT_10H_10H) \ 2932 __PMC_EV_ALIAS("FP_COMP_OPS_EXE.SSE_FP_SCALAR", IAP_EVENT_10H_20H) \ 2933 __PMC_EV_ALIAS("FP_COMP_OPS_EXE.SSE_SINGLE_PRECISION", \ 2934 IAP_EVENT_10H_40H) \ 2935 __PMC_EV_ALIAS("FP_COMP_OPS_EXE.SSE_DOUBLE_PRECISION", \ 2936 IAP_EVENT_10H_80H) \ 2937 __PMC_EV_ALIAS("SIMD_INT_128.PACKED_MPY", IAP_EVENT_12H_01H) \ 2938 __PMC_EV_ALIAS("SIMD_INT_128.PACKED_SHIFT", IAP_EVENT_12H_02H) \ 2939 __PMC_EV_ALIAS("SIMD_INT_128.PACK", IAP_EVENT_12H_04H) \ 2940 __PMC_EV_ALIAS("SIMD_INT_128.UNPACK", IAP_EVENT_12H_08H) \ 2941 __PMC_EV_ALIAS("SIMD_INT_128.PACKED_LOGICAL", IAP_EVENT_12H_10H) \ 2942 __PMC_EV_ALIAS("SIMD_INT_128.PACKED_ARITH", IAP_EVENT_12H_20H) \ 2943 __PMC_EV_ALIAS("SIMD_INT_128.SHUFFLE_MOVE", IAP_EVENT_12H_40H) \ 2944 __PMC_EV_ALIAS("LOAD_DISPATCH.RS", IAP_EVENT_13H_01H) \ 2945 __PMC_EV_ALIAS("LOAD_DISPATCH.RS_DELAYED", IAP_EVENT_13H_02H) \ 2946 __PMC_EV_ALIAS("LOAD_DISPATCH.MOB", IAP_EVENT_13H_04H) \ 2947 __PMC_EV_ALIAS("LOAD_DISPATCH.ANY", IAP_EVENT_13H_07H) \ 2948 __PMC_EV_ALIAS("ARITH.CYCLES_DIV_BUSY", IAP_EVENT_14H_01H) \ 2949 __PMC_EV_ALIAS("ARITH.MUL", IAP_EVENT_14H_02H) \ 2950 __PMC_EV_ALIAS("INST_QUEUE_WRITES", IAP_EVENT_17H_01H) \ 2951 __PMC_EV_ALIAS("INST_DECODED.DEC0", IAP_EVENT_18H_01H) \ 2952 __PMC_EV_ALIAS("TWO_UOP_INSTS_DECODED", IAP_EVENT_19H_01H) \ 2953 __PMC_EV_ALIAS("INST_QUEUE_WRITE_CYCLES", IAP_EVENT_1EH_01H) \ 2954 __PMC_EV_ALIAS("LSD_OVERFLOW", IAP_EVENT_20H_01H) \ 2955 __PMC_EV_ALIAS("L2_RQSTS.LD_HIT", IAP_EVENT_24H_01H) \ 2956 __PMC_EV_ALIAS("L2_RQSTS.LD_MISS", IAP_EVENT_24H_02H) \ 2957 __PMC_EV_ALIAS("L2_RQSTS.LOADS", IAP_EVENT_24H_03H) \ 2958 __PMC_EV_ALIAS("L2_RQSTS.RFO_HIT", IAP_EVENT_24H_04H) \ 2959 __PMC_EV_ALIAS("L2_RQSTS.RFO_MISS", IAP_EVENT_24H_08H) \ 2960 __PMC_EV_ALIAS("L2_RQSTS.RFOS", IAP_EVENT_24H_0CH) \ 2961 __PMC_EV_ALIAS("L2_RQSTS.IFETCH_HIT", IAP_EVENT_24H_10H) \ 2962 __PMC_EV_ALIAS("L2_RQSTS.IFETCH_MISS", IAP_EVENT_24H_20H) \ 2963 __PMC_EV_ALIAS("L2_RQSTS.IFETCHES", IAP_EVENT_24H_30H) \ 2964 __PMC_EV_ALIAS("L2_RQSTS.PREFETCH_HIT", IAP_EVENT_24H_40H) \ 2965 __PMC_EV_ALIAS("L2_RQSTS.PREFETCH_MISS", IAP_EVENT_24H_80H) \ 2966 __PMC_EV_ALIAS("L2_RQSTS.PREFETCHES", IAP_EVENT_24H_C0H) \ 2967 __PMC_EV_ALIAS("L2_RQSTS.MISS", IAP_EVENT_24H_AAH) \ 2968 __PMC_EV_ALIAS("L2_RQSTS.REFERENCES", IAP_EVENT_24H_FFH) \ 2969 __PMC_EV_ALIAS("L2_DATA_RQSTS.DEMAND.I_STATE", IAP_EVENT_26H_01H) \ 2970 __PMC_EV_ALIAS("L2_DATA_RQSTS.DEMAND.S_STATE", IAP_EVENT_26H_02H) \ 2971 __PMC_EV_ALIAS("L2_DATA_RQSTS.DEMAND.E_STATE", IAP_EVENT_26H_04H) \ 2972 __PMC_EV_ALIAS("L2_DATA_RQSTS.DEMAND.M_STATE", IAP_EVENT_26H_08H) \ 2973 __PMC_EV_ALIAS("L2_DATA_RQSTS.DEMAND.MESI", IAP_EVENT_26H_0FH) \ 2974 __PMC_EV_ALIAS("L2_DATA_RQSTS.PREFETCH.I_STATE", IAP_EVENT_26H_10H) \ 2975 __PMC_EV_ALIAS("L2_DATA_RQSTS.PREFETCH.S_STATE", IAP_EVENT_26H_20H) \ 2976 __PMC_EV_ALIAS("L2_DATA_RQSTS.PREFETCH.E_STATE", IAP_EVENT_26H_40H) \ 2977 __PMC_EV_ALIAS("L2_DATA_RQSTS.PREFETCH.M_STATE", IAP_EVENT_26H_80H) \ 2978 __PMC_EV_ALIAS("L2_DATA_RQSTS.PREFETCH.MESI", IAP_EVENT_26H_F0H) \ 2979 __PMC_EV_ALIAS("L2_DATA_RQSTS.ANY", IAP_EVENT_26H_FFH) \ 2980 __PMC_EV_ALIAS("L2_WRITE.RFO.I_STATE", IAP_EVENT_27H_01H) \ 2981 __PMC_EV_ALIAS("L2_WRITE.RFO.S_STATE", IAP_EVENT_27H_02H) \ 2982 __PMC_EV_ALIAS("L2_WRITE.RFO.M_STATE", IAP_EVENT_27H_08H) \ 2983 __PMC_EV_ALIAS("L2_WRITE.RFO.HIT", IAP_EVENT_27H_0EH) \ 2984 __PMC_EV_ALIAS("L2_WRITE.RFO.MESI", IAP_EVENT_27H_0FH) \ 2985 __PMC_EV_ALIAS("L2_WRITE.LOCK.I_STATE", IAP_EVENT_27H_10H) \ 2986 __PMC_EV_ALIAS("L2_WRITE.LOCK.S_STATE", IAP_EVENT_27H_20H) \ 2987 __PMC_EV_ALIAS("L2_WRITE.LOCK.E_STATE", IAP_EVENT_27H_40H) \ 2988 __PMC_EV_ALIAS("L2_WRITE.LOCK.M_STATE", IAP_EVENT_27H_80H) \ 2989 __PMC_EV_ALIAS("L2_WRITE.LOCK.HIT", IAP_EVENT_27H_E0H) \ 2990 __PMC_EV_ALIAS("L2_WRITE.LOCK.MESI", IAP_EVENT_27H_F0H) \ 2991 __PMC_EV_ALIAS("L1D_WB_L2.I_STATE", IAP_EVENT_28H_01H) \ 2992 __PMC_EV_ALIAS("L1D_WB_L2.S_STATE", IAP_EVENT_28H_02H) \ 2993 __PMC_EV_ALIAS("L1D_WB_L2.E_STATE", IAP_EVENT_28H_04H) \ 2994 __PMC_EV_ALIAS("L1D_WB_L2.M_STATE", IAP_EVENT_28H_08H) \ 2995 __PMC_EV_ALIAS("L1D_WB_L2.MESI", IAP_EVENT_28H_0FH) \ 2996 __PMC_EV_ALIAS("L3_LAT_CACHE.REFERENCE", IAP_EVENT_2EH_4FH) \ 2997 __PMC_EV_ALIAS("L3_LAT_CACHE.MISS", IAP_EVENT_2EH_41H) \ 2998 __PMC_EV_ALIAS("CPU_CLK_UNHALTED.THREAD_P", IAP_EVENT_3CH_00H) \ 2999 __PMC_EV_ALIAS("CPU_CLK_UNHALTED.REF_P", IAP_EVENT_3CH_01H) \ 3000 __PMC_EV_ALIAS("L1D_CACHE_LD.I_STATE", IAP_EVENT_40H_01H) \ 3001 __PMC_EV_ALIAS("L1D_CACHE_LD.S_STATE", IAP_EVENT_40H_02H) \ 3002 __PMC_EV_ALIAS("L1D_CACHE_LD.E_STATE", IAP_EVENT_40H_04H) \ 3003 __PMC_EV_ALIAS("L1D_CACHE_LD.M_STATE", IAP_EVENT_40H_08H) \ 3004 __PMC_EV_ALIAS("L1D_CACHE_LD.MESI", IAP_EVENT_40H_0FH) \ 3005 __PMC_EV_ALIAS("L1D_CACHE_ST.S_STATE", IAP_EVENT_41H_02H) \ 3006 __PMC_EV_ALIAS("L1D_CACHE_ST.E_STATE", IAP_EVENT_41H_04H) \ 3007 __PMC_EV_ALIAS("L1D_CACHE_ST.M_STATE", IAP_EVENT_41H_08H) \ 3008 __PMC_EV_ALIAS("L1D_CACHE_LOCK.HIT", IAP_EVENT_42H_01H) \ 3009 __PMC_EV_ALIAS("L1D_CACHE_LOCK.S_STATE", IAP_EVENT_42H_02H) \ 3010 __PMC_EV_ALIAS("L1D_CACHE_LOCK.E_STATE", IAP_EVENT_42H_04H) \ 3011 __PMC_EV_ALIAS("L1D_CACHE_LOCK.M_STATE", IAP_EVENT_42H_08H) \ 3012 __PMC_EV_ALIAS("L1D_ALL_REF.ANY", IAP_EVENT_43H_01H) \ 3013 __PMC_EV_ALIAS("L1D_ALL_REF.CACHEABLE", IAP_EVENT_43H_02H) \ 3014 __PMC_EV_ALIAS("DTLB_MISSES.ANY", IAP_EVENT_49H_01H) \ 3015 __PMC_EV_ALIAS("DTLB_MISSES.WALK_COMPLETED", IAP_EVENT_49H_02H) \ 3016 __PMC_EV_ALIAS("DTLB_MISSES.STLB_HIT", IAP_EVENT_49H_10H) \ 3017 __PMC_EV_ALIAS("DTLB_MISSES.PDE_MISS", IAP_EVENT_49H_20H) \ 3018 __PMC_EV_ALIAS("DTLB_MISSES.LARGE_WALK_COMPLETED", IAP_EVENT_49H_80H) \ 3019 __PMC_EV_ALIAS("LOAD_HIT_PRE", IAP_EVENT_4CH_01H) \ 3020 __PMC_EV_ALIAS("L1D_PREFETCH.REQUESTS", IAP_EVENT_4EH_01H) \ 3021 __PMC_EV_ALIAS("L1D_PREFETCH.MISS", IAP_EVENT_4EH_02H) \ 3022 __PMC_EV_ALIAS("L1D_PREFETCH.TRIGGERS", IAP_EVENT_4EH_04H) \ 3023 __PMC_EV_ALIAS("L1D.REPL", IAP_EVENT_51H_01H) \ 3024 __PMC_EV_ALIAS("L1D.M_REPL", IAP_EVENT_51H_02H) \ 3025 __PMC_EV_ALIAS("L1D.M_EVICT", IAP_EVENT_51H_04H) \ 3026 __PMC_EV_ALIAS("L1D.M_SNOOP_EVICT", IAP_EVENT_51H_08H) \ 3027 __PMC_EV_ALIAS("L1D_CACHE_PREFETCH_LOCK_FB_HIT", IAP_EVENT_52H_01H) \ 3028 __PMC_EV_ALIAS("L1D_CACHE_LOCK_FB_HIT", IAP_EVENT_53H_01H) \ 3029 __PMC_EV_ALIAS("CACHE_LOCK_CYCLES.L1D_L2", IAP_EVENT_63H_01H) \ 3030 __PMC_EV_ALIAS("CACHE_LOCK_CYCLES.L1D", IAP_EVENT_63H_02H) \ 3031 __PMC_EV_ALIAS("IO_TRANSACTIONS", IAP_EVENT_6CH_01H) \ 3032 __PMC_EV_ALIAS("L1I.HITS", IAP_EVENT_80H_01H) \ 3033 __PMC_EV_ALIAS("L1I.MISSES", IAP_EVENT_80H_02H) \ 3034 __PMC_EV_ALIAS("L1I.READS", IAP_EVENT_80H_03H) \ 3035 __PMC_EV_ALIAS("L1I.CYCLES_STALLED", IAP_EVENT_80H_04H) \ 3036 __PMC_EV_ALIAS("LARGE_ITLB.HIT", IAP_EVENT_82H_01H) \ 3037 __PMC_EV_ALIAS("ITLB_MISSES.ANY", IAP_EVENT_85H_01H) \ 3038 __PMC_EV_ALIAS("ITLB_MISSES.WALK_COMPLETED", IAP_EVENT_85H_02H) \ 3039 __PMC_EV_ALIAS("ILD_STALL.LCP", IAP_EVENT_87H_01H) \ 3040 __PMC_EV_ALIAS("ILD_STALL.MRU", IAP_EVENT_87H_02H) \ 3041 __PMC_EV_ALIAS("ILD_STALL.IQ_FULL", IAP_EVENT_87H_04H) \ 3042 __PMC_EV_ALIAS("ILD_STALL.REGEN", IAP_EVENT_87H_08H) \ 3043 __PMC_EV_ALIAS("ILD_STALL.ANY", IAP_EVENT_87H_0FH) \ 3044 __PMC_EV_ALIAS("BR_INST_EXEC.COND", IAP_EVENT_88H_01H) \ 3045 __PMC_EV_ALIAS("BR_INST_EXEC.DIRECT", IAP_EVENT_88H_02H) \ 3046 __PMC_EV_ALIAS("BR_INST_EXEC.INDIRECT_NON_CALL", IAP_EVENT_88H_04H) \ 3047 __PMC_EV_ALIAS("BR_INST_EXEC.NON_CALLS", IAP_EVENT_88H_07H) \ 3048 __PMC_EV_ALIAS("BR_INST_EXEC.RETURN_NEAR", IAP_EVENT_88H_08H) \ 3049 __PMC_EV_ALIAS("BR_INST_EXEC.DIRECT_NEAR_CALL", IAP_EVENT_88H_10H) \ 3050 __PMC_EV_ALIAS("BR_INST_EXEC.INDIRECT_NEAR_CALL", IAP_EVENT_88H_20H) \ 3051 __PMC_EV_ALIAS("BR_INST_EXEC.NEAR_CALLS", IAP_EVENT_88H_30H) \ 3052 __PMC_EV_ALIAS("BR_INST_EXEC.TAKEN", IAP_EVENT_88H_40H) \ 3053 __PMC_EV_ALIAS("BR_INST_EXEC.ANY", IAP_EVENT_88H_7FH) \ 3054 __PMC_EV_ALIAS("BR_MISP_EXEC.COND", IAP_EVENT_89H_01H) \ 3055 __PMC_EV_ALIAS("BR_MISP_EXEC.DIRECT", IAP_EVENT_89H_02H) \ 3056 __PMC_EV_ALIAS("BR_MISP_EXEC.INDIRECT_NON_CALL", IAP_EVENT_89H_04H) \ 3057 __PMC_EV_ALIAS("BR_MISP_EXEC.NON_CALLS", IAP_EVENT_89H_07H) \ 3058 __PMC_EV_ALIAS("BR_MISP_EXEC.RETURN_NEAR", IAP_EVENT_89H_08H) \ 3059 __PMC_EV_ALIAS("BR_MISP_EXEC.DIRECT_NEAR_CALL", IAP_EVENT_89H_10H) \ 3060 __PMC_EV_ALIAS("BR_MISP_EXEC.INDIRECT_NEAR_CALL", IAP_EVENT_89H_20H) \ 3061 __PMC_EV_ALIAS("BR_MISP_EXEC.NEAR_CALLS", IAP_EVENT_89H_30H) \ 3062 __PMC_EV_ALIAS("BR_MISP_EXEC.TAKEN", IAP_EVENT_89H_40H) \ 3063 __PMC_EV_ALIAS("BR_MISP_EXEC.ANY", IAP_EVENT_89H_7FH) \ 3064 __PMC_EV_ALIAS("RESOURCE_STALLS.ANY", IAP_EVENT_A2H_01H) \ 3065 __PMC_EV_ALIAS("RESOURCE_STALLS.LOAD", IAP_EVENT_A2H_02H) \ 3066 __PMC_EV_ALIAS("RESOURCE_STALLS.RS_FULL", IAP_EVENT_A2H_04H) \ 3067 __PMC_EV_ALIAS("RESOURCE_STALLS.STORE", IAP_EVENT_A2H_08H) \ 3068 __PMC_EV_ALIAS("RESOURCE_STALLS.ROB_FULL", IAP_EVENT_A2H_10H) \ 3069 __PMC_EV_ALIAS("RESOURCE_STALLS.FPCW", IAP_EVENT_A2H_20H) \ 3070 __PMC_EV_ALIAS("RESOURCE_STALLS.MXCSR", IAP_EVENT_A2H_40H) \ 3071 __PMC_EV_ALIAS("RESOURCE_STALLS.OTHER", IAP_EVENT_A2H_80H) \ 3072 __PMC_EV_ALIAS("MACRO_INSTS.FUSIONS_DECODED", IAP_EVENT_A6H_01H) \ 3073 __PMC_EV_ALIAS("BACLEAR_FORCE_IQ", IAP_EVENT_A7H_01H) \ 3074 __PMC_EV_ALIAS("LSD.UOPS", IAP_EVENT_A8H_01H) \ 3075 __PMC_EV_ALIAS("ITLB_FLUSH", IAP_EVENT_AEH_01H) \ 3076 __PMC_EV_ALIAS("OFFCORE_REQUESTS.L1D_WRITEBACK", IAP_EVENT_B0H_40H) \ 3077 __PMC_EV_ALIAS("UOPS_EXECUTED.PORT0", IAP_EVENT_B1H_01H) \ 3078 __PMC_EV_ALIAS("UOPS_EXECUTED.PORT1", IAP_EVENT_B1H_02H) \ 3079 __PMC_EV_ALIAS("UOPS_EXECUTED.PORT2_CORE", IAP_EVENT_B1H_04H) \ 3080 __PMC_EV_ALIAS("UOPS_EXECUTED.PORT3_CORE", IAP_EVENT_B1H_08H) \ 3081 __PMC_EV_ALIAS("UOPS_EXECUTED.PORT4_CORE", IAP_EVENT_B1H_10H) \ 3082 __PMC_EV_ALIAS("UOPS_EXECUTED.CORE_ACTIVE_CYCLES_NO_PORT5", \ 3083 IAP_EVENT_B1H_1FH) \ 3084 __PMC_EV_ALIAS("UOPS_EXECUTED.PORT5", IAP_EVENT_B1H_20H) \ 3085 __PMC_EV_ALIAS("UOPS_EXECUTED.CORE_ACTIVE_CYCLES", IAP_EVENT_B1H_3FH) \ 3086 __PMC_EV_ALIAS("UOPS_EXECUTED.PORT015", IAP_EVENT_B1H_40H) \ 3087 __PMC_EV_ALIAS("UOPS_EXECUTED.PORT234", IAP_EVENT_B1H_80H) \ 3088 __PMC_EV_ALIAS("OFFCORE_REQUESTS_SQ_FULL", IAP_EVENT_B2H_01H) \ 3089 __PMC_EV_ALIAS("OFF_CORE_RESPONSE_0", IAP_EVENT_B7H_01H) \ 3090 __PMC_EV_ALIAS("SNOOP_RESPONSE.HIT", IAP_EVENT_B8H_01H) \ 3091 __PMC_EV_ALIAS("SNOOP_RESPONSE.HITE", IAP_EVENT_B8H_02H) \ 3092 __PMC_EV_ALIAS("SNOOP_RESPONSE.HITM", IAP_EVENT_B8H_04H) \ 3093 __PMC_EV_ALIAS("OFF_CORE_RESPONSE_1", IAP_EVENT_BBH_01H) \ 3094 __PMC_EV_ALIAS("INST_RETIRED.ANY_P", IAP_EVENT_C0H_01H) \ 3095 __PMC_EV_ALIAS("INST_RETIRED.X87", IAP_EVENT_C0H_02H) \ 3096 __PMC_EV_ALIAS("INST_RETIRED.MMX", IAP_EVENT_C0H_04H) \ 3097 __PMC_EV_ALIAS("UOPS_RETIRED.ANY", IAP_EVENT_C2H_01H) \ 3098 __PMC_EV_ALIAS("UOPS_RETIRED.RETIRE_SLOTS", IAP_EVENT_C2H_02H) \ 3099 __PMC_EV_ALIAS("UOPS_RETIRED.MACRO_FUSED", IAP_EVENT_C2H_04H) \ 3100 __PMC_EV_ALIAS("MACHINE_CLEARS.CYCLES", IAP_EVENT_C3H_01H) \ 3101 __PMC_EV_ALIAS("MACHINE_CLEARS.MEM_ORDER", IAP_EVENT_C3H_02H) \ 3102 __PMC_EV_ALIAS("MACHINE_CLEARS.SMC", IAP_EVENT_C3H_04H) \ 3103 __PMC_EV_ALIAS("BR_INST_RETIRED.ALL_BRANCHES", IAP_EVENT_C4H_00H) \ 3104 __PMC_EV_ALIAS("BR_INST_RETIRED.CONDITIONAL", IAP_EVENT_C4H_01H) \ 3105 __PMC_EV_ALIAS("BR_INST_RETIRED.NEAR_CALL", IAP_EVENT_C4H_02H) \ 3106 __PMC_EV_ALIAS("BR_INST_RETIRED.ALL_BRANCHES", IAP_EVENT_C4H_04H) \ 3107 __PMC_EV_ALIAS("BR_MISP_RETIRED.ALL_BRANCHES", IAP_EVENT_C5H_00H) \ 3108 __PMC_EV_ALIAS("BR_MISP_RETIRED.NEAR_CALL", IAP_EVENT_C5H_02H) \ 3109 __PMC_EV_ALIAS("SSEX_UOPS_RETIRED.PACKED_SINGLE", IAP_EVENT_C7H_01H) \ 3110 __PMC_EV_ALIAS("SSEX_UOPS_RETIRED.SCALAR_SINGLE", IAP_EVENT_C7H_02H) \ 3111 __PMC_EV_ALIAS("SSEX_UOPS_RETIRED.PACKED_DOUBLE", IAP_EVENT_C7H_04H) \ 3112 __PMC_EV_ALIAS("SSEX_UOPS_RETIRED.SCALAR_DOUBLE", IAP_EVENT_C7H_08H) \ 3113 __PMC_EV_ALIAS("SSEX_UOPS_RETIRED.VECTOR_INTEGER", IAP_EVENT_C7H_10H) \ 3114 __PMC_EV_ALIAS("ITLB_MISS_RETIRED", IAP_EVENT_C8H_20H) \ 3115 __PMC_EV_ALIAS("MEM_LOAD_RETIRED.L1D_HIT", IAP_EVENT_CBH_01H) \ 3116 __PMC_EV_ALIAS("MEM_LOAD_RETIRED.L2_HIT", IAP_EVENT_CBH_02H) \ 3117 __PMC_EV_ALIAS("MEM_LOAD_RETIRED.L3_UNSHARED_HIT", IAP_EVENT_CBH_04H) \ 3118 __PMC_EV_ALIAS("MEM_LOAD_RETIRED.OTHER_CORE_L2_HIT_HITM", \ 3119 IAP_EVENT_CBH_08H) \ 3120 __PMC_EV_ALIAS("MEM_LOAD_RETIRED.L3_MISS", IAP_EVENT_CBH_10H) \ 3121 __PMC_EV_ALIAS("MEM_LOAD_RETIRED.HIT_LFB", IAP_EVENT_CBH_40H) \ 3122 __PMC_EV_ALIAS("MEM_LOAD_RETIRED.DTLB_MISS", IAP_EVENT_CBH_80H) \ 3123 __PMC_EV_ALIAS("FP_MMX_TRANS.TO_FP", IAP_EVENT_CCH_01H) \ 3124 __PMC_EV_ALIAS("FP_MMX_TRANS.TO_MMX", IAP_EVENT_CCH_02H) \ 3125 __PMC_EV_ALIAS("FP_MMX_TRANS.ANY", IAP_EVENT_CCH_03H) \ 3126 __PMC_EV_ALIAS("MACRO_INSTS.DECODED", IAP_EVENT_D0H_01H) \ 3127 __PMC_EV_ALIAS("UOPS_DECODED.MS", IAP_EVENT_D1H_02H) \ 3128 __PMC_EV_ALIAS("UOPS_DECODED.ESP_FOLDING", IAP_EVENT_D1H_04H) \ 3129 __PMC_EV_ALIAS("UOPS_DECODED.ESP_SYNC", IAP_EVENT_D1H_08H) \ 3130 __PMC_EV_ALIAS("RAT_STALLS.FLAGS", IAP_EVENT_D2H_01H) \ 3131 __PMC_EV_ALIAS("RAT_STALLS.REGISTERS", IAP_EVENT_D2H_02H) \ 3132 __PMC_EV_ALIAS("RAT_STALLS.ROB_READ_PORT", IAP_EVENT_D2H_04H) \ 3133 __PMC_EV_ALIAS("RAT_STALLS.SCOREBOARD", IAP_EVENT_D2H_08H) \ 3134 __PMC_EV_ALIAS("RAT_STALLS.ANY", IAP_EVENT_D2H_0FH) \ 3135 __PMC_EV_ALIAS("SEG_RENAME_STALLS", IAP_EVENT_D4H_01H) \ 3136 __PMC_EV_ALIAS("ES_REG_RENAMES", IAP_EVENT_D5H_01H) \ 3137 __PMC_EV_ALIAS("UOP_UNFUSION", IAP_EVENT_DBH_01H) \ 3138 __PMC_EV_ALIAS("BR_INST_DECODED", IAP_EVENT_E0H_01H) \ 3139 __PMC_EV_ALIAS("BPU_MISSED_CALL_RET", IAP_EVENT_E5H_01H) \ 3140 __PMC_EV_ALIAS("BACLEAR.CLEAR", IAP_EVENT_E6H_01H) \ 3141 __PMC_EV_ALIAS("BACLEAR.BAD_TARGET", IAP_EVENT_E6H_02H) \ 3142 __PMC_EV_ALIAS("BPU_CLEARS.EARLY", IAP_EVENT_E8H_01H) \ 3143 __PMC_EV_ALIAS("BPU_CLEARS.LATE", IAP_EVENT_E8H_02H) \ 3144 __PMC_EV_ALIAS("L2_TRANSACTIONS.LOAD", IAP_EVENT_F0H_01H) \ 3145 __PMC_EV_ALIAS("L2_TRANSACTIONS.RFO", IAP_EVENT_F0H_02H) \ 3146 __PMC_EV_ALIAS("L2_TRANSACTIONS.IFETCH", IAP_EVENT_F0H_04H) \ 3147 __PMC_EV_ALIAS("L2_TRANSACTIONS.PREFETCH", IAP_EVENT_F0H_08H) \ 3148 __PMC_EV_ALIAS("L2_TRANSACTIONS.L1D_WB", IAP_EVENT_F0H_10H) \ 3149 __PMC_EV_ALIAS("L2_TRANSACTIONS.FILL", IAP_EVENT_F0H_20H) \ 3150 __PMC_EV_ALIAS("L2_TRANSACTIONS.WB", IAP_EVENT_F0H_40H) \ 3151 __PMC_EV_ALIAS("L2_TRANSACTIONS.ANY", IAP_EVENT_F0H_80H) \ 3152 __PMC_EV_ALIAS("L2_LINES_IN.S_STATE", IAP_EVENT_F1H_02H) \ 3153 __PMC_EV_ALIAS("L2_LINES_IN.E_STATE", IAP_EVENT_F1H_04H) \ 3154 __PMC_EV_ALIAS("L2_LINES_IN.ANY", IAP_EVENT_F1H_07H) \ 3155 __PMC_EV_ALIAS("L2_LINES_OUT.DEMAND_CLEAN", IAP_EVENT_F2H_01H) \ 3156 __PMC_EV_ALIAS("L2_LINES_OUT.DEMAND_DIRTY", IAP_EVENT_F2H_02H) \ 3157 __PMC_EV_ALIAS("L2_LINES_OUT.PREFETCH_CLEAN", IAP_EVENT_F2H_04H) \ 3158 __PMC_EV_ALIAS("L2_LINES_OUT.PREFETCH_DIRTY", IAP_EVENT_F2H_08H) \ 3159 __PMC_EV_ALIAS("L2_LINES_OUT.ANY", IAP_EVENT_F2H_0FH) \ 3160 __PMC_EV_ALIAS("SQ_MISC.SPLIT_LOCK", IAP_EVENT_F4H_10H) \ 3161 __PMC_EV_ALIAS("SQ_FULL_STALL_CYCLES", IAP_EVENT_F6H_01H) \ 3162 __PMC_EV_ALIAS("FP_ASSIST.ALL", IAP_EVENT_F7H_01H) \ 3163 __PMC_EV_ALIAS("FP_ASSIST.OUTPUT", IAP_EVENT_F7H_02H) \ 3164 __PMC_EV_ALIAS("FP_ASSIST.INPUT", IAP_EVENT_F7H_04H) \ 3165 __PMC_EV_ALIAS("SIMD_INT_64.PACKED_MPY", IAP_EVENT_FDH_01H) \ 3166 __PMC_EV_ALIAS("SIMD_INT_64.PACKED_SHIFT", IAP_EVENT_FDH_02H) \ 3167 __PMC_EV_ALIAS("SIMD_INT_64.PACK", IAP_EVENT_FDH_04H) \ 3168 __PMC_EV_ALIAS("SIMD_INT_64.UNPACK", IAP_EVENT_FDH_08H) \ 3169 __PMC_EV_ALIAS("SIMD_INT_64.PACKED_LOGICAL", IAP_EVENT_FDH_10H) \ 3170 __PMC_EV_ALIAS("SIMD_INT_64.PACKED_ARITH", IAP_EVENT_FDH_20H) \ 3171 __PMC_EV_ALIAS("SIMD_INT_64.SHUFFLE_MOVE", IAP_EVENT_FDH_40H) \ 3172 __PMC_EV_ALIAS_COREI7_OLD() 3173 3174 /* 3175 * Aliases for Westmere PMC events (253669-033US December 2009) 3176 */ 3177 #define __PMC_EV_ALIAS_WESTMERE() \ 3178 __PMC_EV_ALIAS_INTEL_ARCHITECTURAL() \ 3179 __PMC_EV_ALIAS("LOAD_BLOCK.OVERLAP_STORE", IAP_EVENT_03H_02H) \ 3180 __PMC_EV_ALIAS("SB_DRAIN.ANY", IAP_EVENT_04H_07H) \ 3181 __PMC_EV_ALIAS("MISALIGN_MEMORY.STORE", IAP_EVENT_05H_02H) \ 3182 __PMC_EV_ALIAS("STORE_BLOCKS.AT_RET", IAP_EVENT_06H_04H) \ 3183 __PMC_EV_ALIAS("STORE_BLOCKS.L1D_BLOCK", IAP_EVENT_06H_08H) \ 3184 __PMC_EV_ALIAS("PARTIAL_ADDRESS_ALIAS", IAP_EVENT_07H_01H) \ 3185 __PMC_EV_ALIAS("DTLB_LOAD_MISSES.ANY", IAP_EVENT_08H_01H) \ 3186 __PMC_EV_ALIAS("DTLB_LOAD_MISSES.WALK_COMPLETED", IAP_EVENT_08H_02H) \ 3187 __PMC_EV_ALIAS("DTLB_LOAD_MISSES.WALK_CYCLES", IAP_EVENT_08H_04H) \ 3188 __PMC_EV_ALIAS("DTLB_LOAD_MISSES.STLB_HIT", IAP_EVENT_08H_10H) \ 3189 __PMC_EV_ALIAS("DTLB_LOAD_MISSES.PDE_MISS", IAP_EVENT_08H_20H) \ 3190 __PMC_EV_ALIAS("MEM_INST_RETIRED.LOADS", IAP_EVENT_0BH_01H) \ 3191 __PMC_EV_ALIAS("MEM_INST_RETIRED.STORES", IAP_EVENT_0BH_02H) \ 3192 __PMC_EV_ALIAS("MEM_INST_RETIRED.LATENCY_ABOVE_THRESHOLD", \ 3193 IAP_EVENT_0BH_10H) \ 3194 __PMC_EV_ALIAS("MEM_STORE_RETIRED.DTLB_MISS", IAP_EVENT_0CH_01H) \ 3195 __PMC_EV_ALIAS("UOPS_ISSUED.ANY", IAP_EVENT_0EH_01H) \ 3196 __PMC_EV_ALIAS("UOPS_ISSUED.STALLED_CYCLES", IAP_EVENT_0EH_01H) \ 3197 __PMC_EV_ALIAS("UOPS_ISSUED.FUSED", IAP_EVENT_0EH_02H) \ 3198 __PMC_EV_ALIAS("MEM_UNCORE_RETIRED.LOCAL_HITM", IAP_EVENT_0FH_02H) \ 3199 __PMC_EV_ALIAS("MEM_UNCORE_RETIRED.LOCAL_DRAM_AND_REMOTE_CACHE_HIT", \ 3200 IAP_EVENT_0FH_08H) \ 3201 __PMC_EV_ALIAS("MEM_UNCORE_RETIRED.LOCAL_DRAM", IAP_EVENT_0FH_10H) \ 3202 __PMC_EV_ALIAS("MEM_UNCORE_RETIRED.REMOTE_DRAM", IAP_EVENT_0FH_20H) \ 3203 __PMC_EV_ALIAS("MEM_UNCORE_RETIRED.UNCACHEABLE", IAP_EVENT_0FH_80H) \ 3204 __PMC_EV_ALIAS("FP_COMP_OPS_EXE.X87", IAP_EVENT_10H_01H) \ 3205 __PMC_EV_ALIAS("FP_COMP_OPS_EXE.MMX", IAP_EVENT_10H_02H) \ 3206 __PMC_EV_ALIAS("FP_COMP_OPS_EXE.SSE_FP", IAP_EVENT_10H_04H) \ 3207 __PMC_EV_ALIAS("FP_COMP_OPS_EXE.SSE2_INTEGER", IAP_EVENT_10H_08H) \ 3208 __PMC_EV_ALIAS("FP_COMP_OPS_EXE.SSE_FP_PACKED", IAP_EVENT_10H_10H) \ 3209 __PMC_EV_ALIAS("FP_COMP_OPS_EXE.SSE_FP_SCALAR", IAP_EVENT_10H_20H) \ 3210 __PMC_EV_ALIAS("FP_COMP_OPS_EXE.SSE_SINGLE_PRECISION", \ 3211 IAP_EVENT_10H_40H) \ 3212 __PMC_EV_ALIAS("FP_COMP_OPS_EXE.SSE_DOUBLE_PRECISION", \ 3213 IAP_EVENT_10H_80H) \ 3214 __PMC_EV_ALIAS("SIMD_INT_128.PACKED_MPY", IAP_EVENT_12H_01H) \ 3215 __PMC_EV_ALIAS("SIMD_INT_128.PACKED_SHIFT", IAP_EVENT_12H_02H) \ 3216 __PMC_EV_ALIAS("SIMD_INT_128.PACK", IAP_EVENT_12H_04H) \ 3217 __PMC_EV_ALIAS("SIMD_INT_128.UNPACK", IAP_EVENT_12H_08H) \ 3218 __PMC_EV_ALIAS("SIMD_INT_128.PACKED_LOGICAL", IAP_EVENT_12H_10H) \ 3219 __PMC_EV_ALIAS("SIMD_INT_128.PACKED_ARITH", IAP_EVENT_12H_20H) \ 3220 __PMC_EV_ALIAS("SIMD_INT_128.SHUFFLE_MOVE", IAP_EVENT_12H_40H) \ 3221 __PMC_EV_ALIAS("LOAD_DISPATCH.RS", IAP_EVENT_13H_01H) \ 3222 __PMC_EV_ALIAS("LOAD_DISPATCH.RS_DELAYED", IAP_EVENT_13H_02H) \ 3223 __PMC_EV_ALIAS("LOAD_DISPATCH.MOB", IAP_EVENT_13H_04H) \ 3224 __PMC_EV_ALIAS("LOAD_DISPATCH.ANY", IAP_EVENT_13H_07H) \ 3225 __PMC_EV_ALIAS("ARITH.CYCLES_DIV_BUSY", IAP_EVENT_14H_01H) \ 3226 __PMC_EV_ALIAS("ARITH.MUL", IAP_EVENT_14H_02H) \ 3227 __PMC_EV_ALIAS("INST_QUEUE_WRITES", IAP_EVENT_17H_01H) \ 3228 __PMC_EV_ALIAS("INST_DECODED.DEC0", IAP_EVENT_18H_01H) \ 3229 __PMC_EV_ALIAS("TWO_UOP_INSTS_DECODED", IAP_EVENT_19H_01H) \ 3230 __PMC_EV_ALIAS("INST_QUEUE_WRITE_CYCLES", IAP_EVENT_1EH_01H) \ 3231 __PMC_EV_ALIAS("LSD_OVERFLOW", IAP_EVENT_20H_01H) \ 3232 __PMC_EV_ALIAS("L2_RQSTS.LD_HIT", IAP_EVENT_24H_01H) \ 3233 __PMC_EV_ALIAS("L2_RQSTS.LD_MISS", IAP_EVENT_24H_02H) \ 3234 __PMC_EV_ALIAS("L2_RQSTS.LOADS", IAP_EVENT_24H_03H) \ 3235 __PMC_EV_ALIAS("L2_RQSTS.RFO_HIT", IAP_EVENT_24H_04H) \ 3236 __PMC_EV_ALIAS("L2_RQSTS.RFO_MISS", IAP_EVENT_24H_08H) \ 3237 __PMC_EV_ALIAS("L2_RQSTS.RFOS", IAP_EVENT_24H_0CH) \ 3238 __PMC_EV_ALIAS("L2_RQSTS.IFETCH_HIT", IAP_EVENT_24H_10H) \ 3239 __PMC_EV_ALIAS("L2_RQSTS.IFETCH_MISS", IAP_EVENT_24H_20H) \ 3240 __PMC_EV_ALIAS("L2_RQSTS.IFETCHES", IAP_EVENT_24H_30H) \ 3241 __PMC_EV_ALIAS("L2_RQSTS.PREFETCH_HIT", IAP_EVENT_24H_40H) \ 3242 __PMC_EV_ALIAS("L2_RQSTS.PREFETCH_MISS", IAP_EVENT_24H_80H) \ 3243 __PMC_EV_ALIAS("L2_RQSTS.PREFETCHES", IAP_EVENT_24H_C0H) \ 3244 __PMC_EV_ALIAS("L2_RQSTS.MISS", IAP_EVENT_24H_AAH) \ 3245 __PMC_EV_ALIAS("L2_RQSTS.REFERENCES", IAP_EVENT_24H_FFH) \ 3246 __PMC_EV_ALIAS("L2_DATA_RQSTS.DEMAND.I_STATE", IAP_EVENT_26H_01H) \ 3247 __PMC_EV_ALIAS("L2_DATA_RQSTS.DEMAND.S_STATE", IAP_EVENT_26H_02H) \ 3248 __PMC_EV_ALIAS("L2_DATA_RQSTS.DEMAND.E_STATE", IAP_EVENT_26H_04H) \ 3249 __PMC_EV_ALIAS("L2_DATA_RQSTS.DEMAND.M_STATE", IAP_EVENT_26H_08H) \ 3250 __PMC_EV_ALIAS("L2_DATA_RQSTS.DEMAND.MESI", IAP_EVENT_26H_0FH) \ 3251 __PMC_EV_ALIAS("L2_DATA_RQSTS.PREFETCH.I_STATE", IAP_EVENT_26H_10H) \ 3252 __PMC_EV_ALIAS("L2_DATA_RQSTS.PREFETCH.S_STATE", IAP_EVENT_26H_20H) \ 3253 __PMC_EV_ALIAS("L2_DATA_RQSTS.PREFETCH.E_STATE", IAP_EVENT_26H_40H) \ 3254 __PMC_EV_ALIAS("L2_DATA_RQSTS.PREFETCH.M_STATE", IAP_EVENT_26H_80H) \ 3255 __PMC_EV_ALIAS("L2_DATA_RQSTS.PREFETCH.MESI", IAP_EVENT_26H_F0H) \ 3256 __PMC_EV_ALIAS("L2_DATA_RQSTS.ANY", IAP_EVENT_26H_FFH) \ 3257 __PMC_EV_ALIAS("L2_WRITE.RFO.I_STATE", IAP_EVENT_27H_01H) \ 3258 __PMC_EV_ALIAS("L2_WRITE.RFO.S_STATE", IAP_EVENT_27H_02H) \ 3259 __PMC_EV_ALIAS("L2_WRITE.RFO.M_STATE", IAP_EVENT_27H_08H) \ 3260 __PMC_EV_ALIAS("L2_WRITE.RFO.HIT", IAP_EVENT_27H_0EH) \ 3261 __PMC_EV_ALIAS("L2_WRITE.RFO.MESI", IAP_EVENT_27H_0FH) \ 3262 __PMC_EV_ALIAS("L2_WRITE.LOCK.I_STATE", IAP_EVENT_27H_10H) \ 3263 __PMC_EV_ALIAS("L2_WRITE.LOCK.S_STATE", IAP_EVENT_27H_20H) \ 3264 __PMC_EV_ALIAS("L2_WRITE.LOCK.E_STATE", IAP_EVENT_27H_40H) \ 3265 __PMC_EV_ALIAS("L2_WRITE.LOCK.M_STATE", IAP_EVENT_27H_80H) \ 3266 __PMC_EV_ALIAS("L2_WRITE.LOCK.HIT", IAP_EVENT_27H_E0H) \ 3267 __PMC_EV_ALIAS("L2_WRITE.LOCK.MESI", IAP_EVENT_27H_F0H) \ 3268 __PMC_EV_ALIAS("L1D_WB_L2.I_STATE", IAP_EVENT_28H_01H) \ 3269 __PMC_EV_ALIAS("L1D_WB_L2.S_STATE", IAP_EVENT_28H_02H) \ 3270 __PMC_EV_ALIAS("L1D_WB_L2.E_STATE", IAP_EVENT_28H_04H) \ 3271 __PMC_EV_ALIAS("L1D_WB_L2.M_STATE", IAP_EVENT_28H_08H) \ 3272 __PMC_EV_ALIAS("L1D_WB_L2.MESI", IAP_EVENT_28H_0FH) \ 3273 __PMC_EV_ALIAS("L3_LAT_CACHE.REFERENCE", IAP_EVENT_2EH_02H) \ 3274 __PMC_EV_ALIAS("L3_LAT_CACHE.MISS", IAP_EVENT_2EH_01H) \ 3275 __PMC_EV_ALIAS("CPU_CLK_UNHALTED.THREAD_P", IAP_EVENT_3CH_00H) \ 3276 __PMC_EV_ALIAS("CPU_CLK_UNHALTED.REF_P", IAP_EVENT_3CH_01H) \ 3277 __PMC_EV_ALIAS("DTLB_MISSES.ANY", IAP_EVENT_49H_01H) \ 3278 __PMC_EV_ALIAS("DTLB_MISSES.WALK_COMPLETED", IAP_EVENT_49H_02H) \ 3279 __PMC_EV_ALIAS("DTLB_MISSES.WALK_CYCLES", IAP_EVENT_49H_04H) \ 3280 __PMC_EV_ALIAS("DTLB_MISSES.STLB_HIT", IAP_EVENT_49H_10H) \ 3281 __PMC_EV_ALIAS("DTLB_MISSES.LARGE_WALK_COMPLETED", IAP_EVENT_49H_80H) \ 3282 __PMC_EV_ALIAS("LOAD_HIT_PRE", IAP_EVENT_4CH_01H) \ 3283 __PMC_EV_ALIAS("L1D_PREFETCH.REQUESTS", IAP_EVENT_4EH_01H) \ 3284 __PMC_EV_ALIAS("L1D_PREFETCH.MISS", IAP_EVENT_4EH_02H) \ 3285 __PMC_EV_ALIAS("L1D_PREFETCH.TRIGGERS", IAP_EVENT_4EH_04H) \ 3286 __PMC_EV_ALIAS("EPT.WALK_CYCLES", IAP_EVENT_4FH_10H) \ 3287 __PMC_EV_ALIAS("L1D.REPL", IAP_EVENT_51H_01H) \ 3288 __PMC_EV_ALIAS("L1D.M_REPL", IAP_EVENT_51H_02H) \ 3289 __PMC_EV_ALIAS("L1D.M_EVICT", IAP_EVENT_51H_04H) \ 3290 __PMC_EV_ALIAS("L1D.M_SNOOP_EVICT", IAP_EVENT_51H_08H) \ 3291 __PMC_EV_ALIAS("L1D_CACHE_PREFETCH_LOCK_FB_HIT", IAP_EVENT_52H_01H) \ 3292 __PMC_EV_ALIAS("L1D_CACHE_LOCK_FB_HIT", IAP_EVENT_53H_01H) \ 3293 __PMC_EV_ALIAS("OFFCORE_REQUESTS_OUTSTANDING.DEMAND.READ_DATA", \ 3294 IAP_EVENT_60H_01H) \ 3295 __PMC_EV_ALIAS("OFFCORE_REQUESTS_OUTSTANDING.DEMAND.READ_CODE", \ 3296 IAP_EVENT_60H_02H) \ 3297 __PMC_EV_ALIAS("OFFCORE_REQUESTS_OUTSTANDING.DEMAND.RFO", \ 3298 IAP_EVENT_60H_04H) \ 3299 __PMC_EV_ALIAS("OFFCORE_REQUESTS_OUTSTANDING.ANY.READ", \ 3300 IAP_EVENT_60H_08H) \ 3301 __PMC_EV_ALIAS("CACHE_LOCK_CYCLES.L1D_L2", IAP_EVENT_63H_01H) \ 3302 __PMC_EV_ALIAS("CACHE_LOCK_CYCLES.L1D", IAP_EVENT_63H_02H) \ 3303 __PMC_EV_ALIAS("IO_TRANSACTIONS", IAP_EVENT_6CH_01H) \ 3304 __PMC_EV_ALIAS("L1I.HITS", IAP_EVENT_80H_01H) \ 3305 __PMC_EV_ALIAS("L1I.MISSES", IAP_EVENT_80H_02H) \ 3306 __PMC_EV_ALIAS("L1I.READS", IAP_EVENT_80H_03H) \ 3307 __PMC_EV_ALIAS("L1I.CYCLES_STALLED", IAP_EVENT_80H_04H) \ 3308 __PMC_EV_ALIAS("LARGE_ITLB.HIT", IAP_EVENT_82H_01H) \ 3309 __PMC_EV_ALIAS("ITLB_MISSES.ANY", IAP_EVENT_85H_01H) \ 3310 __PMC_EV_ALIAS("ITLB_MISSES.WALK_COMPLETED", IAP_EVENT_85H_02H) \ 3311 __PMC_EV_ALIAS("ITLB_MISSES.WALK_CYCLES", IAP_EVENT_85H_04H) \ 3312 __PMC_EV_ALIAS("ITLB_MISSES.LARGE_WALK_COMPLETED", IAP_EVENT_85H_80H) \ 3313 __PMC_EV_ALIAS("ILD_STALL.LCP", IAP_EVENT_87H_01H) \ 3314 __PMC_EV_ALIAS("ILD_STALL.MRU", IAP_EVENT_87H_02H) \ 3315 __PMC_EV_ALIAS("ILD_STALL.IQ_FULL", IAP_EVENT_87H_04H) \ 3316 __PMC_EV_ALIAS("ILD_STALL.REGEN", IAP_EVENT_87H_08H) \ 3317 __PMC_EV_ALIAS("ILD_STALL.ANY", IAP_EVENT_87H_0FH) \ 3318 __PMC_EV_ALIAS("BR_INST_EXEC.COND", IAP_EVENT_88H_01H) \ 3319 __PMC_EV_ALIAS("BR_INST_EXEC.DIRECT", IAP_EVENT_88H_02H) \ 3320 __PMC_EV_ALIAS("BR_INST_EXEC.INDIRECT_NON_CALL", IAP_EVENT_88H_04H) \ 3321 __PMC_EV_ALIAS("BR_INST_EXEC.NON_CALLS", IAP_EVENT_88H_07H) \ 3322 __PMC_EV_ALIAS("BR_INST_EXEC.RETURN_NEAR", IAP_EVENT_88H_08H) \ 3323 __PMC_EV_ALIAS("BR_INST_EXEC.DIRECT_NEAR_CALL", IAP_EVENT_88H_10H) \ 3324 __PMC_EV_ALIAS("BR_INST_EXEC.INDIRECT_NEAR_CALL", IAP_EVENT_88H_20H) \ 3325 __PMC_EV_ALIAS("BR_INST_EXEC.NEAR_CALLS", IAP_EVENT_88H_30H) \ 3326 __PMC_EV_ALIAS("BR_INST_EXEC.TAKEN", IAP_EVENT_88H_40H) \ 3327 __PMC_EV_ALIAS("BR_INST_EXEC.ANY", IAP_EVENT_88H_7FH) \ 3328 __PMC_EV_ALIAS("BR_MISP_EXEC.COND", IAP_EVENT_89H_01H) \ 3329 __PMC_EV_ALIAS("BR_MISP_EXEC.DIRECT", IAP_EVENT_89H_02H) \ 3330 __PMC_EV_ALIAS("BR_MISP_EXEC.INDIRECT_NON_CALL", IAP_EVENT_89H_04H) \ 3331 __PMC_EV_ALIAS("BR_MISP_EXEC.NON_CALLS", IAP_EVENT_89H_07H) \ 3332 __PMC_EV_ALIAS("BR_MISP_EXEC.RETURN_NEAR", IAP_EVENT_89H_08H) \ 3333 __PMC_EV_ALIAS("BR_MISP_EXEC.DIRECT_NEAR_CALL", IAP_EVENT_89H_10H) \ 3334 __PMC_EV_ALIAS("BR_MISP_EXEC.INDIRECT_NEAR_CALL", IAP_EVENT_89H_20H) \ 3335 __PMC_EV_ALIAS("BR_MISP_EXEC.NEAR_CALLS", IAP_EVENT_89H_30H) \ 3336 __PMC_EV_ALIAS("BR_MISP_EXEC.TAKEN", IAP_EVENT_89H_40H) \ 3337 __PMC_EV_ALIAS("BR_MISP_EXEC.ANY", IAP_EVENT_89H_7FH) \ 3338 __PMC_EV_ALIAS("RESOURCE_STALLS.ANY", IAP_EVENT_A2H_01H) \ 3339 __PMC_EV_ALIAS("RESOURCE_STALLS.LOAD", IAP_EVENT_A2H_02H) \ 3340 __PMC_EV_ALIAS("RESOURCE_STALLS.RS_FULL", IAP_EVENT_A2H_04H) \ 3341 __PMC_EV_ALIAS("RESOURCE_STALLS.STORE", IAP_EVENT_A2H_08H) \ 3342 __PMC_EV_ALIAS("RESOURCE_STALLS.ROB_FULL", IAP_EVENT_A2H_10H) \ 3343 __PMC_EV_ALIAS("RESOURCE_STALLS.FPCW", IAP_EVENT_A2H_20H) \ 3344 __PMC_EV_ALIAS("RESOURCE_STALLS.MXCSR", IAP_EVENT_A2H_40H) \ 3345 __PMC_EV_ALIAS("RESOURCE_STALLS.OTHER", IAP_EVENT_A2H_80H) \ 3346 __PMC_EV_ALIAS("MACRO_INSTS.FUSIONS_DECODED", IAP_EVENT_A6H_01H) \ 3347 __PMC_EV_ALIAS("BACLEAR_FORCE_IQ", IAP_EVENT_A7H_01H) \ 3348 __PMC_EV_ALIAS("LSD.UOPS", IAP_EVENT_A8H_01H) \ 3349 __PMC_EV_ALIAS("ITLB_FLUSH", IAP_EVENT_AEH_01H) \ 3350 __PMC_EV_ALIAS("OFFCORE_REQUESTS.DEMAND.READ_DATA", IAP_EVENT_B0H_01H) \ 3351 __PMC_EV_ALIAS("OFFCORE_REQUESTS.DEMAND.READ_CODE", IAP_EVENT_B0H_02H) \ 3352 __PMC_EV_ALIAS("OFFCORE_REQUESTS.DEMAND.RFO", IAP_EVENT_B0H_04H) \ 3353 __PMC_EV_ALIAS("OFFCORE_REQUESTS.ANY.READ", IAP_EVENT_B0H_08H) \ 3354 __PMC_EV_ALIAS("OFFCORE_REQUESTS.ANY.RFO", IAP_EVENT_B0H_10H) \ 3355 __PMC_EV_ALIAS("OFFCORE_REQUESTS.L1D_WRITEBACK", IAP_EVENT_B0H_40H) \ 3356 __PMC_EV_ALIAS("OFFCORE_REQUESTS.ANY", IAP_EVENT_B0H_80H) \ 3357 __PMC_EV_ALIAS("UOPS_EXECUTED.PORT0", IAP_EVENT_B1H_01H) \ 3358 __PMC_EV_ALIAS("UOPS_EXECUTED.PORT1", IAP_EVENT_B1H_02H) \ 3359 __PMC_EV_ALIAS("UOPS_EXECUTED.PORT2_CORE", IAP_EVENT_B1H_04H) \ 3360 __PMC_EV_ALIAS("UOPS_EXECUTED.PORT3_CORE", IAP_EVENT_B1H_08H) \ 3361 __PMC_EV_ALIAS("UOPS_EXECUTED.PORT4_CORE", IAP_EVENT_B1H_10H) \ 3362 __PMC_EV_ALIAS("UOPS_EXECUTED.CORE_ACTIVE_CYCLES_NO_PORT5", \ 3363 IAP_EVENT_B1H_1FH) \ 3364 __PMC_EV_ALIAS("UOPS_EXECUTED.PORT5", IAP_EVENT_B1H_20H) \ 3365 __PMC_EV_ALIAS("UOPS_EXECUTED.CORE_ACTIVE_CYCLES", IAP_EVENT_B1H_3FH) \ 3366 __PMC_EV_ALIAS("UOPS_EXECUTED.PORT015", IAP_EVENT_B1H_40H) \ 3367 __PMC_EV_ALIAS("UOPS_EXECUTED.PORT234", IAP_EVENT_B1H_80H) \ 3368 __PMC_EV_ALIAS("OFFCORE_REQUESTS_SQ_FULL", IAP_EVENT_B2H_01H) \ 3369 __PMC_EV_ALIAS("SNOOPQ_REQUESTS_OUTSTANDING.DATA", IAP_EVENT_B3H_01H) \ 3370 __PMC_EV_ALIAS("SNOOPQ_REQUESTS_OUTSTANDING.INVALIDATE", \ 3371 IAP_EVENT_B3H_02H) \ 3372 __PMC_EV_ALIAS("SNOOPQ_REQUESTS_OUTSTANDING.CODE", IAP_EVENT_B3H_04H) \ 3373 __PMC_EV_ALIAS("SNOOPQ_REQUESTS.CODE", IAP_EVENT_B4H_01H) \ 3374 __PMC_EV_ALIAS("SNOOPQ_REQUESTS.DATA", IAP_EVENT_B4H_02H) \ 3375 __PMC_EV_ALIAS("SNOOPQ_REQUESTS.INVALIDATE", IAP_EVENT_B4H_04H) \ 3376 __PMC_EV_ALIAS("OFF_CORE_RESPONSE_0", IAP_EVENT_B7H_01H) \ 3377 __PMC_EV_ALIAS("SNOOP_RESPONSE.HIT", IAP_EVENT_B8H_01H) \ 3378 __PMC_EV_ALIAS("SNOOP_RESPONSE.HITE", IAP_EVENT_B8H_02H) \ 3379 __PMC_EV_ALIAS("SNOOP_RESPONSE.HITM", IAP_EVENT_B8H_04H) \ 3380 __PMC_EV_ALIAS("OFF_CORE_RESPONSE_1", IAP_EVENT_BBH_01H) \ 3381 __PMC_EV_ALIAS("INST_RETIRED.ANY_P", IAP_EVENT_C0H_01H) \ 3382 __PMC_EV_ALIAS("INST_RETIRED.X87", IAP_EVENT_C0H_02H) \ 3383 __PMC_EV_ALIAS("INST_RETIRED.MMX", IAP_EVENT_C0H_04H) \ 3384 __PMC_EV_ALIAS("UOPS_RETIRED.ANY", IAP_EVENT_C2H_01H) \ 3385 __PMC_EV_ALIAS("UOPS_RETIRED.RETIRE_SLOTS", IAP_EVENT_C2H_02H) \ 3386 __PMC_EV_ALIAS("UOPS_RETIRED.MACRO_FUSED", IAP_EVENT_C2H_04H) \ 3387 __PMC_EV_ALIAS("MACHINE_CLEARS.CYCLES", IAP_EVENT_C3H_01H) \ 3388 __PMC_EV_ALIAS("MACHINE_CLEARS.MEM_ORDER", IAP_EVENT_C3H_02H) \ 3389 __PMC_EV_ALIAS("MACHINE_CLEARS.SMC", IAP_EVENT_C3H_04H) \ 3390 __PMC_EV_ALIAS("BR_INST_RETIRED.ANY_P", IAP_EVENT_C4H_00H) \ 3391 __PMC_EV_ALIAS("BR_INST_RETIRED.CONDITIONAL", IAP_EVENT_C4H_01H) \ 3392 __PMC_EV_ALIAS("BR_INST_RETIRED.NEAR_CALL", IAP_EVENT_C4H_02H) \ 3393 __PMC_EV_ALIAS("BR_INST_RETIRED.ALL_BRANCHES", IAP_EVENT_C4H_04H) \ 3394 __PMC_EV_ALIAS("BR_MISP_RETIRED.ANY_P", IAP_EVENT_C5H_00H) \ 3395 __PMC_EV_ALIAS("BR_MISP_RETIRED.CONDITIONAL", IAP_EVENT_C5H_01H) \ 3396 __PMC_EV_ALIAS("BR_MISP_RETIRED.NEAR_CALL", IAP_EVENT_C5H_02H) \ 3397 __PMC_EV_ALIAS("BR_MISP_RETIRED.ALL_BRANCHES", IAP_EVENT_C5H_04H) \ 3398 __PMC_EV_ALIAS("SSEX_UOPS_RETIRED.PACKED_SINGLE", IAP_EVENT_C7H_01H) \ 3399 __PMC_EV_ALIAS("SSEX_UOPS_RETIRED.SCALAR_SINGLE", IAP_EVENT_C7H_02H) \ 3400 __PMC_EV_ALIAS("SSEX_UOPS_RETIRED.PACKED_DOUBLE", IAP_EVENT_C7H_04H) \ 3401 __PMC_EV_ALIAS("SSEX_UOPS_RETIRED.SCALAR_DOUBLE", IAP_EVENT_C7H_08H) \ 3402 __PMC_EV_ALIAS("SSEX_UOPS_RETIRED.VECTOR_INTEGER", IAP_EVENT_C7H_10H) \ 3403 __PMC_EV_ALIAS("ITLB_MISS_RETIRED", IAP_EVENT_C8H_20H) \ 3404 __PMC_EV_ALIAS("MEM_LOAD_RETIRED.L1D_HIT", IAP_EVENT_CBH_01H) \ 3405 __PMC_EV_ALIAS("MEM_LOAD_RETIRED.L2_HIT", IAP_EVENT_CBH_02H) \ 3406 __PMC_EV_ALIAS("MEM_LOAD_RETIRED.L3_UNSHARED_HIT", IAP_EVENT_CBH_04H) \ 3407 __PMC_EV_ALIAS("MEM_LOAD_RETIRED.OTHER_CORE_L2_HIT_HITM", \ 3408 IAP_EVENT_CBH_08H) \ 3409 __PMC_EV_ALIAS("MEM_LOAD_RETIRED.L3_MISS", IAP_EVENT_CBH_10H) \ 3410 __PMC_EV_ALIAS("MEM_LOAD_RETIRED.HIT_LFB", IAP_EVENT_CBH_40H) \ 3411 __PMC_EV_ALIAS("MEM_LOAD_RETIRED.DTLB_MISS", IAP_EVENT_CBH_80H) \ 3412 __PMC_EV_ALIAS("FP_MMX_TRANS.TO_FP", IAP_EVENT_CCH_01H) \ 3413 __PMC_EV_ALIAS("FP_MMX_TRANS.TO_MMX", IAP_EVENT_CCH_02H) \ 3414 __PMC_EV_ALIAS("FP_MMX_TRANS.ANY", IAP_EVENT_CCH_03H) \ 3415 __PMC_EV_ALIAS("MACRO_INSTS.DECODED", IAP_EVENT_D0H_01H) \ 3416 __PMC_EV_ALIAS("UOPS_DECODED.STALL_CYCLES", IAP_EVENT_D1H_01H) \ 3417 __PMC_EV_ALIAS("UOPS_DECODED.MS", IAP_EVENT_D1H_02H) \ 3418 __PMC_EV_ALIAS("UOPS_DECODED.ESP_FOLDING", IAP_EVENT_D1H_04H) \ 3419 __PMC_EV_ALIAS("UOPS_DECODED.ESP_SYNC", IAP_EVENT_D1H_08H) \ 3420 __PMC_EV_ALIAS("RAT_STALLS.FLAGS", IAP_EVENT_D2H_01H) \ 3421 __PMC_EV_ALIAS("RAT_STALLS.REGISTERS", IAP_EVENT_D2H_02H) \ 3422 __PMC_EV_ALIAS("RAT_STALLS.ROB_READ_PORT", IAP_EVENT_D2H_04H) \ 3423 __PMC_EV_ALIAS("RAT_STALLS.SCOREBOARD", IAP_EVENT_D2H_08H) \ 3424 __PMC_EV_ALIAS("RAT_STALLS.ANY", IAP_EVENT_D2H_0FH) \ 3425 __PMC_EV_ALIAS("SEG_RENAME_STALLS", IAP_EVENT_D4H_01H) \ 3426 __PMC_EV_ALIAS("ES_REG_RENAMES", IAP_EVENT_D5H_01H) \ 3427 __PMC_EV_ALIAS("UOP_UNFUSION", IAP_EVENT_DBH_01H) \ 3428 __PMC_EV_ALIAS("BR_INST_DECODED", IAP_EVENT_E0H_01H) \ 3429 __PMC_EV_ALIAS("BPU_MISSED_CALL_RET", IAP_EVENT_E5H_01H) \ 3430 __PMC_EV_ALIAS("BACLEAR.CLEAR", IAP_EVENT_E6H_01H) \ 3431 __PMC_EV_ALIAS("BACLEAR.BAD_TARGET", IAP_EVENT_E6H_02H) \ 3432 __PMC_EV_ALIAS("BPU_CLEARS.EARLY", IAP_EVENT_E8H_01H) \ 3433 __PMC_EV_ALIAS("BPU_CLEARS.LATE", IAP_EVENT_E8H_02H) \ 3434 __PMC_EV_ALIAS("THREAD_ACTIVE", IAP_EVENT_ECH_01H) \ 3435 __PMC_EV_ALIAS("L2_TRANSACTIONS.LOAD", IAP_EVENT_F0H_01H) \ 3436 __PMC_EV_ALIAS("L2_TRANSACTIONS.RFO", IAP_EVENT_F0H_02H) \ 3437 __PMC_EV_ALIAS("L2_TRANSACTIONS.IFETCH", IAP_EVENT_F0H_04H) \ 3438 __PMC_EV_ALIAS("L2_TRANSACTIONS.PREFETCH", IAP_EVENT_F0H_08H) \ 3439 __PMC_EV_ALIAS("L2_TRANSACTIONS.L1D_WB", IAP_EVENT_F0H_10H) \ 3440 __PMC_EV_ALIAS("L2_TRANSACTIONS.FILL", IAP_EVENT_F0H_20H) \ 3441 __PMC_EV_ALIAS("L2_TRANSACTIONS.WB", IAP_EVENT_F0H_40H) \ 3442 __PMC_EV_ALIAS("L2_TRANSACTIONS.ANY", IAP_EVENT_F0H_80H) \ 3443 __PMC_EV_ALIAS("L2_LINES_IN.S_STATE", IAP_EVENT_F1H_02H) \ 3444 __PMC_EV_ALIAS("L2_LINES_IN.E_STATE", IAP_EVENT_F1H_04H) \ 3445 __PMC_EV_ALIAS("L2_LINES_IN.ANY", IAP_EVENT_F1H_07H) \ 3446 __PMC_EV_ALIAS("L2_LINES_OUT.DEMAND_CLEAN", IAP_EVENT_F2H_01H) \ 3447 __PMC_EV_ALIAS("L2_LINES_OUT.DEMAND_DIRTY", IAP_EVENT_F2H_02H) \ 3448 __PMC_EV_ALIAS("L2_LINES_OUT.PREFETCH_CLEAN", IAP_EVENT_F2H_04H) \ 3449 __PMC_EV_ALIAS("L2_LINES_OUT.PREFETCH_DIRTY", IAP_EVENT_F2H_08H) \ 3450 __PMC_EV_ALIAS("L2_LINES_OUT.ANY", IAP_EVENT_F2H_0FH) \ 3451 __PMC_EV_ALIAS("SQ_MISC.LRU_HINTS", IAP_EVENT_F4H_04H) \ 3452 __PMC_EV_ALIAS("SQ_MISC.SPLIT_LOCK", IAP_EVENT_F4H_10H) \ 3453 __PMC_EV_ALIAS("SQ_FULL_STALL_CYCLES", IAP_EVENT_F6H_01H) \ 3454 __PMC_EV_ALIAS("FP_ASSIST.ALL", IAP_EVENT_F7H_01H) \ 3455 __PMC_EV_ALIAS("FP_ASSIST.OUTPUT", IAP_EVENT_F7H_02H) \ 3456 __PMC_EV_ALIAS("FP_ASSIST.INPUT", IAP_EVENT_F7H_04H) \ 3457 __PMC_EV_ALIAS("SIMD_INT_64.PACKED_MPY", IAP_EVENT_FDH_01H) \ 3458 __PMC_EV_ALIAS("SIMD_INT_64.PACKED_SHIFT", IAP_EVENT_FDH_02H) \ 3459 __PMC_EV_ALIAS("SIMD_INT_64.PACK", IAP_EVENT_FDH_04H) \ 3460 __PMC_EV_ALIAS("SIMD_INT_64.UNPACK", IAP_EVENT_FDH_08H) \ 3461 __PMC_EV_ALIAS("SIMD_INT_64.PACKED_LOGICAL", IAP_EVENT_FDH_10H) \ 3462 __PMC_EV_ALIAS("SIMD_INT_64.PACKED_ARITH", IAP_EVENT_FDH_20H) \ 3463 __PMC_EV_ALIAS("SIMD_INT_64.SHUFFLE_MOVE", IAP_EVENT_FDH_40H) 3464 3465 /* 3466 * Aliases for Haswell core PMC events 3467 */ 3468 #define __PMC_EV_ALIAS_HASWELL_XEON() \ 3469 __PMC_EV_ALIAS_INTEL_ARCHITECTURAL() \ 3470 __PMC_EV_ALIAS("LD_BLOCKS.STORE_FORWARD", IAP_EVENT_03H_02H) \ 3471 __PMC_EV_ALIAS("LD_BLOCKS.NO_SR", IAP_EVENT_03H_08H) \ 3472 __PMC_EV_ALIAS("MISALIGN_MEM_REF.LOADS", IAP_EVENT_05H_01H) \ 3473 __PMC_EV_ALIAS("MISALIGN_MEM_REF.STORES", IAP_EVENT_05H_02H) \ 3474 __PMC_EV_ALIAS("LD_BLOCKS_PARTIAL.ADDRESS_ALIAS", IAP_EVENT_07H_01H) \ 3475 __PMC_EV_ALIAS("DTLB_LOAD_MISSES.MISS_CAUSES_A_WALK", IAP_EVENT_08H_01H)\ 3476 __PMC_EV_ALIAS("DTLB_LOAD_MISSES.WALK_COMPLETED_4K", IAP_EVENT_08H_02H) \ 3477 __PMC_EV_ALIAS("DTLB_LOAD_MISSES.WALK_COMPLETED_2M_4M", \ 3478 IAP_EVENT_08H_04H) \ 3479 __PMC_EV_ALIAS("DTLB_LOAD_MISSES.WALK_COMPLETED", IAP_EVENT_08H_0EH) \ 3480 __PMC_EV_ALIAS("DTLB_LOAD_MISSES.WALK_DURATION", IAP_EVENT_08H_10H) \ 3481 __PMC_EV_ALIAS("DTLB_LOAD_MISSES.STLB_HIT_4K", IAP_EVENT_08H_20H) \ 3482 __PMC_EV_ALIAS("DTLB_LOAD_MISSES.STLB_HIT_2M", IAP_EVENT_08H_40H) \ 3483 __PMC_EV_ALIAS("DTLB_LOAD_MISSES.STLB_HIT", IAP_EVENT_08H_60H) \ 3484 __PMC_EV_ALIAS("DTLB_LOAD_MISSES.PDE_CACHE_MISS", IAP_EVENT_08H_80H) \ 3485 __PMC_EV_ALIAS("INT_MISC.RECOVERY_CYCLES", IAP_EVENT_0DH_03H) \ 3486 __PMC_EV_ALIAS("UOPS_ISSUED.ANY", IAP_EVENT_0EH_01H) \ 3487 __PMC_EV_ALIAS("UOPS_ISSUED.FLAGS_MERGE", IAP_EVENT_0EH_10H) \ 3488 __PMC_EV_ALIAS("UOPS_ISSUED.SLOW_LEA", IAP_EVENT_0EH_20H) \ 3489 __PMC_EV_ALIAS("UOPS_ISSUED.SINGLE_MUL", IAP_EVENT_0EH_40H) \ 3490 __PMC_EV_ALIAS("L2_RQSTS.DEMAND_DATA_RD_MISS", IAP_EVENT_24H_21H) \ 3491 __PMC_EV_ALIAS("L2_RQSTS.DEMAND_DATA_RD_HIT", IAP_EVENT_24H_41H) \ 3492 __PMC_EV_ALIAS("L2_RQSTS.ALL_DEMAND_DATA_RD", IAP_EVENT_24H_E1H) \ 3493 __PMC_EV_ALIAS("L2_RQSTS.RFO_HIT", IAP_EVENT_24H_42H) \ 3494 __PMC_EV_ALIAS("L2_RQSTS.RFO_MISS", IAP_EVENT_24H_22H) \ 3495 __PMC_EV_ALIAS("L2_RQSTS.ALL_RFO", IAP_EVENT_24H_E2H) \ 3496 __PMC_EV_ALIAS("L2_RQSTS.CODE_RD_HIT", IAP_EVENT_24H_44H) \ 3497 __PMC_EV_ALIAS("L2_RQSTS.CODE_RD_MISS", IAP_EVENT_24H_24H) \ 3498 __PMC_EV_ALIAS("L2_RQSTS.ALL_DEMAND_MISS", IAP_EVENT_24H_27H) \ 3499 __PMC_EV_ALIAS("L2_RQSTS.ALL_DEMAND_REFERENCES", IAP_EVENT_24H_E7H) \ 3500 __PMC_EV_ALIAS("L2_RQSTS.ALL_CODE_RD", IAP_EVENT_24H_E4H) \ 3501 __PMC_EV_ALIAS("L2_RQSTS.L2_PF_HIT", IAP_EVENT_24H_50H) \ 3502 __PMC_EV_ALIAS("L2_RQSTS.L2_PF_MISS", IAP_EVENT_24H_30H) \ 3503 __PMC_EV_ALIAS("L2_RQSTS.ALL_PF", IAP_EVENT_24H_F8H) \ 3504 __PMC_EV_ALIAS("L2_RQSTS.MISS", IAP_EVENT_24H_3FH) \ 3505 __PMC_EV_ALIAS("L2_RQSTS.REFERENCES", IAP_EVENT_24H_FFH) \ 3506 __PMC_EV_ALIAS("L2_DEMAND_RQSTS.WB_HIT", IAP_EVENT_27H_50H) \ 3507 __PMC_EV_ALIAS("LONGEST_LAT_CACHE.REFERENCE", IAP_EVENT_2EH_4FH) \ 3508 __PMC_EV_ALIAS("LONGEST_LAT_CACHE.MISS", IAP_EVENT_2EH_41H) \ 3509 __PMC_EV_ALIAS("CPU_CLK_UNHALTED.THREAD_P", IAP_EVENT_3CH_00H) \ 3510 __PMC_EV_ALIAS("CPU_CLK_THREAD_UNHALTED.REF_XCLK", IAP_EVENT_3CH_01H) \ 3511 __PMC_EV_ALIAS("L1D_PEND_MISS.PENDING", IAP_EVENT_48H_01H) \ 3512 __PMC_EV_ALIAS("DTLB_STORE_MISSES.MISS_CAUSES_A_WALK", \ 3513 IAP_EVENT_49H_01H) \ 3514 __PMC_EV_ALIAS("DTLB_STORE_MISSES.WALK_COMPLETED_4K", \ 3515 IAP_EVENT_49H_02H) \ 3516 __PMC_EV_ALIAS("DTLB_STORE_MISSES.WALK_COMPLETED_2M_4M", \ 3517 IAP_EVENT_49H_04H) \ 3518 __PMC_EV_ALIAS("DTLB_STORE_MISSES.WALK_COMPLETED", IAP_EVENT_49H_0EH) \ 3519 __PMC_EV_ALIAS("DTLB_STORE_MISSES.WALK_DURATION", IAP_EVENT_49H_10H) \ 3520 __PMC_EV_ALIAS("DTLB_STORE_MISSES.STLB_HIT_4K", IAP_EVENT_49H_20H) \ 3521 __PMC_EV_ALIAS("DTLB_STORE_MISSES.STLB_HIT_2M", IAP_EVENT_49H_40H) \ 3522 __PMC_EV_ALIAS("DTLB_STORE_MISSES.STLB_HIT", IAP_EVENT_49H_60H) \ 3523 __PMC_EV_ALIAS("DTLB_STORE_MISSES.PDE_CACHE_MISS", IAP_EVENT_49H_80H) \ 3524 __PMC_EV_ALIAS("LOAD_HIT_PRE.SW_PF", IAP_EVENT_4CH_01H) \ 3525 __PMC_EV_ALIAS("LOAD_HIT_PRE.HW_PF", IAP_EVENT_4CH_02H) \ 3526 __PMC_EV_ALIAS("L1D.REPLACEMENT", IAP_EVENT_51H_01H) \ 3527 __PMC_EV_ALIAS("MOVE_ELIMINATION.INT_NOT_ELIMINATED", \ 3528 IAP_EVENT_58H_04H) \ 3529 __PMC_EV_ALIAS("MOVE_ELIMINATION.SMID_NOT_ELIMINATED", \ 3530 IAP_EVENT_58H_08H) \ 3531 __PMC_EV_ALIAS("MOVE_ELIMINATION.INT_ELIMINATED", IAP_EVENT_58H_01H) \ 3532 __PMC_EV_ALIAS("MOVE_ELIMINATION.SMID_ELIMINATED", IAP_EVENT_58H_02H) \ 3533 __PMC_EV_ALIAS("CPL_CYCLES.RING0", IAP_EVENT_5CH_01H) \ 3534 __PMC_EV_ALIAS("CPL_CYCLES.RING123", IAP_EVENT_5CH_02H) \ 3535 __PMC_EV_ALIAS("RS_EVENTS.EMPTY_CYCLES", IAP_EVENT_5EH_01H) \ 3536 __PMC_EV_ALIAS("OFFCORE_REQUESTS_OUTSTANDING.DEMAND_DATA_RD", \ 3537 IAP_EVENT_60H_01H) \ 3538 __PMC_EV_ALIAS("OFFCORE_REQUESTS_OUTSTANDING.DEMAND_CODE_RD", \ 3539 IAP_EVENT_60H_02H) \ 3540 __PMC_EV_ALIAS("OFFCORE_REQUESTS_OUTSTANDING.DEMAND_RFO", \ 3541 IAP_EVENT_60H_04H) \ 3542 __PMC_EV_ALIAS("OFFCORE_REQUESTS_OUTSTANDING.ALL_DATA_RD", \ 3543 IAP_EVENT_60H_08H) \ 3544 __PMC_EV_ALIAS("LOCK_CYCLES.SPLIT_LOCK_UC_LOCK_DURATION", \ 3545 IAP_EVENT_63H_01H) \ 3546 __PMC_EV_ALIAS("LOCK_CYCLES.CACHE_LOCK_DURATION", IAP_EVENT_63H_02H) \ 3547 __PMC_EV_ALIAS("IDQ.EMPTY", IAP_EVENT_79H_02H) \ 3548 __PMC_EV_ALIAS("IDQ.MITE_UOPS", IAP_EVENT_79H_04H) \ 3549 __PMC_EV_ALIAS("IDQ.DSB_UOPS", IAP_EVENT_79H_08H) \ 3550 __PMC_EV_ALIAS("IDQ.MS_DSB_UOPS", IAP_EVENT_79H_10H) \ 3551 __PMC_EV_ALIAS("IDQ.MS_MITE_UOPS", IAP_EVENT_79H_20H) \ 3552 __PMC_EV_ALIAS("IDQ.MS_UOPS", IAP_EVENT_79H_30H) \ 3553 __PMC_EV_ALIAS("IDQ.ALL_DSB_CYCLES_ANY_UOPS", IAP_EVENT_79H_18H) \ 3554 __PMC_EV_ALIAS("IDQ.ALL_MITE_CYCLES_ANY_UOPS", IAP_EVENT_79H_24H) \ 3555 __PMC_EV_ALIAS("IDQ.ALL_MITE_CYCLES_4_UOPS", IAP_EVENT_79H_24H) \ 3556 __PMC_EV_ALIAS("IDQ.MITE_ALL_UOPS", IAP_EVENT_79H_3CH) \ 3557 __PMC_EV_ALIAS("ICACHE.MISSES", IAP_EVENT_80H_02H) \ 3558 __PMC_EV_ALIAS("ITLB_MISSES.MISS_CAUSES_A_WALK", IAP_EVENT_85H_01H) \ 3559 __PMC_EV_ALIAS("ITLB_MISSES.WALK_COMPLETED_4K", IAP_EVENT_85H_02H) \ 3560 __PMC_EV_ALIAS("TLB_MISSES.WALK_COMPLETED_2M_4M", IAP_EVENT_85H_04H) \ 3561 __PMC_EV_ALIAS("ITLB_MISSES.WALK_COMPLETED", IAP_EVENT_85H_0EH) \ 3562 __PMC_EV_ALIAS("ITLB_MISSES.WALK_DURATION", IAP_EVENT_85H_10H) \ 3563 __PMC_EV_ALIAS("ITLB_MISSES.STLB_HIT_4K", IAP_EVENT_85H_20H) \ 3564 __PMC_EV_ALIAS("ITLB_MISSES.STLB_HIT_2M", IAP_EVENT_85H_40H) \ 3565 __PMC_EV_ALIAS("ITLB_MISSES.STLB_HIT", IAP_EVENT_85H_60H) \ 3566 __PMC_EV_ALIAS("ILD_STALL.LCP", IAP_EVENT_87H_01H) \ 3567 __PMC_EV_ALIAS("ILD_STALL.IQ_FULL", IAP_EVENT_87H_04H) \ 3568 __PMC_EV_ALIAS("BR_INST_EXEC.NONTAKEN_COND", IAP_EVENT_88H_41H) \ 3569 __PMC_EV_ALIAS("BR_INST_EXEC.TAKEN_COND", IAP_EVENT_88H_81H) \ 3570 __PMC_EV_ALIAS("BR_INST_EXEC.DIRECT_JMP", IAP_EVENT_88H_82H) \ 3571 __PMC_EV_ALIAS("BR_INST_EXEC.INDIRECT_JMP_NON_CALL_RET", \ 3572 IAP_EVENT_88H_84H) \ 3573 __PMC_EV_ALIAS("BR_INST_EXEC.RETURN_NEAR", IAP_EVENT_88H_88H) \ 3574 __PMC_EV_ALIAS("BR_INST_EXEC.DIRECT_NEAR_CALL", IAP_EVENT_88H_90H) \ 3575 __PMC_EV_ALIAS("BR_INST_EXEC.INDIRECT_NEAR_CALL", IAP_EVENT_88H_A0H) \ 3576 __PMC_EV_ALIAS("BR_INST_EXEC.ALL_BRANCHES", IAP_EVENT_88H_FFH) \ 3577 __PMC_EV_ALIAS("BR_MISP_EXEC.NONTAKEN_COND", IAP_EVENT_89H_41H) \ 3578 __PMC_EV_ALIAS("BR_MISP_EXEC.TAKEN_COND", IAP_EVENT_89H_81H) \ 3579 __PMC_EV_ALIAS("BR_MISP_EXEC.INDIRECT_JMP_NON_CALL_RET", \ 3580 IAP_EVENT_89H_84H) \ 3581 __PMC_EV_ALIAS("BR_MISP_EXEC.RETURN_NEAR", IAP_EVENT_89H_88H) \ 3582 __PMC_EV_ALIAS("BR_MISP_EXEC.DIRECT_NEAR_CALL", IAP_EVENT_89H_90H) \ 3583 __PMC_EV_ALIAS("BR_MISP_EXEC.INDIRECT_NEAR_CALL", IAP_EVENT_89H_A0H) \ 3584 __PMC_EV_ALIAS("BR_MISP_EXEC.ALL_BRANCHES", IAP_EVENT_89H_FFH) \ 3585 __PMC_EV_ALIAS("IDQ_UOPS_NOT_DELIVERED.CORE", IAP_EVENT_9CH_01H) \ 3586 __PMC_EV_ALIAS("UOPS_EXECUTED_PORT.PORT_0", IAP_EVENT_A1H_01H) \ 3587 __PMC_EV_ALIAS("UOPS_EXECUTED_PORT.PORT_1", IAP_EVENT_A1H_02H) \ 3588 __PMC_EV_ALIAS("UOPS_EXECUTED_PORT.PORT_2", IAP_EVENT_A1H_04H) \ 3589 __PMC_EV_ALIAS("UOPS_EXECUTED_PORT.PORT_3", IAP_EVENT_A1H_08H) \ 3590 __PMC_EV_ALIAS("UOPS_EXECUTED_PORT.PORT_4", IAP_EVENT_A1H_10H) \ 3591 __PMC_EV_ALIAS("UOPS_EXECUTED_PORT.PORT_5", IAP_EVENT_A1H_20H) \ 3592 __PMC_EV_ALIAS("UOPS_EXECUTED_PORT.PORT_6", IAP_EVENT_A1H_40H) \ 3593 __PMC_EV_ALIAS("UOPS_EXECUTED_PORT.PORT_7", IAP_EVENT_A1H_80H) \ 3594 __PMC_EV_ALIAS("RESOURCE_STALLS.ANY", IAP_EVENT_A2H_01H) \ 3595 __PMC_EV_ALIAS("RESOURCE_STALLS.RS", IAP_EVENT_A2H_04H) \ 3596 __PMC_EV_ALIAS("RESOURCE_STALLS.SB", IAP_EVENT_A2H_08H) \ 3597 __PMC_EV_ALIAS("RESOURCE_STALLS.ROB", IAP_EVENT_A2H_10H) \ 3598 __PMC_EV_ALIAS("CYCLE_ACTIVITY.CYCLES_L2_PENDING", IAP_EVENT_A3H_01H) \ 3599 __PMC_EV_ALIAS("CYCLE_ACTIVITY.CYCLES_LDM_PENDING", IAP_EVENT_A3H_02H) \ 3600 __PMC_EV_ALIAS("CYCLE_ACTIVITY.STALLS_L2_PENDING", IAP_EVENT_A3H_05H) \ 3601 __PMC_EV_ALIAS("CYCLE_ACTIVITY.CYCLES_L1D_PENDING", IAP_EVENT_A3H_08H) \ 3602 __PMC_EV_ALIAS("CYCLE_ACTIVITY.STALLS_L1D_PENDING", IAP_EVENT_A3H_0CH) \ 3603 __PMC_EV_ALIAS("LSD.UOPS", IAP_EVENT_A8H_01H) \ 3604 __PMC_EV_ALIAS("ITLB.ITLB_FLUSH", IAP_EVENT_AEH_01H) \ 3605 __PMC_EV_ALIAS("OFFCORE_REQUESTS.DEMAND_DATA_RD", IAP_EVENT_B0H_01H) \ 3606 __PMC_EV_ALIAS("OFFCORE_REQUESTS.DEMAND_CODE_RD", IAP_EVENT_B0H_02H) \ 3607 __PMC_EV_ALIAS("OFFCORE_REQUESTS.DEMAND_RFO", IAP_EVENT_B0H_04H) \ 3608 __PMC_EV_ALIAS("OFFCORE_REQUESTS.ALL_DATA_RD", IAP_EVENT_B0H_08H) \ 3609 __PMC_EV_ALIAS("UOPS_EXECUTED.CORE", IAP_EVENT_B1H_02H) \ 3610 __PMC_EV_ALIAS("OFF_CORE_RESPONSE_0", IAP_EVENT_B7H_01H) \ 3611 __PMC_EV_ALIAS("OFF_CORE_RESPONSE_1", IAP_EVENT_BBH_01H) \ 3612 __PMC_EV_ALIAS("PAGE_WALKER_LOADS.DTLB_L1", IAP_EVENT_BCH_11H) \ 3613 __PMC_EV_ALIAS("PAGE_WALKER_LOADS.ITLB_L1", IAP_EVENT_BCH_21H) \ 3614 __PMC_EV_ALIAS("PAGE_WALKER_LOADS.DTLB_L2", IAP_EVENT_BCH_12H) \ 3615 __PMC_EV_ALIAS("PAGE_WALKER_LOADS.ITLB_L2", IAP_EVENT_BCH_22H) \ 3616 __PMC_EV_ALIAS("PAGE_WALKER_LOADS.DTLB_L3", IAP_EVENT_BCH_14H) \ 3617 __PMC_EV_ALIAS("PAGE_WALKER_LOADS.ITLB_L3", IAP_EVENT_BCH_24H) \ 3618 __PMC_EV_ALIAS("PAGE_WALKER_LOADS.DTLB_MEMORY", IAP_EVENT_BCH_18H) \ 3619 __PMC_EV_ALIAS("PAGE_WALKER_LOADS.ITLB_MEMORY", IAP_EVENT_BCH_28H) \ 3620 __PMC_EV_ALIAS("TLB_FLUSH.DTLB_THREAD", IAP_EVENT_BDH_01H) \ 3621 __PMC_EV_ALIAS("TLB_FLUSH.STLB_ANY", IAP_EVENT_BDH_20H) \ 3622 __PMC_EV_ALIAS("INST_RETIRED.ANY_P", IAP_EVENT_C0H_00H) \ 3623 __PMC_EV_ALIAS("INST_RETIRED.PREC_DIST", IAP_EVENT_C0H_01H) \ 3624 __PMC_EV_ALIAS("OTHER_ASSISTS.AVX_TO_SSE", IAP_EVENT_C1H_08H) \ 3625 __PMC_EV_ALIAS("OTHER_ASSISTS.SSE_TO_AVX", IAP_EVENT_C1H_10H) \ 3626 __PMC_EV_ALIAS("OTHER_ASSISTS.ANY_WB_ASSIST", IAP_EVENT_C1H_40H) \ 3627 __PMC_EV_ALIAS("UOPS_RETIRED.ALL", IAP_EVENT_C2H_01H) \ 3628 __PMC_EV_ALIAS("UOPS_RETIRED.RETIRE_SLOTS", IAP_EVENT_C2H_02H) \ 3629 __PMC_EV_ALIAS("MACHINE_CLEARS.MEMORY_ORDERING", IAP_EVENT_C3H_02H) \ 3630 __PMC_EV_ALIAS("MACHINE_CLEARS.SMC", IAP_EVENT_C3H_04H) \ 3631 __PMC_EV_ALIAS("MACHINE_CLEARS.MASKMOV", IAP_EVENT_C3H_20H) \ 3632 __PMC_EV_ALIAS("BR_INST_RETIRED.ALL_BRANCHES", IAP_EVENT_C4H_00H) \ 3633 __PMC_EV_ALIAS("BR_INST_RETIRED.CONDITIONAL", IAP_EVENT_C4H_01H) \ 3634 __PMC_EV_ALIAS("BR_INST_RETIRED.NEAR_CALL", IAP_EVENT_C4H_02H) \ 3635 __PMC_EV_ALIAS("BR_INST_RETIRED.ALL_BRANCHES", IAP_EVENT_C4H_04H) \ 3636 __PMC_EV_ALIAS("BR_INST_RETIRED.NEAR_RETURN", IAP_EVENT_C4H_08H) \ 3637 __PMC_EV_ALIAS("BR_INST_RETIRED.NOT_TAKEN", IAP_EVENT_C4H_10H) \ 3638 __PMC_EV_ALIAS("BR_INST_RETIRED.NEAR_TAKEN", IAP_EVENT_C4H_20H) \ 3639 __PMC_EV_ALIAS("BR_INST_RETIRED.FAR_BRANCH", IAP_EVENT_C4H_40H) \ 3640 __PMC_EV_ALIAS("BR_MISP_RETIRED.ALL_BRANCHES", IAP_EVENT_C5H_00H) \ 3641 __PMC_EV_ALIAS("BR_MISP_RETIRED.CONDITIONAL", IAP_EVENT_C5H_01H) \ 3642 __PMC_EV_ALIAS("BR_MISP_U_RETIRED.CONDITIONAL", IAP_EVENT_C5H_04H) \ 3643 __PMC_EV_ALIAS("BR_MISP_RETIRED.NEAR_TAKEN", IAP_EVENT_C5H_20H) \ 3644 __PMC_EV_ALIAS("FP_ASSIST.X87_OUTPUT", IAP_EVENT_CAH_02H) \ 3645 __PMC_EV_ALIAS("FP_ASSIST.X87_INPUT", IAP_EVENT_CAH_04H) \ 3646 __PMC_EV_ALIAS("FP_ASSIST.SIMD_OUTPUT", IAP_EVENT_CAH_08H) \ 3647 __PMC_EV_ALIAS("FP_ASSIST.SIMD_INPUT", IAP_EVENT_CAH_10H) \ 3648 __PMC_EV_ALIAS("FP_ASSIST.ANY", IAP_EVENT_CAH_1EH) \ 3649 __PMC_EV_ALIAS("ROB_MISC_EVENTS.LBR_INSERTS", IAP_EVENT_CCH_20H) \ 3650 __PMC_EV_ALIAS("MEM_TRANS_RETIRED.LOAD_LATENCY", IAP_EVENT_CDH_01H) \ 3651 __PMC_EV_ALIAS("MEM_UOPS_RETIRED.STLB_MISS_LOADS", IAP_EVENT_D0H_11H) \ 3652 __PMC_EV_ALIAS("MEM_UOPS_RETIRED.STLB_MISS_STORES", IAP_EVENT_D0H_12H) \ 3653 __PMC_EV_ALIAS("MEM_UOPS_RETIRED.SPLIT_LOADS", IAP_EVENT_D0H_41H) \ 3654 __PMC_EV_ALIAS("MEM_UOPS_RETIRED.SPLIT_STORES", IAP_EVENT_D0H_42H) \ 3655 __PMC_EV_ALIAS("MEM_UOPS_RETIRED.ALL_LOADS", IAP_EVENT_D0H_81H) \ 3656 __PMC_EV_ALIAS("MEM_UOPS_RETIRED.ALL_STORES", IAP_EVENT_D0H_82H) \ 3657 __PMC_EV_ALIAS("MEM_LOAD_UOPS_RETIRED.L1_HIT", IAP_EVENT_D1H_01H) \ 3658 __PMC_EV_ALIAS("MEM_LOAD_UOPS_RETIRED.L2_HIT", IAP_EVENT_D1H_02H) \ 3659 __PMC_EV_ALIAS("MEM_LOAD_UOPS_RETIRED.LLC_HIT", IAP_EVENT_D1H_04H) \ 3660 __PMC_EV_ALIAS("MEM_LOAD_UOPS_RETIRED.L1_MISS", IAP_EVENT_D1H_08H) \ 3661 __PMC_EV_ALIAS("MEM_LOAD_UOPS_RETIRED.L2_MISS", IAP_EVENT_D1H_10H) \ 3662 __PMC_EV_ALIAS("MEM_LOAD_UOPS_RETIRED.L3_MISS", IAP_EVENT_D1H_20H) \ 3663 __PMC_EV_ALIAS("MEM_LOAD_UOPS_RETIRED.HIT_LFB", IAP_EVENT_D1H_40H) \ 3664 __PMC_EV_ALIAS("MEM_LOAD_UOPS_LLC_HIT_RETIRED.XSNP_MISS", \ 3665 IAP_EVENT_D2H_01H) \ 3666 __PMC_EV_ALIAS("MEM_LOAD_UOPS_LLC_HIT_RETIRED.XSNP_HIT", \ 3667 IAP_EVENT_D2H_02H) \ 3668 __PMC_EV_ALIAS("MEM_LOAD_UOPS_LLC_HIT_RETIRED.XSNP_HITM", \ 3669 IAP_EVENT_D2H_04H) \ 3670 __PMC_EV_ALIAS("MEM_LOAD_UOPS_LLC_HIT_RETIRED.XSNP_NONE", \ 3671 IAP_EVENT_D2H_08H) \ 3672 __PMC_EV_ALIAS("MEM_LOAD_UOPS_LLC_HIT_RETIRED.ALL", \ 3673 IAP_EVENT_D2H_0FH) \ 3674 __PMC_EV_ALIAS("MEM_LOAD_UOPS_LLC_MISS_RETIRED.LOCAL_DRAM", \ 3675 IAP_EVENT_D3H_01H) \ 3676 __PMC_EV_ALIAS("BACLEARS.ANY", IAP_EVENT_E6H_1FH) \ 3677 __PMC_EV_ALIAS("L2_TRANS.DEMAND_DATA_RD", IAP_EVENT_F0H_01H) \ 3678 __PMC_EV_ALIAS("L2_TRANS.RFO", IAP_EVENT_F0H_02H) \ 3679 __PMC_EV_ALIAS("L2_TRANS.CODE_RD", IAP_EVENT_F0H_04H) \ 3680 __PMC_EV_ALIAS("L2_TRANS.ALL_PF", IAP_EVENT_F0H_08H) \ 3681 __PMC_EV_ALIAS("L2_TRANS.L1D_WB", IAP_EVENT_F0H_10H) \ 3682 __PMC_EV_ALIAS("L2_TRANS.L2_FILL", IAP_EVENT_F0H_20H) \ 3683 __PMC_EV_ALIAS("L2_TRANS.L2_WB", IAP_EVENT_F0H_40H) \ 3684 __PMC_EV_ALIAS("L2_TRANS.ALL_REQUESTS", IAP_EVENT_F0H_80H) \ 3685 __PMC_EV_ALIAS("L2_LINES_IN.I", IAP_EVENT_F1H_01H) \ 3686 __PMC_EV_ALIAS("L2_LINES_IN.S", IAP_EVENT_F1H_02H) \ 3687 __PMC_EV_ALIAS("L2_LINES_IN.E", IAP_EVENT_F1H_04H) \ 3688 __PMC_EV_ALIAS("L2_LINES_IN.ALL", IAP_EVENT_F1H_07H) \ 3689 __PMC_EV_ALIAS("L2_LINES_OUT.DEMAND_CLEAN", IAP_EVENT_F2H_05H) \ 3690 __PMC_EV_ALIAS("L2_LINES_OUT.DEMAND_DIRTY", IAP_EVENT_F2H_06H) 3691 3692 3693 #define __PMC_EV_ALIAS_HASWELL() \ 3694 __PMC_EV_ALIAS_INTEL_ARCHITECTURAL() \ 3695 __PMC_EV_ALIAS("LD_BLOCKS.STORE_FORWARD", IAP_EVENT_03H_02H) \ 3696 __PMC_EV_ALIAS("LD_BLOCKS.NO_SR", IAP_EVENT_03H_08H) \ 3697 __PMC_EV_ALIAS("MISALIGN_MEM_REF.LOADS", IAP_EVENT_05H_01H) \ 3698 __PMC_EV_ALIAS("MISALIGN_MEM_REF.STORES", IAP_EVENT_05H_02H) \ 3699 __PMC_EV_ALIAS("LD_BLOCKS_PARTIAL.ADDRESS_ALIAS", IAP_EVENT_07H_01H) \ 3700 __PMC_EV_ALIAS("DTLB_LOAD_MISSES.MISS_CAUSES_A_WALK", IAP_EVENT_08H_01H)\ 3701 __PMC_EV_ALIAS("DTLB_LOAD_MISSES.WALK_COMPLETED_4K", IAP_EVENT_08H_02H) \ 3702 __PMC_EV_ALIAS("DTLB_LOAD_MISSES.WALK_COMPLETED_2M_4M", \ 3703 IAP_EVENT_08H_04H) \ 3704 __PMC_EV_ALIAS("DTLB_LOAD_MISSES.WALK_COMPLETED", IAP_EVENT_08H_0EH) \ 3705 __PMC_EV_ALIAS("DTLB_LOAD_MISSES.WALK_DURATION", IAP_EVENT_08H_10H) \ 3706 __PMC_EV_ALIAS("DTLB_LOAD_MISSES.STLB_HIT_4K", IAP_EVENT_08H_20H) \ 3707 __PMC_EV_ALIAS("DTLB_LOAD_MISSES.STLB_HIT_2M", IAP_EVENT_08H_40H) \ 3708 __PMC_EV_ALIAS("DTLB_LOAD_MISSES.STLB_HIT", IAP_EVENT_08H_60H) \ 3709 __PMC_EV_ALIAS("DTLB_LOAD_MISSES.PDE_CACHE_MISS", IAP_EVENT_08H_80H) \ 3710 __PMC_EV_ALIAS("INT_MISC.RECOVERY_CYCLES", IAP_EVENT_0DH_03H) \ 3711 __PMC_EV_ALIAS("UOPS_ISSUED.ANY", IAP_EVENT_0EH_01H) \ 3712 __PMC_EV_ALIAS("UOPS_ISSUED.FLAGS_MERGE", IAP_EVENT_0EH_10H) \ 3713 __PMC_EV_ALIAS("UOPS_ISSUED.SLOW_LEA", IAP_EVENT_0EH_20H) \ 3714 __PMC_EV_ALIAS("UOPS_ISSUED.SINGLE_MUL", IAP_EVENT_0EH_40H) \ 3715 __PMC_EV_ALIAS("L2_RQSTS.DEMAND_DATA_RD_MISS", IAP_EVENT_24H_21H) \ 3716 __PMC_EV_ALIAS("L2_RQSTS.DEMAND_DATA_RD_HIT", IAP_EVENT_24H_41H) \ 3717 __PMC_EV_ALIAS("L2_RQSTS.ALL_DEMAND_DATA_RD", IAP_EVENT_24H_E1H) \ 3718 __PMC_EV_ALIAS("L2_RQSTS.RFO_HIT", IAP_EVENT_24H_42H) \ 3719 __PMC_EV_ALIAS("L2_RQSTS.RFO_MISS", IAP_EVENT_24H_22H) \ 3720 __PMC_EV_ALIAS("L2_RQSTS.ALL_RFO", IAP_EVENT_24H_E2H) \ 3721 __PMC_EV_ALIAS("L2_RQSTS.CODE_RD_HIT", IAP_EVENT_24H_44H) \ 3722 __PMC_EV_ALIAS("L2_RQSTS.CODE_RD_MISS", IAP_EVENT_24H_24H) \ 3723 __PMC_EV_ALIAS("L2_RQSTS.ALL_DEMAND_MISS", IAP_EVENT_24H_27H) \ 3724 __PMC_EV_ALIAS("L2_RQSTS.ALL_DEMAND_REFERENCES", IAP_EVENT_24H_E7H) \ 3725 __PMC_EV_ALIAS("L2_RQSTS.ALL_CODE_RD", IAP_EVENT_24H_E4H) \ 3726 __PMC_EV_ALIAS("L2_RQSTS.L2_PF_HIT", IAP_EVENT_24H_50H) \ 3727 __PMC_EV_ALIAS("L2_RQSTS.L2_PF_MISS", IAP_EVENT_24H_30H) \ 3728 __PMC_EV_ALIAS("L2_RQSTS.ALL_PF", IAP_EVENT_24H_F8H) \ 3729 __PMC_EV_ALIAS("L2_RQSTS.MISS", IAP_EVENT_24H_3FH) \ 3730 __PMC_EV_ALIAS("L2_RQSTS.REFERENCES", IAP_EVENT_24H_FFH) \ 3731 __PMC_EV_ALIAS("L2_DEMAND_RQSTS.WB_HIT", IAP_EVENT_27H_50H) \ 3732 __PMC_EV_ALIAS("LONGEST_LAT_CACHE.REFERENCE", IAP_EVENT_2EH_4FH) \ 3733 __PMC_EV_ALIAS("LONGEST_LAT_CACHE.MISS", IAP_EVENT_2EH_41H) \ 3734 __PMC_EV_ALIAS("CPU_CLK_UNHALTED.THREAD_P", IAP_EVENT_3CH_00H) \ 3735 __PMC_EV_ALIAS("CPU_CLK_THREAD_UNHALTED.REF_XCLK", IAP_EVENT_3CH_01H) \ 3736 __PMC_EV_ALIAS("L1D_PEND_MISS.PENDING", IAP_EVENT_48H_01H) \ 3737 __PMC_EV_ALIAS("DTLB_STORE_MISSES.MISS_CAUSES_A_WALK", \ 3738 IAP_EVENT_49H_01H) \ 3739 __PMC_EV_ALIAS("DTLB_STORE_MISSES.WALK_COMPLETED_4K", \ 3740 IAP_EVENT_49H_02H) \ 3741 __PMC_EV_ALIAS("DTLB_STORE_MISSES.WALK_COMPLETED_2M_4M", \ 3742 IAP_EVENT_49H_04H) \ 3743 __PMC_EV_ALIAS("DTLB_STORE_MISSES.WALK_COMPLETED", IAP_EVENT_49H_0EH) \ 3744 __PMC_EV_ALIAS("DTLB_STORE_MISSES.WALK_DURATION", IAP_EVENT_49H_10H) \ 3745 __PMC_EV_ALIAS("DTLB_STORE_MISSES.STLB_HIT_4K", IAP_EVENT_49H_20H) \ 3746 __PMC_EV_ALIAS("DTLB_STORE_MISSES.STLB_HIT_2M", IAP_EVENT_49H_40H) \ 3747 __PMC_EV_ALIAS("DTLB_STORE_MISSES.STLB_HIT", IAP_EVENT_49H_60H) \ 3748 __PMC_EV_ALIAS("DTLB_STORE_MISSES.PDE_CACHE_MISS", IAP_EVENT_49H_80H) \ 3749 __PMC_EV_ALIAS("LOAD_HIT_PRE.SW_PF", IAP_EVENT_4CH_01H) \ 3750 __PMC_EV_ALIAS("LOAD_HIT_PRE.HW_PF", IAP_EVENT_4CH_02H) \ 3751 __PMC_EV_ALIAS("L1D.REPLACEMENT", IAP_EVENT_51H_01H) \ 3752 __PMC_EV_ALIAS("MOVE_ELIMINATION.INT_NOT_ELIMINATED", \ 3753 IAP_EVENT_58H_04H) \ 3754 __PMC_EV_ALIAS("MOVE_ELIMINATION.SMID_NOT_ELIMINATED", \ 3755 IAP_EVENT_58H_08H) \ 3756 __PMC_EV_ALIAS("MOVE_ELIMINATION.INT_ELIMINATED", IAP_EVENT_58H_01H) \ 3757 __PMC_EV_ALIAS("MOVE_ELIMINATION.SMID_ELIMINATED", IAP_EVENT_58H_02H) \ 3758 __PMC_EV_ALIAS("CPL_CYCLES.RING0", IAP_EVENT_5CH_01H) \ 3759 __PMC_EV_ALIAS("CPL_CYCLES.RING123", IAP_EVENT_5CH_02H) \ 3760 __PMC_EV_ALIAS("RS_EVENTS.EMPTY_CYCLES", IAP_EVENT_5EH_01H) \ 3761 __PMC_EV_ALIAS("OFFCORE_REQUESTS_OUTSTANDING.DEMAND_DATA_RD", \ 3762 IAP_EVENT_60H_01H) \ 3763 __PMC_EV_ALIAS("OFFCORE_REQUESTS_OUTSTANDING.DEMAND_CODE_RD", \ 3764 IAP_EVENT_60H_02H) \ 3765 __PMC_EV_ALIAS("OFFCORE_REQUESTS_OUTSTANDING.DEMAND_RFO", \ 3766 IAP_EVENT_60H_04H) \ 3767 __PMC_EV_ALIAS("OFFCORE_REQUESTS_OUTSTANDING.ALL_DATA_RD", \ 3768 IAP_EVENT_60H_08H) \ 3769 __PMC_EV_ALIAS("LOCK_CYCLES.SPLIT_LOCK_UC_LOCK_DURATION", \ 3770 IAP_EVENT_63H_01H) \ 3771 __PMC_EV_ALIAS("LOCK_CYCLES.CACHE_LOCK_DURATION", IAP_EVENT_63H_02H) \ 3772 __PMC_EV_ALIAS("IDQ.EMPTY", IAP_EVENT_79H_02H) \ 3773 __PMC_EV_ALIAS("IDQ.MITE_UOPS", IAP_EVENT_79H_04H) \ 3774 __PMC_EV_ALIAS("IDQ.DSB_UOPS", IAP_EVENT_79H_08H) \ 3775 __PMC_EV_ALIAS("IDQ.MS_DSB_UOPS", IAP_EVENT_79H_10H) \ 3776 __PMC_EV_ALIAS("IDQ.MS_MITE_UOPS", IAP_EVENT_79H_20H) \ 3777 __PMC_EV_ALIAS("IDQ.MS_UOPS", IAP_EVENT_79H_30H) \ 3778 __PMC_EV_ALIAS("IDQ.ALL_DSB_CYCLES_ANY_UOPS", IAP_EVENT_79H_18H) \ 3779 __PMC_EV_ALIAS("IDQ.ALL_MITE_CYCLES_ANY_UOPS", IAP_EVENT_79H_24H) \ 3780 __PMC_EV_ALIAS("IDQ.ALL_MITE_CYCLES_4_UOPS", IAP_EVENT_79H_24H) \ 3781 __PMC_EV_ALIAS("IDQ.MITE_ALL_UOPS", IAP_EVENT_79H_3CH) \ 3782 __PMC_EV_ALIAS("ICACHE.MISSES", IAP_EVENT_80H_02H) \ 3783 __PMC_EV_ALIAS("ITLB_MISSES.MISS_CAUSES_A_WALK", IAP_EVENT_85H_01H) \ 3784 __PMC_EV_ALIAS("ITLB_MISSES.WALK_COMPLETED_4K", IAP_EVENT_85H_02H) \ 3785 __PMC_EV_ALIAS("TLB_MISSES.WALK_COMPLETED_2M_4M", IAP_EVENT_85H_04H) \ 3786 __PMC_EV_ALIAS("ITLB_MISSES.WALK_COMPLETED", IAP_EVENT_85H_0EH) \ 3787 __PMC_EV_ALIAS("ITLB_MISSES.WALK_DURATION", IAP_EVENT_85H_10H) \ 3788 __PMC_EV_ALIAS("ITLB_MISSES.STLB_HIT_4K", IAP_EVENT_85H_20H) \ 3789 __PMC_EV_ALIAS("ITLB_MISSES.STLB_HIT_2M", IAP_EVENT_85H_40H) \ 3790 __PMC_EV_ALIAS("ITLB_MISSES.STLB_HIT", IAP_EVENT_85H_60H) \ 3791 __PMC_EV_ALIAS("ILD_STALL.LCP", IAP_EVENT_87H_01H) \ 3792 __PMC_EV_ALIAS("ILD_STALL.IQ_FULL", IAP_EVENT_87H_04H) \ 3793 __PMC_EV_ALIAS("BR_INST_EXEC.NONTAKEN_COND", IAP_EVENT_88H_41H) \ 3794 __PMC_EV_ALIAS("BR_INST_EXEC.TAKEN_COND", IAP_EVENT_88H_81H) \ 3795 __PMC_EV_ALIAS("BR_INST_EXEC.DIRECT_JMP", IAP_EVENT_88H_82H) \ 3796 __PMC_EV_ALIAS("BR_INST_EXEC.INDIRECT_JMP_NON_CALL_RET", \ 3797 IAP_EVENT_88H_84H) \ 3798 __PMC_EV_ALIAS("BR_INST_EXEC.RETURN_NEAR", IAP_EVENT_88H_88H) \ 3799 __PMC_EV_ALIAS("BR_INST_EXEC.DIRECT_NEAR_CALL", IAP_EVENT_88H_90H) \ 3800 __PMC_EV_ALIAS("BR_INST_EXEC.INDIRECT_NEAR_CALL", IAP_EVENT_88H_A0H) \ 3801 __PMC_EV_ALIAS("BR_INST_EXEC.ALL_BRANCHES", IAP_EVENT_88H_FFH) \ 3802 __PMC_EV_ALIAS("BR_MISP_EXEC.NONTAKEN_COND", IAP_EVENT_89H_41H) \ 3803 __PMC_EV_ALIAS("BR_MISP_EXEC.TAKEN_COND", IAP_EVENT_89H_81H) \ 3804 __PMC_EV_ALIAS("BR_MISP_EXEC.INDIRECT_JMP_NON_CALL_RET", \ 3805 IAP_EVENT_89H_84H) \ 3806 __PMC_EV_ALIAS("BR_MISP_EXEC.RETURN_NEAR", IAP_EVENT_89H_88H) \ 3807 __PMC_EV_ALIAS("BR_MISP_EXEC.DIRECT_NEAR_CALL", IAP_EVENT_89H_90H) \ 3808 __PMC_EV_ALIAS("BR_MISP_EXEC.INDIRECT_NEAR_CALL", IAP_EVENT_89H_A0H) \ 3809 __PMC_EV_ALIAS("BR_MISP_EXEC.ALL_BRANCHES", IAP_EVENT_89H_FFH) \ 3810 __PMC_EV_ALIAS("IDQ_UOPS_NOT_DELIVERED.CORE", IAP_EVENT_9CH_01H) \ 3811 __PMC_EV_ALIAS("UOPS_EXECUTED_PORT.PORT_0", IAP_EVENT_A1H_01H) \ 3812 __PMC_EV_ALIAS("UOPS_EXECUTED_PORT.PORT_1", IAP_EVENT_A1H_02H) \ 3813 __PMC_EV_ALIAS("UOPS_EXECUTED_PORT.PORT_2", IAP_EVENT_A1H_04H) \ 3814 __PMC_EV_ALIAS("UOPS_EXECUTED_PORT.PORT_3", IAP_EVENT_A1H_08H) \ 3815 __PMC_EV_ALIAS("UOPS_EXECUTED_PORT.PORT_4", IAP_EVENT_A1H_10H) \ 3816 __PMC_EV_ALIAS("UOPS_EXECUTED_PORT.PORT_5", IAP_EVENT_A1H_20H) \ 3817 __PMC_EV_ALIAS("UOPS_EXECUTED_PORT.PORT_6", IAP_EVENT_A1H_40H) \ 3818 __PMC_EV_ALIAS("UOPS_EXECUTED_PORT.PORT_7", IAP_EVENT_A1H_80H) \ 3819 __PMC_EV_ALIAS("RESOURCE_STALLS.ANY", IAP_EVENT_A2H_01H) \ 3820 __PMC_EV_ALIAS("RESOURCE_STALLS.RS", IAP_EVENT_A2H_04H) \ 3821 __PMC_EV_ALIAS("RESOURCE_STALLS.SB", IAP_EVENT_A2H_08H) \ 3822 __PMC_EV_ALIAS("RESOURCE_STALLS.ROB", IAP_EVENT_A2H_10H) \ 3823 __PMC_EV_ALIAS("CYCLE_ACTIVITY.CYCLES_L2_PENDING", IAP_EVENT_A3H_01H) \ 3824 __PMC_EV_ALIAS("CYCLE_ACTIVITY.CYCLES_LDM_PENDING", IAP_EVENT_A3H_02H) \ 3825 __PMC_EV_ALIAS("CYCLE_ACTIVITY.STALLS_L2_PENDING", IAP_EVENT_A3H_05H) \ 3826 __PMC_EV_ALIAS("CYCLE_ACTIVITY.CYCLES_L1D_PENDING", IAP_EVENT_A3H_08H) \ 3827 __PMC_EV_ALIAS("CYCLE_ACTIVITY.STALLS_L1D_PENDING", IAP_EVENT_A3H_0CH) \ 3828 __PMC_EV_ALIAS("LSD.UOPS", IAP_EVENT_A8H_01H) \ 3829 __PMC_EV_ALIAS("ITLB.ITLB_FLUSH", IAP_EVENT_AEH_01H) \ 3830 __PMC_EV_ALIAS("OFFCORE_REQUESTS.DEMAND_DATA_RD", IAP_EVENT_B0H_01H) \ 3831 __PMC_EV_ALIAS("OFFCORE_REQUESTS.DEMAND_CODE_RD", IAP_EVENT_B0H_02H) \ 3832 __PMC_EV_ALIAS("OFFCORE_REQUESTS.DEMAND_RFO", IAP_EVENT_B0H_04H) \ 3833 __PMC_EV_ALIAS("OFFCORE_REQUESTS.ALL_DATA_RD", IAP_EVENT_B0H_08H) \ 3834 __PMC_EV_ALIAS("UOPS_EXECUTED.CORE", IAP_EVENT_B1H_02H) \ 3835 __PMC_EV_ALIAS("OFF_CORE_RESPONSE_0", IAP_EVENT_B7H_01H) \ 3836 __PMC_EV_ALIAS("OFF_CORE_RESPONSE_1", IAP_EVENT_BBH_01H) \ 3837 __PMC_EV_ALIAS("PAGE_WALKER_LOADS.DTLB_L1", IAP_EVENT_BCH_11H) \ 3838 __PMC_EV_ALIAS("PAGE_WALKER_LOADS.ITLB_L1", IAP_EVENT_BCH_21H) \ 3839 __PMC_EV_ALIAS("PAGE_WALKER_LOADS.DTLB_L2", IAP_EVENT_BCH_12H) \ 3840 __PMC_EV_ALIAS("PAGE_WALKER_LOADS.ITLB_L2", IAP_EVENT_BCH_22H) \ 3841 __PMC_EV_ALIAS("PAGE_WALKER_LOADS.DTLB_L3", IAP_EVENT_BCH_14H) \ 3842 __PMC_EV_ALIAS("PAGE_WALKER_LOADS.ITLB_L3", IAP_EVENT_BCH_24H) \ 3843 __PMC_EV_ALIAS("PAGE_WALKER_LOADS.DTLB_MEMORY", IAP_EVENT_BCH_18H) \ 3844 __PMC_EV_ALIAS("PAGE_WALKER_LOADS.ITLB_MEMORY", IAP_EVENT_BCH_28H) \ 3845 __PMC_EV_ALIAS("TLB_FLUSH.DTLB_THREAD", IAP_EVENT_BDH_01H) \ 3846 __PMC_EV_ALIAS("TLB_FLUSH.STLB_ANY", IAP_EVENT_BDH_20H) \ 3847 __PMC_EV_ALIAS("INST_RETIRED.ANY_P", IAP_EVENT_C0H_00H) \ 3848 __PMC_EV_ALIAS("INST_RETIRED.PREC_DIST", IAP_EVENT_C0H_01H) \ 3849 __PMC_EV_ALIAS("OTHER_ASSISTS.AVX_TO_SSE", IAP_EVENT_C1H_08H) \ 3850 __PMC_EV_ALIAS("OTHER_ASSISTS.SSE_TO_AVX", IAP_EVENT_C1H_10H) \ 3851 __PMC_EV_ALIAS("OTHER_ASSISTS.ANY_WB_ASSIST", IAP_EVENT_C1H_40H) \ 3852 __PMC_EV_ALIAS("UOPS_RETIRED.ALL", IAP_EVENT_C2H_01H) \ 3853 __PMC_EV_ALIAS("UOPS_RETIRED.RETIRE_SLOTS", IAP_EVENT_C2H_02H) \ 3854 __PMC_EV_ALIAS("MACHINE_CLEARS.MEMORY_ORDERING", IAP_EVENT_C3H_02H) \ 3855 __PMC_EV_ALIAS("MACHINE_CLEARS.SMC", IAP_EVENT_C3H_04H) \ 3856 __PMC_EV_ALIAS("MACHINE_CLEARS.MASKMOV", IAP_EVENT_C3H_20H) \ 3857 __PMC_EV_ALIAS("BR_INST_RETIRED.ALL_BRANCHES", IAP_EVENT_C4H_00H) \ 3858 __PMC_EV_ALIAS("BR_INST_RETIRED.CONDITIONAL", IAP_EVENT_C4H_01H) \ 3859 __PMC_EV_ALIAS("BR_INST_RETIRED.NEAR_CALL", IAP_EVENT_C4H_02H) \ 3860 __PMC_EV_ALIAS("BR_INST_RETIRED.ALL_BRANCHES", IAP_EVENT_C4H_04H) \ 3861 __PMC_EV_ALIAS("BR_INST_RETIRED.NEAR_RETURN", IAP_EVENT_C4H_08H) \ 3862 __PMC_EV_ALIAS("BR_INST_RETIRED.NOT_TAKEN", IAP_EVENT_C4H_10H) \ 3863 __PMC_EV_ALIAS("BR_INST_RETIRED.NEAR_TAKEN", IAP_EVENT_C4H_20H) \ 3864 __PMC_EV_ALIAS("BR_INST_RETIRED.FAR_BRANCH", IAP_EVENT_C4H_40H) \ 3865 __PMC_EV_ALIAS("BR_MISP_RETIRED.ALL_BRANCHES", IAP_EVENT_C5H_00H) \ 3866 __PMC_EV_ALIAS("BR_MISP_RETIRED.CONDITIONAL", IAP_EVENT_C5H_01H) \ 3867 __PMC_EV_ALIAS("BR_MISP_U_RETIRED.CONDITIONAL", IAP_EVENT_C5H_04H) \ 3868 __PMC_EV_ALIAS("BR_MISP_RETIRED.NEAR_TAKEN", IAP_EVENT_C5H_20H) \ 3869 __PMC_EV_ALIAS("FP_ASSIST.X87_OUTPUT", IAP_EVENT_CAH_02H) \ 3870 __PMC_EV_ALIAS("FP_ASSIST.X87_INPUT", IAP_EVENT_CAH_04H) \ 3871 __PMC_EV_ALIAS("FP_ASSIST.SIMD_OUTPUT", IAP_EVENT_CAH_08H) \ 3872 __PMC_EV_ALIAS("FP_ASSIST.SIMD_INPUT", IAP_EVENT_CAH_10H) \ 3873 __PMC_EV_ALIAS("FP_ASSIST.ANY", IAP_EVENT_CAH_1EH) \ 3874 __PMC_EV_ALIAS("ROB_MISC_EVENTS.LBR_INSERTS", IAP_EVENT_CCH_20H) \ 3875 __PMC_EV_ALIAS("MEM_TRANS_RETIRED.LOAD_LATENCY", IAP_EVENT_CDH_01H) \ 3876 __PMC_EV_ALIAS("MEM_UOPS_RETIRED.STLB_MISS_LOADS", IAP_EVENT_D0H_11H) \ 3877 __PMC_EV_ALIAS("MEM_UOPS_RETIRED.STLB_MISS_STORES", IAP_EVENT_D0H_12H) \ 3878 __PMC_EV_ALIAS("MEM_UOPS_RETIRED.SPLIT_LOADS", IAP_EVENT_D0H_41H) \ 3879 __PMC_EV_ALIAS("MEM_UOPS_RETIRED.SPLIT_STORES", IAP_EVENT_D0H_42H) \ 3880 __PMC_EV_ALIAS("MEM_UOPS_RETIRED.ALL_LOADS", IAP_EVENT_D0H_81H) \ 3881 __PMC_EV_ALIAS("MEM_UOPS_RETIRED.ALL_STORES", IAP_EVENT_D0H_82H) \ 3882 __PMC_EV_ALIAS("MEM_LOAD_UOPS_RETIRED.L1_HIT", IAP_EVENT_D1H_01H) \ 3883 __PMC_EV_ALIAS("MEM_LOAD_UOPS_RETIRED.L2_HIT", IAP_EVENT_D1H_02H) \ 3884 __PMC_EV_ALIAS("MEM_LOAD_UOPS_RETIRED.LLC_HIT", IAP_EVENT_D1H_04H) \ 3885 __PMC_EV_ALIAS("MEM_LOAD_UOPS_RETIRED.L1_MISS", IAP_EVENT_D1H_08H) \ 3886 __PMC_EV_ALIAS("MEM_LOAD_UOPS_RETIRED.L2_MISS", IAP_EVENT_D1H_10H) \ 3887 __PMC_EV_ALIAS("MEM_LOAD_UOPS_RETIRED.L3_MISS", IAP_EVENT_D1H_20H) \ 3888 __PMC_EV_ALIAS("MEM_LOAD_UOPS_RETIRED.HIT_LFB", IAP_EVENT_D1H_40H) \ 3889 __PMC_EV_ALIAS("MEM_LOAD_UOPS_LLC_HIT_RETIRED.XSNP_MISS", \ 3890 IAP_EVENT_D2H_01H) \ 3891 __PMC_EV_ALIAS("MEM_LOAD_UOPS_LLC_HIT_RETIRED.XSNP_HIT", \ 3892 IAP_EVENT_D2H_02H) \ 3893 __PMC_EV_ALIAS("MEM_LOAD_UOPS_LLC_HIT_RETIRED.XSNP_HITM", \ 3894 IAP_EVENT_D2H_04H) \ 3895 __PMC_EV_ALIAS("MEM_LOAD_UOPS_LLC_HIT_RETIRED.XSNP_NONE", \ 3896 IAP_EVENT_D2H_08H) \ 3897 __PMC_EV_ALIAS("MEM_LOAD_UOPS_LLC_HIT_RETIRED.ALL", \ 3898 IAP_EVENT_D2H_0FH) \ 3899 __PMC_EV_ALIAS("MEM_LOAD_UOPS_LLC_MISS_RETIRED.LOCAL_DRAM", \ 3900 IAP_EVENT_D3H_01H) \ 3901 __PMC_EV_ALIAS("BACLEARS.ANY", IAP_EVENT_E6H_1FH) \ 3902 __PMC_EV_ALIAS("L2_TRANS.DEMAND_DATA_RD", IAP_EVENT_F0H_01H) \ 3903 __PMC_EV_ALIAS("L2_TRANS.RFO", IAP_EVENT_F0H_02H) \ 3904 __PMC_EV_ALIAS("L2_TRANS.CODE_RD", IAP_EVENT_F0H_04H) \ 3905 __PMC_EV_ALIAS("L2_TRANS.ALL_PF", IAP_EVENT_F0H_08H) \ 3906 __PMC_EV_ALIAS("L2_TRANS.L1D_WB", IAP_EVENT_F0H_10H) \ 3907 __PMC_EV_ALIAS("L2_TRANS.L2_FILL", IAP_EVENT_F0H_20H) \ 3908 __PMC_EV_ALIAS("L2_TRANS.L2_WB", IAP_EVENT_F0H_40H) \ 3909 __PMC_EV_ALIAS("L2_TRANS.ALL_REQUESTS", IAP_EVENT_F0H_80H) \ 3910 __PMC_EV_ALIAS("L2_LINES_IN.I", IAP_EVENT_F1H_01H) \ 3911 __PMC_EV_ALIAS("L2_LINES_IN.S", IAP_EVENT_F1H_02H) \ 3912 __PMC_EV_ALIAS("L2_LINES_IN.E", IAP_EVENT_F1H_04H) \ 3913 __PMC_EV_ALIAS("L2_LINES_IN.ALL", IAP_EVENT_F1H_07H) \ 3914 __PMC_EV_ALIAS("L2_LINES_OUT.DEMAND_CLEAN", IAP_EVENT_F2H_05H) \ 3915 __PMC_EV_ALIAS("L2_LINES_OUT.DEMAND_DIRTY", IAP_EVENT_F2H_06H) 3916 3917 3918 #define __PMC_EV_ALIAS_IVYBRIDGE() \ 3919 __PMC_EV_ALIAS_INTEL_ARCHITECTURAL() \ 3920 __PMC_EV_ALIAS("LD_BLOCKS.STORE_FORWARD", IAP_EVENT_03H_02H) \ 3921 __PMC_EV_ALIAS("LD_BLOCKS.NO_SR", IAP_EVENT_03H_08H) \ 3922 __PMC_EV_ALIAS("MISALIGN_MEM_REF.LOADS", IAP_EVENT_05H_01H) \ 3923 __PMC_EV_ALIAS("MISALIGN_MEM_REF.STORES", IAP_EVENT_05H_02H) \ 3924 __PMC_EV_ALIAS("LD_BLOCKS_PARTIAL.ADDRESS_ALIAS", IAP_EVENT_07H_01H) \ 3925 __PMC_EV_ALIAS("INT_MISC.RECOVERY_CYCLES", IAP_EVENT_0DH_03H) \ 3926 __PMC_EV_ALIAS("DTLB_LOAD_MISSES.MISS_CAUSES_A_WALK", IAP_EVENT_08H_81H)\ 3927 __PMC_EV_ALIAS("DTLB_LOAD_MISSES.WALK_COMPLETED", IAP_EVENT_08H_82H) \ 3928 __PMC_EV_ALIAS("DTLB_LOAD_MISSES.WALK_DURATION", IAP_EVENT_08H_84H) \ 3929 __PMC_EV_ALIAS("DTLB_LOAD_MISSES.LARGE_PG_WALK_DURATION", \ 3930 IAP_EVENT_08H_88H) \ 3931 __PMC_EV_ALIAS("UOPS_ISSUED.ANY", IAP_EVENT_0EH_01H) \ 3932 __PMC_EV_ALIAS("UOPS_ISSUED.FLAGS_MERGE", IAP_EVENT_0EH_10H) \ 3933 __PMC_EV_ALIAS("UOPS_ISSUED.SLOW_LEA", IAP_EVENT_0EH_20H) \ 3934 __PMC_EV_ALIAS("UOPS_ISSUED.SINGLE_MUL", IAP_EVENT_0EH_40H) \ 3935 __PMC_EV_ALIAS("FP_COMP_OPS_EXE.X87", IAP_EVENT_10H_01H) \ 3936 __PMC_EV_ALIAS("FP_COMP_OPS_EXE.SSE_FP_PACKED_DOUBLE", \ 3937 IAP_EVENT_10H_10H) \ 3938 __PMC_EV_ALIAS("FP_COMP_OPS_EXE.SSE_FP_SCALAR_SINGLE", \ 3939 IAP_EVENT_10H_20H) \ 3940 __PMC_EV_ALIAS("FP_COMP_OPS_EXE.SSE_PACKED_SINGLE", IAP_EVENT_10H_40H) \ 3941 __PMC_EV_ALIAS("FP_COMP_OPS_EXE.SSE_SCALAR_DOUBLE", IAP_EVENT_10H_80H) \ 3942 __PMC_EV_ALIAS("SIMD_FP_256.PACKED_SINGLE", IAP_EVENT_11H_01H) \ 3943 __PMC_EV_ALIAS("SIMD_FP_256.PACKED_DOUBLE", IAP_EVENT_11H_02H) \ 3944 __PMC_EV_ALIAS("ARITH.FPU_DIV_ACTIVE", IAP_EVENT_14H_01H) \ 3945 __PMC_EV_ALIAS("L2_RQSTS.DEMAND_DATA_RD_HIT", IAP_EVENT_24H_01H) \ 3946 __PMC_EV_ALIAS("L2_RQSTS.ALL_DEMAND_DATA_RD", IAP_EVENT_24H_03H) \ 3947 __PMC_EV_ALIAS("L2_RQSTS.RFO_HITS", IAP_EVENT_24H_04H) \ 3948 __PMC_EV_ALIAS("L2_RQSTS.RFO_MISS", IAP_EVENT_24H_08H) \ 3949 __PMC_EV_ALIAS("L2_RQSTS.ALL_RFO", IAP_EVENT_24H_0CH) \ 3950 __PMC_EV_ALIAS("L2_RQSTS.CODE_RD_HIT", IAP_EVENT_24H_10H) \ 3951 __PMC_EV_ALIAS("L2_RQSTS.CODE_RD_MISS", IAP_EVENT_24H_20H) \ 3952 __PMC_EV_ALIAS("L2_RQSTS.ALL_CODE_RD", IAP_EVENT_24H_30H) \ 3953 __PMC_EV_ALIAS("L2_RQSTS.PF_HIT", IAP_EVENT_24H_40H) \ 3954 __PMC_EV_ALIAS("L2_RQSTS.PF_MISS", IAP_EVENT_24H_80H) \ 3955 __PMC_EV_ALIAS("L2_RQSTS.ALL_PF", IAP_EVENT_24H_C0H) \ 3956 __PMC_EV_ALIAS("L2_STORE_LOCK_RQSTS.MISS", IAP_EVENT_27H_01H) \ 3957 __PMC_EV_ALIAS("L2_STORE_LOCK_RQSTS.HIT_M", IAP_EVENT_27H_08H) \ 3958 __PMC_EV_ALIAS("L2_STORE_LOCK_RQSTS.ALL", IAP_EVENT_27H_0FH) \ 3959 __PMC_EV_ALIAS("L2_L1D_WB_RQSTS.MISS", IAP_EVENT_28H_01H) \ 3960 __PMC_EV_ALIAS("L2_L1D_WB_RQSTS.HIT_E", IAP_EVENT_28H_04H) \ 3961 __PMC_EV_ALIAS("L2_L1D_WB_RQSTS.HIT_M", IAP_EVENT_28H_08H) \ 3962 __PMC_EV_ALIAS("L2_L1D_WB_RQSTS.ALL", IAP_EVENT_28H_0FH) \ 3963 __PMC_EV_ALIAS("LONGEST_LAT_CACHE.REFERENCE", IAP_EVENT_2EH_4FH) \ 3964 __PMC_EV_ALIAS("LONGEST_LAT_CACHE.MISS", IAP_EVENT_2EH_41H) \ 3965 __PMC_EV_ALIAS("CPU_CLK_UNHALTED.THREAD_P", IAP_EVENT_3CH_00H) \ 3966 __PMC_EV_ALIAS("CPU_CLK_THREAD_UNHALTED.REF_XCLK", IAP_EVENT_3CH_01H) \ 3967 __PMC_EV_ALIAS("L1D_PEND_MISS.PENDING", IAP_EVENT_48H_01H) \ 3968 __PMC_EV_ALIAS("DTLB_STORE_MISSES.MISS_CAUSES_A_WALK", \ 3969 IAP_EVENT_49H_01H) \ 3970 __PMC_EV_ALIAS("DTLB_STORE_MISSES.WALK_COMPLETED", IAP_EVENT_49H_02H) \ 3971 __PMC_EV_ALIAS("DTLB_STORE_MISSES.WALK_DURATION", IAP_EVENT_49H_04H) \ 3972 __PMC_EV_ALIAS("DTLB_STORE_MISSES.STLB_HIT", IAP_EVENT_49H_10H) \ 3973 __PMC_EV_ALIAS("LOAD_HIT_PRE.SW_PF", IAP_EVENT_4CH_01H) \ 3974 __PMC_EV_ALIAS("LOAD_HIT_PRE.HW_PF", IAP_EVENT_4CH_02H) \ 3975 __PMC_EV_ALIAS("L1D.REPLACEMENT", IAP_EVENT_51H_01H) \ 3976 __PMC_EV_ALIAS("MOVE_ELIMINATION.INT_NOT_ELIMINATED", \ 3977 IAP_EVENT_58H_01H) \ 3978 __PMC_EV_ALIAS("MOVE_ELIMINATION.SIMD_NOT_ELIMINATED", \ 3979 IAP_EVENT_58H_02H) \ 3980 __PMC_EV_ALIAS("MOVE_ELIMINATION.INT_ELIMINATED", IAP_EVENT_58H_04H) \ 3981 __PMC_EV_ALIAS("MOVE_ELIMINATION.SIMD_ELIMINATED", IAP_EVENT_58H_08H) \ 3982 __PMC_EV_ALIAS("CPL_CYCLES.RING0", IAP_EVENT_5CH_01H) \ 3983 __PMC_EV_ALIAS("CPL_CYCLES.RING123", IAP_EVENT_5CH_02H) \ 3984 __PMC_EV_ALIAS("RS_EVENTS.EMPTY_CYCLES", IAP_EVENT_5EH_01H) \ 3985 __PMC_EV_ALIAS("DTLB_LOAD_MISSES.STLB_HIT", IAP_EVENT_5FH_04H) \ 3986 __PMC_EV_ALIAS("OFFCORE_REQUESTS_OUTSTANDING.DEMAND_DATA_RD", \ 3987 IAP_EVENT_60H_01H) \ 3988 __PMC_EV_ALIAS("OFFCORE_REQUESTS_OUTSTANDING.DEMAND_CODE_RD", \ 3989 IAP_EVENT_60H_02H) \ 3990 __PMC_EV_ALIAS("OFFCORE_REQUESTS_OUTSTANDING.DEMAND_RFO", \ 3991 IAP_EVENT_60H_04H) \ 3992 __PMC_EV_ALIAS("OFFCORE_REQUESTS_OUTSTANDING.ALL_DATA_RD", \ 3993 IAP_EVENT_60H_08H) \ 3994 __PMC_EV_ALIAS("LOCK_CYCLES.SPLIT_LOCK_UC_LOCK_DURATION", \ 3995 IAP_EVENT_63H_01H) \ 3996 __PMC_EV_ALIAS("LOCK_CYCLES.CACHE_LOCK_DURATION", IAP_EVENT_63H_02H) \ 3997 __PMC_EV_ALIAS("IDQ.EMPTY", IAP_EVENT_79H_02H) \ 3998 __PMC_EV_ALIAS("IDQ.MITE_UOPS", IAP_EVENT_79H_04H) \ 3999 __PMC_EV_ALIAS("IDQ.DSB_UOPS", IAP_EVENT_79H_08H) \ 4000 __PMC_EV_ALIAS("IDQ.MS_DSB_UOPS", IAP_EVENT_79H_10H) \ 4001 __PMC_EV_ALIAS("IDQ.MS_MITE_UOPS", IAP_EVENT_79H_20H) \ 4002 __PMC_EV_ALIAS("IDQ.MS_UOPS", IAP_EVENT_79H_30H) \ 4003 __PMC_EV_ALIAS("IDQ.ALL_DSB_CYCLES_ANY_UOPS", IAP_EVENT_79H_18H) \ 4004 __PMC_EV_ALIAS("IDQ.ALL_MITE_CYCLES_ANY_UOPS", IAP_EVENT_79H_24H) \ 4005 __PMC_EV_ALIAS("IDQ.ALL_MITE_CYCLES_4_UOPS", IAP_EVENT_79H_24H) \ 4006 __PMC_EV_ALIAS("IDQ.MITE_ALL_UOPS", IAP_EVENT_79H_3CH) \ 4007 __PMC_EV_ALIAS("ICACHE.MISSES", IAP_EVENT_80H_02H) \ 4008 __PMC_EV_ALIAS("ICACHE.IFETCH_STALL", IAP_EVENT_80H_04H) \ 4009 __PMC_EV_ALIAS("ITLB_MISSES.MISS_CAUSES_A_WALK", IAP_EVENT_85H_01H) \ 4010 __PMC_EV_ALIAS("ITLB_MISSES.WALK_COMPLETED", IAP_EVENT_85H_02H) \ 4011 __PMC_EV_ALIAS("ITLB_MISSES.WALK_DURATION", IAP_EVENT_85H_04H) \ 4012 __PMC_EV_ALIAS("ITLB_MISSES.STLB_HIT", IAP_EVENT_85H_10H) \ 4013 __PMC_EV_ALIAS("ILD_STALL.LCP", IAP_EVENT_87H_01H) \ 4014 __PMC_EV_ALIAS("ILD_STALL.IQ_FULL", IAP_EVENT_87H_04H) \ 4015 __PMC_EV_ALIAS("BR_INST_EXEC.NONTAKEN_COND", IAP_EVENT_88H_41H) \ 4016 __PMC_EV_ALIAS("BR_INST_EXEC.TAKEN_COND", IAP_EVENT_88H_81H) \ 4017 __PMC_EV_ALIAS("BR_INST_EXEC.DIRECT_JMP", IAP_EVENT_88H_82H) \ 4018 __PMC_EV_ALIAS("BR_INST_EXEC.INDIRECT_JMP_NON_CALL_RET", \ 4019 IAP_EVENT_88H_84H) \ 4020 __PMC_EV_ALIAS("BR_INST_EXEC.RETURN_NEAR", IAP_EVENT_88H_88H) \ 4021 __PMC_EV_ALIAS("BR_INST_EXEC.DIRECT_NEAR_CALL", IAP_EVENT_88H_90H) \ 4022 __PMC_EV_ALIAS("BR_INST_EXEC.INDIRECT_NEAR_CALL", IAP_EVENT_88H_A0H) \ 4023 __PMC_EV_ALIAS("BR_INST_EXEC.ALL_BRANCHES", IAP_EVENT_88H_FFH) \ 4024 __PMC_EV_ALIAS("BR_MISP_EXEC.NONTAKEN_COND", IAP_EVENT_89H_41H) \ 4025 __PMC_EV_ALIAS("BR_MISP_EXEC.TAKEN_COND", IAP_EVENT_89H_81H) \ 4026 __PMC_EV_ALIAS("BR_MISP_EXEC.INDIRECT_JMP_NON_CALL_RET", \ 4027 IAP_EVENT_89H_84H) \ 4028 __PMC_EV_ALIAS("BR_MISP_EXEC.RETURN_NEAR", IAP_EVENT_89H_88H) \ 4029 __PMC_EV_ALIAS("BR_MISP_EXEC.DIRECT_NEAR_CALL", IAP_EVENT_89H_90H) \ 4030 __PMC_EV_ALIAS("BR_MISP_EXEC.INDIRECT_NEAR_CALL", IAP_EVENT_89H_A0H) \ 4031 __PMC_EV_ALIAS("BR_MISP_EXEC.ALL_BRANCHES", IAP_EVENT_89H_FFH) \ 4032 __PMC_EV_ALIAS("IDQ_UOPS_NOT_DELIVERED.CORE", IAP_EVENT_9CH_01H) \ 4033 __PMC_EV_ALIAS("UOPS_DISPATCHED_PORT.PORT_0", IAP_EVENT_A1H_01H) \ 4034 __PMC_EV_ALIAS("UOPS_DISPATCHED_PORT.PORT_1", IAP_EVENT_A1H_02H) \ 4035 __PMC_EV_ALIAS("UOPS_DISPATCHED_PORT.PORT_2_LD", IAP_EVENT_A1H_04H) \ 4036 __PMC_EV_ALIAS("UOPS_DISPATCHED_PORT.PORT_2_STA", IAP_EVENT_A1H_08H) \ 4037 __PMC_EV_ALIAS("UOPS_DISPATCHED_PORT.PORT_2", IAP_EVENT_A1H_0CH) \ 4038 __PMC_EV_ALIAS("UOPS_DISPATCHED_PORT.PORT_3_LD", IAP_EVENT_A1H_10H) \ 4039 __PMC_EV_ALIAS("UOPS_DISPATCHED_PORT.PORT_3_STA", IAP_EVENT_A1H_20H) \ 4040 __PMC_EV_ALIAS("UOPS_DISPATCHED_PORT.PORT_3", IAP_EVENT_A1H_30H) \ 4041 __PMC_EV_ALIAS("UOPS_DISPATCHED_PORT.PORT_4", IAP_EVENT_A1H_40H) \ 4042 __PMC_EV_ALIAS("UOPS_DISPATCHED_PORT.PORT_5", IAP_EVENT_A1H_80H) \ 4043 __PMC_EV_ALIAS("RESOURCE_STALLS.ANY", IAP_EVENT_A2H_01H) \ 4044 __PMC_EV_ALIAS("RESOURCE_STALLS.RS", IAP_EVENT_A2H_04H) \ 4045 __PMC_EV_ALIAS("RESOURCE_STALLS.SB", IAP_EVENT_A2H_08H) \ 4046 __PMC_EV_ALIAS("RESOURCE_STALLS.ROB", IAP_EVENT_A2H_10H) \ 4047 __PMC_EV_ALIAS("CYCLE_ACTIVITY.CYCLES_L2_PENDING", IAP_EVENT_A3H_01H) \ 4048 __PMC_EV_ALIAS("CYCLE_ACTIVITY.CYCLES_LDM_PENDING", IAP_EVENT_A3H_02H) \ 4049 __PMC_EV_ALIAS("CYCLE_ACTIVITY.CYCLES_NO_EXECUTE", IAP_EVENT_A3H_04H) \ 4050 __PMC_EV_ALIAS("CYCLE_ACTIVITY.CYCLES_L1D_PENDING", IAP_EVENT_A3H_08H) \ 4051 __PMC_EV_ALIAS("LSD.UOPS", IAP_EVENT_A8H_01H) \ 4052 __PMC_EV_ALIAS("DSB2MITE_SWITCHES.COUNT", IAP_EVENT_ABH_01H) \ 4053 __PMC_EV_ALIAS("DSB2MITE_SWITCHES.PENALTY_CYCLES", IAP_EVENT_ABH_02H) \ 4054 __PMC_EV_ALIAS("DSB_FILL.EXCEED_DSB_LINES", IAP_EVENT_ACH_08H) \ 4055 __PMC_EV_ALIAS("ITLB.ITLB_FLUSH", IAP_EVENT_AEH_01H) \ 4056 __PMC_EV_ALIAS("OFFCORE_REQUESTS.DEMAND_DATA_RD", IAP_EVENT_B0H_01H) \ 4057 __PMC_EV_ALIAS("OFFCORE_REQUESTS.DEMAND_CODE_RD", IAP_EVENT_B0H_02H) \ 4058 __PMC_EV_ALIAS("OFFCORE_REQUESTS.DEMAND_RFO", IAP_EVENT_B0H_04H) \ 4059 __PMC_EV_ALIAS("OFFCORE_REQUESTS.ALL_DATA_RD", IAP_EVENT_B0H_08H) \ 4060 __PMC_EV_ALIAS("UOPS_EXECUTED.THREAD", IAP_EVENT_B1H_01H) \ 4061 __PMC_EV_ALIAS("UOPS_EXECUTED.CORE", IAP_EVENT_B1H_02H) \ 4062 __PMC_EV_ALIAS("OFF_CORE_RESPONSE_0", IAP_EVENT_B7H_01H) \ 4063 __PMC_EV_ALIAS("OFF_CORE_RESPONSE_1", IAP_EVENT_BBH_01H) \ 4064 __PMC_EV_ALIAS("TLB_FLUSH.DTLB_THREAD", IAP_EVENT_BDH_01H) \ 4065 __PMC_EV_ALIAS("TLB_FLUSH.STLB_ANY", IAP_EVENT_BDH_20H) \ 4066 __PMC_EV_ALIAS("INST_RETIRED.ANY_P", IAP_EVENT_C0H_00H) \ 4067 __PMC_EV_ALIAS("INST_RETIRED.ALL", IAP_EVENT_C0H_01H) \ 4068 __PMC_EV_ALIAS("OTHER_ASSISTS.AVX_STORE", IAP_EVENT_C1H_08H) \ 4069 __PMC_EV_ALIAS("OTHER_ASSISTS.AVX_TO_SSE", IAP_EVENT_C1H_10H) \ 4070 __PMC_EV_ALIAS("OTHER_ASSISTS.SSE_TO_AVX", IAP_EVENT_C1H_20H) \ 4071 __PMC_EV_ALIAS("OTHER_ASSISTS.WB", IAP_EVENT_C1H_80H) \ 4072 __PMC_EV_ALIAS("UOPS_RETIRED.ALL", IAP_EVENT_C2H_01H) \ 4073 __PMC_EV_ALIAS("UOPS_RETIRED.RETIRE_SLOTS", IAP_EVENT_C2H_02H) \ 4074 __PMC_EV_ALIAS("MACHINE_CLEARS.MEMORY_ORDERING", IAP_EVENT_C3H_02H) \ 4075 __PMC_EV_ALIAS("MACHINE_CLEARS.SMC", IAP_EVENT_C3H_04H) \ 4076 __PMC_EV_ALIAS("MACHINE_CLEARS.MASKMOV", IAP_EVENT_C3H_20H) \ 4077 __PMC_EV_ALIAS("BR_INST_RETIRED.ALL_BRANCHES", IAP_EVENT_C4H_00H) \ 4078 __PMC_EV_ALIAS("BR_INST_RETIRED.CONDITIONAL", IAP_EVENT_C4H_01H) \ 4079 __PMC_EV_ALIAS("BR_INST_RETIRED.NEAR_CALL", IAP_EVENT_C4H_02H) \ 4080 __PMC_EV_ALIAS("BR_INST_RETIRED.ALL_BRANCHES", IAP_EVENT_C4H_04H) \ 4081 __PMC_EV_ALIAS("BR_INST_RETIRED.NEAR_RETURN", IAP_EVENT_C4H_08H) \ 4082 __PMC_EV_ALIAS("BR_INST_RETIRED.NOT_TAKEN", IAP_EVENT_C4H_10H) \ 4083 __PMC_EV_ALIAS("BR_INST_RETIRED.NEAR_TAKEN", IAP_EVENT_C4H_20H) \ 4084 __PMC_EV_ALIAS("BR_INST_RETIRED.FAR_BRANCH", IAP_EVENT_C4H_40H) \ 4085 __PMC_EV_ALIAS("BR_MISP_RETIRED.ALL_BRANCHES", IAP_EVENT_C5H_00H) \ 4086 __PMC_EV_ALIAS("BR_MISP_RETIRED.CONDITIONAL", IAP_EVENT_C5H_01H) \ 4087 __PMC_EV_ALIAS("BR_MISP_RETIRED.NEAR_CALL", IAP_EVENT_C5H_02H) \ 4088 __PMC_EV_ALIAS("BR_MISP_U_RETIRED.ALL_BRANCHES", IAP_EVENT_C5H_04H) \ 4089 __PMC_EV_ALIAS("BR_MISP_RETIRED.NOT_TAKEN", IAP_EVENT_C5H_10H) \ 4090 __PMC_EV_ALIAS("BR_MISP_RETIRED.TAKEN", IAP_EVENT_C5H_20H) \ 4091 __PMC_EV_ALIAS("FP_ASSIST.X87_OUTPUT", IAP_EVENT_CAH_02H) \ 4092 __PMC_EV_ALIAS("FP_ASSIST.X87_INPUT", IAP_EVENT_CAH_04H) \ 4093 __PMC_EV_ALIAS("FP_ASSIST.SIMD_OUTPUT", IAP_EVENT_CAH_08H) \ 4094 __PMC_EV_ALIAS("FP_ASSIST.SIMD_INPUT", IAP_EVENT_CAH_10H) \ 4095 __PMC_EV_ALIAS("FP_ASSIST.ANY", IAP_EVENT_CAH_1EH) \ 4096 __PMC_EV_ALIAS("ROB_MISC_EVENTS.LBR_INSERTS", IAP_EVENT_CCH_20H) \ 4097 __PMC_EV_ALIAS("MEM_TRANS_RETIRED.LOAD_LATENCY", IAP_EVENT_CDH_01H) \ 4098 __PMC_EV_ALIAS("MEM_TRANS_RETIRED.PRECISE_STORE", IAP_EVENT_CDH_02H) \ 4099 __PMC_EV_ALIAS("MEM_UOPS_RETIRED.STLB_MISS_LOADS", IAP_EVENT_D0H_11H) \ 4100 __PMC_EV_ALIAS("MEM_UOPS_RETIRED.STLB_MISS_STORES", IAP_EVENT_D0H_12H) \ 4101 __PMC_EV_ALIAS("MEM_UOPS_RETIRED.SPLIT_LOADS", IAP_EVENT_D0H_41H) \ 4102 __PMC_EV_ALIAS("MEM_UOPS_RETIRED.SPLIT_STORES", IAP_EVENT_D0H_42H) \ 4103 __PMC_EV_ALIAS("MEM_UOPS_RETIRED.ALL_LOADS", IAP_EVENT_D0H_81H) \ 4104 __PMC_EV_ALIAS("MEM_UOPS_RETIRED.ALL_STORES", IAP_EVENT_D0H_82H) \ 4105 __PMC_EV_ALIAS("MEM_LOAD_UOPS_RETIRED.L1_HIT", IAP_EVENT_D1H_01H) \ 4106 __PMC_EV_ALIAS("MEM_LOAD_UOPS_RETIRED.L2_HIT", IAP_EVENT_D1H_02H) \ 4107 __PMC_EV_ALIAS("MEM_LOAD_UOPS_RETIRED.LLC_HIT", IAP_EVENT_D1H_04H) \ 4108 __PMC_EV_ALIAS("MEM_LOAD_UOPS_RETIRED.L1_MISS", IAP_EVENT_D1H_08H) \ 4109 __PMC_EV_ALIAS("MEM_LOAD_UOPS_RETIRED.L2_MISS", IAP_EVENT_D1H_10H) \ 4110 __PMC_EV_ALIAS("MEM_LOAD_UOPS_RETIRED.LLC_MISS", IAP_EVENT_D1H_20H) \ 4111 __PMC_EV_ALIAS("MEM_LOAD_UOPS_RETIRED.HIT_LFB", IAP_EVENT_D1H_40H) \ 4112 __PMC_EV_ALIAS("MEM_LOAD_UOPS_LLC_HIT_RETIRED.XSNP_MISS", \ 4113 IAP_EVENT_D2H_01H) \ 4114 __PMC_EV_ALIAS("MEM_LOAD_UOPS_LLC_HIT_RETIRED.XSNP_HIT", \ 4115 IAP_EVENT_D2H_02H) \ 4116 __PMC_EV_ALIAS("MEM_LOAD_UOPS_LLC_HIT_RETIRED.XSNP_HITM", \ 4117 IAP_EVENT_D2H_04H) \ 4118 __PMC_EV_ALIAS("MEM_LOAD_UOPS_LLC_HIT_RETIRED.XSNP_NONE", \ 4119 IAP_EVENT_D2H_08H) \ 4120 __PMC_EV_ALIAS("MEM_LOAD_UOPS_LLC_HIT_RETIRED.ALL", \ 4121 IAP_EVENT_D2H_0FH) \ 4122 __PMC_EV_ALIAS("MEM_LOAD_UOPS_LLC_MISS_RETIRED.LOCAL_DRAM", \ 4123 IAP_EVENT_D3H_01H) \ 4124 __PMC_EV_ALIAS("BACLEARS.ANY", IAP_EVENT_E6H_1FH) \ 4125 __PMC_EV_ALIAS("L2_TRANS.DEMAND_DATA_RD", IAP_EVENT_F0H_01H) \ 4126 __PMC_EV_ALIAS("L2_TRANS.RFO", IAP_EVENT_F0H_02H) \ 4127 __PMC_EV_ALIAS("L2_TRANS.CODE_RD", IAP_EVENT_F0H_04H) \ 4128 __PMC_EV_ALIAS("L2_TRANS.ALL_PF", IAP_EVENT_F0H_08H) \ 4129 __PMC_EV_ALIAS("L2_TRANS.L1D_WB", IAP_EVENT_F0H_10H) \ 4130 __PMC_EV_ALIAS("L2_TRANS.L2_FILL", IAP_EVENT_F0H_20H) \ 4131 __PMC_EV_ALIAS("L2_TRANS.L2_WB", IAP_EVENT_F0H_40H) \ 4132 __PMC_EV_ALIAS("L2_TRANS.ALL_REQUESTS", IAP_EVENT_F0H_80H) \ 4133 __PMC_EV_ALIAS("L2_LINES_IN.I", IAP_EVENT_F1H_01H) \ 4134 __PMC_EV_ALIAS("L2_LINES_IN.S", IAP_EVENT_F1H_02H) \ 4135 __PMC_EV_ALIAS("L2_LINES_IN.E", IAP_EVENT_F1H_04H) \ 4136 __PMC_EV_ALIAS("L2_LINES_IN.ALL", IAP_EVENT_F1H_07H) \ 4137 __PMC_EV_ALIAS("L2_LINES_OUT.DEMAND_CLEAN", IAP_EVENT_F2H_01H) \ 4138 __PMC_EV_ALIAS("L2_LINES_OUT.DEMAND_DIRTY", IAP_EVENT_F2H_02H) \ 4139 __PMC_EV_ALIAS("L2_LINES_OUT.PF_CLEAN", IAP_EVENT_F2H_04H) \ 4140 __PMC_EV_ALIAS("L2_LINES_OUT.PF_DIRTY", IAP_EVENT_F2H_08H) 4141 4142 /* 4143 * Aliases for Ivy Bridge Xeon PMC events (325462-045US January 2013) 4144 */ 4145 #define __PMC_EV_ALIAS_IVYBRIDGE_XEON() \ 4146 __PMC_EV_ALIAS_INTEL_ARCHITECTURAL() \ 4147 __PMC_EV_ALIAS("LD_BLOCKS.STORE_FORWARD", IAP_EVENT_03H_02H) \ 4148 __PMC_EV_ALIAS("LD_BLOCKS.NO_SR", IAP_EVENT_03H_08H) \ 4149 __PMC_EV_ALIAS("MISALIGN_MEM_REF.LOADS", IAP_EVENT_05H_01H) \ 4150 __PMC_EV_ALIAS("MISALIGN_MEM_REF.STORES", IAP_EVENT_05H_02H) \ 4151 __PMC_EV_ALIAS("LD_BLOCKS_PARTIAL.ADDRESS_ALIAS", IAP_EVENT_07H_01H) \ 4152 __PMC_EV_ALIAS("INT_MISC.RECOVERY_CYCLES", IAP_EVENT_0DH_03H) \ 4153 __PMC_EV_ALIAS("DTLB_LOAD_MISSES.MISS_CAUSES_A_WALK", IAP_EVENT_08H_81H)\ 4154 __PMC_EV_ALIAS("DTLB_LOAD_MISSES.WALK_COMPLETED", IAP_EVENT_08H_82H) \ 4155 __PMC_EV_ALIAS("DTLB_LOAD_MISSES.WALK_DURATION", IAP_EVENT_08H_84H) \ 4156 __PMC_EV_ALIAS("DTLB_LOAD_MISSES.LARGE_PG_WALK_DURATION", \ 4157 IAP_EVENT_08H_88H) \ 4158 __PMC_EV_ALIAS("UOPS_ISSUED.ANY", IAP_EVENT_0EH_01H) \ 4159 __PMC_EV_ALIAS("UOPS_ISSUED.FLAGS_MERGE", IAP_EVENT_0EH_10H) \ 4160 __PMC_EV_ALIAS("UOPS_ISSUED.SLOW_LEA", IAP_EVENT_0EH_20H) \ 4161 __PMC_EV_ALIAS("UOPS_ISSUED.SINGLE_MUL", IAP_EVENT_0EH_40H) \ 4162 __PMC_EV_ALIAS("FP_COMP_OPS_EXE.X87", IAP_EVENT_10H_01H) \ 4163 __PMC_EV_ALIAS("FP_COMP_OPS_EXE.SSE_FP_PACKED_DOUBLE", \ 4164 IAP_EVENT_10H_10H) \ 4165 __PMC_EV_ALIAS("FP_COMP_OPS_EXE.SSE_FP_SCALAR_SINGLE", \ 4166 IAP_EVENT_10H_20H) \ 4167 __PMC_EV_ALIAS("FP_COMP_OPS_EXE.SSE_PACKED_SINGLE", IAP_EVENT_10H_40H) \ 4168 __PMC_EV_ALIAS("FP_COMP_OPS_EXE.SSE_SCALAR_DOUBLE", IAP_EVENT_10H_80H) \ 4169 __PMC_EV_ALIAS("SIMD_FP_256.PACKED_SINGLE", IAP_EVENT_11H_01H) \ 4170 __PMC_EV_ALIAS("SIMD_FP_256.PACKED_DOUBLE", IAP_EVENT_11H_02H) \ 4171 __PMC_EV_ALIAS("ARITH.FPU_DIV_ACTIVE", IAP_EVENT_14H_01H) \ 4172 __PMC_EV_ALIAS("L2_RQSTS.DEMAND_DATA_RD_HIT", IAP_EVENT_24H_01H) \ 4173 __PMC_EV_ALIAS("L2_RQSTS.ALL_DEMAND_DATA_RD", IAP_EVENT_24H_03H) \ 4174 __PMC_EV_ALIAS("L2_RQSTS.RFO_HITS", IAP_EVENT_24H_04H) \ 4175 __PMC_EV_ALIAS("L2_RQSTS.RFO_MISS", IAP_EVENT_24H_08H) \ 4176 __PMC_EV_ALIAS("L2_RQSTS.ALL_RFO", IAP_EVENT_24H_0CH) \ 4177 __PMC_EV_ALIAS("L2_RQSTS.CODE_RD_HIT", IAP_EVENT_24H_10H) \ 4178 __PMC_EV_ALIAS("L2_RQSTS.CODE_RD_MISS", IAP_EVENT_24H_20H) \ 4179 __PMC_EV_ALIAS("L2_RQSTS.ALL_CODE_RD", IAP_EVENT_24H_30H) \ 4180 __PMC_EV_ALIAS("L2_RQSTS.PF_HIT", IAP_EVENT_24H_40H) \ 4181 __PMC_EV_ALIAS("L2_RQSTS.PF_MISS", IAP_EVENT_24H_80H) \ 4182 __PMC_EV_ALIAS("L2_RQSTS.ALL_PF", IAP_EVENT_24H_C0H) \ 4183 __PMC_EV_ALIAS("L2_STORE_LOCK_RQSTS.MISS", IAP_EVENT_27H_01H) \ 4184 __PMC_EV_ALIAS("L2_STORE_LOCK_RQSTS.HIT_M", IAP_EVENT_27H_08H) \ 4185 __PMC_EV_ALIAS("L2_STORE_LOCK_RQSTS.ALL", IAP_EVENT_27H_0FH) \ 4186 __PMC_EV_ALIAS("L2_L1D_WB_RQSTS.MISS", IAP_EVENT_28H_01H) \ 4187 __PMC_EV_ALIAS("L2_L1D_WB_RQSTS.HIT_E", IAP_EVENT_28H_04H) \ 4188 __PMC_EV_ALIAS("L2_L1D_WB_RQSTS.HIT_M", IAP_EVENT_28H_08H) \ 4189 __PMC_EV_ALIAS("L2_L1D_WB_RQSTS.ALL", IAP_EVENT_28H_0FH) \ 4190 __PMC_EV_ALIAS("LONGEST_LAT_CACHE.REFERENCE", IAP_EVENT_2EH_4FH) \ 4191 __PMC_EV_ALIAS("LONGEST_LAT_CACHE.MISS", IAP_EVENT_2EH_41H) \ 4192 __PMC_EV_ALIAS("CPU_CLK_UNHALTED.THREAD_P", IAP_EVENT_3CH_00H) \ 4193 __PMC_EV_ALIAS("CPU_CLK_THREAD_UNHALTED.REF_XCLK", IAP_EVENT_3CH_01H) \ 4194 __PMC_EV_ALIAS("L1D_PEND_MISS.PENDING", IAP_EVENT_48H_01H) \ 4195 __PMC_EV_ALIAS("DTLB_STORE_MISSES.MISS_CAUSES_A_WALK", \ 4196 IAP_EVENT_49H_01H) \ 4197 __PMC_EV_ALIAS("DTLB_STORE_MISSES.WALK_COMPLETED", IAP_EVENT_49H_02H) \ 4198 __PMC_EV_ALIAS("DTLB_STORE_MISSES.WALK_DURATION", IAP_EVENT_49H_04H) \ 4199 __PMC_EV_ALIAS("DTLB_STORE_MISSES.STLB_HIT", IAP_EVENT_49H_10H) \ 4200 __PMC_EV_ALIAS("LOAD_HIT_PRE.SW_PF", IAP_EVENT_4CH_01H) \ 4201 __PMC_EV_ALIAS("LOAD_HIT_PRE.HW_PF", IAP_EVENT_4CH_02H) \ 4202 __PMC_EV_ALIAS("L1D.REPLACEMENT", IAP_EVENT_51H_01H) \ 4203 __PMC_EV_ALIAS("MOVE_ELIMINATION.INT_NOT_ELIMINATED", IAP_EVENT_58H_01H)\ 4204 __PMC_EV_ALIAS("MOVE_ELIMINATION.SIMD_NOT_ELIMINATED", \ 4205 IAP_EVENT_58H_02H) \ 4206 __PMC_EV_ALIAS("MOVE_ELIMINATION.INT_ELIMINATED", IAP_EVENT_58H_04H) \ 4207 __PMC_EV_ALIAS("MOVE_ELIMINATION.SIMD_ELIMINATED", IAP_EVENT_58H_08H) \ 4208 __PMC_EV_ALIAS("CPL_CYCLES.RING0", IAP_EVENT_5CH_01H) \ 4209 __PMC_EV_ALIAS("CPL_CYCLES.RING123", IAP_EVENT_5CH_02H) \ 4210 __PMC_EV_ALIAS("RS_EVENTS.EMPTY_CYCLES", IAP_EVENT_5EH_01H) \ 4211 __PMC_EV_ALIAS("DTLB_LOAD_MISSES.STLB_HIT", IAP_EVENT_5FH_04H) \ 4212 __PMC_EV_ALIAS("OFFCORE_REQUESTS_OUTSTANDING.DEMAND_DATA_RD", \ 4213 IAP_EVENT_60H_01H) \ 4214 __PMC_EV_ALIAS("OFFCORE_REQUESTS_OUTSTANDING.DEMAND_CODE_RD", \ 4215 IAP_EVENT_60H_02H) \ 4216 __PMC_EV_ALIAS("OFFCORE_REQUESTS_OUTSTANDING.DEMAND_RFO", \ 4217 IAP_EVENT_60H_04H) \ 4218 __PMC_EV_ALIAS("OFFCORE_REQUESTS_OUTSTANDING.ALL_DATA_RD", \ 4219 IAP_EVENT_60H_08H) \ 4220 __PMC_EV_ALIAS("LOCK_CYCLES.SPLIT_LOCK_UC_LOCK_DURATION", \ 4221 IAP_EVENT_63H_01H) \ 4222 __PMC_EV_ALIAS("LOCK_CYCLES.CACHE_LOCK_DURATION", IAP_EVENT_63H_02H) \ 4223 __PMC_EV_ALIAS("IDQ.EMPTY", IAP_EVENT_79H_02H) \ 4224 __PMC_EV_ALIAS("IDQ.MITE_UOPS", IAP_EVENT_79H_04H) \ 4225 __PMC_EV_ALIAS("IDQ.DSB_UOPS", IAP_EVENT_79H_08H) \ 4226 __PMC_EV_ALIAS("IDQ.MS_DSB_UOPS", IAP_EVENT_79H_10H) \ 4227 __PMC_EV_ALIAS("IDQ.MS_MITE_UOPS", IAP_EVENT_79H_20H) \ 4228 __PMC_EV_ALIAS("IDQ.MS_UOPS", IAP_EVENT_79H_30H) \ 4229 __PMC_EV_ALIAS("IDQ.ALL_DSB_CYCLES_ANY_UOPS", IAP_EVENT_79H_18H) \ 4230 __PMC_EV_ALIAS("IDQ.ALL_MITE_CYCLES_ANY_UOPS", IAP_EVENT_79H_24H) \ 4231 __PMC_EV_ALIAS("IDQ.ALL_MITE_CYCLES_4_UOPS", IAP_EVENT_79H_24H) \ 4232 __PMC_EV_ALIAS("IDQ.MITE_ALL_UOPS", IAP_EVENT_79H_3CH) \ 4233 __PMC_EV_ALIAS("ICACHE.MISSES", IAP_EVENT_80H_02H) \ 4234 __PMC_EV_ALIAS("ICACHE.IFETCH_STALL", IAP_EVENT_80H_04H) \ 4235 __PMC_EV_ALIAS("ITLB_MISSES.MISS_CAUSES_A_WALK", IAP_EVENT_85H_01H) \ 4236 __PMC_EV_ALIAS("ITLB_MISSES.WALK_COMPLETED", IAP_EVENT_85H_02H) \ 4237 __PMC_EV_ALIAS("ITLB_MISSES.WALK_DURATION", IAP_EVENT_85H_04H) \ 4238 __PMC_EV_ALIAS("ITLB_MISSES.STLB_HIT", IAP_EVENT_85H_10H) \ 4239 __PMC_EV_ALIAS("ILD_STALL.LCP", IAP_EVENT_87H_01H) \ 4240 __PMC_EV_ALIAS("ILD_STALL.IQ_FULL", IAP_EVENT_87H_04H) \ 4241 __PMC_EV_ALIAS("BR_INST_EXEC.NONTAKEN_COND", IAP_EVENT_88H_41H) \ 4242 __PMC_EV_ALIAS("BR_INST_EXEC.TAKEN_COND", IAP_EVENT_88H_81H) \ 4243 __PMC_EV_ALIAS("BR_INST_EXEC.DIRECT_JMP", IAP_EVENT_88H_82H) \ 4244 __PMC_EV_ALIAS("BR_INST_EXEC.INDIRECT_JMP_NON_CALL_RET", \ 4245 IAP_EVENT_88H_84H) \ 4246 __PMC_EV_ALIAS("BR_INST_EXEC.RETURN_NEAR", IAP_EVENT_88H_88H) \ 4247 __PMC_EV_ALIAS("BR_INST_EXEC.DIRECT_NEAR_CALL", IAP_EVENT_88H_90H) \ 4248 __PMC_EV_ALIAS("BR_INST_EXEC.INDIRECT_NEAR_CALL", IAP_EVENT_88H_A0H) \ 4249 __PMC_EV_ALIAS("BR_INST_EXEC.ALL_BRANCHES", IAP_EVENT_88H_FFH) \ 4250 __PMC_EV_ALIAS("BR_MISP_EXEC.NONTAKEN_COND", IAP_EVENT_89H_41H) \ 4251 __PMC_EV_ALIAS("BR_MISP_EXEC.TAKEN_COND", IAP_EVENT_89H_81H) \ 4252 __PMC_EV_ALIAS("BR_MISP_EXEC.INDIRECT_JMP_NON_CALL_RET", \ 4253 IAP_EVENT_89H_84H) \ 4254 __PMC_EV_ALIAS("BR_MISP_EXEC.RETURN_NEAR", IAP_EVENT_89H_88H) \ 4255 __PMC_EV_ALIAS("BR_MISP_EXEC.DIRECT_NEAR_CALL", IAP_EVENT_89H_90H) \ 4256 __PMC_EV_ALIAS("BR_MISP_EXEC.INDIRECT_NEAR_CALL", IAP_EVENT_89H_A0H) \ 4257 __PMC_EV_ALIAS("BR_MISP_EXEC.ALL_BRANCHES", IAP_EVENT_89H_FFH) \ 4258 __PMC_EV_ALIAS("IDQ_UOPS_NOT_DELIVERED.CORE", IAP_EVENT_9CH_01H) \ 4259 __PMC_EV_ALIAS("UOPS_DISPATCHED_PORT.PORT_0", IAP_EVENT_A1H_01H) \ 4260 __PMC_EV_ALIAS("UOPS_DISPATCHED_PORT.PORT_1", IAP_EVENT_A1H_02H) \ 4261 __PMC_EV_ALIAS("UOPS_DISPATCHED_PORT.PORT_2_LD", IAP_EVENT_A1H_04H) \ 4262 __PMC_EV_ALIAS("UOPS_DISPATCHED_PORT.PORT_2_STA", IAP_EVENT_A1H_08H) \ 4263 __PMC_EV_ALIAS("UOPS_DISPATCHED_PORT.PORT_2", IAP_EVENT_A1H_0CH) \ 4264 __PMC_EV_ALIAS("UOPS_DISPATCHED_PORT.PORT_3_LD", IAP_EVENT_A1H_10H) \ 4265 __PMC_EV_ALIAS("UOPS_DISPATCHED_PORT.PORT_3_STA", IAP_EVENT_A1H_20H) \ 4266 __PMC_EV_ALIAS("UOPS_DISPATCHED_PORT.PORT_3", IAP_EVENT_A1H_30H) \ 4267 __PMC_EV_ALIAS("UOPS_DISPATCHED_PORT.PORT_4", IAP_EVENT_A1H_40H) \ 4268 __PMC_EV_ALIAS("UOPS_DISPATCHED_PORT.PORT_5", IAP_EVENT_A1H_80H) \ 4269 __PMC_EV_ALIAS("RESOURCE_STALLS.ANY", IAP_EVENT_A2H_01H) \ 4270 __PMC_EV_ALIAS("RESOURCE_STALLS.RS", IAP_EVENT_A2H_04H) \ 4271 __PMC_EV_ALIAS("RESOURCE_STALLS.SB", IAP_EVENT_A2H_08H) \ 4272 __PMC_EV_ALIAS("RESOURCE_STALLS.ROB", IAP_EVENT_A2H_10H) \ 4273 __PMC_EV_ALIAS("CYCLE_ACTIVITY.CYCLES_L2_PENDING", IAP_EVENT_A3H_01H) \ 4274 __PMC_EV_ALIAS("CYCLE_ACTIVITY.CYCLES_LDM_PENDING", IAP_EVENT_A3H_02H) \ 4275 __PMC_EV_ALIAS("CYCLE_ACTIVITY.CYCLES_NO_EXECUTE", IAP_EVENT_A3H_04H) \ 4276 __PMC_EV_ALIAS("CYCLE_ACTIVITY.CYCLES_L1D_PENDING", IAP_EVENT_A3H_08H) \ 4277 __PMC_EV_ALIAS("LSD.UOPS", IAP_EVENT_A8H_01H) \ 4278 __PMC_EV_ALIAS("DSB2MITE_SWITCHES.COUNT", IAP_EVENT_ABH_01H) \ 4279 __PMC_EV_ALIAS("DSB2MITE_SWITCHES.PENALTY_CYCLES", IAP_EVENT_ABH_02H) \ 4280 __PMC_EV_ALIAS("DSB_FILL.EXCEED_DSB_LINES", IAP_EVENT_ACH_08H) \ 4281 __PMC_EV_ALIAS("ITLB.ITLB_FLUSH", IAP_EVENT_AEH_01H) \ 4282 __PMC_EV_ALIAS("OFFCORE_REQUESTS.DEMAND_DATA_RD", IAP_EVENT_B0H_01H) \ 4283 __PMC_EV_ALIAS("OFFCORE_REQUESTS.DEMAND_CODE_RD", IAP_EVENT_B0H_02H) \ 4284 __PMC_EV_ALIAS("OFFCORE_REQUESTS.DEMAND_RFO", IAP_EVENT_B0H_04H) \ 4285 __PMC_EV_ALIAS("OFFCORE_REQUESTS.ALL_DATA_RD", IAP_EVENT_B0H_08H) \ 4286 __PMC_EV_ALIAS("UOPS_EXECUTED.THREAD", IAP_EVENT_B1H_01H) \ 4287 __PMC_EV_ALIAS("UOPS_EXECUTED.CORE", IAP_EVENT_B1H_02H) \ 4288 __PMC_EV_ALIAS("OFF_CORE_RESPONSE_0", IAP_EVENT_B7H_01H) \ 4289 __PMC_EV_ALIAS("OFF_CORE_RESPONSE_1", IAP_EVENT_BBH_01H) \ 4290 __PMC_EV_ALIAS("TLB_FLUSH.DTLB_THREAD", IAP_EVENT_BDH_01H) \ 4291 __PMC_EV_ALIAS("TLB_FLUSH.STLB_ANY", IAP_EVENT_BDH_20H) \ 4292 __PMC_EV_ALIAS("INST_RETIRED.ANY_P", IAP_EVENT_C0H_00H) \ 4293 __PMC_EV_ALIAS("INST_RETIRED.ALL", IAP_EVENT_C0H_01H) \ 4294 __PMC_EV_ALIAS("OTHER_ASSISTS.AVX_STORE", IAP_EVENT_C1H_08H) \ 4295 __PMC_EV_ALIAS("OTHER_ASSISTS.AVX_TO_SSE", IAP_EVENT_C1H_10H) \ 4296 __PMC_EV_ALIAS("OTHER_ASSISTS.SSE_TO_AVX", IAP_EVENT_C1H_20H) \ 4297 __PMC_EV_ALIAS("OTHER_ASSISTS.WB", IAP_EVENT_C1H_80H) \ 4298 __PMC_EV_ALIAS("UOPS_RETIRED.ALL", IAP_EVENT_C2H_01H) \ 4299 __PMC_EV_ALIAS("UOPS_RETIRED.RETIRE_SLOTS", IAP_EVENT_C2H_02H) \ 4300 __PMC_EV_ALIAS("MACHINE_CLEARS.MEMORY_ORDERING", IAP_EVENT_C3H_02H) \ 4301 __PMC_EV_ALIAS("MACHINE_CLEARS.SMC", IAP_EVENT_C3H_04H) \ 4302 __PMC_EV_ALIAS("MACHINE_CLEARS.MASKMOV", IAP_EVENT_C3H_20H) \ 4303 __PMC_EV_ALIAS("BR_INST_RETIRED.ALL_BRANCHES", IAP_EVENT_C4H_00H) \ 4304 __PMC_EV_ALIAS("BR_INST_RETIRED.CONDITIONAL", IAP_EVENT_C4H_01H) \ 4305 __PMC_EV_ALIAS("BR_INST_RETIRED.NEAR_CALL", IAP_EVENT_C4H_02H) \ 4306 __PMC_EV_ALIAS("BR_INST_RETIRED.ALL_BRANCHES", IAP_EVENT_C4H_04H) \ 4307 __PMC_EV_ALIAS("BR_INST_RETIRED.NEAR_RETURN", IAP_EVENT_C4H_08H) \ 4308 __PMC_EV_ALIAS("BR_INST_RETIRED.NOT_TAKEN", IAP_EVENT_C4H_10H) \ 4309 __PMC_EV_ALIAS("BR_INST_RETIRED.NEAR_TAKEN", IAP_EVENT_C4H_20H) \ 4310 __PMC_EV_ALIAS("BR_INST_RETIRED.FAR_BRANCH", IAP_EVENT_C4H_40H) \ 4311 __PMC_EV_ALIAS("BR_MISP_RETIRED.ALL_BRANCHES", IAP_EVENT_C5H_00H) \ 4312 __PMC_EV_ALIAS("BR_MISP_RETIRED.CONDITIONAL", IAP_EVENT_C5H_01H) \ 4313 __PMC_EV_ALIAS("BR_MISP_RETIRED.NEAR_CALL", IAP_EVENT_C5H_02H) \ 4314 __PMC_EV_ALIAS("BR_MISP_U_RETIRED.ALL_BRANCHES", IAP_EVENT_C5H_04H) \ 4315 __PMC_EV_ALIAS("BR_MISP_RETIRED.NOT_TAKEN", IAP_EVENT_C5H_10H) \ 4316 __PMC_EV_ALIAS("BR_MISP_RETIRED.TAKEN", IAP_EVENT_C5H_20H) \ 4317 __PMC_EV_ALIAS("FP_ASSIST.X87_OUTPUT", IAP_EVENT_CAH_02H) \ 4318 __PMC_EV_ALIAS("FP_ASSIST.X87_INPUT", IAP_EVENT_CAH_04H) \ 4319 __PMC_EV_ALIAS("FP_ASSIST.SIMD_OUTPUT", IAP_EVENT_CAH_08H) \ 4320 __PMC_EV_ALIAS("FP_ASSIST.SIMD_INPUT", IAP_EVENT_CAH_10H) \ 4321 __PMC_EV_ALIAS("FP_ASSIST.ANY", IAP_EVENT_CAH_1EH) \ 4322 __PMC_EV_ALIAS("ROB_MISC_EVENTS.LBR_INSERTS", IAP_EVENT_CCH_20H) \ 4323 __PMC_EV_ALIAS("MEM_TRANS_RETIRED.LOAD_LATENCY", IAP_EVENT_CDH_01H) \ 4324 __PMC_EV_ALIAS("MEM_TRANS_RETIRED.PRECISE_STORE", IAP_EVENT_CDH_02H) \ 4325 __PMC_EV_ALIAS("MEM_UOPS_RETIRED.STLB_MISS_LOADS", IAP_EVENT_D0H_11H) \ 4326 __PMC_EV_ALIAS("MEM_UOPS_RETIRED.STLB_MISS_STORES", IAP_EVENT_D0H_12H) \ 4327 __PMC_EV_ALIAS("MEM_UOPS_RETIRED.SPLIT_LOADS", IAP_EVENT_D0H_41H) \ 4328 __PMC_EV_ALIAS("MEM_UOPS_RETIRED.SPLIT_STORES", IAP_EVENT_D0H_42H) \ 4329 __PMC_EV_ALIAS("MEM_UOPS_RETIRED.ALL_LOADS", IAP_EVENT_D0H_81H) \ 4330 __PMC_EV_ALIAS("MEM_UOPS_RETIRED.ALL_STORES", IAP_EVENT_D0H_82H) \ 4331 __PMC_EV_ALIAS("MEM_LOAD_UOPS_RETIRED.L1_HIT", IAP_EVENT_D1H_01H) \ 4332 __PMC_EV_ALIAS("MEM_LOAD_UOPS_RETIRED.L2_HIT", IAP_EVENT_D1H_02H) \ 4333 __PMC_EV_ALIAS("MEM_LOAD_UOPS_RETIRED.LLC_HIT", IAP_EVENT_D1H_04H) \ 4334 __PMC_EV_ALIAS("MEM_LOAD_UOPS_RETIRED.L1_MISS", IAP_EVENT_D1H_08H) \ 4335 __PMC_EV_ALIAS("MEM_LOAD_UOPS_RETIRED.L2_MISS", IAP_EVENT_D1H_10H) \ 4336 __PMC_EV_ALIAS("MEM_LOAD_UOPS_RETIRED.LLC_MISS", IAP_EVENT_D1H_20H) \ 4337 __PMC_EV_ALIAS("MEM_LOAD_UOPS_RETIRED.HIT_LFB", IAP_EVENT_D1H_40H) \ 4338 __PMC_EV_ALIAS("MEM_LOAD_UOPS_LLC_HIT_RETIRED.XSNP_MISS", \ 4339 IAP_EVENT_D2H_01H) \ 4340 __PMC_EV_ALIAS("MEM_LOAD_UOPS_LLC_HIT_RETIRED.XSNP_HIT", \ 4341 IAP_EVENT_D2H_02H) \ 4342 __PMC_EV_ALIAS("MEM_LOAD_UOPS_LLC_HIT_RETIRED.XSNP_HITM", \ 4343 IAP_EVENT_D2H_04H) \ 4344 __PMC_EV_ALIAS("MEM_LOAD_UOPS_LLC_HIT_RETIRED.XSNP_NONE", \ 4345 IAP_EVENT_D2H_08H) \ 4346 __PMC_EV_ALIAS("MEM_LOAD_UOPS_LLC_MISS_RETIRED.LOCAL_DRAM", \ 4347 IAP_EVENT_D3H_01H) \ 4348 __PMC_EV_ALIAS("MEM_LOAD_UOPS_LLC_MISS_RETIRED.LOCAL_DRAM", \ 4349 IAP_EVENT_D3H_03H) \ 4350 __PMC_EV_ALIAS("MEM_LOAD_UOPS_LLC_MISS_RETIRED.REMOTE_DRAM", \ 4351 IAP_EVENT_D3H_0CH) \ 4352 __PMC_EV_ALIAS("MEM_LOAD_UOPS_LLC_MISS_RETIRED.REMOTE_HITM", \ 4353 IAP_EVENT_D3H_10H) \ 4354 __PMC_EV_ALIAS("MEM_LOAD_UOPS_LLC_MISS_RETIRED.REMOTE_FWD", \ 4355 IAP_EVENT_D3H_20H) \ 4356 __PMC_EV_ALIAS("BACLEARS.ANY", IAP_EVENT_E6H_1FH) \ 4357 __PMC_EV_ALIAS("L2_TRANS.DEMAND_DATA_RD", IAP_EVENT_F0H_01H) \ 4358 __PMC_EV_ALIAS("L2_TRANS.RFO", IAP_EVENT_F0H_02H) \ 4359 __PMC_EV_ALIAS("L2_TRANS.CODE_RD", IAP_EVENT_F0H_04H) \ 4360 __PMC_EV_ALIAS("L2_TRANS.ALL_PF", IAP_EVENT_F0H_08H) \ 4361 __PMC_EV_ALIAS("L2_TRANS.L1D_WB", IAP_EVENT_F0H_10H) \ 4362 __PMC_EV_ALIAS("L2_TRANS.L2_FILL", IAP_EVENT_F0H_20H) \ 4363 __PMC_EV_ALIAS("L2_TRANS.L2_WB", IAP_EVENT_F0H_40H) \ 4364 __PMC_EV_ALIAS("L2_TRANS.ALL_REQUESTS", IAP_EVENT_F0H_80H) \ 4365 __PMC_EV_ALIAS("L2_LINES_IN.I", IAP_EVENT_F1H_01H) \ 4366 __PMC_EV_ALIAS("L2_LINES_IN.S", IAP_EVENT_F1H_02H) \ 4367 __PMC_EV_ALIAS("L2_LINES_IN.E", IAP_EVENT_F1H_04H) \ 4368 __PMC_EV_ALIAS("L2_LINES_IN.ALL", IAP_EVENT_F1H_07H) \ 4369 __PMC_EV_ALIAS("L2_LINES_OUT.DEMAND_CLEAN", IAP_EVENT_F2H_01H) \ 4370 __PMC_EV_ALIAS("L2_LINES_OUT.DEMAND_DIRTY", IAP_EVENT_F2H_02H) \ 4371 __PMC_EV_ALIAS("L2_LINES_OUT.PF_CLEAN", IAP_EVENT_F2H_04H) \ 4372 __PMC_EV_ALIAS("L2_LINES_OUT.PF_DIRTY", IAP_EVENT_F2H_08H) \ 4373 __PMC_EV_ALIAS("L2_LINES_OUT.DIRTY_ALL", IAP_EVENT_F2H_0AH) 4374 4375 /* 4376 * Aliases for Sandy Bridge PMC events (253669-039US May 2011) 4377 */ 4378 #define __PMC_EV_ALIAS_SANDYBRIDGE() \ 4379 __PMC_EV_ALIAS_INTEL_ARCHITECTURAL() \ 4380 __PMC_EV_ALIAS("LD_BLOCKS.DATA_UNKNOWN", IAP_EVENT_03H_01H) \ 4381 __PMC_EV_ALIAS("LD_BLOCKS.STORE_FORWARD", IAP_EVENT_03H_02H) \ 4382 __PMC_EV_ALIAS("LD_BLOCKS.NO_SR", IAP_EVENT_03H_08H) \ 4383 __PMC_EV_ALIAS("LD_BLOCKS.ALL_BLOCK", IAP_EVENT_03H_10H) \ 4384 __PMC_EV_ALIAS("MISALIGN_MEM_REF.LOADS", IAP_EVENT_05H_01H) \ 4385 __PMC_EV_ALIAS("MISALIGN_MEM_REF.STORES", IAP_EVENT_05H_02H) \ 4386 __PMC_EV_ALIAS("LD_BLOCKS_PARTIAL.ADDRESS_ALIAS", IAP_EVENT_07H_01H) \ 4387 __PMC_EV_ALIAS("LD_BLOCKS_PARTIAL.ALL_STA_BLOCK", IAP_EVENT_07H_08H) \ 4388 __PMC_EV_ALIAS("DTLB_LOAD_MISSES.MISS_CAUSES_A_WALK", IAP_EVENT_08H_01H)\ 4389 __PMC_EV_ALIAS("DTLB_LOAD_MISSES.WALK_COMPLETED", IAP_EVENT_08H_02H) \ 4390 __PMC_EV_ALIAS("DTLB_LOAD_MISSES.WALK_DURATION", IAP_EVENT_08H_04H) \ 4391 __PMC_EV_ALIAS("DTLB_LOAD_MISSES.STLB_HIT", IAP_EVENT_08H_10H) \ 4392 __PMC_EV_ALIAS("INT_MISC.RECOVERY_CYCLES", IAP_EVENT_0DH_03H) \ 4393 __PMC_EV_ALIAS("INT_MISC.RAT_STALL_CYCLES", IAP_EVENT_0DH_40H) \ 4394 __PMC_EV_ALIAS("UOPS_ISSUED.ANY", IAP_EVENT_0EH_01H) \ 4395 __PMC_EV_ALIAS("FP_COMP_OPS_EXE.X87", IAP_EVENT_10H_01H) \ 4396 __PMC_EV_ALIAS("FP_COMP_OPS_EXE.SSE_FP_PACKED_DOUBLE", \ 4397 IAP_EVENT_10H_10H) \ 4398 __PMC_EV_ALIAS("FP_COMP_OPS_EXE.SSE_FP_SCALAR_SINGLE", \ 4399 IAP_EVENT_10H_20H) \ 4400 __PMC_EV_ALIAS("FP_COMP_OPS_EXE.SSE_PACKED_SINGLE", IAP_EVENT_10H_40H) \ 4401 __PMC_EV_ALIAS("FP_COMP_OPS_EXE.SSE_SCALAR_DOUBLE", IAP_EVENT_10H_80H) \ 4402 __PMC_EV_ALIAS("SIMD_FP_256.PACKED_SINGLE", IAP_EVENT_11H_01H) \ 4403 __PMC_EV_ALIAS("SIMD_FP_256.PACKED_DOUBLE", IAP_EVENT_11H_02H) \ 4404 __PMC_EV_ALIAS("ARITH.FPU_DIV_ACTIVE", IAP_EVENT_14H_01H) \ 4405 __PMC_EV_ALIAS("INSTS_WRITTEN_TO_IQ.INSTS", IAP_EVENT_17H_01H) \ 4406 __PMC_EV_ALIAS("L2_RQSTS.DEMAND_DATA_RD_HIT", IAP_EVENT_24H_01H) \ 4407 __PMC_EV_ALIAS("L2_RQSTS.ALL_DEMAND_DATA_RD", IAP_EVENT_24H_03H) \ 4408 __PMC_EV_ALIAS("L2_RQSTS.RFO_HITS", IAP_EVENT_24H_04H) \ 4409 __PMC_EV_ALIAS("L2_RQSTS.RFO_MISS", IAP_EVENT_24H_08H) \ 4410 __PMC_EV_ALIAS("L2_RQSTS.ALL_RFO", IAP_EVENT_24H_0CH) \ 4411 __PMC_EV_ALIAS("L2_RQSTS.CODE_RD_HIT", IAP_EVENT_24H_10H) \ 4412 __PMC_EV_ALIAS("L2_RQSTS.CODE_RD_MISS", IAP_EVENT_24H_20H) \ 4413 __PMC_EV_ALIAS("L2_RQSTS.ALL_CODE_RD", IAP_EVENT_24H_30H) \ 4414 __PMC_EV_ALIAS("L2_RQSTS.PF_HIT", IAP_EVENT_24H_40H) \ 4415 __PMC_EV_ALIAS("L2_RQSTS.PF_MISS", IAP_EVENT_24H_80H) \ 4416 __PMC_EV_ALIAS("L2_RQSTS.ALL_PF", IAP_EVENT_24H_C0H) \ 4417 __PMC_EV_ALIAS("L2_STORE_LOCK_RQSTS.MISS", IAP_EVENT_27H_01H) \ 4418 __PMC_EV_ALIAS("L2_STORE_LOCK_RQSTS.HIT_E", IAP_EVENT_27H_04H) \ 4419 __PMC_EV_ALIAS("L2_STORE_LOCK_RQSTS.HIT_M", IAP_EVENT_27H_08H) \ 4420 __PMC_EV_ALIAS("L2_STORE_LOCK_RQSTS.ALL", IAP_EVENT_27H_0FH) \ 4421 __PMC_EV_ALIAS("L2_L1D_WB_RQSTS.HIT_E", IAP_EVENT_28H_04H) \ 4422 __PMC_EV_ALIAS("L2_L1D_WB_RQSTS.HIT_M", IAP_EVENT_28H_08H) \ 4423 __PMC_EV_ALIAS("LONGEST_LAT_CACHE.REFERENCE", IAP_EVENT_2EH_4FH) \ 4424 __PMC_EV_ALIAS("LONGEST_LAT_CACHE.MISS", IAP_EVENT_2EH_41H) \ 4425 __PMC_EV_ALIAS("CPU_CLK_UNHALTED.THREAD_P", IAP_EVENT_3CH_00H) \ 4426 __PMC_EV_ALIAS("CPU_CLK_THREAD_UNHALTED.REF_XCLK", IAP_EVENT_3CH_01H) \ 4427 __PMC_EV_ALIAS("L1D_PEND_MISS.PENDING", IAP_EVENT_48H_01H) \ 4428 __PMC_EV_ALIAS("DTLB_STORE_MISSES.MISS_CAUSES_A_WALK", \ 4429 IAP_EVENT_49H_01H) \ 4430 __PMC_EV_ALIAS("DTLB_STORE_MISSES.WALK_COMPLETED", IAP_EVENT_49H_02H) \ 4431 __PMC_EV_ALIAS("DTLB_STORE_MISSES.WALK_DURATION", IAP_EVENT_49H_04H) \ 4432 __PMC_EV_ALIAS("DTLB_STORE_MISSES.STLB_HIT", IAP_EVENT_49H_10H) \ 4433 __PMC_EV_ALIAS("LOAD_HIT_PRE.SW_PF", IAP_EVENT_4CH_01H) \ 4434 __PMC_EV_ALIAS("LOAD_HIT_PRE.HW_PF", IAP_EVENT_4CH_02H) \ 4435 __PMC_EV_ALIAS("HW_PRE_REQ.DL1_MISS", IAP_EVENT_4EH_02H) \ 4436 __PMC_EV_ALIAS("L1D.REPLACEMENT", IAP_EVENT_51H_01H) \ 4437 __PMC_EV_ALIAS("L1D.ALLOCATED_IN_M", IAP_EVENT_51H_02H) \ 4438 __PMC_EV_ALIAS("L1D.EVICTION", IAP_EVENT_51H_04H) \ 4439 __PMC_EV_ALIAS("L1D.ALL_M_REPLACEMENT", IAP_EVENT_51H_08H) \ 4440 __PMC_EV_ALIAS("PARTIAL_RAT_STALLS.FLAGS_MERGE_UOP", IAP_EVENT_59H_20H) \ 4441 __PMC_EV_ALIAS("PARTIAL_RAT_STALLS.SLOW_LEA_WINDOW", IAP_EVENT_59H_40H) \ 4442 __PMC_EV_ALIAS("PARTIAL_RAT_STALLS.MUL_SINGLE_UOP", IAP_EVENT_59H_80H) \ 4443 __PMC_EV_ALIAS("RESOURCE_STALLS2.ALL_FL_EMPTY", IAP_EVENT_5BH_0CH) \ 4444 __PMC_EV_ALIAS("RESOURCE_STALLS2.ALL_PRF_CONTROL", IAP_EVENT_5BH_0FH) \ 4445 __PMC_EV_ALIAS("RESOURCE_STALLS2.BOB_FULL", IAP_EVENT_5BH_40H) \ 4446 __PMC_EV_ALIAS("RESOURCE_STALLS2.OOO_RSRC", IAP_EVENT_5BH_4FH) \ 4447 __PMC_EV_ALIAS("CPL_CYCLES.RING0", IAP_EVENT_5CH_01H) \ 4448 __PMC_EV_ALIAS("CPL_CYCLES.RING123", IAP_EVENT_5CH_02H) \ 4449 __PMC_EV_ALIAS("RS_EVENTS.EMPTY_CYCLES", IAP_EVENT_5EH_01H) \ 4450 __PMC_EV_ALIAS("OFFCORE_REQUESTS_OUTSTANDING.DEMAND_DATA_RD", \ 4451 IAP_EVENT_60H_01H) \ 4452 __PMC_EV_ALIAS("OFFCORE_REQUESTS_OUTSTANDING.DEMAND_RFO", \ 4453 IAP_EVENT_60H_04H) \ 4454 __PMC_EV_ALIAS("OFFCORE_REQUESTS_OUTSTANDING.ALL_DATA_RD", \ 4455 IAP_EVENT_60H_08H) \ 4456 __PMC_EV_ALIAS("LOCK_CYCLES.SPLIT_LOCK_UC_LOCK_DURATION", \ 4457 IAP_EVENT_63H_01H) \ 4458 __PMC_EV_ALIAS("LOCK_CYCLES.CACHE_LOCK_DURATION", IAP_EVENT_63H_02H) \ 4459 __PMC_EV_ALIAS("IDQ.EMPTY", IAP_EVENT_79H_02H) \ 4460 __PMC_EV_ALIAS("IDQ.MITE_UOPS", IAP_EVENT_79H_04H) \ 4461 __PMC_EV_ALIAS("IDQ.DSB_UOPS", IAP_EVENT_79H_08H) \ 4462 __PMC_EV_ALIAS("IDQ.MS_DSB_UOPS", IAP_EVENT_79H_10H) \ 4463 __PMC_EV_ALIAS("IDQ.MS_MITE_UOPS", IAP_EVENT_79H_20H) \ 4464 __PMC_EV_ALIAS("IDQ.MS_UOPS", IAP_EVENT_79H_30H) \ 4465 __PMC_EV_ALIAS("ICACHE.MISSES", IAP_EVENT_80H_02H) \ 4466 __PMC_EV_ALIAS("ITLB_MISSES.MISS_CAUSES_A_WALK", IAP_EVENT_85H_01H) \ 4467 __PMC_EV_ALIAS("ITLB_MISSES.WALK_COMPLETED", IAP_EVENT_85H_02H) \ 4468 __PMC_EV_ALIAS("ITLB_MISSES.WALK_DURATION", IAP_EVENT_85H_04H) \ 4469 __PMC_EV_ALIAS("ITLB_MISSES.STLB_HIT", IAP_EVENT_85H_10H) \ 4470 __PMC_EV_ALIAS("ILD_STALL.LCP", IAP_EVENT_87H_01H) \ 4471 __PMC_EV_ALIAS("ILD_STALL.IQ_FULL", IAP_EVENT_87H_04H) \ 4472 __PMC_EV_ALIAS("BR_INST_EXEC.NONTAKEN_COND", IAP_EVENT_88H_41H) \ 4473 __PMC_EV_ALIAS("BR_INST_EXEC.TAKEN_COND", IAP_EVENT_88H_81H) \ 4474 __PMC_EV_ALIAS("BR_INST_EXEC.DIRECT_JMP", IAP_EVENT_88H_82H) \ 4475 __PMC_EV_ALIAS("BR_INST_EXEC.INDIRECT_JMP_NON_CALL_RET", \ 4476 IAP_EVENT_88H_84H) \ 4477 __PMC_EV_ALIAS("BR_INST_EXEC.RETURN_NEAR", IAP_EVENT_88H_88H) \ 4478 __PMC_EV_ALIAS("BR_INST_EXEC.DIRECT_NEAR_CALL", IAP_EVENT_88H_90H) \ 4479 __PMC_EV_ALIAS("BR_INST_EXEC.INDIRECT_NEAR_CALL", IAP_EVENT_88H_A0H) \ 4480 __PMC_EV_ALIAS("BR_INST_EXEC.ALL_BRANCHES", IAP_EVENT_88H_FFH) \ 4481 __PMC_EV_ALIAS("BR_MISP_EXEC.NONTAKEN_COND", IAP_EVENT_89H_41H) \ 4482 __PMC_EV_ALIAS("BR_MISP_EXEC.TAKEN_COND", IAP_EVENT_89H_81H) \ 4483 __PMC_EV_ALIAS("BR_MISP_EXEC.INDIRECT_JMP_NON_CALL_RET", \ 4484 IAP_EVENT_89H_84H) \ 4485 __PMC_EV_ALIAS("BR_MISP_EXEC.RETURN_NEAR", IAP_EVENT_89H_88H) \ 4486 __PMC_EV_ALIAS("BR_MISP_EXEC.DIRECT_NEAR_CALL", IAP_EVENT_89H_90H) \ 4487 __PMC_EV_ALIAS("BR_MISP_EXEC.INDIRECT_NEAR_CALL", IAP_EVENT_89H_A0H) \ 4488 __PMC_EV_ALIAS("BR_MISP_EXEC.ALL_BRANCHES", IAP_EVENT_89H_FFH) \ 4489 __PMC_EV_ALIAS("IDQ_UOPS_NOT_DELIVERED.CORE", IAP_EVENT_9CH_01H) \ 4490 __PMC_EV_ALIAS("UOPS_DISPATCHED_PORT.PORT_0", IAP_EVENT_A1H_01H) \ 4491 __PMC_EV_ALIAS("UOPS_DISPATCHED_PORT.PORT_1", IAP_EVENT_A1H_02H) \ 4492 __PMC_EV_ALIAS("UOPS_DISPATCHED_PORT.PORT_2_LD", IAP_EVENT_A1H_04H) \ 4493 __PMC_EV_ALIAS("UOPS_DISPATCHED_PORT.PORT_2_STA", IAP_EVENT_A1H_08H) \ 4494 __PMC_EV_ALIAS("UOPS_DISPATCHED_PORT.PORT_2", IAP_EVENT_A1H_0CH) \ 4495 __PMC_EV_ALIAS("UOPS_DISPATCHED_PORT.PORT_3_LD", IAP_EVENT_A1H_10H) \ 4496 __PMC_EV_ALIAS("UOPS_DISPATCHED_PORT.PORT_3_STA", IAP_EVENT_A1H_20H) \ 4497 __PMC_EV_ALIAS("UOPS_DISPATCHED_PORT.PORT_3", IAP_EVENT_A1H_30H) \ 4498 __PMC_EV_ALIAS("UOPS_DISPATCHED_PORT.PORT_4", IAP_EVENT_A1H_40H) \ 4499 __PMC_EV_ALIAS("UOPS_DISPATCHED_PORT.PORT_5", IAP_EVENT_A1H_80H) \ 4500 __PMC_EV_ALIAS("RESOURCE_STALLS.ANY", IAP_EVENT_A2H_01H) \ 4501 __PMC_EV_ALIAS("RESOURCE_STALLS.LB", IAP_EVENT_A2H_04H) \ 4502 __PMC_EV_ALIAS("RESOURCE_STALLS.SB", IAP_EVENT_A2H_08H) \ 4503 __PMC_EV_ALIAS("RESOURCE_STALLS.ROB", IAP_EVENT_A2H_10H) \ 4504 __PMC_EV_ALIAS("RESOURCE_STALLS.FCSW", IAP_EVENT_A2H_20H) \ 4505 __PMC_EV_ALIAS("RESOURCE_STALLS.MXCSR", IAP_EVENT_A2H_40H) \ 4506 __PMC_EV_ALIAS("RESOURCE_STALLS.OTHER", IAP_EVENT_A2H_80H) \ 4507 __PMC_EV_ALIAS("LSD.UOPS", IAP_EVENT_A8H_01H) \ 4508 __PMC_EV_ALIAS("DSB2MITE_SWITCHES.COUNT", IAP_EVENT_ABH_01H) \ 4509 __PMC_EV_ALIAS("DSB2MITE_SWITCHES.PENALTY_CYCLES", IAP_EVENT_ABH_02H) \ 4510 __PMC_EV_ALIAS("DSB_FILL.OTHER_CANCEL", IAP_EVENT_ACH_02H) \ 4511 __PMC_EV_ALIAS("DSB_FILL.EXCEED_DSB_LINES", IAP_EVENT_ACH_08H) \ 4512 __PMC_EV_ALIAS("DSB_FILL.ALL_CANCEL", IAP_EVENT_ACH_0AH) \ 4513 __PMC_EV_ALIAS("ITLB.ITLB_FLUSH", IAP_EVENT_AEH_01H) \ 4514 __PMC_EV_ALIAS("OFFCORE_REQUESTS.DEMAND_DATA_RD", IAP_EVENT_B0H_01H) \ 4515 __PMC_EV_ALIAS("OFFCORE_REQUESTS.DEMAND_RFO", IAP_EVENT_B0H_04H) \ 4516 __PMC_EV_ALIAS("OFFCORE_REQUESTS.ALL_DATA_RD", IAP_EVENT_B0H_08H) \ 4517 __PMC_EV_ALIAS("UOPS_DISPATCHED.THREAD", IAP_EVENT_B1H_01H) \ 4518 __PMC_EV_ALIAS("UOPS_DISPATCHED.CORE", IAP_EVENT_B1H_02H) \ 4519 __PMC_EV_ALIAS("OFFCORE_REQUESTS_BUFFER.SQ_FULL", IAP_EVENT_B2H_01H) \ 4520 __PMC_EV_ALIAS("AGU_BYPASS_CANCEL.COUNT", IAP_EVENT_B6H_01H) \ 4521 __PMC_EV_ALIAS("OFF_CORE_RESPONSE_0", IAP_EVENT_B7H_01H) \ 4522 __PMC_EV_ALIAS("OFF_CORE_RESPONSE_1", IAP_EVENT_BBH_01H) \ 4523 __PMC_EV_ALIAS("TLB_FLUSH.DTLB_THREAD", IAP_EVENT_BDH_01H) \ 4524 __PMC_EV_ALIAS("TLB_FLUSH.STLB_ANY", IAP_EVENT_BDH_20H) \ 4525 __PMC_EV_ALIAS("L1D_BLOCKS.BANK_CONFLICT_CYCLES", IAP_EVENT_BFH_05H) \ 4526 __PMC_EV_ALIAS("INST_RETIRED.ANY_P", IAP_EVENT_C0H_00H) \ 4527 __PMC_EV_ALIAS("INST_RETIRED.PREC_DIST", IAP_EVENT_C0H_01H) \ 4528 __PMC_EV_ALIAS("INST_RETIRED.X87", IAP_EVENT_C0H_02H) \ 4529 __PMC_EV_ALIAS("OTHER_ASSISTS.ITLB_MISS_RETIRED", IAP_EVENT_C1H_02H) \ 4530 __PMC_EV_ALIAS("OTHER_ASSISTS.AVX_STORE", IAP_EVENT_C1H_08H) \ 4531 __PMC_EV_ALIAS("OTHER_ASSISTS.AVX_TO_SSE", IAP_EVENT_C1H_10H) \ 4532 __PMC_EV_ALIAS("OTHER_ASSISTS.SSE_TO_AVX", IAP_EVENT_C1H_20H) \ 4533 __PMC_EV_ALIAS("UOPS_RETIRED.ALL", IAP_EVENT_C2H_01H) \ 4534 __PMC_EV_ALIAS("UOPS_RETIRED.RETIRE_SLOTS", IAP_EVENT_C2H_02H) \ 4535 __PMC_EV_ALIAS("MACHINE_CLEARS.MEMORY_ORDERING", IAP_EVENT_C3H_02H) \ 4536 __PMC_EV_ALIAS("MACHINE_CLEARS.SMC", IAP_EVENT_C3H_04H) \ 4537 __PMC_EV_ALIAS("MACHINE_CLEARS.MASKMOV", IAP_EVENT_C3H_20H) \ 4538 __PMC_EV_ALIAS("BR_INST_RETIRED.ALL_BRANCH", IAP_EVENT_C4H_00H) \ 4539 __PMC_EV_ALIAS("BR_INST_RETIRED.CONDITIONAL", IAP_EVENT_C4H_01H) \ 4540 __PMC_EV_ALIAS("BR_INST_RETIRED.NEAR_CALL", IAP_EVENT_C4H_02H) \ 4541 __PMC_EV_ALIAS("BR_INST_RETIRED.ALL_BRANCHES", IAP_EVENT_C4H_04H) \ 4542 __PMC_EV_ALIAS("BR_INST_RETIRED.NEAR_RETURN", IAP_EVENT_C4H_08H) \ 4543 __PMC_EV_ALIAS("BR_INST_RETIRED.NOT_TAKEN", IAP_EVENT_C4H_10H) \ 4544 __PMC_EV_ALIAS("BR_INST_RETIRED.NEAR_TAKEN", IAP_EVENT_C4H_20H) \ 4545 __PMC_EV_ALIAS("BR_INST_RETIRED.FAR_BRANCH", IAP_EVENT_C4H_40H) \ 4546 __PMC_EV_ALIAS("BR_MISP_RETIRED.ALL_BRANCHES", IAP_EVENT_C5H_00H) \ 4547 __PMC_EV_ALIAS("BR_MISP_RETIRED.CONDITIONAL", IAP_EVENT_C5H_01H) \ 4548 __PMC_EV_ALIAS("BR_MISP_RETIRED.NEAR_CALL", IAP_EVENT_C5H_02H) \ 4549 __PMC_EV_ALIAS("BR_MISP_RETIRED.ALL_BRANCHES_PS", IAP_EVENT_C5H_04H) \ 4550 __PMC_EV_ALIAS("BR_MISP_RETIRED.NOT_TAKEN", IAP_EVENT_C5H_10H) \ 4551 __PMC_EV_ALIAS("BR_MISP_RETIRED.TAKEN", IAP_EVENT_C5H_20H) \ 4552 __PMC_EV_ALIAS("FP_ASSIST.X87_OUTPUT", IAP_EVENT_CAH_02H) \ 4553 __PMC_EV_ALIAS("FP_ASSIST.X87_INPUT", IAP_EVENT_CAH_04H) \ 4554 __PMC_EV_ALIAS("FP_ASSIST.SIMD_OUTPUT", IAP_EVENT_CAH_08H) \ 4555 __PMC_EV_ALIAS("FP_ASSIST.SIMD_INPUT", IAP_EVENT_CAH_10H) \ 4556 __PMC_EV_ALIAS("FP_ASSIST.ANY", IAP_EVENT_CAH_1EH) \ 4557 __PMC_EV_ALIAS("ROB_MISC_EVENTS.LBR_INSERTS", IAP_EVENT_CCH_20H) \ 4558 __PMC_EV_ALIAS("MEM_TRANS_RETIRED.LOAD_LATENCY", IAP_EVENT_CDH_01H) \ 4559 __PMC_EV_ALIAS("MEM_TRANS_RETIRED.PRECISE_STORE", IAP_EVENT_CDH_02H) \ 4560 __PMC_EV_ALIAS("MEM_UOP_RETIRED.STLB_MISS_LOADS", IAP_EVENT_D0H_11H) \ 4561 __PMC_EV_ALIAS("MEM_UOP_RETIRED.STLB_MISS_STORES", IAP_EVENT_D0H_12H) \ 4562 __PMC_EV_ALIAS("MEM_UOP_RETIRED.LOCK_LOADS", IAP_EVENT_D0H_21H) \ 4563 __PMC_EV_ALIAS("MEM_UOP_RETIRED.SPLIT_LOADS", IAP_EVENT_D0H_41H) \ 4564 __PMC_EV_ALIAS("MEM_UOP_RETIRED.SPLIT_STORES", IAP_EVENT_D0H_42H) \ 4565 __PMC_EV_ALIAS("MEM_UOP_RETIRED.ALL_LOADS", IAP_EVENT_D0H_81H) \ 4566 __PMC_EV_ALIAS("MEM_UOP_RETIRED.ALL_STORES", IAP_EVENT_D0H_82H) \ 4567 __PMC_EV_ALIAS("MEM_LOAD_UOPS_RETIRED.L1_HIT", IAP_EVENT_D1H_01H) \ 4568 __PMC_EV_ALIAS("MEM_LOAD_UOPS_RETIRED.L2_HIT", IAP_EVENT_D1H_02H) \ 4569 __PMC_EV_ALIAS("MEM_LOAD_UOPS_RETIRED.LLC_HIT", IAP_EVENT_D1H_04H) \ 4570 __PMC_EV_ALIAS("MEM_LOAD_UOPS_RETIRED.HIT_LFB", IAP_EVENT_D1H_40H) \ 4571 __PMC_EV_ALIAS("MEM_LOAD_UOPS_LLC_HIT_RETIRED.XSNP_MISS", \ 4572 IAP_EVENT_D2H_01H) \ 4573 __PMC_EV_ALIAS("MEM_LOAD_UOPS_LLC_HIT_RETIRED.XSNP_HIT", \ 4574 IAP_EVENT_D2H_02H) \ 4575 __PMC_EV_ALIAS("MEM_LOAD_UOPS_LLC_HIT_RETIRED.XSNP_HITM", \ 4576 IAP_EVENT_D2H_04H) \ 4577 __PMC_EV_ALIAS("MEM_LOAD_UOPS_LLC_HIT_RETIRED.XSNP_NONE", \ 4578 IAP_EVENT_D2H_08H) \ 4579 __PMC_EV_ALIAS("MEM_LOAD_UOPS_MISC_RETIRED.LLC_MISS", \ 4580 IAP_EVENT_D4H_02H) \ 4581 __PMC_EV_ALIAS("L2_TRANS.DEMAND_DATA_RD", IAP_EVENT_F0H_01H) \ 4582 __PMC_EV_ALIAS("L2_TRANS.RFO", IAP_EVENT_F0H_02H) \ 4583 __PMC_EV_ALIAS("L2_TRANS.CODE_RD", IAP_EVENT_F0H_04H) \ 4584 __PMC_EV_ALIAS("L2_TRANS.ALL_PF", IAP_EVENT_F0H_08H) \ 4585 __PMC_EV_ALIAS("L2_TRANS.L1D_WB", IAP_EVENT_F0H_10H) \ 4586 __PMC_EV_ALIAS("L2_TRANS.L2_FILL", IAP_EVENT_F0H_20H) \ 4587 __PMC_EV_ALIAS("L2_TRANS.L2_WB", IAP_EVENT_F0H_40H) \ 4588 __PMC_EV_ALIAS("L2_TRANS.ALL_REQUESTS", IAP_EVENT_F0H_80H) \ 4589 __PMC_EV_ALIAS("L2_LINES_IN.I", IAP_EVENT_F1H_01H) \ 4590 __PMC_EV_ALIAS("L2_LINES_IN.S", IAP_EVENT_F1H_02H) \ 4591 __PMC_EV_ALIAS("L2_LINES_IN.E", IAP_EVENT_F1H_04H) \ 4592 __PMC_EV_ALIAS("L2_LINES_IN.ALL", IAP_EVENT_F1H_07H) \ 4593 __PMC_EV_ALIAS("L2_LINES_OUT.DEMAND_CLEAN", IAP_EVENT_F2H_01H) \ 4594 __PMC_EV_ALIAS("L2_LINES_OUT.DEMAND_DIRTY", IAP_EVENT_F2H_02H) \ 4595 __PMC_EV_ALIAS("L2_LINES_OUT.PF_CLEAN", IAP_EVENT_F2H_04H) \ 4596 __PMC_EV_ALIAS("L2_LINES_OUT.PF_DIRTY", IAP_EVENT_F2H_08H) \ 4597 __PMC_EV_ALIAS("L2_LINES_OUT.DIRTY_ALL", IAP_EVENT_F2H_0AH) \ 4598 __PMC_EV_ALIAS("SQ_MISC.SPLIT_LOCK", IAP_EVENT_F4H_10H) 4599 4600 /* 4601 * Aliases for Sandy Bridge Xeon PMC events (253669-044US August 2012) 4602 */ 4603 #define __PMC_EV_ALIAS_SANDYBRIDGE_XEON() \ 4604 __PMC_EV_ALIAS_INTEL_ARCHITECTURAL() \ 4605 __PMC_EV_ALIAS("LD_BLOCKS.DATA_UNKNOWN", IAP_EVENT_03H_01H) \ 4606 __PMC_EV_ALIAS("LD_BLOCKS.STORE_FORWARD", IAP_EVENT_03H_02H) \ 4607 __PMC_EV_ALIAS("LD_BLOCKS.NO_SR", IAP_EVENT_03H_08H) \ 4608 __PMC_EV_ALIAS("LD_BLOCKS.ALL_BLOCK", IAP_EVENT_03H_10H) \ 4609 __PMC_EV_ALIAS("MISALIGN_MEM_REF.LOADS", IAP_EVENT_05H_01H) \ 4610 __PMC_EV_ALIAS("MISALIGN_MEM_REF.STORES", IAP_EVENT_05H_02H) \ 4611 __PMC_EV_ALIAS("LD_BLOCKS_PARTIAL.ADDRESS_ALIAS", IAP_EVENT_07H_01H) \ 4612 __PMC_EV_ALIAS("LD_BLOCKS_PARTIAL.ALL_STA_BLOCK", IAP_EVENT_07H_08H) \ 4613 __PMC_EV_ALIAS("DTLB_LOAD_MISSES.MISS_CAUSES_A_WALK", IAP_EVENT_08H_01H)\ 4614 __PMC_EV_ALIAS("DTLB_LOAD_MISSES.WALK_COMPLETED", IAP_EVENT_08H_02H) \ 4615 __PMC_EV_ALIAS("DTLB_LOAD_MISSES.WALK_DURATION", IAP_EVENT_08H_04H) \ 4616 __PMC_EV_ALIAS("DTLB_LOAD_MISSES.STLB_HIT", IAP_EVENT_08H_10H) \ 4617 __PMC_EV_ALIAS("INT_MISC.RECOVERY_CYCLES", IAP_EVENT_0DH_03H) \ 4618 __PMC_EV_ALIAS("INT_MISC.RAT_STALL_CYCLES", IAP_EVENT_0DH_40H) \ 4619 __PMC_EV_ALIAS("UOPS_ISSUED.ANY", IAP_EVENT_0EH_01H) \ 4620 __PMC_EV_ALIAS("FP_COMP_OPS_EXE.X87", IAP_EVENT_10H_01H) \ 4621 __PMC_EV_ALIAS("FP_COMP_OPS_EXE.SSE_FP_PACKED_DOUBLE", \ 4622 IAP_EVENT_10H_10H) \ 4623 __PMC_EV_ALIAS("FP_COMP_OPS_EXE.SSE_FP_SCALAR_SINGLE", \ 4624 IAP_EVENT_10H_20H) \ 4625 __PMC_EV_ALIAS("FP_COMP_OPS_EXE.SSE_PACKED_SINGLE", IAP_EVENT_10H_40H) \ 4626 __PMC_EV_ALIAS("FP_COMP_OPS_EXE.SSE_SCALAR_DOUBLE", IAP_EVENT_10H_80H) \ 4627 __PMC_EV_ALIAS("SIMD_FP_256.PACKED_SINGLE", IAP_EVENT_11H_01H) \ 4628 __PMC_EV_ALIAS("SIMD_FP_256.PACKED_DOUBLE", IAP_EVENT_11H_02H) \ 4629 __PMC_EV_ALIAS("ARITH.FPU_DIV_ACTIVE", IAP_EVENT_14H_01H) \ 4630 __PMC_EV_ALIAS("INSTS_WRITTEN_TO_IQ.INSTS", IAP_EVENT_17H_01H) \ 4631 __PMC_EV_ALIAS("L2_RQSTS.DEMAND_DATA_RD_HIT", IAP_EVENT_24H_01H) \ 4632 __PMC_EV_ALIAS("L2_RQSTS.ALL_DEMAND_DATA_RD", IAP_EVENT_24H_03H) \ 4633 __PMC_EV_ALIAS("L2_RQSTS.RFO_HITS", IAP_EVENT_24H_04H) \ 4634 __PMC_EV_ALIAS("L2_RQSTS.RFO_MISS", IAP_EVENT_24H_08H) \ 4635 __PMC_EV_ALIAS("L2_RQSTS.ALL_RFO", IAP_EVENT_24H_0CH) \ 4636 __PMC_EV_ALIAS("L2_RQSTS.CODE_RD_HIT", IAP_EVENT_24H_10H) \ 4637 __PMC_EV_ALIAS("L2_RQSTS.CODE_RD_MISS", IAP_EVENT_24H_20H) \ 4638 __PMC_EV_ALIAS("L2_RQSTS.ALL_CODE_RD", IAP_EVENT_24H_30H) \ 4639 __PMC_EV_ALIAS("L2_RQSTS.PF_HIT", IAP_EVENT_24H_40H) \ 4640 __PMC_EV_ALIAS("L2_RQSTS.PF_MISS", IAP_EVENT_24H_80H) \ 4641 __PMC_EV_ALIAS("L2_RQSTS.ALL_PF", IAP_EVENT_24H_C0H) \ 4642 __PMC_EV_ALIAS("L2_STORE_LOCK_RQSTS.MISS", IAP_EVENT_27H_01H) \ 4643 __PMC_EV_ALIAS("L2_STORE_LOCK_RQSTS.HIT_E", IAP_EVENT_27H_04H) \ 4644 __PMC_EV_ALIAS("L2_STORE_LOCK_RQSTS.HIT_M", IAP_EVENT_27H_08H) \ 4645 __PMC_EV_ALIAS("L2_STORE_LOCK_RQSTS.ALL", IAP_EVENT_27H_0FH) \ 4646 __PMC_EV_ALIAS("L2_L1D_WB_RQSTS.MISS", IAP_EVENT_28H_01H) \ 4647 __PMC_EV_ALIAS("L2_L1D_WB_RQSTS.HIT_S", IAP_EVENT_28H_02H) \ 4648 __PMC_EV_ALIAS("L2_L1D_WB_RQSTS.HIT_E", IAP_EVENT_28H_04H) \ 4649 __PMC_EV_ALIAS("L2_L1D_WB_RQSTS.HIT_M", IAP_EVENT_28H_08H) \ 4650 __PMC_EV_ALIAS("L2_L1D_WB_RQSTS.ALL", IAP_EVENT_28H_0FH) \ 4651 __PMC_EV_ALIAS("LONGEST_LAT_CACHE.REFERENCE", IAP_EVENT_2EH_4FH) \ 4652 __PMC_EV_ALIAS("LONGEST_LAT_CACHE.MISS", IAP_EVENT_2EH_41H) \ 4653 __PMC_EV_ALIAS("CPU_CLK_UNHALTED.THREAD_P", IAP_EVENT_3CH_00H) \ 4654 __PMC_EV_ALIAS("CPU_CLK_THREAD_UNHALTED.REF_XCLK", IAP_EVENT_3CH_01H) \ 4655 __PMC_EV_ALIAS("L1D_PEND_MISS.PENDING", IAP_EVENT_48H_01H) \ 4656 __PMC_EV_ALIAS("DTLB_STORE_MISSES.MISS_CAUSES_A_WALK", \ 4657 IAP_EVENT_49H_01H) \ 4658 __PMC_EV_ALIAS("DTLB_STORE_MISSES.WALK_COMPLETED", IAP_EVENT_49H_02H) \ 4659 __PMC_EV_ALIAS("DTLB_STORE_MISSES.WALK_DURATION", IAP_EVENT_49H_04H) \ 4660 __PMC_EV_ALIAS("DTLB_STORE_MISSES.STLB_HIT", IAP_EVENT_49H_10H) \ 4661 __PMC_EV_ALIAS("LOAD_HIT_PRE.SW_PF", IAP_EVENT_4CH_01H) \ 4662 __PMC_EV_ALIAS("LOAD_HIT_PRE.HW_PF", IAP_EVENT_4CH_02H) \ 4663 __PMC_EV_ALIAS("HW_PRE_REQ.DL1_MISS", IAP_EVENT_4EH_02H) \ 4664 __PMC_EV_ALIAS("L1D.REPLACEMENT", IAP_EVENT_51H_01H) \ 4665 __PMC_EV_ALIAS("L1D.ALLOCATED_IN_M", IAP_EVENT_51H_02H) \ 4666 __PMC_EV_ALIAS("L1D.EVICTION", IAP_EVENT_51H_04H) \ 4667 __PMC_EV_ALIAS("L1D.ALL_M_REPLACEMENT", IAP_EVENT_51H_08H) \ 4668 __PMC_EV_ALIAS("PARTIAL_RAT_STALLS.FLAGS_MERGE_UOP", IAP_EVENT_59H_20H) \ 4669 __PMC_EV_ALIAS("PARTIAL_RAT_STALLS.SLOW_LEA_WINDOW", IAP_EVENT_59H_40H) \ 4670 __PMC_EV_ALIAS("PARTIAL_RAT_STALLS.MUL_SINGLE_UOP", IAP_EVENT_59H_80H) \ 4671 __PMC_EV_ALIAS("RESOURCE_STALLS2.ALL_FL_EMPTY", IAP_EVENT_5BH_0CH) \ 4672 __PMC_EV_ALIAS("RESOURCE_STALLS2.ALL_PRF_CONTROL", IAP_EVENT_5BH_0FH) \ 4673 __PMC_EV_ALIAS("RESOURCE_STALLS2.BOB_FULL", IAP_EVENT_5BH_40H) \ 4674 __PMC_EV_ALIAS("RESOURCE_STALLS2.OOO_RSRC", IAP_EVENT_5BH_4FH) \ 4675 __PMC_EV_ALIAS("CPL_CYCLES.RING0", IAP_EVENT_5CH_01H) \ 4676 __PMC_EV_ALIAS("CPL_CYCLES.RING123", IAP_EVENT_5CH_02H) \ 4677 __PMC_EV_ALIAS("RS_EVENTS.EMPTY_CYCLES", IAP_EVENT_5EH_01H) \ 4678 __PMC_EV_ALIAS("OFFCORE_REQUESTS_OUTSTANDING.DEMAND_DATA_RD", \ 4679 IAP_EVENT_60H_01H) \ 4680 __PMC_EV_ALIAS("OFFCORE_REQUESTS_OUTSTANDING.DEMAND_RFO", \ 4681 IAP_EVENT_60H_04H) \ 4682 __PMC_EV_ALIAS("OFFCORE_REQUESTS_OUTSTANDING.ALL_DATA_RD", \ 4683 IAP_EVENT_60H_08H) \ 4684 __PMC_EV_ALIAS("LOCK_CYCLES.SPLIT_LOCK_UC_LOCK_DURATION", \ 4685 IAP_EVENT_63H_01H) \ 4686 __PMC_EV_ALIAS("LOCK_CYCLES.CACHE_LOCK_DURATION", IAP_EVENT_63H_02H) \ 4687 __PMC_EV_ALIAS("IDQ.EMPTY", IAP_EVENT_79H_02H) \ 4688 __PMC_EV_ALIAS("IDQ.MITE_UOPS", IAP_EVENT_79H_04H) \ 4689 __PMC_EV_ALIAS("IDQ.DSB_UOPS", IAP_EVENT_79H_08H) \ 4690 __PMC_EV_ALIAS("IDQ.MS_DSB_UOPS", IAP_EVENT_79H_10H) \ 4691 __PMC_EV_ALIAS("IDQ.MS_MITE_UOPS", IAP_EVENT_79H_20H) \ 4692 __PMC_EV_ALIAS("IDQ.MS_UOPS", IAP_EVENT_79H_30H) \ 4693 __PMC_EV_ALIAS("ICACHE.MISSES", IAP_EVENT_80H_02H) \ 4694 __PMC_EV_ALIAS("ITLB_MISSES.MISS_CAUSES_A_WALK", IAP_EVENT_85H_01H) \ 4695 __PMC_EV_ALIAS("ITLB_MISSES.WALK_COMPLETED", IAP_EVENT_85H_02H) \ 4696 __PMC_EV_ALIAS("ITLB_MISSES.WALK_DURATION", IAP_EVENT_85H_04H) \ 4697 __PMC_EV_ALIAS("ITLB_MISSES.STLB_HIT", IAP_EVENT_85H_10H) \ 4698 __PMC_EV_ALIAS("ILD_STALL.LCP", IAP_EVENT_87H_01H) \ 4699 __PMC_EV_ALIAS("ILD_STALL.IQ_FULL", IAP_EVENT_87H_04H) \ 4700 __PMC_EV_ALIAS("BR_INST_EXEC.NONTAKEN_COND", IAP_EVENT_88H_41H) \ 4701 __PMC_EV_ALIAS("BR_INST_EXEC.TAKEN_COND", IAP_EVENT_88H_81H) \ 4702 __PMC_EV_ALIAS("BR_INST_EXEC.DIRECT_JMP", IAP_EVENT_88H_82H) \ 4703 __PMC_EV_ALIAS("BR_INST_EXEC.INDIRECT_JMP_NON_CALL_RET", \ 4704 IAP_EVENT_88H_84H) \ 4705 __PMC_EV_ALIAS("BR_INST_EXEC.RETURN_NEAR", IAP_EVENT_88H_88H) \ 4706 __PMC_EV_ALIAS("BR_INST_EXEC.DIRECT_NEAR_CALL", IAP_EVENT_88H_90H) \ 4707 __PMC_EV_ALIAS("BR_INST_EXEC.INDIRECT_NEAR_CALL", IAP_EVENT_88H_A0H) \ 4708 __PMC_EV_ALIAS("BR_INST_EXEC.ALL_BRANCHES", IAP_EVENT_88H_FFH) \ 4709 __PMC_EV_ALIAS("BR_MISP_EXEC.NONTAKEN_COND", IAP_EVENT_89H_41H) \ 4710 __PMC_EV_ALIAS("BR_MISP_EXEC.TAKEN_COND", IAP_EVENT_89H_81H) \ 4711 __PMC_EV_ALIAS("BR_MISP_EXEC.INDIRECT_JMP_NON_CALL_RET", \ 4712 IAP_EVENT_89H_84H) \ 4713 __PMC_EV_ALIAS("BR_MISP_EXEC.RETURN_NEAR", IAP_EVENT_89H_88H) \ 4714 __PMC_EV_ALIAS("BR_MISP_EXEC.DIRECT_NEAR_CALL", IAP_EVENT_89H_90H) \ 4715 __PMC_EV_ALIAS("BR_MISP_EXEC.INDIRECT_NEAR_CALL", IAP_EVENT_89H_A0H) \ 4716 __PMC_EV_ALIAS("BR_MISP_EXEC.ALL_BRANCHES", IAP_EVENT_89H_FFH) \ 4717 __PMC_EV_ALIAS("IDQ_UOPS_NOT_DELIVERED.CORE", IAP_EVENT_9CH_01H) \ 4718 __PMC_EV_ALIAS("UOPS_DISPATCHED_PORT.PORT_0", IAP_EVENT_A1H_01H) \ 4719 __PMC_EV_ALIAS("UOPS_DISPATCHED_PORT.PORT_1", IAP_EVENT_A1H_02H) \ 4720 __PMC_EV_ALIAS("UOPS_DISPATCHED_PORT.PORT_2_LD", IAP_EVENT_A1H_04H) \ 4721 __PMC_EV_ALIAS("UOPS_DISPATCHED_PORT.PORT_2_STA", IAP_EVENT_A1H_08H) \ 4722 __PMC_EV_ALIAS("UOPS_DISPATCHED_PORT.PORT_2", IAP_EVENT_A1H_0CH) \ 4723 __PMC_EV_ALIAS("UOPS_DISPATCHED_PORT.PORT_3_LD", IAP_EVENT_A1H_10H) \ 4724 __PMC_EV_ALIAS("UOPS_DISPATCHED_PORT.PORT_3_STA", IAP_EVENT_A1H_20H) \ 4725 __PMC_EV_ALIAS("UOPS_DISPATCHED_PORT.PORT_3", IAP_EVENT_A1H_30H) \ 4726 __PMC_EV_ALIAS("UOPS_DISPATCHED_PORT.PORT_4", IAP_EVENT_A1H_40H) \ 4727 __PMC_EV_ALIAS("UOPS_DISPATCHED_PORT.PORT_5", IAP_EVENT_A1H_80H) \ 4728 __PMC_EV_ALIAS("RESOURCE_STALLS.ANY", IAP_EVENT_A2H_01H) \ 4729 __PMC_EV_ALIAS("RESOURCE_STALLS.LB", IAP_EVENT_A2H_02H) \ 4730 __PMC_EV_ALIAS("RESOURCE_STALLS.RS", IAP_EVENT_A2H_04H) \ 4731 __PMC_EV_ALIAS("RESOURCE_STALLS.SB", IAP_EVENT_A2H_08H) \ 4732 __PMC_EV_ALIAS("RESOURCE_STALLS.ROB", IAP_EVENT_A2H_10H) \ 4733 __PMC_EV_ALIAS("RESOURCE_STALLS.FCSW", IAP_EVENT_A2H_20H) \ 4734 __PMC_EV_ALIAS("RESOURCE_STALLS.MXCSR", IAP_EVENT_A2H_40H) \ 4735 __PMC_EV_ALIAS("RESOURCE_STALLS.OTHER", IAP_EVENT_A2H_80H) \ 4736 __PMC_EV_ALIAS("CYCLE_ACTIVITY.CYCLES_L2_PENDING", IAP_EVENT_A3H_01H) \ 4737 __PMC_EV_ALIAS("CYCLE_ACTIVITY.CYCLES_L1D_PENDING", IAP_EVENT_A3H_02H) \ 4738 __PMC_EV_ALIAS("CYCLE_ACTIVITY.CYCLES_NO_DISPATCH", IAP_EVENT_A3H_04H) \ 4739 __PMC_EV_ALIAS("LSD.UOPS", IAP_EVENT_A8H_01H) \ 4740 __PMC_EV_ALIAS("DSB2MITE_SWITCHES.COUNT", IAP_EVENT_ABH_01H) \ 4741 __PMC_EV_ALIAS("DSB2MITE_SWITCHES.PENALTY_CYCLES", IAP_EVENT_ABH_02H) \ 4742 __PMC_EV_ALIAS("DSB_FILL.OTHER_CANCEL", IAP_EVENT_ACH_02H) \ 4743 __PMC_EV_ALIAS("DSB_FILL.EXCEED_DSB_LINES", IAP_EVENT_ACH_08H) \ 4744 __PMC_EV_ALIAS("DSB_FILL.ALL_CANCEL", IAP_EVENT_ACH_0AH) \ 4745 __PMC_EV_ALIAS("ITLB.ITLB_FLUSH", IAP_EVENT_AEH_01H) \ 4746 __PMC_EV_ALIAS("OFFCORE_REQUESTS.DEMAND_DATA_RD", IAP_EVENT_B0H_01H) \ 4747 __PMC_EV_ALIAS("OFFCORE_REQUESTS.DEMAND_RFO", IAP_EVENT_B0H_04H) \ 4748 __PMC_EV_ALIAS("OFFCORE_REQUESTS.ALL_DATA_RD", IAP_EVENT_B0H_08H) \ 4749 __PMC_EV_ALIAS("UOPS_DISPATCHED.THREAD", IAP_EVENT_B1H_01H) \ 4750 __PMC_EV_ALIAS("UOPS_DISPATCHED.CORE", IAP_EVENT_B1H_02H) \ 4751 __PMC_EV_ALIAS("OFFCORE_REQUESTS_BUFFER.SQ_FULL", IAP_EVENT_B2H_01H) \ 4752 __PMC_EV_ALIAS("AGU_BYPASS_CANCEL.COUNT", IAP_EVENT_B6H_01H) \ 4753 __PMC_EV_ALIAS("OFF_CORE_RESPONSE_0", IAP_EVENT_B7H_01H) \ 4754 __PMC_EV_ALIAS("OFF_CORE_RESPONSE_1", IAP_EVENT_BBH_01H) \ 4755 __PMC_EV_ALIAS("TLB_FLUSH.DTLB_THREAD", IAP_EVENT_BDH_01H) \ 4756 __PMC_EV_ALIAS("TLB_FLUSH.STLB_ANY", IAP_EVENT_BDH_20H) \ 4757 __PMC_EV_ALIAS("L1D_BLOCKS.BANK_CONFLICT_CYCLES", IAP_EVENT_BFH_05H) \ 4758 __PMC_EV_ALIAS("INST_RETIRED.ANY_P", IAP_EVENT_C0H_00H) \ 4759 __PMC_EV_ALIAS("INST_RETIRED.ALL", IAP_EVENT_C0H_01H) \ 4760 __PMC_EV_ALIAS("OTHER_ASSISTS.ITLB_MISS_RETIRED", IAP_EVENT_C1H_02H) \ 4761 __PMC_EV_ALIAS("OTHER_ASSISTS.AVX_STORE", IAP_EVENT_C1H_08H) \ 4762 __PMC_EV_ALIAS("OTHER_ASSISTS.AVX_TO_SSE", IAP_EVENT_C1H_10H) \ 4763 __PMC_EV_ALIAS("OTHER_ASSISTS.SSE_TO_AVX", IAP_EVENT_C1H_20H) \ 4764 __PMC_EV_ALIAS("UOPS_RETIRED.ALL", IAP_EVENT_C2H_01H) \ 4765 __PMC_EV_ALIAS("UOPS_RETIRED.RETIRE_SLOTS", IAP_EVENT_C2H_02H) \ 4766 __PMC_EV_ALIAS("MACHINE_CLEARS.MEMORY_ORDERING", IAP_EVENT_C3H_02H) \ 4767 __PMC_EV_ALIAS("MACHINE_CLEARS.SMC", IAP_EVENT_C3H_04H) \ 4768 __PMC_EV_ALIAS("MACHINE_CLEARS.MASKMOV", IAP_EVENT_C3H_20H) \ 4769 __PMC_EV_ALIAS("BR_INST_RETIRED.ALL_BRANCH", IAP_EVENT_C4H_00H) \ 4770 __PMC_EV_ALIAS("BR_INST_RETIRED.CONDITIONAL", IAP_EVENT_C4H_01H) \ 4771 __PMC_EV_ALIAS("BR_INST_RETIRED.NEAR_CALL", IAP_EVENT_C4H_02H) \ 4772 __PMC_EV_ALIAS("BR_INST_RETIRED.ALL_BRANCHES", IAP_EVENT_C4H_04H) \ 4773 __PMC_EV_ALIAS("BR_INST_RETIRED.NEAR_RETURN", IAP_EVENT_C4H_08H) \ 4774 __PMC_EV_ALIAS("BR_INST_RETIRED.NOT_TAKEN", IAP_EVENT_C4H_10H) \ 4775 __PMC_EV_ALIAS("BR_INST_RETIRED.NEAR_TAKEN", IAP_EVENT_C4H_20H) \ 4776 __PMC_EV_ALIAS("BR_INST_RETIRED.FAR_BRANCH", IAP_EVENT_C4H_40H) \ 4777 __PMC_EV_ALIAS("BR_MISP_RETIRED.ALL_BRANCHES", IAP_EVENT_C5H_00H) \ 4778 __PMC_EV_ALIAS("BR_MISP_RETIRED.CONDITIONAL", IAP_EVENT_C5H_01H) \ 4779 __PMC_EV_ALIAS("BR_MISP_RETIRED.NEAR_CALL", IAP_EVENT_C5H_02H) \ 4780 __PMC_EV_ALIAS("BR_MISP_RETIRED.ALL_BRANCHES_PS", IAP_EVENT_C5H_04H) \ 4781 __PMC_EV_ALIAS("BR_MISP_RETIRED.NOT_TAKEN", IAP_EVENT_C5H_10H) \ 4782 __PMC_EV_ALIAS("BR_MISP_RETIRED.TAKEN", IAP_EVENT_C5H_20H) \ 4783 __PMC_EV_ALIAS("FP_ASSIST.X87_OUTPUT", IAP_EVENT_CAH_02H) \ 4784 __PMC_EV_ALIAS("FP_ASSIST.X87_INPUT", IAP_EVENT_CAH_04H) \ 4785 __PMC_EV_ALIAS("FP_ASSIST.SIMD_OUTPUT", IAP_EVENT_CAH_08H) \ 4786 __PMC_EV_ALIAS("FP_ASSIST.SIMD_INPUT", IAP_EVENT_CAH_10H) \ 4787 __PMC_EV_ALIAS("FP_ASSIST.ANY", IAP_EVENT_CAH_1EH) \ 4788 __PMC_EV_ALIAS("ROB_MISC_EVENTS.LBR_INSERTS", IAP_EVENT_CCH_20H) \ 4789 __PMC_EV_ALIAS("MEM_TRANS_RETIRED.LOAD_LATENCY", IAP_EVENT_CDH_01H) \ 4790 __PMC_EV_ALIAS("MEM_TRANS_RETIRED.PRECISE_STORE", IAP_EVENT_CDH_02H) \ 4791 __PMC_EV_ALIAS("MEM_UOP_RETIRED.STLB_MISS_LOADS", IAP_EVENT_D0H_11H) \ 4792 __PMC_EV_ALIAS("MEM_UOP_RETIRED.STLB_MISS_STORES", IAP_EVENT_D0H_12H) \ 4793 __PMC_EV_ALIAS("MEM_UOP_RETIRED.LOCK_LOADS", IAP_EVENT_D0H_21H) \ 4794 __PMC_EV_ALIAS("MEM_UOP_RETIRED.SPLIT_LOADS", IAP_EVENT_D0H_41H) \ 4795 __PMC_EV_ALIAS("MEM_UOP_RETIRED.SPLIT_STORES", IAP_EVENT_D0H_42H) \ 4796 __PMC_EV_ALIAS("MEM_UOP_RETIRED.ALL_LOADS", IAP_EVENT_D0H_81H) \ 4797 __PMC_EV_ALIAS("MEM_UOP_RETIRED.ALL_STORES", IAP_EVENT_D0H_82H) \ 4798 __PMC_EV_ALIAS("MEM_LOAD_UOPS_RETIRED.L1_HIT", IAP_EVENT_D1H_01H) \ 4799 __PMC_EV_ALIAS("MEM_LOAD_UOPS_RETIRED.L2_HIT", IAP_EVENT_D1H_02H) \ 4800 __PMC_EV_ALIAS("MEM_LOAD_UOPS_RETIRED.LLC_HIT", IAP_EVENT_D1H_04H) \ 4801 __PMC_EV_ALIAS("MEM_LOAD_UOPS_RETIRED.LLC_MISS", IAP_EVENT_D1H_20H) \ 4802 __PMC_EV_ALIAS("MEM_LOAD_UOPS_RETIRED.HIT_LFB", IAP_EVENT_D1H_40H) \ 4803 __PMC_EV_ALIAS("MEM_LOAD_UOPS_LLC_HIT_RETIRED.XSNP_MISS", \ 4804 IAP_EVENT_D2H_01H) \ 4805 __PMC_EV_ALIAS("MEM_LOAD_UOPS_LLC_HIT_RETIRED.XSNP_HIT", \ 4806 IAP_EVENT_D2H_02H) \ 4807 __PMC_EV_ALIAS("MEM_LOAD_UOPS_LLC_HIT_RETIRED.XSNP_HITM", \ 4808 IAP_EVENT_D2H_04H) \ 4809 __PMC_EV_ALIAS("MEM_LOAD_UOPS_LLC_HIT_RETIRED.XSNP_NONE", \ 4810 IAP_EVENT_D2H_08H) \ 4811 __PMC_EV_ALIAS("MEM_LOAD_UOPS_LLC_HIT_RETIRED.ALL", \ 4812 IAP_EVENT_D2H_0FH) \ 4813 __PMC_EV_ALIAS("MEM_LOAD_UOPS_LLC_MISS_RETIRED.LOCAL_DRAM", \ 4814 IAP_EVENT_D3H_01H) \ 4815 __PMC_EV_ALIAS("MEM_LOAD_UOPS_LLC_MISS_RETIRED.REMOTE_DRAM", \ 4816 IAP_EVENT_D3H_04H) \ 4817 __PMC_EV_ALIAS("MEM_LOAD_UOPS_MISC_RETIRED.LLC_MISS", \ 4818 IAP_EVENT_D4H_02H) \ 4819 __PMC_EV_ALIAS("BACLEARS.ANY", IAP_EVENT_E6H_01H) \ 4820 __PMC_EV_ALIAS("L2_TRANS.DEMAND_DATA_RD", IAP_EVENT_F0H_01H) \ 4821 __PMC_EV_ALIAS("L2_TRANS.RFO", IAP_EVENT_F0H_02H) \ 4822 __PMC_EV_ALIAS("L2_TRANS.CODE_RD", IAP_EVENT_F0H_04H) \ 4823 __PMC_EV_ALIAS("L2_TRANS.ALL_PF", IAP_EVENT_F0H_08H) \ 4824 __PMC_EV_ALIAS("L2_TRANS.L1D_WB", IAP_EVENT_F0H_10H) \ 4825 __PMC_EV_ALIAS("L2_TRANS.L2_FILL", IAP_EVENT_F0H_20H) \ 4826 __PMC_EV_ALIAS("L2_TRANS.L2_WB", IAP_EVENT_F0H_40H) \ 4827 __PMC_EV_ALIAS("L2_TRANS.ALL_REQUESTS", IAP_EVENT_F0H_80H) \ 4828 __PMC_EV_ALIAS("L2_LINES_IN.I", IAP_EVENT_F1H_01H) \ 4829 __PMC_EV_ALIAS("L2_LINES_IN.S", IAP_EVENT_F1H_02H) \ 4830 __PMC_EV_ALIAS("L2_LINES_IN.E", IAP_EVENT_F1H_04H) \ 4831 __PMC_EV_ALIAS("L2_LINES_IN.ALL", IAP_EVENT_F1H_07H) \ 4832 __PMC_EV_ALIAS("L2_LINES_OUT.DEMAND_CLEAN", IAP_EVENT_F2H_01H) \ 4833 __PMC_EV_ALIAS("L2_LINES_OUT.DEMAND_DIRTY", IAP_EVENT_F2H_02H) \ 4834 __PMC_EV_ALIAS("L2_LINES_OUT.PF_CLEAN", IAP_EVENT_F2H_04H) \ 4835 __PMC_EV_ALIAS("L2_LINES_OUT.PF_DIRTY", IAP_EVENT_F2H_08H) \ 4836 __PMC_EV_ALIAS("L2_LINES_OUT.DIRTY_ALL", IAP_EVENT_F2H_0AH) \ 4837 __PMC_EV_ALIAS("SQ_MISC.SPLIT_LOCK", IAP_EVENT_F4H_10H) 4838 4839 /* timestamp counters. */ 4840 #define __PMC_EV_TSC() \ 4841 __PMC_EV(TSC, TSC) 4842 4843 #define PMC_EV_TSC_FIRST PMC_EV_TSC_TSC 4844 #define PMC_EV_TSC_LAST PMC_EV_TSC_TSC 4845 4846 /* 4847 * Software events are dynamically defined. 4848 */ 4849 4850 #define PMC_EV_DYN_COUNT 0x1000 4851 4852 #define PMC_EV_SOFT_FIRST 0x20000 4853 #define PMC_EV_SOFT_LAST (PMC_EV_SOFT_FIRST + PMC_EV_DYN_COUNT - 1) 4854 4855 #define __PMC_EV_UCF() \ 4856 __PMC_EV(UCF, UCLOCK) 4857 4858 #define PMC_EV_UCF_FIRST PMC_EV_UCF_UCLOCK 4859 #define PMC_EV_UCF_LAST PMC_EV_UCF_UCLOCK 4860 4861 #define __PMC_EV_UCP() \ 4862 __PMC_EV(UCP, EVENT_00H_01H) \ 4863 __PMC_EV(UCP, EVENT_00H_02H) \ 4864 __PMC_EV(UCP, EVENT_00H_04H) \ 4865 __PMC_EV(UCP, EVENT_01H_01H) \ 4866 __PMC_EV(UCP, EVENT_01H_02H) \ 4867 __PMC_EV(UCP, EVENT_01H_04H) \ 4868 __PMC_EV(UCP, EVENT_02H_01H) \ 4869 __PMC_EV(UCP, EVENT_03H_01H) \ 4870 __PMC_EV(UCP, EVENT_03H_02H) \ 4871 __PMC_EV(UCP, EVENT_03H_04H) \ 4872 __PMC_EV(UCP, EVENT_03H_08H) \ 4873 __PMC_EV(UCP, EVENT_03H_10H) \ 4874 __PMC_EV(UCP, EVENT_03H_20H) \ 4875 __PMC_EV(UCP, EVENT_03H_40H) \ 4876 __PMC_EV(UCP, EVENT_04H_01H) \ 4877 __PMC_EV(UCP, EVENT_04H_02H) \ 4878 __PMC_EV(UCP, EVENT_04H_04H) \ 4879 __PMC_EV(UCP, EVENT_04H_08H) \ 4880 __PMC_EV(UCP, EVENT_04H_10H) \ 4881 __PMC_EV(UCP, EVENT_05H_01H) \ 4882 __PMC_EV(UCP, EVENT_05H_02H) \ 4883 __PMC_EV(UCP, EVENT_05H_04H) \ 4884 __PMC_EV(UCP, EVENT_06H_01H) \ 4885 __PMC_EV(UCP, EVENT_06H_02H) \ 4886 __PMC_EV(UCP, EVENT_06H_04H) \ 4887 __PMC_EV(UCP, EVENT_06H_08H) \ 4888 __PMC_EV(UCP, EVENT_06H_10H) \ 4889 __PMC_EV(UCP, EVENT_06H_20H) \ 4890 __PMC_EV(UCP, EVENT_07H_01H) \ 4891 __PMC_EV(UCP, EVENT_07H_02H) \ 4892 __PMC_EV(UCP, EVENT_07H_04H) \ 4893 __PMC_EV(UCP, EVENT_07H_08H) \ 4894 __PMC_EV(UCP, EVENT_07H_10H) \ 4895 __PMC_EV(UCP, EVENT_07H_20H) \ 4896 __PMC_EV(UCP, EVENT_07H_24H) \ 4897 __PMC_EV(UCP, EVENT_08H_01H) \ 4898 __PMC_EV(UCP, EVENT_08H_02H) \ 4899 __PMC_EV(UCP, EVENT_08H_04H) \ 4900 __PMC_EV(UCP, EVENT_08H_03H) \ 4901 __PMC_EV(UCP, EVENT_09H_01H) \ 4902 __PMC_EV(UCP, EVENT_09H_02H) \ 4903 __PMC_EV(UCP, EVENT_09H_04H) \ 4904 __PMC_EV(UCP, EVENT_09H_03H) \ 4905 __PMC_EV(UCP, EVENT_0AH_01H) \ 4906 __PMC_EV(UCP, EVENT_0AH_02H) \ 4907 __PMC_EV(UCP, EVENT_0AH_04H) \ 4908 __PMC_EV(UCP, EVENT_0AH_08H) \ 4909 __PMC_EV(UCP, EVENT_0AH_0FH) \ 4910 __PMC_EV(UCP, EVENT_0BH_01H) \ 4911 __PMC_EV(UCP, EVENT_0BH_02H) \ 4912 __PMC_EV(UCP, EVENT_0BH_04H) \ 4913 __PMC_EV(UCP, EVENT_0BH_08H) \ 4914 __PMC_EV(UCP, EVENT_0BH_10H) \ 4915 __PMC_EV(UCP, EVENT_0BH_1FH) \ 4916 __PMC_EV(UCP, EVENT_0CH_01H) \ 4917 __PMC_EV(UCP, EVENT_0CH_02H) \ 4918 __PMC_EV(UCP, EVENT_0CH_04H_E) \ 4919 __PMC_EV(UCP, EVENT_0CH_04H_F) \ 4920 __PMC_EV(UCP, EVENT_0CH_04H_M) \ 4921 __PMC_EV(UCP, EVENT_0CH_04H_S) \ 4922 __PMC_EV(UCP, EVENT_0CH_08H_E) \ 4923 __PMC_EV(UCP, EVENT_0CH_08H_F) \ 4924 __PMC_EV(UCP, EVENT_0CH_08H_M) \ 4925 __PMC_EV(UCP, EVENT_0CH_08H_S) \ 4926 __PMC_EV(UCP, EVENT_20H_01H) \ 4927 __PMC_EV(UCP, EVENT_20H_02H) \ 4928 __PMC_EV(UCP, EVENT_20H_04H) \ 4929 __PMC_EV(UCP, EVENT_20H_08H) \ 4930 __PMC_EV(UCP, EVENT_20H_10H) \ 4931 __PMC_EV(UCP, EVENT_20H_20H) \ 4932 __PMC_EV(UCP, EVENT_21H_01H) \ 4933 __PMC_EV(UCP, EVENT_21H_02H) \ 4934 __PMC_EV(UCP, EVENT_21H_04H) \ 4935 __PMC_EV(UCP, EVENT_22H_01H) \ 4936 __PMC_EV(UCP, EVENT_22H_02H) \ 4937 __PMC_EV(UCP, EVENT_22H_04H) \ 4938 __PMC_EV(UCP, EVENT_22H_08H) \ 4939 __PMC_EV(UCP, EVENT_22H_10H) \ 4940 __PMC_EV(UCP, EVENT_22H_20H) \ 4941 __PMC_EV(UCP, EVENT_22H_40H) \ 4942 __PMC_EV(UCP, EVENT_22H_80H) \ 4943 __PMC_EV(UCP, EVENT_23H_01H) \ 4944 __PMC_EV(UCP, EVENT_23H_02H) \ 4945 __PMC_EV(UCP, EVENT_23H_04H) \ 4946 __PMC_EV(UCP, EVENT_24H_02H) \ 4947 __PMC_EV(UCP, EVENT_24H_04H) \ 4948 __PMC_EV(UCP, EVENT_25H_01H) \ 4949 __PMC_EV(UCP, EVENT_25H_02H) \ 4950 __PMC_EV(UCP, EVENT_25H_04H) \ 4951 __PMC_EV(UCP, EVENT_26H_01H) \ 4952 __PMC_EV(UCP, EVENT_27H_01H) \ 4953 __PMC_EV(UCP, EVENT_27H_02H) \ 4954 __PMC_EV(UCP, EVENT_27H_04H) \ 4955 __PMC_EV(UCP, EVENT_27H_08H) \ 4956 __PMC_EV(UCP, EVENT_27H_10H) \ 4957 __PMC_EV(UCP, EVENT_27H_20H) \ 4958 __PMC_EV(UCP, EVENT_28H_01H) \ 4959 __PMC_EV(UCP, EVENT_28H_02H) \ 4960 __PMC_EV(UCP, EVENT_28H_04H) \ 4961 __PMC_EV(UCP, EVENT_28H_08H) \ 4962 __PMC_EV(UCP, EVENT_28H_10H) \ 4963 __PMC_EV(UCP, EVENT_28H_20H) \ 4964 __PMC_EV(UCP, EVENT_29H_01H) \ 4965 __PMC_EV(UCP, EVENT_29H_02H) \ 4966 __PMC_EV(UCP, EVENT_29H_04H) \ 4967 __PMC_EV(UCP, EVENT_29H_08H) \ 4968 __PMC_EV(UCP, EVENT_29H_10H) \ 4969 __PMC_EV(UCP, EVENT_29H_20H) \ 4970 __PMC_EV(UCP, EVENT_2AH_01H) \ 4971 __PMC_EV(UCP, EVENT_2AH_02H) \ 4972 __PMC_EV(UCP, EVENT_2AH_04H) \ 4973 __PMC_EV(UCP, EVENT_2AH_07H) \ 4974 __PMC_EV(UCP, EVENT_2BH_01H) \ 4975 __PMC_EV(UCP, EVENT_2BH_02H) \ 4976 __PMC_EV(UCP, EVENT_2BH_04H) \ 4977 __PMC_EV(UCP, EVENT_2BH_07H) \ 4978 __PMC_EV(UCP, EVENT_2CH_01H) \ 4979 __PMC_EV(UCP, EVENT_2CH_02H) \ 4980 __PMC_EV(UCP, EVENT_2CH_04H) \ 4981 __PMC_EV(UCP, EVENT_2CH_07H) \ 4982 __PMC_EV(UCP, EVENT_2DH_01H) \ 4983 __PMC_EV(UCP, EVENT_2DH_02H) \ 4984 __PMC_EV(UCP, EVENT_2DH_04H) \ 4985 __PMC_EV(UCP, EVENT_2DH_07H) \ 4986 __PMC_EV(UCP, EVENT_2EH_01H) \ 4987 __PMC_EV(UCP, EVENT_2EH_02H) \ 4988 __PMC_EV(UCP, EVENT_2EH_04H) \ 4989 __PMC_EV(UCP, EVENT_2EH_07H) \ 4990 __PMC_EV(UCP, EVENT_2FH_01H) \ 4991 __PMC_EV(UCP, EVENT_2FH_02H) \ 4992 __PMC_EV(UCP, EVENT_2FH_04H) \ 4993 __PMC_EV(UCP, EVENT_2FH_07H) \ 4994 __PMC_EV(UCP, EVENT_2FH_08H) \ 4995 __PMC_EV(UCP, EVENT_2FH_10H) \ 4996 __PMC_EV(UCP, EVENT_2FH_20H) \ 4997 __PMC_EV(UCP, EVENT_2FH_38H) \ 4998 __PMC_EV(UCP, EVENT_30H_01H) \ 4999 __PMC_EV(UCP, EVENT_30H_02H) \ 5000 __PMC_EV(UCP, EVENT_30H_04H) \ 5001 __PMC_EV(UCP, EVENT_30H_07H) \ 5002 __PMC_EV(UCP, EVENT_31H_01H) \ 5003 __PMC_EV(UCP, EVENT_31H_02H) \ 5004 __PMC_EV(UCP, EVENT_31H_04H) \ 5005 __PMC_EV(UCP, EVENT_31H_07H) \ 5006 __PMC_EV(UCP, EVENT_32H_01H) \ 5007 __PMC_EV(UCP, EVENT_32H_02H) \ 5008 __PMC_EV(UCP, EVENT_32H_04H) \ 5009 __PMC_EV(UCP, EVENT_32H_07H) \ 5010 __PMC_EV(UCP, EVENT_33H_01H) \ 5011 __PMC_EV(UCP, EVENT_33H_02H) \ 5012 __PMC_EV(UCP, EVENT_33H_04H) \ 5013 __PMC_EV(UCP, EVENT_33H_07H) \ 5014 __PMC_EV(UCP, EVENT_34H_01H) \ 5015 __PMC_EV(UCP, EVENT_34H_02H) \ 5016 __PMC_EV(UCP, EVENT_34H_04H) \ 5017 __PMC_EV(UCP, EVENT_34H_06H) \ 5018 __PMC_EV(UCP, EVENT_34H_08H) \ 5019 __PMC_EV(UCP, EVENT_34H_10H) \ 5020 __PMC_EV(UCP, EVENT_34H_20H) \ 5021 __PMC_EV(UCP, EVENT_34H_40H) \ 5022 __PMC_EV(UCP, EVENT_34H_80H) \ 5023 __PMC_EV(UCP, EVENT_35H_01H) \ 5024 __PMC_EV(UCP, EVENT_35H_02H) \ 5025 __PMC_EV(UCP, EVENT_35H_04H) \ 5026 __PMC_EV(UCP, EVENT_40H_01H) \ 5027 __PMC_EV(UCP, EVENT_40H_02H) \ 5028 __PMC_EV(UCP, EVENT_40H_04H) \ 5029 __PMC_EV(UCP, EVENT_40H_08H) \ 5030 __PMC_EV(UCP, EVENT_40H_10H) \ 5031 __PMC_EV(UCP, EVENT_40H_20H) \ 5032 __PMC_EV(UCP, EVENT_40H_07H) \ 5033 __PMC_EV(UCP, EVENT_40H_38H) \ 5034 __PMC_EV(UCP, EVENT_41H_01H) \ 5035 __PMC_EV(UCP, EVENT_41H_02H) \ 5036 __PMC_EV(UCP, EVENT_41H_04H) \ 5037 __PMC_EV(UCP, EVENT_41H_08H) \ 5038 __PMC_EV(UCP, EVENT_41H_10H) \ 5039 __PMC_EV(UCP, EVENT_41H_20H) \ 5040 __PMC_EV(UCP, EVENT_41H_07H) \ 5041 __PMC_EV(UCP, EVENT_41H_38H) \ 5042 __PMC_EV(UCP, EVENT_42H_01H) \ 5043 __PMC_EV(UCP, EVENT_42H_02H) \ 5044 __PMC_EV(UCP, EVENT_42H_04H) \ 5045 __PMC_EV(UCP, EVENT_42H_08H) \ 5046 __PMC_EV(UCP, EVENT_43H_01H) \ 5047 __PMC_EV(UCP, EVENT_43H_02H) \ 5048 __PMC_EV(UCP, EVENT_60H_01H) \ 5049 __PMC_EV(UCP, EVENT_60H_02H) \ 5050 __PMC_EV(UCP, EVENT_60H_04H) \ 5051 __PMC_EV(UCP, EVENT_61H_01H) \ 5052 __PMC_EV(UCP, EVENT_61H_02H) \ 5053 __PMC_EV(UCP, EVENT_61H_04H) \ 5054 __PMC_EV(UCP, EVENT_62H_01H) \ 5055 __PMC_EV(UCP, EVENT_62H_02H) \ 5056 __PMC_EV(UCP, EVENT_62H_04H) \ 5057 __PMC_EV(UCP, EVENT_63H_01H) \ 5058 __PMC_EV(UCP, EVENT_63H_02H) \ 5059 __PMC_EV(UCP, EVENT_63H_04H) \ 5060 __PMC_EV(UCP, EVENT_63H_08H) \ 5061 __PMC_EV(UCP, EVENT_63H_10H) \ 5062 __PMC_EV(UCP, EVENT_63H_20H) \ 5063 __PMC_EV(UCP, EVENT_64H_01H) \ 5064 __PMC_EV(UCP, EVENT_64H_02H) \ 5065 __PMC_EV(UCP, EVENT_64H_04H) \ 5066 __PMC_EV(UCP, EVENT_64H_08H) \ 5067 __PMC_EV(UCP, EVENT_64H_10H) \ 5068 __PMC_EV(UCP, EVENT_64H_20H) \ 5069 __PMC_EV(UCP, EVENT_65H_01H) \ 5070 __PMC_EV(UCP, EVENT_65H_02H) \ 5071 __PMC_EV(UCP, EVENT_65H_04H) \ 5072 __PMC_EV(UCP, EVENT_66H_01H) \ 5073 __PMC_EV(UCP, EVENT_66H_02H) \ 5074 __PMC_EV(UCP, EVENT_66H_04H) \ 5075 __PMC_EV(UCP, EVENT_67H_01H) \ 5076 __PMC_EV(UCP, EVENT_80H_01H) \ 5077 __PMC_EV(UCP, EVENT_80H_02H) \ 5078 __PMC_EV(UCP, EVENT_80H_04H) \ 5079 __PMC_EV(UCP, EVENT_80H_08H) \ 5080 __PMC_EV(UCP, EVENT_81H_01H) \ 5081 __PMC_EV(UCP, EVENT_81H_02H) \ 5082 __PMC_EV(UCP, EVENT_81H_04H) \ 5083 __PMC_EV(UCP, EVENT_81H_08H) \ 5084 __PMC_EV(UCP, EVENT_81H_20H) \ 5085 __PMC_EV(UCP, EVENT_81H_80H) \ 5086 __PMC_EV(UCP, EVENT_82H_01H) \ 5087 __PMC_EV(UCP, EVENT_83H_01H) \ 5088 __PMC_EV(UCP, EVENT_83H_02H) \ 5089 __PMC_EV(UCP, EVENT_83H_04H) \ 5090 __PMC_EV(UCP, EVENT_83H_08H) \ 5091 __PMC_EV(UCP, EVENT_84H_01H) \ 5092 __PMC_EV(UCP, EVENT_84H_02H) \ 5093 __PMC_EV(UCP, EVENT_84H_04H) \ 5094 __PMC_EV(UCP, EVENT_84H_08H) \ 5095 __PMC_EV(UCP, EVENT_85H_02H) \ 5096 __PMC_EV(UCP, EVENT_86H_01H) 5097 5098 #define PMC_EV_UCP_FIRST PMC_EV_UCP_EVENT_00H_01H 5099 #define PMC_EV_UCP_LAST PMC_EV_UCP_EVENT_86H_01H 5100 5101 /* 5102 * Aliases for Broadwell uncore PMC events 5103 */ 5104 #define __PMC_EV_ALIAS_BROADWELLUC() \ 5105 __PMC_EV_ALIAS("UNC_CBO_XSNP_RESPONSE.MISS", UCP_EVENT_22H_01H) \ 5106 __PMC_EV_ALIAS("UNC_CBO_XSNP_RESPONSE.INVAL", UCP_EVENT_22H_02H) \ 5107 __PMC_EV_ALIAS("UNC_CBO_XSNP_RESPONSE.HIT", UCP_EVENT_22H_04H) \ 5108 __PMC_EV_ALIAS("UNC_CBO_XSNP_RESPONSE.HITM", UCP_EVENT_22H_08H) \ 5109 __PMC_EV_ALIAS("UNC_CBO_XSNP_RESPONSE.INVAL_M", UCP_EVENT_22H_10H) \ 5110 __PMC_EV_ALIAS("UNC_CBO_XSNP_RESPONSE.EXTERNAL_FILTER", \ 5111 UCP_EVENT_22H_20H) \ 5112 __PMC_EV_ALIAS("UNC_CBO_XSNP_RESPONSE.XCORE_FILTER", UCP_EVENT_22H_40H) \ 5113 __PMC_EV_ALIAS("UNC_CBO_XSNP_RESPONSE.EVICTION_FILTER", \ 5114 UCP_EVENT_22H_80H) \ 5115 __PMC_EV_ALIAS("UNC_CBO_CACHE_LOOKUP.M", UCP_EVENT_34H_01H) \ 5116 __PMC_EV_ALIAS("UNC_CBO_CACHE_LOOKUP.ES", UCP_EVENT_34H_06H) \ 5117 __PMC_EV_ALIAS("UNC_CBO_CACHE_LOOKUP.I", UCP_EVENT_34H_08H) \ 5118 __PMC_EV_ALIAS("UNC_CBO_CACHE_LOOKUP.READ_FILTER", UCP_EVENT_34H_10H) \ 5119 __PMC_EV_ALIAS("UNC_CBO_CACHE_LOOKUP.WRITE_FILTER", UCP_EVENT_34H_20H) \ 5120 __PMC_EV_ALIAS("UNC_CBO_CACHE_LOOKUP.EXTSNP_FILTER", UCP_EVENT_34H_40H) \ 5121 __PMC_EV_ALIAS("UNC_CBO_CACHE_LOOKUP.ANY_REQUEST_FILTER", \ 5122 UCP_EVENT_34H_80H) \ 5123 __PMC_EV_ALIAS("UNC_ARB_TRK_OCCUPANCY.ALL", UCP_EVENT_80H_01H) \ 5124 __PMC_EV_ALIAS("UNC_ARB_TRK_REQUEST.ALL", UCP_EVENT_81H_01H) \ 5125 __PMC_EV_ALIAS("UNC_ARB_TRK_REQUEST.WRITES", UCP_EVENT_81H_20H) \ 5126 __PMC_EV_ALIAS("UNC_ARB_TRK_REQUEST.EVICTIONS", UCP_EVENT_81H_80H) \ 5127 __PMC_EV_ALIAS("UNC_ARB_COH_TRK_OCCUPANCY.ALL", UCP_EVENT_83H_01H) \ 5128 __PMC_EV_ALIAS("UNC_ARB_COH_TRK_REQUEST.ALL", UCP_EVENT_84H_01H) 5129 5130 #define __PMC_EV_ALIAS_COREI7UC() \ 5131 __PMC_EV_ALIAS("GQ_CYCLES_FULL.READ_TRACKER", UCP_EVENT_00H_01H) \ 5132 __PMC_EV_ALIAS("GQ_CYCLES_FULL.WRITE_TRACKER", UCP_EVENT_00H_02H) \ 5133 __PMC_EV_ALIAS("GQ_CYCLES_FULL.PEER_PROBE_TRACKER", UCP_EVENT_00H_04H) \ 5134 __PMC_EV_ALIAS("GQ_CYCLES_NOT_EMPTY.READ_TRACKER", UCP_EVENT_01H_01H) \ 5135 __PMC_EV_ALIAS("GQ_CYCLES_NOT_EMPTY.WRITE_TRACKER", UCP_EVENT_01H_02H) \ 5136 __PMC_EV_ALIAS("GQ_CYCLES_NOT_EMPTY.PEER_PROBE_TRACKER", \ 5137 UCP_EVENT_01H_04H) \ 5138 __PMC_EV_ALIAS("GQ_ALLOC.READ_TRACKER", UCP_EVENT_03H_01H) \ 5139 __PMC_EV_ALIAS("GQ_ALLOC.RT_L3_MISS", UCP_EVENT_03H_02H) \ 5140 __PMC_EV_ALIAS("GQ_ALLOC.RT_TO_L3_RESP", UCP_EVENT_03H_04H) \ 5141 __PMC_EV_ALIAS("GQ_ALLOC.RT_TO_RTID_ACQUIRED", UCP_EVENT_03H_08H) \ 5142 __PMC_EV_ALIAS("GQ_ALLOC.WT_TO_RTID_ACQUIRED", UCP_EVENT_03H_10H) \ 5143 __PMC_EV_ALIAS("GQ_ALLOC.WRITE_TRACKER", UCP_EVENT_03H_20H) \ 5144 __PMC_EV_ALIAS("GQ_ALLOC.PEER_PROBE_TRACKER", UCP_EVENT_03H_40H) \ 5145 __PMC_EV_ALIAS("GQ_DATA.FROM_QPI", UCP_EVENT_04H_01H) \ 5146 __PMC_EV_ALIAS("GQ_DATA.FROM_QMC", UCP_EVENT_04H_02H) \ 5147 __PMC_EV_ALIAS("GQ_DATA.FROM_L3", UCP_EVENT_04H_04H) \ 5148 __PMC_EV_ALIAS("GQ_DATA.FROM_CORES_02", UCP_EVENT_04H_08H) \ 5149 __PMC_EV_ALIAS("GQ_DATA.FROM_CORES_13", UCP_EVENT_04H_10H) \ 5150 __PMC_EV_ALIAS("GQ_DATA.TO_QPI_QMC", UCP_EVENT_05H_01H) \ 5151 __PMC_EV_ALIAS("GQ_DATA.TO_L3", UCP_EVENT_05H_02H) \ 5152 __PMC_EV_ALIAS("GQ_DATA.TO_CORES", UCP_EVENT_05H_04H) \ 5153 __PMC_EV_ALIAS("SNP_RESP_TO_LOCAL_HOME.I_STATE", UCP_EVENT_06H_01H) \ 5154 __PMC_EV_ALIAS("SNP_RESP_TO_LOCAL_HOME.S_STATE", UCP_EVENT_06H_02H) \ 5155 __PMC_EV_ALIAS("SNP_RESP_TO_LOCAL_HOME.FWD_S_STATE", UCP_EVENT_06H_04H) \ 5156 __PMC_EV_ALIAS("SNP_RESP_TO_LOCAL_HOME.FWD_I_STATE", UCP_EVENT_06H_08H) \ 5157 __PMC_EV_ALIAS("SNP_RESP_TO_LOCAL_HOME.CONFLICT", UCP_EVENT_06H_10H) \ 5158 __PMC_EV_ALIAS("SNP_RESP_TO_LOCAL_HOME.WB", UCP_EVENT_06H_20H) \ 5159 __PMC_EV_ALIAS("SNP_RESP_TO_REMOTE_HOME.I_STATE", UCP_EVENT_07H_01H) \ 5160 __PMC_EV_ALIAS("SNP_RESP_TO_REMOTE_HOME.S_STATE", UCP_EVENT_07H_02H) \ 5161 __PMC_EV_ALIAS("SNP_RESP_TO_REMOTE_HOME.FWD_S_STATE", UCP_EVENT_07H_04H)\ 5162 __PMC_EV_ALIAS("SNP_RESP_TO_REMOTE_HOME.FWD_I_STATE", UCP_EVENT_07H_08H)\ 5163 __PMC_EV_ALIAS("SNP_RESP_TO_REMOTE_HOME.CONFLICT", UCP_EVENT_07H_10H) \ 5164 __PMC_EV_ALIAS("SNP_RESP_TO_REMOTE_HOME.WB", UCP_EVENT_07H_20H) \ 5165 __PMC_EV_ALIAS("SNP_RESP_TO_REMOTE_HOME.HITM", UCP_EVENT_07H_24H) \ 5166 __PMC_EV_ALIAS("L3_HITS.READ", UCP_EVENT_08H_01H) \ 5167 __PMC_EV_ALIAS("L3_HITS.WRITE", UCP_EVENT_08H_02H) \ 5168 __PMC_EV_ALIAS("L3_HITS.PROBE", UCP_EVENT_08H_04H) \ 5169 __PMC_EV_ALIAS("L3_HITS.ANY", UCP_EVENT_08H_03H) \ 5170 __PMC_EV_ALIAS("L3_MISS.READ", UCP_EVENT_09H_01H) \ 5171 __PMC_EV_ALIAS("L3_MISS.WRITE", UCP_EVENT_09H_02H) \ 5172 __PMC_EV_ALIAS("L3_MISS.PROBE", UCP_EVENT_09H_04H) \ 5173 __PMC_EV_ALIAS("L3_MISS.ANY", UCP_EVENT_09H_03H) \ 5174 __PMC_EV_ALIAS("L3_LINES_IN.M_STATE", UCP_EVENT_0AH_01H) \ 5175 __PMC_EV_ALIAS("L3_LINES_IN.E_STATE", UCP_EVENT_0AH_02H) \ 5176 __PMC_EV_ALIAS("L3_LINES_IN.S_STATE", UCP_EVENT_0AH_04H) \ 5177 __PMC_EV_ALIAS("L3_LINES_IN.F_STATE", UCP_EVENT_0AH_08H) \ 5178 __PMC_EV_ALIAS("L3_LINES_IN.ANY", UCP_EVENT_0AH_0FH) \ 5179 __PMC_EV_ALIAS("L3_LINES_OUT.M_STATE", UCP_EVENT_0BH_01H) \ 5180 __PMC_EV_ALIAS("L3_LINES_OUT.E_STATE", UCP_EVENT_0BH_02H) \ 5181 __PMC_EV_ALIAS("L3_LINES_OUT.S_STATE", UCP_EVENT_0BH_04H) \ 5182 __PMC_EV_ALIAS("L3_LINES_OUT.I_STATE", UCP_EVENT_0BH_08H) \ 5183 __PMC_EV_ALIAS("L3_LINES_OUT.F_STATE", UCP_EVENT_0BH_10H) \ 5184 __PMC_EV_ALIAS("L3_LINES_OUT.ANY", UCP_EVENT_0BH_1FH) \ 5185 __PMC_EV_ALIAS("QHL_REQUESTS.IOH_READS", UCP_EVENT_20H_01H) \ 5186 __PMC_EV_ALIAS("QHL_REQUESTS.IOH_WRITES", UCP_EVENT_20H_02H) \ 5187 __PMC_EV_ALIAS("QHL_REQUESTS.REMOTE_READS", UCP_EVENT_20H_04H) \ 5188 __PMC_EV_ALIAS("QHL_REQUESTS.REMOTE_WRITES", UCP_EVENT_20H_08H) \ 5189 __PMC_EV_ALIAS("QHL_REQUESTS.LOCAL_READS", UCP_EVENT_20H_10H) \ 5190 __PMC_EV_ALIAS("QHL_REQUESTS.LOCAL_WRITES", UCP_EVENT_20H_20H) \ 5191 __PMC_EV_ALIAS("QHL_CYCLES_FULL.IOH", UCP_EVENT_21H_01H) \ 5192 __PMC_EV_ALIAS("QHL_CYCLES_FULL.REMOTE", UCP_EVENT_21H_02H) \ 5193 __PMC_EV_ALIAS("QHL_CYCLES_FULL.LOCAL", UCP_EVENT_21H_04H) \ 5194 __PMC_EV_ALIAS("QHL_CYCLES_NOT_EMPTY.IOH", UCP_EVENT_22H_01H) \ 5195 __PMC_EV_ALIAS("QHL_CYCLES_NOT_EMPTY.REMOTE", UCP_EVENT_22H_02H) \ 5196 __PMC_EV_ALIAS("QHL_CYCLES_NOT_EMPTY.LOCAL", UCP_EVENT_22H_04H) \ 5197 __PMC_EV_ALIAS("QHL_OCCUPANCY.IOH", UCP_EVENT_23H_01H) \ 5198 __PMC_EV_ALIAS("QHL_OCCUPANCY.REMOTE", UCP_EVENT_23H_02H) \ 5199 __PMC_EV_ALIAS("QHL_OCCUPANCY.LOCAL", UCP_EVENT_23H_04H) \ 5200 __PMC_EV_ALIAS("QHL_ADDRESS_CONFLICTS.2WAY", UCP_EVENT_24H_02H) \ 5201 __PMC_EV_ALIAS("QHL_ADDRESS_CONFLICTS.3WAY", UCP_EVENT_24H_04H) \ 5202 __PMC_EV_ALIAS("QHL_CONFLICT_CYCLES.IOH", UCP_EVENT_25H_01H) \ 5203 __PMC_EV_ALIAS("QHL_CONFLICT_CYCLES.REMOTE", UCP_EVENT_25H_02H) \ 5204 __PMC_EV_ALIAS("QHL_CONFLICT_CYCLES.LOCAL", UCP_EVENT_25H_04H) \ 5205 __PMC_EV_ALIAS("QHL_TO_QMC_BYPASS", UCP_EVENT_26H_01H) \ 5206 __PMC_EV_ALIAS("QMC_NORMAL_FULL.READ.CH0", UCP_EVENT_27H_01H) \ 5207 __PMC_EV_ALIAS("QMC_NORMAL_FULL.READ.CH1", UCP_EVENT_27H_02H) \ 5208 __PMC_EV_ALIAS("QMC_NORMAL_FULL.READ.CH2", UCP_EVENT_27H_04H) \ 5209 __PMC_EV_ALIAS("QMC_NORMAL_FULL.WRITE.CH0", UCP_EVENT_27H_08H) \ 5210 __PMC_EV_ALIAS("QMC_NORMAL_FULL.WRITE.CH1", UCP_EVENT_27H_10H) \ 5211 __PMC_EV_ALIAS("QMC_NORMAL_FULL.WRITE.CH2", UCP_EVENT_27H_20H) \ 5212 __PMC_EV_ALIAS("QMC_ISOC_FULL.READ.CH0", UCP_EVENT_28H_01H) \ 5213 __PMC_EV_ALIAS("QMC_ISOC_FULL.READ.CH1", UCP_EVENT_28H_02H) \ 5214 __PMC_EV_ALIAS("QMC_ISOC_FULL.READ.CH2", UCP_EVENT_28H_04H) \ 5215 __PMC_EV_ALIAS("QMC_ISOC_FULL.WRITE.CH0", UCP_EVENT_28H_08H) \ 5216 __PMC_EV_ALIAS("QMC_ISOC_FULL.WRITE.CH1", UCP_EVENT_28H_10H) \ 5217 __PMC_EV_ALIAS("QMC_ISOC_FULL.WRITE.CH2", UCP_EVENT_28H_20H) \ 5218 __PMC_EV_ALIAS("QMC_BUSY.READ.CH0", UCP_EVENT_29H_01H) \ 5219 __PMC_EV_ALIAS("QMC_BUSY.READ.CH1", UCP_EVENT_29H_02H) \ 5220 __PMC_EV_ALIAS("QMC_BUSY.READ.CH2", UCP_EVENT_29H_04H) \ 5221 __PMC_EV_ALIAS("QMC_BUSY.WRITE.CH0", UCP_EVENT_29H_08H) \ 5222 __PMC_EV_ALIAS("QMC_BUSY.WRITE.CH1", UCP_EVENT_29H_10H) \ 5223 __PMC_EV_ALIAS("QMC_BUSY.WRITE.CH2", UCP_EVENT_29H_20H) \ 5224 __PMC_EV_ALIAS("QMC_OCCUPANCY.CH0", UCP_EVENT_2AH_01H) \ 5225 __PMC_EV_ALIAS("QMC_OCCUPANCY.CH1", UCP_EVENT_2AH_02H) \ 5226 __PMC_EV_ALIAS("QMC_OCCUPANCY.CH2", UCP_EVENT_2AH_04H) \ 5227 __PMC_EV_ALIAS("QMC_ISSOC_OCCUPANCY.CH0", UCP_EVENT_2BH_01H) \ 5228 __PMC_EV_ALIAS("QMC_ISSOC_OCCUPANCY.CH1", UCP_EVENT_2BH_02H) \ 5229 __PMC_EV_ALIAS("QMC_ISSOC_OCCUPANCY.CH2", UCP_EVENT_2BH_04H) \ 5230 __PMC_EV_ALIAS("QMC_ISSOC_READS.ANY", UCP_EVENT_2BH_07H) \ 5231 __PMC_EV_ALIAS("QMC_NORMAL_READS.CH0", UCP_EVENT_2CH_01H) \ 5232 __PMC_EV_ALIAS("QMC_NORMAL_READS.CH1", UCP_EVENT_2CH_02H) \ 5233 __PMC_EV_ALIAS("QMC_NORMAL_READS.CH2", UCP_EVENT_2CH_04H) \ 5234 __PMC_EV_ALIAS("QMC_NORMAL_READS.ANY", UCP_EVENT_2CH_07H) \ 5235 __PMC_EV_ALIAS("QMC_HIGH_PRIORITY_READS.CH0", UCP_EVENT_2DH_01H) \ 5236 __PMC_EV_ALIAS("QMC_HIGH_PRIORITY_READS.CH1", UCP_EVENT_2DH_02H) \ 5237 __PMC_EV_ALIAS("QMC_HIGH_PRIORITY_READS.CH2", UCP_EVENT_2DH_04H) \ 5238 __PMC_EV_ALIAS("QMC_HIGH_PRIORITY_READS.ANY", UCP_EVENT_2DH_07H) \ 5239 __PMC_EV_ALIAS("QMC_CRITICAL_PRIORITY_READS.CH0", UCP_EVENT_2EH_01H) \ 5240 __PMC_EV_ALIAS("QMC_CRITICAL_PRIORITY_READS.CH1", UCP_EVENT_2EH_02H) \ 5241 __PMC_EV_ALIAS("QMC_CRITICAL_PRIORITY_READS.CH2", UCP_EVENT_2EH_04H) \ 5242 __PMC_EV_ALIAS("QMC_CRITICAL_PRIORITY_READS.ANY", UCP_EVENT_2EH_07H) \ 5243 __PMC_EV_ALIAS("QMC_WRITES.FULL.CH0", UCP_EVENT_2FH_01H) \ 5244 __PMC_EV_ALIAS("QMC_WRITES.FULL.CH1", UCP_EVENT_2FH_02H) \ 5245 __PMC_EV_ALIAS("QMC_WRITES.FULL.CH2", UCP_EVENT_2FH_04H) \ 5246 __PMC_EV_ALIAS("QMC_WRITES.FULL.ANY", UCP_EVENT_2FH_07H) \ 5247 __PMC_EV_ALIAS("QMC_WRITES.PARTIAL.CH0", UCP_EVENT_2FH_08H) \ 5248 __PMC_EV_ALIAS("QMC_WRITES.PARTIAL.CH1", UCP_EVENT_2FH_10H) \ 5249 __PMC_EV_ALIAS("QMC_WRITES.PARTIAL.CH2", UCP_EVENT_2FH_20H) \ 5250 __PMC_EV_ALIAS("QMC_WRITES.PARTIAL.ANY", UCP_EVENT_2FH_38H) \ 5251 __PMC_EV_ALIAS("QMC_CANCEL.CH0", UCP_EVENT_30H_01H) \ 5252 __PMC_EV_ALIAS("QMC_CANCEL.CH1", UCP_EVENT_30H_02H) \ 5253 __PMC_EV_ALIAS("QMC_CANCEL.CH2", UCP_EVENT_30H_04H) \ 5254 __PMC_EV_ALIAS("QMC_CANCEL.ANY", UCP_EVENT_30H_07H) \ 5255 __PMC_EV_ALIAS("QMC_PRIORITY_UPDATES.CH0", UCP_EVENT_31H_01H) \ 5256 __PMC_EV_ALIAS("QMC_PRIORITY_UPDATES.CH1", UCP_EVENT_31H_02H) \ 5257 __PMC_EV_ALIAS("QMC_PRIORITY_UPDATES.CH2", UCP_EVENT_31H_04H) \ 5258 __PMC_EV_ALIAS("QMC_PRIORITY_UPDATES.ANY", UCP_EVENT_31H_07H) \ 5259 __PMC_EV_ALIAS("QHL_FRC_ACK_CNFLTS.LOCAL", UCP_EVENT_33H_04H) \ 5260 __PMC_EV_ALIAS("QPI_TX_STALLED_SINGLE_FLIT.HOME.LINK_0", \ 5261 UCP_EVENT_40H_01H) \ 5262 __PMC_EV_ALIAS("QPI_TX_STALLED_SINGLE_FLIT.SNOOP.LINK_0", \ 5263 UCP_EVENT_40H_02H) \ 5264 __PMC_EV_ALIAS("QPI_TX_STALLED_SINGLE_FLIT.NDR.LINK_0", \ 5265 UCP_EVENT_40H_04H) \ 5266 __PMC_EV_ALIAS("QPI_TX_STALLED_SINGLE_FLIT.HOME.LINK_1", \ 5267 UCP_EVENT_40H_08H) \ 5268 __PMC_EV_ALIAS("QPI_TX_STALLED_SINGLE_FLIT.SNOOP.LINK_1", \ 5269 UCP_EVENT_40H_10H) \ 5270 __PMC_EV_ALIAS("QPI_TX_STALLED_SINGLE_FLIT.NDR.LINK_1", \ 5271 UCP_EVENT_40H_20H) \ 5272 __PMC_EV_ALIAS("QPI_TX_STALLED_SINGLE_FLIT.LINK_0", UCP_EVENT_40H_07H) \ 5273 __PMC_EV_ALIAS("QPI_TX_STALLED_SINGLE_FLIT.LINK_1", UCP_EVENT_40H_38H) \ 5274 __PMC_EV_ALIAS("QPI_TX_STALLED_MULTI_FLIT.DRS.LINK_0", \ 5275 UCP_EVENT_41H_01H) \ 5276 __PMC_EV_ALIAS("QPI_TX_STALLED_MULTI_FLIT.NCB.LINK_0", \ 5277 UCP_EVENT_41H_02H) \ 5278 __PMC_EV_ALIAS("QPI_TX_STALLED_MULTI_FLIT.NCS.LINK_0", \ 5279 UCP_EVENT_41H_04H) \ 5280 __PMC_EV_ALIAS("QPI_TX_STALLED_MULTI_FLIT.DRS.LINK_1", \ 5281 UCP_EVENT_41H_08H) \ 5282 __PMC_EV_ALIAS("QPI_TX_STALLED_MULTI_FLIT.NCB.LINK_1", \ 5283 UCP_EVENT_41H_10H) \ 5284 __PMC_EV_ALIAS("QPI_TX_STALLED_MULTI_FLIT.NCS.LINK_1", \ 5285 UCP_EVENT_41H_20H) \ 5286 __PMC_EV_ALIAS("QPI_TX_STALLED_MULTI_FLIT.LINK_0", UCP_EVENT_41H_07H) \ 5287 __PMC_EV_ALIAS("QPI_TX_STALLED_MULTI_FLIT.LINK_1", UCP_EVENT_41H_38H) \ 5288 __PMC_EV_ALIAS("QPI_TX_HEADER.BUSY.LINK_0", UCP_EVENT_42H_02H) \ 5289 __PMC_EV_ALIAS("QPI_TX_HEADER.BUSY.LINK_1", UCP_EVENT_42H_08H) \ 5290 __PMC_EV_ALIAS("QPI_RX_NO_PPT_CREDIT.STALLS.LINK_0", UCP_EVENT_43H_01H) \ 5291 __PMC_EV_ALIAS("QPI_RX_NO_PPT_CREDIT.STALLS.LINK_1", UCP_EVENT_43H_02H) \ 5292 __PMC_EV_ALIAS("DRAM_OPEN.CH0", UCP_EVENT_60H_01H) \ 5293 __PMC_EV_ALIAS("DRAM_OPEN.CH1", UCP_EVENT_60H_02H) \ 5294 __PMC_EV_ALIAS("DRAM_OPEN.CH2", UCP_EVENT_60H_04H) \ 5295 __PMC_EV_ALIAS("DRAM_PAGE_CLOSE.CH0", UCP_EVENT_61H_01H) \ 5296 __PMC_EV_ALIAS("DRAM_PAGE_CLOSE.CH1", UCP_EVENT_61H_02H) \ 5297 __PMC_EV_ALIAS("DRAM_PAGE_CLOSE.CH2", UCP_EVENT_61H_04H) \ 5298 __PMC_EV_ALIAS("DRAM_PAGE_MISS.CH0", UCP_EVENT_62H_01H) \ 5299 __PMC_EV_ALIAS("DRAM_PAGE_MISS.CH1", UCP_EVENT_62H_02H) \ 5300 __PMC_EV_ALIAS("DRAM_PAGE_MISS.CH2", UCP_EVENT_62H_04H) \ 5301 __PMC_EV_ALIAS("DRAM_READ_CAS.CH0", UCP_EVENT_63H_01H) \ 5302 __PMC_EV_ALIAS("DRAM_READ_CAS.AUTOPRE_CH0", UCP_EVENT_63H_02H) \ 5303 __PMC_EV_ALIAS("DRAM_READ_CAS.CH1", UCP_EVENT_63H_04H) \ 5304 __PMC_EV_ALIAS("DRAM_READ_CAS.AUTOPRE_CH1", UCP_EVENT_63H_08H) \ 5305 __PMC_EV_ALIAS("DRAM_READ_CAS.CH2", UCP_EVENT_63H_10H) \ 5306 __PMC_EV_ALIAS("DRAM_READ_CAS.AUTOPRE_CH2", UCP_EVENT_63H_20H) \ 5307 __PMC_EV_ALIAS("DRAM_WRITE_CAS.CH0", UCP_EVENT_64H_01H) \ 5308 __PMC_EV_ALIAS("DRAM_WRITE_CAS.AUTOPRE_CH0", UCP_EVENT_64H_02H) \ 5309 __PMC_EV_ALIAS("DRAM_WRITE_CAS.CH1", UCP_EVENT_64H_04H) \ 5310 __PMC_EV_ALIAS("DRAM_WRITE_CAS.AUTOPRE_CH1", UCP_EVENT_64H_08H) \ 5311 __PMC_EV_ALIAS("DRAM_WRITE_CAS.CH2", UCP_EVENT_64H_10H) \ 5312 __PMC_EV_ALIAS("DRAM_WRITE_CAS.AUTOPRE_CH2", UCP_EVENT_64H_20H) \ 5313 __PMC_EV_ALIAS("DRAM_REFRESH.CH0", UCP_EVENT_65H_01H) \ 5314 __PMC_EV_ALIAS("DRAM_REFRESH.CH1", UCP_EVENT_65H_02H) \ 5315 __PMC_EV_ALIAS("DRAM_REFRESH.CH2", UCP_EVENT_65H_04H) \ 5316 __PMC_EV_ALIAS("DRAM_PRE_ALL.CH0", UCP_EVENT_66H_01H) \ 5317 __PMC_EV_ALIAS("DRAM_PRE_ALL.CH1", UCP_EVENT_66H_02H) \ 5318 __PMC_EV_ALIAS("DRAM_PRE_ALL.CH2", UCP_EVENT_66H_04H) 5319 5320 /* 5321 * Aliases for Haswell uncore PMC events 5322 */ 5323 #define __PMC_EV_ALIAS_HASWELLUC() \ 5324 __PMC_EV_ALIAS("UNC_CBO_XSNP_RESPONSE.MISS", UCP_EVENT_22H_01H) \ 5325 __PMC_EV_ALIAS("UNC_CBO_XSNP_RESPONSE.INVAL", UCP_EVENT_22H_02H) \ 5326 __PMC_EV_ALIAS("UNC_CBO_XSNP_RESPONSE.HIT", UCP_EVENT_22H_04H) \ 5327 __PMC_EV_ALIAS("UNC_CBO_XSNP_RESPONSE.HITM", UCP_EVENT_22H_08H) \ 5328 __PMC_EV_ALIAS("UNC_CBO_XSNP_RESPONSE.INVAL_M", UCP_EVENT_22H_10H) \ 5329 __PMC_EV_ALIAS("UNC_CBO_XSNP_RESPONSE.EXTERNAL_FILTER", \ 5330 UCP_EVENT_22H_20H) \ 5331 __PMC_EV_ALIAS("UNC_CBO_XSNP_RESPONSE.XCORE_FILTER", UCP_EVENT_22H_40H) \ 5332 __PMC_EV_ALIAS("UNC_CBO_XSNP_RESPONSE.EVICTION_FILTER", \ 5333 UCP_EVENT_22H_80H) \ 5334 __PMC_EV_ALIAS("UNC_CBO_CACHE_LOOKUP.M", UCP_EVENT_34H_01H) \ 5335 __PMC_EV_ALIAS("UNC_CBO_CACHE_LOOKUP.ES", UCP_EVENT_34H_06H) \ 5336 __PMC_EV_ALIAS("UNC_CBO_CACHE_LOOKUP.I", UCP_EVENT_34H_08H) \ 5337 __PMC_EV_ALIAS("UNC_CBO_CACHE_LOOKUP.READ_FILTER", UCP_EVENT_34H_10H) \ 5338 __PMC_EV_ALIAS("UNC_CBO_CACHE_LOOKUP.WRITE_FILTER", UCP_EVENT_34H_20H) \ 5339 __PMC_EV_ALIAS("UNC_CBO_CACHE_LOOKUP.EXTSNP_FILTER", UCP_EVENT_34H_40H) \ 5340 __PMC_EV_ALIAS("UNC_CBO_CACHE_LOOKUP.ANY_REQUEST_FILTER", \ 5341 UCP_EVENT_34H_80H) \ 5342 __PMC_EV_ALIAS("UNC_ARB_TRK_OCCUPANCY.ALL", UCP_EVENT_80H_01H) \ 5343 __PMC_EV_ALIAS("UNC_ARB_TRK_REQUEST.ALL", UCP_EVENT_81H_01H) \ 5344 __PMC_EV_ALIAS("UNC_ARB_TRK_REQUEST.WRITES", UCP_EVENT_81H_20H) \ 5345 __PMC_EV_ALIAS("UNC_ARB_TRK_REQUEST.EVICTIONS", UCP_EVENT_81H_80H) \ 5346 __PMC_EV_ALIAS("UNC_ARB_COH_TRK_OCCUPANCY.ALL", UCP_EVENT_83H_01H) \ 5347 __PMC_EV_ALIAS("UNC_ARB_COH_TRK_REQUEST.ALL", UCP_EVENT_84H_01H) 5348 5349 5350 #define __PMC_EV_ALIAS_WESTMEREUC() \ 5351 __PMC_EV_ALIAS("GQ_CYCLES_FULL.READ_TRACKER", UCP_EVENT_00H_01H) \ 5352 __PMC_EV_ALIAS("GQ_CYCLES_FULL.WRITE_TRACKER", UCP_EVENT_00H_02H) \ 5353 __PMC_EV_ALIAS("GQ_CYCLES_FULL.PEER_PROBE_TRACKER", UCP_EVENT_00H_04H) \ 5354 __PMC_EV_ALIAS("GQ_CYCLES_NOT_EMPTY.READ_TRACKER", UCP_EVENT_01H_01H) \ 5355 __PMC_EV_ALIAS("GQ_CYCLES_NOT_EMPTY.WRITE_TRACKER", UCP_EVENT_01H_02H) \ 5356 __PMC_EV_ALIAS("GQ_CYCLES_NOT_EMPTY.PEER_PROBE_TRACKER", \ 5357 UCP_EVENT_01H_04H) \ 5358 __PMC_EV_ALIAS("GQ_OCCUPANCY.READ_TRACKER", UCP_EVENT_02H_01H) \ 5359 __PMC_EV_ALIAS("GQ_ALLOC.READ_TRACKER", UCP_EVENT_03H_01H) \ 5360 __PMC_EV_ALIAS("GQ_ALLOC.RT_L3_MISS", UCP_EVENT_03H_02H) \ 5361 __PMC_EV_ALIAS("GQ_ALLOC.RT_TO_L3_RESP", UCP_EVENT_03H_04H) \ 5362 __PMC_EV_ALIAS("GQ_ALLOC.RT_TO_RTID_ACQUIRED", UCP_EVENT_03H_08H) \ 5363 __PMC_EV_ALIAS("GQ_ALLOC.WT_TO_RTID_ACQUIRED", UCP_EVENT_03H_10H) \ 5364 __PMC_EV_ALIAS("GQ_ALLOC.WRITE_TRACKER", UCP_EVENT_03H_20H) \ 5365 __PMC_EV_ALIAS("GQ_ALLOC.PEER_PROBE_TRACKER", UCP_EVENT_03H_40H) \ 5366 __PMC_EV_ALIAS("GQ_DATA.FROM_QPI", UCP_EVENT_04H_01H) \ 5367 __PMC_EV_ALIAS("GQ_DATA.FROM_QMC", UCP_EVENT_04H_02H) \ 5368 __PMC_EV_ALIAS("GQ_DATA.FROM_L3", UCP_EVENT_04H_04H) \ 5369 __PMC_EV_ALIAS("GQ_DATA.FROM_CORES_02", UCP_EVENT_04H_08H) \ 5370 __PMC_EV_ALIAS("GQ_DATA.FROM_CORES_13", UCP_EVENT_04H_10H) \ 5371 __PMC_EV_ALIAS("GQ_DATA.TO_QPI_QMC", UCP_EVENT_05H_01H) \ 5372 __PMC_EV_ALIAS("GQ_DATA.TO_L3", UCP_EVENT_05H_02H) \ 5373 __PMC_EV_ALIAS("GQ_DATA.TO_CORES", UCP_EVENT_05H_04H) \ 5374 __PMC_EV_ALIAS("SNP_RESP_TO_LOCAL_HOME.I_STATE", UCP_EVENT_06H_01H) \ 5375 __PMC_EV_ALIAS("SNP_RESP_TO_LOCAL_HOME.S_STATE", UCP_EVENT_06H_02H) \ 5376 __PMC_EV_ALIAS("SNP_RESP_TO_LOCAL_HOME.FWD_S_STATE", UCP_EVENT_06H_04H) \ 5377 __PMC_EV_ALIAS("SNP_RESP_TO_LOCAL_HOME.FWD_I_STATE", UCP_EVENT_06H_08H) \ 5378 __PMC_EV_ALIAS("SNP_RESP_TO_LOCAL_HOME.CONFLICT", UCP_EVENT_06H_10H) \ 5379 __PMC_EV_ALIAS("SNP_RESP_TO_LOCAL_HOME.WB", UCP_EVENT_06H_20H) \ 5380 __PMC_EV_ALIAS("SNP_RESP_TO_REMOTE_HOME.I_STATE", UCP_EVENT_07H_01H) \ 5381 __PMC_EV_ALIAS("SNP_RESP_TO_REMOTE_HOME.S_STATE", UCP_EVENT_07H_02H) \ 5382 __PMC_EV_ALIAS("SNP_RESP_TO_REMOTE_HOME.FWD_S_STATE", UCP_EVENT_07H_04H)\ 5383 __PMC_EV_ALIAS("SNP_RESP_TO_REMOTE_HOME.FWD_I_STATE", UCP_EVENT_07H_08H)\ 5384 __PMC_EV_ALIAS("SNP_RESP_TO_REMOTE_HOME.CONFLICT", UCP_EVENT_07H_10H) \ 5385 __PMC_EV_ALIAS("SNP_RESP_TO_REMOTE_HOME.WB", UCP_EVENT_07H_20H) \ 5386 __PMC_EV_ALIAS("SNP_RESP_TO_REMOTE_HOME.HITM", UCP_EVENT_07H_24H) \ 5387 __PMC_EV_ALIAS("L3_HITS.READ", UCP_EVENT_08H_01H) \ 5388 __PMC_EV_ALIAS("L3_HITS.WRITE", UCP_EVENT_08H_02H) \ 5389 __PMC_EV_ALIAS("L3_HITS.PROBE", UCP_EVENT_08H_04H) \ 5390 __PMC_EV_ALIAS("L3_HITS.ANY", UCP_EVENT_08H_03H) \ 5391 __PMC_EV_ALIAS("L3_MISS.READ", UCP_EVENT_09H_01H) \ 5392 __PMC_EV_ALIAS("L3_MISS.WRITE", UCP_EVENT_09H_02H) \ 5393 __PMC_EV_ALIAS("L3_MISS.PROBE", UCP_EVENT_09H_04H) \ 5394 __PMC_EV_ALIAS("L3_MISS.ANY", UCP_EVENT_09H_03H) \ 5395 __PMC_EV_ALIAS("L3_LINES_IN.M_STATE", UCP_EVENT_0AH_01H) \ 5396 __PMC_EV_ALIAS("L3_LINES_IN.E_STATE", UCP_EVENT_0AH_02H) \ 5397 __PMC_EV_ALIAS("L3_LINES_IN.S_STATE", UCP_EVENT_0AH_04H) \ 5398 __PMC_EV_ALIAS("L3_LINES_IN.F_STATE", UCP_EVENT_0AH_08H) \ 5399 __PMC_EV_ALIAS("L3_LINES_IN.ANY", UCP_EVENT_0AH_0FH) \ 5400 __PMC_EV_ALIAS("L3_LINES_OUT.M_STATE", UCP_EVENT_0BH_01H) \ 5401 __PMC_EV_ALIAS("L3_LINES_OUT.E_STATE", UCP_EVENT_0BH_02H) \ 5402 __PMC_EV_ALIAS("L3_LINES_OUT.S_STATE", UCP_EVENT_0BH_04H) \ 5403 __PMC_EV_ALIAS("L3_LINES_OUT.I_STATE", UCP_EVENT_0BH_08H) \ 5404 __PMC_EV_ALIAS("L3_LINES_OUT.F_STATE", UCP_EVENT_0BH_10H) \ 5405 __PMC_EV_ALIAS("L3_LINES_OUT.ANY", UCP_EVENT_0BH_1FH) \ 5406 __PMC_EV_ALIAS("GQ_SNOOP.GOTO_S", UCP_EVENT_0CH_01H) \ 5407 __PMC_EV_ALIAS("GQ_SNOOP.GOTO_I", UCP_EVENT_0CH_02H) \ 5408 __PMC_EV_ALIAS("GQ_SNOOP.GOTO_S_HIT_E", UCP_EVENT_0CH_04H_E) \ 5409 __PMC_EV_ALIAS("GQ_SNOOP.GOTO_S_HIT_F", UCP_EVENT_0CH_04H_F) \ 5410 __PMC_EV_ALIAS("GQ_SNOOP.GOTO_S_HIT_M", UCP_EVENT_0CH_04H_M) \ 5411 __PMC_EV_ALIAS("GQ_SNOOP.GOTO_S_HIT_S", UCP_EVENT_0CH_04H_S) \ 5412 __PMC_EV_ALIAS("GQ_SNOOP.GOTO_I_HIT_E", UCP_EVENT_0CH_08H_E) \ 5413 __PMC_EV_ALIAS("GQ_SNOOP.GOTO_I_HIT_F", UCP_EVENT_0CH_08H_F) \ 5414 __PMC_EV_ALIAS("GQ_SNOOP.GOTO_I_HIT_M", UCP_EVENT_0CH_08H_M) \ 5415 __PMC_EV_ALIAS("GQ_SNOOP.GOTO_I_HIT_S", UCP_EVENT_0CH_08H_S) \ 5416 __PMC_EV_ALIAS("QHL_REQUESTS.IOH_READS", UCP_EVENT_20H_01H) \ 5417 __PMC_EV_ALIAS("QHL_REQUESTS.IOH_WRITES", UCP_EVENT_20H_02H) \ 5418 __PMC_EV_ALIAS("QHL_REQUESTS.REMOTE_READS", UCP_EVENT_20H_04H) \ 5419 __PMC_EV_ALIAS("QHL_REQUESTS.REMOTE_WRITES", UCP_EVENT_20H_08H) \ 5420 __PMC_EV_ALIAS("QHL_REQUESTS.LOCAL_READS", UCP_EVENT_20H_10H) \ 5421 __PMC_EV_ALIAS("QHL_REQUESTS.LOCAL_WRITES", UCP_EVENT_20H_20H) \ 5422 __PMC_EV_ALIAS("QHL_CYCLES_FULL.IOH", UCP_EVENT_21H_01H) \ 5423 __PMC_EV_ALIAS("QHL_CYCLES_FULL.REMOTE", UCP_EVENT_21H_02H) \ 5424 __PMC_EV_ALIAS("QHL_CYCLES_FULL.LOCAL", UCP_EVENT_21H_04H) \ 5425 __PMC_EV_ALIAS("QHL_CYCLES_NOT_EMPTY.IOH", UCP_EVENT_22H_01H) \ 5426 __PMC_EV_ALIAS("QHL_CYCLES_NOT_EMPTY.REMOTE", UCP_EVENT_22H_02H) \ 5427 __PMC_EV_ALIAS("QHL_CYCLES_NOT_EMPTY.LOCAL", UCP_EVENT_22H_04H) \ 5428 __PMC_EV_ALIAS("QHL_OCCUPANCY.IOH", UCP_EVENT_23H_01H) \ 5429 __PMC_EV_ALIAS("QHL_OCCUPANCY.REMOTE", UCP_EVENT_23H_02H) \ 5430 __PMC_EV_ALIAS("QHL_OCCUPANCY.LOCAL", UCP_EVENT_23H_04H) \ 5431 __PMC_EV_ALIAS("QHL_ADDRESS_CONFLICTS.2WAY", UCP_EVENT_24H_02H) \ 5432 __PMC_EV_ALIAS("QHL_ADDRESS_CONFLICTS.3WAY", UCP_EVENT_24H_04H) \ 5433 __PMC_EV_ALIAS("QHL_CONFLICT_CYCLES.IOH", UCP_EVENT_25H_01H) \ 5434 __PMC_EV_ALIAS("QHL_CONFLICT_CYCLES.REMOTE", UCP_EVENT_25H_02H) \ 5435 __PMC_EV_ALIAS("QHL_CONFLICT_CYCLES.LOCAL", UCP_EVENT_25H_04H) \ 5436 __PMC_EV_ALIAS("QHL_TO_QMC_BYPASS", UCP_EVENT_26H_01H) \ 5437 __PMC_EV_ALIAS("QMC_ISOC_FULL.READ.CH0", UCP_EVENT_28H_01H) \ 5438 __PMC_EV_ALIAS("QMC_ISOC_FULL.READ.CH1", UCP_EVENT_28H_02H) \ 5439 __PMC_EV_ALIAS("QMC_ISOC_FULL.READ.CH2", UCP_EVENT_28H_04H) \ 5440 __PMC_EV_ALIAS("QMC_ISOC_FULL.WRITE.CH0", UCP_EVENT_28H_08H) \ 5441 __PMC_EV_ALIAS("QMC_ISOC_FULL.WRITE.CH1", UCP_EVENT_28H_10H) \ 5442 __PMC_EV_ALIAS("QMC_ISOC_FULL.WRITE.CH2", UCP_EVENT_28H_20H) \ 5443 __PMC_EV_ALIAS("QMC_BUSY.READ.CH0", UCP_EVENT_29H_01H) \ 5444 __PMC_EV_ALIAS("QMC_BUSY.READ.CH1", UCP_EVENT_29H_02H) \ 5445 __PMC_EV_ALIAS("QMC_BUSY.READ.CH2", UCP_EVENT_29H_04H) \ 5446 __PMC_EV_ALIAS("QMC_BUSY.WRITE.CH0", UCP_EVENT_29H_08H) \ 5447 __PMC_EV_ALIAS("QMC_BUSY.WRITE.CH1", UCP_EVENT_29H_10H) \ 5448 __PMC_EV_ALIAS("QMC_BUSY.WRITE.CH2", UCP_EVENT_29H_20H) \ 5449 __PMC_EV_ALIAS("QMC_OCCUPANCY.CH0", UCP_EVENT_2AH_01H) \ 5450 __PMC_EV_ALIAS("QMC_OCCUPANCY.CH1", UCP_EVENT_2AH_02H) \ 5451 __PMC_EV_ALIAS("QMC_OCCUPANCY.CH2", UCP_EVENT_2AH_04H) \ 5452 __PMC_EV_ALIAS("QMC_OCCUPANCY.ANY", UCP_EVENT_2AH_07H) \ 5453 __PMC_EV_ALIAS("QMC_ISSOC_OCCUPANCY.CH0", UCP_EVENT_2BH_01H) \ 5454 __PMC_EV_ALIAS("QMC_ISSOC_OCCUPANCY.CH1", UCP_EVENT_2BH_02H) \ 5455 __PMC_EV_ALIAS("QMC_ISSOC_OCCUPANCY.CH2", UCP_EVENT_2BH_04H) \ 5456 __PMC_EV_ALIAS("QMC_ISSOC_READS.ANY", UCP_EVENT_2BH_07H) \ 5457 __PMC_EV_ALIAS("QMC_NORMAL_READS.CH0", UCP_EVENT_2CH_01H) \ 5458 __PMC_EV_ALIAS("QMC_NORMAL_READS.CH1", UCP_EVENT_2CH_02H) \ 5459 __PMC_EV_ALIAS("QMC_NORMAL_READS.CH2", UCP_EVENT_2CH_04H) \ 5460 __PMC_EV_ALIAS("QMC_NORMAL_READS.ANY", UCP_EVENT_2CH_07H) \ 5461 __PMC_EV_ALIAS("QMC_HIGH_PRIORITY_READS.CH0", UCP_EVENT_2DH_01H) \ 5462 __PMC_EV_ALIAS("QMC_HIGH_PRIORITY_READS.CH1", UCP_EVENT_2DH_02H) \ 5463 __PMC_EV_ALIAS("QMC_HIGH_PRIORITY_READS.CH2", UCP_EVENT_2DH_04H) \ 5464 __PMC_EV_ALIAS("QMC_HIGH_PRIORITY_READS.ANY", UCP_EVENT_2DH_07H) \ 5465 __PMC_EV_ALIAS("QMC_CRITICAL_PRIORITY_READS.CH0", UCP_EVENT_2EH_01H) \ 5466 __PMC_EV_ALIAS("QMC_CRITICAL_PRIORITY_READS.CH1", UCP_EVENT_2EH_02H) \ 5467 __PMC_EV_ALIAS("QMC_CRITICAL_PRIORITY_READS.CH2", UCP_EVENT_2EH_04H) \ 5468 __PMC_EV_ALIAS("QMC_CRITICAL_PRIORITY_READS.ANY", UCP_EVENT_2EH_07H) \ 5469 __PMC_EV_ALIAS("QMC_WRITES.FULL.CH0", UCP_EVENT_2FH_01H) \ 5470 __PMC_EV_ALIAS("QMC_WRITES.FULL.CH1", UCP_EVENT_2FH_02H) \ 5471 __PMC_EV_ALIAS("QMC_WRITES.FULL.CH2", UCP_EVENT_2FH_04H) \ 5472 __PMC_EV_ALIAS("QMC_WRITES.FULL.ANY", UCP_EVENT_2FH_07H) \ 5473 __PMC_EV_ALIAS("QMC_WRITES.PARTIAL.CH0", UCP_EVENT_2FH_08H) \ 5474 __PMC_EV_ALIAS("QMC_WRITES.PARTIAL.CH1", UCP_EVENT_2FH_10H) \ 5475 __PMC_EV_ALIAS("QMC_WRITES.PARTIAL.CH2", UCP_EVENT_2FH_20H) \ 5476 __PMC_EV_ALIAS("QMC_WRITES.PARTIAL.ANY", UCP_EVENT_2FH_38H) \ 5477 __PMC_EV_ALIAS("QMC_CANCEL.CH0", UCP_EVENT_30H_01H) \ 5478 __PMC_EV_ALIAS("QMC_CANCEL.CH1", UCP_EVENT_30H_02H) \ 5479 __PMC_EV_ALIAS("QMC_CANCEL.CH2", UCP_EVENT_30H_04H) \ 5480 __PMC_EV_ALIAS("QMC_CANCEL.ANY", UCP_EVENT_30H_07H) \ 5481 __PMC_EV_ALIAS("QMC_PRIORITY_UPDATES.CH0", UCP_EVENT_31H_01H) \ 5482 __PMC_EV_ALIAS("QMC_PRIORITY_UPDATES.CH1", UCP_EVENT_31H_02H) \ 5483 __PMC_EV_ALIAS("QMC_PRIORITY_UPDATES.CH2", UCP_EVENT_31H_04H) \ 5484 __PMC_EV_ALIAS("QMC_PRIORITY_UPDATES.ANY", UCP_EVENT_31H_07H) \ 5485 __PMC_EV_ALIAS("IMC_RETRY.CH0", UCP_EVENT_32H_01H) \ 5486 __PMC_EV_ALIAS("IMC_RETRY.CH1", UCP_EVENT_32H_02H) \ 5487 __PMC_EV_ALIAS("IMC_RETRY.CH2", UCP_EVENT_32H_04H) \ 5488 __PMC_EV_ALIAS("IMC_RETRY.ANY", UCP_EVENT_32H_07H) \ 5489 __PMC_EV_ALIAS("QHL_FRC_ACK_CNFLTS.IOH", UCP_EVENT_33H_01H) \ 5490 __PMC_EV_ALIAS("QHL_FRC_ACK_CNFLTS.REMOTE", UCP_EVENT_33H_02H) \ 5491 __PMC_EV_ALIAS("QHL_FRC_ACK_CNFLTS.LOCAL", UCP_EVENT_33H_04H) \ 5492 __PMC_EV_ALIAS("QHL_FRC_ACK_CNFLTS.ANY", UCP_EVENT_33H_07H) \ 5493 __PMC_EV_ALIAS("QHL_SLEEPS.IOH_ORDER", UCP_EVENT_34H_01H) \ 5494 __PMC_EV_ALIAS("QHL_SLEEPS.REMOTE_ORDER", UCP_EVENT_34H_02H) \ 5495 __PMC_EV_ALIAS("QHL_SLEEPS.LOCAL_ORDER", UCP_EVENT_34H_04H) \ 5496 __PMC_EV_ALIAS("QHL_SLEEPS.IOH_CONFLICT", UCP_EVENT_34H_08H) \ 5497 __PMC_EV_ALIAS("QHL_SLEEPS.REMOTE_CONFLICT", UCP_EVENT_34H_10H) \ 5498 __PMC_EV_ALIAS("QHL_SLEEPS.LOCAL_CONFLICT", UCP_EVENT_34H_20H) \ 5499 __PMC_EV_ALIAS("ADDR_OPCODE_MATCH.IOH", UCP_EVENT_35H_01H) \ 5500 __PMC_EV_ALIAS("ADDR_OPCODE_MATCH.REMOTE", UCP_EVENT_35H_02H) \ 5501 __PMC_EV_ALIAS("ADDR_OPCODE_MATCH.LOCAL", UCP_EVENT_35H_04H) \ 5502 __PMC_EV_ALIAS("QPI_TX_STALLED_SINGLE_FLIT.HOME.LINK_0", \ 5503 UCP_EVENT_40H_01H) \ 5504 __PMC_EV_ALIAS("QPI_TX_STALLED_SINGLE_FLIT.SNOOP.LINK_0", \ 5505 UCP_EVENT_40H_02H) \ 5506 __PMC_EV_ALIAS("QPI_TX_STALLED_SINGLE_FLIT.NDR.LINK_0", \ 5507 UCP_EVENT_40H_04H) \ 5508 __PMC_EV_ALIAS("QPI_TX_STALLED_SINGLE_FLIT.HOME.LINK_1", \ 5509 UCP_EVENT_40H_08H) \ 5510 __PMC_EV_ALIAS("QPI_TX_STALLED_SINGLE_FLIT.SNOOP.LINK_1", \ 5511 UCP_EVENT_40H_10H) \ 5512 __PMC_EV_ALIAS("QPI_TX_STALLED_SINGLE_FLIT.NDR.LINK_1", \ 5513 UCP_EVENT_40H_20H) \ 5514 __PMC_EV_ALIAS("QPI_TX_STALLED_SINGLE_FLIT.LINK_0", UCP_EVENT_40H_07H) \ 5515 __PMC_EV_ALIAS("QPI_TX_STALLED_SINGLE_FLIT.LINK_1", UCP_EVENT_40H_38H) \ 5516 __PMC_EV_ALIAS("QPI_TX_STALLED_MULTI_FLIT.DRS.LINK_0", \ 5517 UCP_EVENT_41H_01H) \ 5518 __PMC_EV_ALIAS("QPI_TX_STALLED_MULTI_FLIT.NCB.LINK_0", \ 5519 UCP_EVENT_41H_02H) \ 5520 __PMC_EV_ALIAS("QPI_TX_STALLED_MULTI_FLIT.NCS.LINK_0", \ 5521 UCP_EVENT_41H_04H) \ 5522 __PMC_EV_ALIAS("QPI_TX_STALLED_MULTI_FLIT.DRS.LINK_1", \ 5523 UCP_EVENT_41H_08H) \ 5524 __PMC_EV_ALIAS("QPI_TX_STALLED_MULTI_FLIT.NCB.LINK_1", \ 5525 UCP_EVENT_41H_10H) \ 5526 __PMC_EV_ALIAS("QPI_TX_STALLED_MULTI_FLIT.NCS.LINK_1", \ 5527 UCP_EVENT_41H_20H) \ 5528 __PMC_EV_ALIAS("QPI_TX_STALLED_MULTI_FLIT.LINK_0", UCP_EVENT_41H_07H) \ 5529 __PMC_EV_ALIAS("QPI_TX_STALLED_MULTI_FLIT.LINK_1", UCP_EVENT_41H_38H) \ 5530 __PMC_EV_ALIAS("QPI_TX_HEADER.FULL.LINK_0", UCP_EVENT_42H_01H) \ 5531 __PMC_EV_ALIAS("QPI_TX_HEADER.BUSY.LINK_0", UCP_EVENT_42H_02H) \ 5532 __PMC_EV_ALIAS("QPI_TX_HEADER.FULL.LINK_1", UCP_EVENT_42H_04H) \ 5533 __PMC_EV_ALIAS("QPI_TX_HEADER.BUSY.LINK_1", UCP_EVENT_42H_08H) \ 5534 __PMC_EV_ALIAS("QPI_RX_NO_PPT_CREDIT.STALLS.LINK_0", UCP_EVENT_43H_01H) \ 5535 __PMC_EV_ALIAS("QPI_RX_NO_PPT_CREDIT.STALLS.LINK_1", UCP_EVENT_43H_02H) \ 5536 __PMC_EV_ALIAS("DRAM_OPEN.CH0", UCP_EVENT_60H_01H) \ 5537 __PMC_EV_ALIAS("DRAM_OPEN.CH1", UCP_EVENT_60H_02H) \ 5538 __PMC_EV_ALIAS("DRAM_OPEN.CH2", UCP_EVENT_60H_04H) \ 5539 __PMC_EV_ALIAS("DRAM_PAGE_CLOSE.CH0", UCP_EVENT_61H_01H) \ 5540 __PMC_EV_ALIAS("DRAM_PAGE_CLOSE.CH1", UCP_EVENT_61H_02H) \ 5541 __PMC_EV_ALIAS("DRAM_PAGE_CLOSE.CH2", UCP_EVENT_61H_04H) \ 5542 __PMC_EV_ALIAS("DRAM_PAGE_MISS.CH0", UCP_EVENT_62H_01H) \ 5543 __PMC_EV_ALIAS("DRAM_PAGE_MISS.CH1", UCP_EVENT_62H_02H) \ 5544 __PMC_EV_ALIAS("DRAM_PAGE_MISS.CH2", UCP_EVENT_62H_04H) \ 5545 __PMC_EV_ALIAS("DRAM_READ_CAS.CH0", UCP_EVENT_63H_01H) \ 5546 __PMC_EV_ALIAS("DRAM_READ_CAS.AUTOPRE_CH0", UCP_EVENT_63H_02H) \ 5547 __PMC_EV_ALIAS("DRAM_READ_CAS.CH1", UCP_EVENT_63H_04H) \ 5548 __PMC_EV_ALIAS("DRAM_READ_CAS.AUTOPRE_CH1", UCP_EVENT_63H_08H) \ 5549 __PMC_EV_ALIAS("DRAM_READ_CAS.CH2", UCP_EVENT_63H_10H) \ 5550 __PMC_EV_ALIAS("DRAM_READ_CAS.AUTOPRE_CH2", UCP_EVENT_63H_20H) \ 5551 __PMC_EV_ALIAS("DRAM_WRITE_CAS.CH0", UCP_EVENT_64H_01H) \ 5552 __PMC_EV_ALIAS("DRAM_WRITE_CAS.AUTOPRE_CH0", UCP_EVENT_64H_02H) \ 5553 __PMC_EV_ALIAS("DRAM_WRITE_CAS.CH1", UCP_EVENT_64H_04H) \ 5554 __PMC_EV_ALIAS("DRAM_WRITE_CAS.AUTOPRE_CH1", UCP_EVENT_64H_08H) \ 5555 __PMC_EV_ALIAS("DRAM_WRITE_CAS.CH2", UCP_EVENT_64H_10H) \ 5556 __PMC_EV_ALIAS("DRAM_WRITE_CAS.AUTOPRE_CH2", UCP_EVENT_64H_20H) \ 5557 __PMC_EV_ALIAS("DRAM_REFRESH.CH0", UCP_EVENT_65H_01H) \ 5558 __PMC_EV_ALIAS("DRAM_REFRESH.CH1", UCP_EVENT_65H_02H) \ 5559 __PMC_EV_ALIAS("DRAM_REFRESH.CH2", UCP_EVENT_65H_04H) \ 5560 __PMC_EV_ALIAS("DRAM_PRE_ALL.CH0", UCP_EVENT_66H_01H) \ 5561 __PMC_EV_ALIAS("DRAM_PRE_ALL.CH1", UCP_EVENT_66H_02H) \ 5562 __PMC_EV_ALIAS("DRAM_PRE_ALL.CH2", UCP_EVENT_66H_04H) \ 5563 __PMC_EV_ALIAS("DRAM_THERMAL_THROTTLED", UCP_EVENT_67H_01H) \ 5564 __PMC_EV_ALIAS("THERMAL_THROTTLING_TEMP.CORE_0", UCP_EVENT_80H_01H) \ 5565 __PMC_EV_ALIAS("THERMAL_THROTTLING_TEMP.CORE_1", UCP_EVENT_80H_02H) \ 5566 __PMC_EV_ALIAS("THERMAL_THROTTLING_TEMP.CORE_2", UCP_EVENT_80H_04H) \ 5567 __PMC_EV_ALIAS("THERMAL_THROTTLING_TEMP.CORE_3", UCP_EVENT_80H_08H) \ 5568 __PMC_EV_ALIAS("THERMAL_THROTTLED_TEMP.CORE_0", UCP_EVENT_81H_01H) \ 5569 __PMC_EV_ALIAS("THERMAL_THROTTLED_TEMP.CORE_1", UCP_EVENT_81H_02H) \ 5570 __PMC_EV_ALIAS("THERMAL_THROTTLED_TEMP.CORE_2", UCP_EVENT_81H_04H) \ 5571 __PMC_EV_ALIAS("THERMAL_THROTTLED_TEMP.CORE_3", UCP_EVENT_81H_08H) \ 5572 __PMC_EV_ALIAS("PROCHOT_ASSERTION", UCP_EVENT_82H_01H) \ 5573 __PMC_EV_ALIAS("THERMAL_THROTTLING_PROCHOT.CORE_0", UCP_EVENT_83H_01H) \ 5574 __PMC_EV_ALIAS("THERMAL_THROTTLING_PROCHOT.CORE_1", UCP_EVENT_83H_02H) \ 5575 __PMC_EV_ALIAS("THERMAL_THROTTLING_PROCHOT.CORE_2", UCP_EVENT_83H_04H) \ 5576 __PMC_EV_ALIAS("THERMAL_THROTTLING_PROCHOT.CORE_3", UCP_EVENT_83H_08H) \ 5577 __PMC_EV_ALIAS("TURBO_MODE.CORE_0", UCP_EVENT_84H_01H) \ 5578 __PMC_EV_ALIAS("TURBO_MODE.CORE_1", UCP_EVENT_84H_02H) \ 5579 __PMC_EV_ALIAS("TURBO_MODE.CORE_2", UCP_EVENT_84H_04H) \ 5580 __PMC_EV_ALIAS("TURBO_MODE.CORE_3", UCP_EVENT_84H_08H) \ 5581 __PMC_EV_ALIAS("CYCLES_UNHALTED_L3_FLL_ENABLE", UCP_EVENT_85H_02H) \ 5582 __PMC_EV_ALIAS("CYCLES_UNHALTED_L3_FLL_DISABLE", UCP_EVENT_86H_01H) 5583 5584 5585 #define __PMC_EV_ALIAS_SANDYBRIDGEUC() \ 5586 __PMC_EV_ALIAS("CB0_XSNP_RESPONSE.RSPIHITI", UCP_EVENT_22H_01H) \ 5587 __PMC_EV_ALIAS("CB0_XSNP_RESPONSE.RSPIHITFSE", UCP_EVENT_22H_02H) \ 5588 __PMC_EV_ALIAS("CB0_XSNP_RESPONSE.RSPSHITFSE", UCP_EVENT_22H_04H) \ 5589 __PMC_EV_ALIAS("CB0_XSNP_RESPONSE.RSPSFWDM", UCP_EVENT_22H_08H) \ 5590 __PMC_EV_ALIAS("CB0_XSNP_RESPONSE.AND_EXTERNAL", UCP_EVENT_22H_20H) \ 5591 __PMC_EV_ALIAS("CB0_XSNP_RESPONSE.AND_XCORE", UCP_EVENT_22H_40H) \ 5592 __PMC_EV_ALIAS("CB0_XSNP_RESPONSE_AND_XCORE2", UCP_EVENT_22H_80H) \ 5593 __PMC_EV_ALIAS("CB0_CACHE_LOOKUP.M", UCP_EVENT_34H_01H) \ 5594 __PMC_EV_ALIAS("CB0_CACHE_LOOKUP.E", UCP_EVENT_34H_02H) \ 5595 __PMC_EV_ALIAS("CB0_CACHE_LOOKUP.S", UCP_EVENT_34H_04H) \ 5596 __PMC_EV_ALIAS("CB0_CACHE_LOOKUP.I", UCP_EVENT_34H_08H) \ 5597 __PMC_EV_ALIAS("CB0_CACHE_LOOKUP.AND_READ", UCP_EVENT_34H_10H) \ 5598 __PMC_EV_ALIAS("CB0_CACHE_LOOKUP_AND_READ2", UCP_EVENT_34H_20H) \ 5599 __PMC_EV_ALIAS("CB0_CACHE_LOOKUP.AND_EXTSNP", UCP_EVENT_34H_40H) \ 5600 __PMC_EV_ALIAS("CB0_CACHE_LOOKUP.AND_ANY", UCP_EVENT_34H_80H) \ 5601 __PMC_EV_ALIAS("IMPH_CB0_TRK_OCCUPANCY.ALL", UCP_EVENT_80H_01H) \ 5602 __PMC_EV_ALIAS("IMPH_CB0_TRK_REQUEST.ALL", UCP_EVENT_81H_01H) \ 5603 __PMC_EV_ALIAS("IMPH_CB0_TRK_REQUEST.WRITES", UCP_EVENT_81H_20H) \ 5604 __PMC_EV_ALIAS("IMPH_CB0_TRK_REQUEST.EVICTIONS", UCP_EVENT_81H_80H) \ 5605 __PMC_EV_ALIAS("IMPH_C0H_TRK_OCCUPANCY.ALL", UCP_EVENT_83H_01H) \ 5606 __PMC_EV_ALIAS("IMPC_C0H_TRK_REQUEST.ALL", UCP_EVENT_84H_01H) 5607 5608 /* 5609 * Intel XScale events from: 5610 * 5611 * Intel XScale Core Developer's Manual 5612 * January, 2004, #27347302 5613 * 5614 * 3rd Generation Intel XScale Microarchitecture 5615 * Developer's Manual 5616 * May 2007, #31628302 5617 * 5618 * First 14 events are for 1st and 2nd Generation Intel XScale cores. The 5619 * remaining are available only on 3rd Generation Intel XScale cores. 5620 */ 5621 #define __PMC_EV_XSCALE() \ 5622 __PMC_EV(XSCALE, IC_FETCH) \ 5623 __PMC_EV(XSCALE, IC_MISS) \ 5624 __PMC_EV(XSCALE, DATA_DEPENDENCY_STALLED) \ 5625 __PMC_EV(XSCALE, ITLB_MISS) \ 5626 __PMC_EV(XSCALE, DTLB_MISS) \ 5627 __PMC_EV(XSCALE, BRANCH_RETIRED) \ 5628 __PMC_EV(XSCALE, BRANCH_MISPRED) \ 5629 __PMC_EV(XSCALE, INSTR_RETIRED) \ 5630 __PMC_EV(XSCALE, DC_FULL_CYCLE) \ 5631 __PMC_EV(XSCALE, DC_FULL_CONTIG) \ 5632 __PMC_EV(XSCALE, DC_ACCESS) \ 5633 __PMC_EV(XSCALE, DC_MISS) \ 5634 __PMC_EV(XSCALE, DC_WRITEBACK) \ 5635 __PMC_EV(XSCALE, PC_CHANGE) \ 5636 __PMC_EV(XSCALE, BRANCH_RETIRED_ALL) \ 5637 __PMC_EV(XSCALE, INSTR_CYCLE) \ 5638 __PMC_EV(XSCALE, CP_STALL) \ 5639 __PMC_EV(XSCALE, PC_CHANGE_ALL) \ 5640 __PMC_EV(XSCALE, PIPELINE_FLUSH) \ 5641 __PMC_EV(XSCALE, BACKEND_STALL) \ 5642 __PMC_EV(XSCALE, MULTIPLIER_USE) \ 5643 __PMC_EV(XSCALE, MULTIPLIER_STALLED) \ 5644 __PMC_EV(XSCALE, DATA_CACHE_STALLED) \ 5645 __PMC_EV(XSCALE, L2_CACHE_REQ) \ 5646 __PMC_EV(XSCALE, L2_CACHE_MISS) \ 5647 __PMC_EV(XSCALE, ADDRESS_BUS_TRANS) \ 5648 __PMC_EV(XSCALE, SELF_ADDRESS_BUS_TRANS) \ 5649 __PMC_EV(XSCALE, DATA_BUS_TRANS) 5650 5651 #define PMC_EV_XSCALE_FIRST PMC_EV_XSCALE_IC_FETCH 5652 #define PMC_EV_XSCALE_LAST PMC_EV_XSCALE_DATA_BUS_TRANS 5653 5654 /* 5655 * ARMv7 Events 5656 */ 5657 5658 #define __PMC_EV_ARMV7() \ 5659 __PMC_EV(ARMV7, EVENT_00H) \ 5660 __PMC_EV(ARMV7, EVENT_01H) \ 5661 __PMC_EV(ARMV7, EVENT_02H) \ 5662 __PMC_EV(ARMV7, EVENT_03H) \ 5663 __PMC_EV(ARMV7, EVENT_04H) \ 5664 __PMC_EV(ARMV7, EVENT_05H) \ 5665 __PMC_EV(ARMV7, EVENT_06H) \ 5666 __PMC_EV(ARMV7, EVENT_07H) \ 5667 __PMC_EV(ARMV7, EVENT_08H) \ 5668 __PMC_EV(ARMV7, EVENT_09H) \ 5669 __PMC_EV(ARMV7, EVENT_0AH) \ 5670 __PMC_EV(ARMV7, EVENT_0BH) \ 5671 __PMC_EV(ARMV7, EVENT_0CH) \ 5672 __PMC_EV(ARMV7, EVENT_0DH) \ 5673 __PMC_EV(ARMV7, EVENT_0EH) \ 5674 __PMC_EV(ARMV7, EVENT_0FH) \ 5675 __PMC_EV(ARMV7, EVENT_10H) \ 5676 __PMC_EV(ARMV7, EVENT_11H) \ 5677 __PMC_EV(ARMV7, EVENT_12H) \ 5678 __PMC_EV(ARMV7, EVENT_13H) \ 5679 __PMC_EV(ARMV7, EVENT_14H) \ 5680 __PMC_EV(ARMV7, EVENT_15H) \ 5681 __PMC_EV(ARMV7, EVENT_16H) \ 5682 __PMC_EV(ARMV7, EVENT_17H) \ 5683 __PMC_EV(ARMV7, EVENT_18H) \ 5684 __PMC_EV(ARMV7, EVENT_19H) \ 5685 __PMC_EV(ARMV7, EVENT_1AH) \ 5686 __PMC_EV(ARMV7, EVENT_1BH) \ 5687 __PMC_EV(ARMV7, EVENT_1CH) \ 5688 __PMC_EV(ARMV7, EVENT_1DH) \ 5689 __PMC_EV(ARMV7, EVENT_1EH) \ 5690 __PMC_EV(ARMV7, EVENT_1FH) \ 5691 __PMC_EV(ARMV7, EVENT_20H) \ 5692 __PMC_EV(ARMV7, EVENT_21H) \ 5693 __PMC_EV(ARMV7, EVENT_22H) \ 5694 __PMC_EV(ARMV7, EVENT_23H) \ 5695 __PMC_EV(ARMV7, EVENT_24H) \ 5696 __PMC_EV(ARMV7, EVENT_25H) \ 5697 __PMC_EV(ARMV7, EVENT_26H) \ 5698 __PMC_EV(ARMV7, EVENT_27H) \ 5699 __PMC_EV(ARMV7, EVENT_28H) \ 5700 __PMC_EV(ARMV7, EVENT_29H) \ 5701 __PMC_EV(ARMV7, EVENT_2AH) \ 5702 __PMC_EV(ARMV7, EVENT_2BH) \ 5703 __PMC_EV(ARMV7, EVENT_2CH) \ 5704 __PMC_EV(ARMV7, EVENT_2DH) \ 5705 __PMC_EV(ARMV7, EVENT_2EH) \ 5706 __PMC_EV(ARMV7, EVENT_2FH) \ 5707 __PMC_EV(ARMV7, EVENT_30H) \ 5708 __PMC_EV(ARMV7, EVENT_31H) \ 5709 __PMC_EV(ARMV7, EVENT_32H) \ 5710 __PMC_EV(ARMV7, EVENT_33H) \ 5711 __PMC_EV(ARMV7, EVENT_34H) \ 5712 __PMC_EV(ARMV7, EVENT_35H) \ 5713 __PMC_EV(ARMV7, EVENT_36H) \ 5714 __PMC_EV(ARMV7, EVENT_37H) \ 5715 __PMC_EV(ARMV7, EVENT_38H) \ 5716 __PMC_EV(ARMV7, EVENT_39H) \ 5717 __PMC_EV(ARMV7, EVENT_3AH) \ 5718 __PMC_EV(ARMV7, EVENT_3BH) \ 5719 __PMC_EV(ARMV7, EVENT_3CH) \ 5720 __PMC_EV(ARMV7, EVENT_3DH) \ 5721 __PMC_EV(ARMV7, EVENT_3EH) \ 5722 __PMC_EV(ARMV7, EVENT_3FH) \ 5723 __PMC_EV(ARMV7, EVENT_40H) \ 5724 __PMC_EV(ARMV7, EVENT_41H) \ 5725 __PMC_EV(ARMV7, EVENT_42H) \ 5726 __PMC_EV(ARMV7, EVENT_43H) \ 5727 __PMC_EV(ARMV7, EVENT_44H) \ 5728 __PMC_EV(ARMV7, EVENT_45H) \ 5729 __PMC_EV(ARMV7, EVENT_46H) \ 5730 __PMC_EV(ARMV7, EVENT_47H) \ 5731 __PMC_EV(ARMV7, EVENT_48H) \ 5732 __PMC_EV(ARMV7, EVENT_49H) \ 5733 __PMC_EV(ARMV7, EVENT_4AH) \ 5734 __PMC_EV(ARMV7, EVENT_4BH) \ 5735 __PMC_EV(ARMV7, EVENT_4CH) \ 5736 __PMC_EV(ARMV7, EVENT_4DH) \ 5737 __PMC_EV(ARMV7, EVENT_4EH) \ 5738 __PMC_EV(ARMV7, EVENT_4FH) \ 5739 __PMC_EV(ARMV7, EVENT_50H) \ 5740 __PMC_EV(ARMV7, EVENT_51H) \ 5741 __PMC_EV(ARMV7, EVENT_52H) \ 5742 __PMC_EV(ARMV7, EVENT_53H) \ 5743 __PMC_EV(ARMV7, EVENT_54H) \ 5744 __PMC_EV(ARMV7, EVENT_55H) \ 5745 __PMC_EV(ARMV7, EVENT_56H) \ 5746 __PMC_EV(ARMV7, EVENT_57H) \ 5747 __PMC_EV(ARMV7, EVENT_58H) \ 5748 __PMC_EV(ARMV7, EVENT_59H) \ 5749 __PMC_EV(ARMV7, EVENT_5AH) \ 5750 __PMC_EV(ARMV7, EVENT_5BH) \ 5751 __PMC_EV(ARMV7, EVENT_5CH) \ 5752 __PMC_EV(ARMV7, EVENT_5DH) \ 5753 __PMC_EV(ARMV7, EVENT_5EH) \ 5754 __PMC_EV(ARMV7, EVENT_5FH) \ 5755 __PMC_EV(ARMV7, EVENT_60H) \ 5756 __PMC_EV(ARMV7, EVENT_61H) \ 5757 __PMC_EV(ARMV7, EVENT_62H) \ 5758 __PMC_EV(ARMV7, EVENT_63H) \ 5759 __PMC_EV(ARMV7, EVENT_64H) \ 5760 __PMC_EV(ARMV7, EVENT_65H) \ 5761 __PMC_EV(ARMV7, EVENT_66H) \ 5762 __PMC_EV(ARMV7, EVENT_67H) \ 5763 __PMC_EV(ARMV7, EVENT_68H) \ 5764 __PMC_EV(ARMV7, EVENT_69H) \ 5765 __PMC_EV(ARMV7, EVENT_6AH) \ 5766 __PMC_EV(ARMV7, EVENT_6BH) \ 5767 __PMC_EV(ARMV7, EVENT_6CH) \ 5768 __PMC_EV(ARMV7, EVENT_6DH) \ 5769 __PMC_EV(ARMV7, EVENT_6EH) \ 5770 __PMC_EV(ARMV7, EVENT_6FH) \ 5771 __PMC_EV(ARMV7, EVENT_70H) \ 5772 __PMC_EV(ARMV7, EVENT_71H) \ 5773 __PMC_EV(ARMV7, EVENT_72H) \ 5774 __PMC_EV(ARMV7, EVENT_73H) \ 5775 __PMC_EV(ARMV7, EVENT_74H) \ 5776 __PMC_EV(ARMV7, EVENT_75H) \ 5777 __PMC_EV(ARMV7, EVENT_76H) \ 5778 __PMC_EV(ARMV7, EVENT_77H) \ 5779 __PMC_EV(ARMV7, EVENT_78H) \ 5780 __PMC_EV(ARMV7, EVENT_79H) \ 5781 __PMC_EV(ARMV7, EVENT_7AH) \ 5782 __PMC_EV(ARMV7, EVENT_7BH) \ 5783 __PMC_EV(ARMV7, EVENT_7CH) \ 5784 __PMC_EV(ARMV7, EVENT_7DH) \ 5785 __PMC_EV(ARMV7, EVENT_7EH) \ 5786 __PMC_EV(ARMV7, EVENT_7FH) \ 5787 __PMC_EV(ARMV7, EVENT_80H) \ 5788 __PMC_EV(ARMV7, EVENT_81H) \ 5789 __PMC_EV(ARMV7, EVENT_82H) \ 5790 __PMC_EV(ARMV7, EVENT_83H) \ 5791 __PMC_EV(ARMV7, EVENT_84H) \ 5792 __PMC_EV(ARMV7, EVENT_85H) \ 5793 __PMC_EV(ARMV7, EVENT_86H) \ 5794 __PMC_EV(ARMV7, EVENT_87H) \ 5795 __PMC_EV(ARMV7, EVENT_88H) \ 5796 __PMC_EV(ARMV7, EVENT_89H) \ 5797 __PMC_EV(ARMV7, EVENT_8AH) \ 5798 __PMC_EV(ARMV7, EVENT_8BH) \ 5799 __PMC_EV(ARMV7, EVENT_8CH) \ 5800 __PMC_EV(ARMV7, EVENT_8DH) \ 5801 __PMC_EV(ARMV7, EVENT_8EH) \ 5802 __PMC_EV(ARMV7, EVENT_8FH) \ 5803 __PMC_EV(ARMV7, EVENT_90H) \ 5804 __PMC_EV(ARMV7, EVENT_91H) \ 5805 __PMC_EV(ARMV7, EVENT_92H) \ 5806 __PMC_EV(ARMV7, EVENT_93H) \ 5807 __PMC_EV(ARMV7, EVENT_94H) \ 5808 __PMC_EV(ARMV7, EVENT_95H) \ 5809 __PMC_EV(ARMV7, EVENT_96H) \ 5810 __PMC_EV(ARMV7, EVENT_97H) \ 5811 __PMC_EV(ARMV7, EVENT_98H) \ 5812 __PMC_EV(ARMV7, EVENT_99H) \ 5813 __PMC_EV(ARMV7, EVENT_9AH) \ 5814 __PMC_EV(ARMV7, EVENT_9BH) \ 5815 __PMC_EV(ARMV7, EVENT_9CH) \ 5816 __PMC_EV(ARMV7, EVENT_9DH) \ 5817 __PMC_EV(ARMV7, EVENT_9EH) \ 5818 __PMC_EV(ARMV7, EVENT_9FH) \ 5819 __PMC_EV(ARMV7, EVENT_A0H) \ 5820 __PMC_EV(ARMV7, EVENT_A1H) \ 5821 __PMC_EV(ARMV7, EVENT_A2H) \ 5822 __PMC_EV(ARMV7, EVENT_A3H) \ 5823 __PMC_EV(ARMV7, EVENT_A4H) \ 5824 __PMC_EV(ARMV7, EVENT_A5H) \ 5825 __PMC_EV(ARMV7, EVENT_A6H) \ 5826 __PMC_EV(ARMV7, EVENT_A7H) \ 5827 __PMC_EV(ARMV7, EVENT_A8H) \ 5828 __PMC_EV(ARMV7, EVENT_A9H) \ 5829 __PMC_EV(ARMV7, EVENT_AAH) \ 5830 __PMC_EV(ARMV7, EVENT_ABH) \ 5831 __PMC_EV(ARMV7, EVENT_ACH) \ 5832 __PMC_EV(ARMV7, EVENT_ADH) \ 5833 __PMC_EV(ARMV7, EVENT_AEH) \ 5834 __PMC_EV(ARMV7, EVENT_AFH) \ 5835 __PMC_EV(ARMV7, EVENT_B0H) \ 5836 __PMC_EV(ARMV7, EVENT_B1H) \ 5837 __PMC_EV(ARMV7, EVENT_B2H) \ 5838 __PMC_EV(ARMV7, EVENT_B3H) \ 5839 __PMC_EV(ARMV7, EVENT_B4H) \ 5840 __PMC_EV(ARMV7, EVENT_B5H) \ 5841 __PMC_EV(ARMV7, EVENT_B6H) \ 5842 __PMC_EV(ARMV7, EVENT_B7H) \ 5843 __PMC_EV(ARMV7, EVENT_B8H) \ 5844 __PMC_EV(ARMV7, EVENT_B9H) \ 5845 __PMC_EV(ARMV7, EVENT_BAH) \ 5846 __PMC_EV(ARMV7, EVENT_BBH) \ 5847 __PMC_EV(ARMV7, EVENT_BCH) \ 5848 __PMC_EV(ARMV7, EVENT_BDH) \ 5849 __PMC_EV(ARMV7, EVENT_BEH) \ 5850 __PMC_EV(ARMV7, EVENT_BFH) \ 5851 __PMC_EV(ARMV7, EVENT_C0H) \ 5852 __PMC_EV(ARMV7, EVENT_C1H) \ 5853 __PMC_EV(ARMV7, EVENT_C2H) \ 5854 __PMC_EV(ARMV7, EVENT_C3H) \ 5855 __PMC_EV(ARMV7, EVENT_C4H) \ 5856 __PMC_EV(ARMV7, EVENT_C5H) \ 5857 __PMC_EV(ARMV7, EVENT_C6H) \ 5858 __PMC_EV(ARMV7, EVENT_C7H) \ 5859 __PMC_EV(ARMV7, EVENT_C8H) \ 5860 __PMC_EV(ARMV7, EVENT_C9H) \ 5861 __PMC_EV(ARMV7, EVENT_CAH) \ 5862 __PMC_EV(ARMV7, EVENT_CBH) \ 5863 __PMC_EV(ARMV7, EVENT_CCH) \ 5864 __PMC_EV(ARMV7, EVENT_CDH) \ 5865 __PMC_EV(ARMV7, EVENT_CEH) \ 5866 __PMC_EV(ARMV7, EVENT_CFH) \ 5867 __PMC_EV(ARMV7, EVENT_D0H) \ 5868 __PMC_EV(ARMV7, EVENT_D1H) \ 5869 __PMC_EV(ARMV7, EVENT_D2H) \ 5870 __PMC_EV(ARMV7, EVENT_D3H) \ 5871 __PMC_EV(ARMV7, EVENT_D4H) \ 5872 __PMC_EV(ARMV7, EVENT_D5H) \ 5873 __PMC_EV(ARMV7, EVENT_D6H) \ 5874 __PMC_EV(ARMV7, EVENT_D7H) \ 5875 __PMC_EV(ARMV7, EVENT_D8H) \ 5876 __PMC_EV(ARMV7, EVENT_D9H) \ 5877 __PMC_EV(ARMV7, EVENT_DAH) \ 5878 __PMC_EV(ARMV7, EVENT_DBH) \ 5879 __PMC_EV(ARMV7, EVENT_DCH) \ 5880 __PMC_EV(ARMV7, EVENT_DDH) \ 5881 __PMC_EV(ARMV7, EVENT_DEH) \ 5882 __PMC_EV(ARMV7, EVENT_DFH) \ 5883 __PMC_EV(ARMV7, EVENT_E0H) \ 5884 __PMC_EV(ARMV7, EVENT_E1H) \ 5885 __PMC_EV(ARMV7, EVENT_E2H) \ 5886 __PMC_EV(ARMV7, EVENT_E3H) \ 5887 __PMC_EV(ARMV7, EVENT_E4H) \ 5888 __PMC_EV(ARMV7, EVENT_E5H) \ 5889 __PMC_EV(ARMV7, EVENT_E6H) \ 5890 __PMC_EV(ARMV7, EVENT_E7H) \ 5891 __PMC_EV(ARMV7, EVENT_E8H) \ 5892 __PMC_EV(ARMV7, EVENT_E9H) \ 5893 __PMC_EV(ARMV7, EVENT_EAH) \ 5894 __PMC_EV(ARMV7, EVENT_EBH) \ 5895 __PMC_EV(ARMV7, EVENT_ECH) \ 5896 __PMC_EV(ARMV7, EVENT_EDH) \ 5897 __PMC_EV(ARMV7, EVENT_EEH) \ 5898 __PMC_EV(ARMV7, EVENT_EFH) \ 5899 __PMC_EV(ARMV7, EVENT_F0H) \ 5900 __PMC_EV(ARMV7, EVENT_F1H) \ 5901 __PMC_EV(ARMV7, EVENT_F2H) \ 5902 __PMC_EV(ARMV7, EVENT_F3H) \ 5903 __PMC_EV(ARMV7, EVENT_F4H) \ 5904 __PMC_EV(ARMV7, EVENT_F5H) \ 5905 __PMC_EV(ARMV7, EVENT_F6H) \ 5906 __PMC_EV(ARMV7, EVENT_F7H) \ 5907 __PMC_EV(ARMV7, EVENT_F8H) \ 5908 __PMC_EV(ARMV7, EVENT_F9H) \ 5909 __PMC_EV(ARMV7, EVENT_FAH) \ 5910 __PMC_EV(ARMV7, EVENT_FBH) \ 5911 __PMC_EV(ARMV7, EVENT_FCH) \ 5912 __PMC_EV(ARMV7, EVENT_FDH) \ 5913 __PMC_EV(ARMV7, EVENT_FEH) \ 5914 __PMC_EV(ARMV7, EVENT_FFH) 5915 5916 #define PMC_EV_ARMV7_FIRST PMC_EV_ARMV7_EVENT_00H 5917 #define PMC_EV_ARMV7_LAST PMC_EV_ARMV7_EVENT_FFH 5918 5919 #define __PMC_EV_ALIAS_ARMV7_COMMON() \ 5920 __PMC_EV_ALIAS("PMNC_SW_INCR", ARMV7_EVENT_00H) \ 5921 __PMC_EV_ALIAS("L1_ICACHE_REFILL", ARMV7_EVENT_01H) \ 5922 __PMC_EV_ALIAS("ITLB_REFILL", ARMV7_EVENT_02H) \ 5923 __PMC_EV_ALIAS("L1_DCACHE_REFILL", ARMV7_EVENT_03H) \ 5924 __PMC_EV_ALIAS("L1_DCACHE_ACCESS", ARMV7_EVENT_04H) \ 5925 __PMC_EV_ALIAS("DTLB_REFILL", ARMV7_EVENT_05H) \ 5926 __PMC_EV_ALIAS("MEM_READ", ARMV7_EVENT_06H) \ 5927 __PMC_EV_ALIAS("MEM_WRITE", ARMV7_EVENT_07H) \ 5928 __PMC_EV_ALIAS("EXC_TAKEN", ARMV7_EVENT_09H) \ 5929 __PMC_EV_ALIAS("EXC_EXECUTED", ARMV7_EVENT_0AH) \ 5930 __PMC_EV_ALIAS("CID_WRITE", ARMV7_EVENT_0BH) \ 5931 __PMC_EV_ALIAS("PC_WRITE", ARMV7_EVENT_0CH) \ 5932 __PMC_EV_ALIAS("PC_IMM_BRANCH", ARMV7_EVENT_0DH) \ 5933 __PMC_EV_ALIAS("MEM_UNALIGNED_ACCESS", ARMV7_EVENT_0FH) \ 5934 __PMC_EV_ALIAS("PC_BRANCH_MIS_PRED", ARMV7_EVENT_10H) \ 5935 __PMC_EV_ALIAS("CLOCK_CYCLES", ARMV7_EVENT_11H) \ 5936 __PMC_EV_ALIAS("PC_BRANCH_PRED", ARMV7_EVENT_12H) 5937 5938 #define __PMC_EV_ALIAS_ARMV7_COMMON_A8() \ 5939 __PMC_EV_ALIAS_ARMV7_COMMON() \ 5940 __PMC_EV_ALIAS("INSTR_EXECUTED", ARMV7_EVENT_08H) \ 5941 __PMC_EV_ALIAS("PC_PROC_RETURN", ARMV7_EVENT_0EH) \ 5942 __PMC_EV_ALIAS("MEM_ACCESS", ARMV7_EVENT_13H) \ 5943 __PMC_EV_ALIAS("L1_ICACHE_ACCESS", ARMV7_EVENT_14H) \ 5944 __PMC_EV_ALIAS("L1_DCACHE_WB", ARMV7_EVENT_15H) \ 5945 __PMC_EV_ALIAS("L2_CACHE_ACCESS", ARMV7_EVENT_16H) \ 5946 __PMC_EV_ALIAS("L2_CACHE_REFILL", ARMV7_EVENT_17H) \ 5947 __PMC_EV_ALIAS("L2_CACHE_WB", ARMV7_EVENT_18H) \ 5948 __PMC_EV_ALIAS("BUS_ACCESS", ARMV7_EVENT_19H) \ 5949 __PMC_EV_ALIAS("MEM_ERROR", ARMV7_EVENT_1AH) \ 5950 __PMC_EV_ALIAS("INSTR_SPEC", ARMV7_EVENT_1BH) \ 5951 __PMC_EV_ALIAS("TTBR_WRITE", ARMV7_EVENT_1CH) \ 5952 __PMC_EV_ALIAS("BUS_CYCLES", ARMV7_EVENT_1DH) \ 5953 __PMC_EV_ALIAS("CPU_CYCLES", ARMV7_EVENT_FFH) 5954 5955 #define __PMC_EV_ALIAS_ARMV7_CORTEX_A8() \ 5956 __PMC_EV_ALIAS_ARMV7_COMMON_A8() \ 5957 __PMC_EV_ALIAS("WRITE_BUF_FULL", ARMV7_EVENT_40H) \ 5958 __PMC_EV_ALIAS("L2_STORE_MERGED", ARMV7_EVENT_41H) \ 5959 __PMC_EV_ALIAS("L2_STORE_BUFFERABLE", ARMV7_EVENT_42H) \ 5960 __PMC_EV_ALIAS("L2_ACCESS", ARMV7_EVENT_43H) \ 5961 __PMC_EV_ALIAS("L2_CACHE_MISS", ARMV7_EVENT_44H) \ 5962 __PMC_EV_ALIAS("AXI_READ", ARMV7_EVENT_45H) \ 5963 __PMC_EV_ALIAS("AXI_WRITE", ARMV7_EVENT_46H) \ 5964 __PMC_EV_ALIAS("MEM_REPLAY_EVT", ARMV7_EVENT_47H) \ 5965 __PMC_EV_ALIAS("MEM_UNALIGNED_ACCESS_REPLAY", ARMV7_EVENT_48H) \ 5966 __PMC_EV_ALIAS("L1_DCACHE_HASH_MISS", ARMV7_EVENT_49H) \ 5967 __PMC_EV_ALIAS("L1_ICACHE_HASH_MISS", ARMV7_EVENT_4AH) \ 5968 __PMC_EV_ALIAS("L1_CACHE_PAGECOL_ALIAS", ARMV7_EVENT_4BH) \ 5969 __PMC_EV_ALIAS("L1_DCACHE_NEON_ACCESS", ARMV7_EVENT_4CH) \ 5970 __PMC_EV_ALIAS("L1_DCACHE_NEON_CACHEABLE", ARMV7_EVENT_4DH) \ 5971 __PMC_EV_ALIAS("L2_CACHE_NEON_MEM_ACCESS", ARMV7_EVENT_4EH) \ 5972 __PMC_EV_ALIAS("L2_CACHE_NEON_HIT", ARMV7_EVENT_4FH) \ 5973 __PMC_EV_ALIAS("L1_CACHE_ACCESS_NOCP15", ARMV7_EVENT_50H) \ 5974 __PMC_EV_ALIAS("RET_STACK_MISPREDICT", ARMV7_EVENT_51H) \ 5975 __PMC_EV_ALIAS("BRANCH_DIR_MISPREDICT", ARMV7_EVENT_52H) \ 5976 __PMC_EV_ALIAS("PRED_BRANCH_PRED_TAKEN", ARMV7_EVENT_53H) \ 5977 __PMC_EV_ALIAS("PRED_BRANCH_EXEC_TAKEN", ARMV7_EVENT_54H) \ 5978 __PMC_EV_ALIAS("OPS_ISSUED", ARMV7_EVENT_55H) \ 5979 __PMC_EV_ALIAS("CYCLES_NO_INSTRUCTION", ARMV7_EVENT_56H) \ 5980 __PMC_EV_ALIAS("INSTRUCTIONS_ISSUED_CYCLE", ARMV7_EVENT_57H) \ 5981 __PMC_EV_ALIAS("CYCLES_STALLED_NEON_MRC", ARMV7_EVENT_58H) \ 5982 __PMC_EV_ALIAS("CYCLES_STALLED_NEON_FULLQ", ARMV7_EVENT_59H) \ 5983 __PMC_EV_ALIAS("CYCLES_NONIDLE_NEON_INT", ARMV7_EVENT_5AH) \ 5984 __PMC_EV_ALIAS("PMUEXTIN0_EVT", ARMV7_EVENT_70H) \ 5985 __PMC_EV_ALIAS("PMUEXTIN1_EVT", ARMV7_EVENT_71H) \ 5986 __PMC_EV_ALIAS("PMUEXTIN_EVT", ARMV7_EVENT_72H) 5987 #define PMC_EV_ARMV7_CORTEX_A8_FIRST PMC_EV_ARMV7_PMNC_SW_INCR 5988 #define PMC_EV_ARMV7_CORTEX_A8_LAST PMC_EV_ARMV7_PMUEXTIN_EVT 5989 5990 #define __PMC_EV_ALIAS_ARMV7_CORTEX_A9() \ 5991 __PMC_EV_ALIAS_ARMV7_COMMON() \ 5992 __PMC_EV_ALIAS("JAVA_BYTECODE", ARMV7_EVENT_40H) \ 5993 __PMC_EV_ALIAS("SOFTWARE_JAVA_BYTECODE", ARMV7_EVENT_41H) \ 5994 __PMC_EV_ALIAS("JAZELLE_BACKWARD_BRANCH", ARMV7_EVENT_42H) \ 5995 __PMC_EV_ALIAS("COHERENT_LINEFILL_MISSC", ARMV7_EVENT_50H) \ 5996 __PMC_EV_ALIAS("COHERENT_LINEFILL_HITC", ARMV7_EVENT_51H) \ 5997 __PMC_EV_ALIAS("INSTR_CACHE_DEPENDENT_STALL", ARMV7_EVENT_60H) \ 5998 __PMC_EV_ALIAS("DATA_CACHE_DEPENDENT_STALL", ARMV7_EVENT_61H) \ 5999 __PMC_EV_ALIAS("MAIN_TLB_MISS_STALL", ARMV7_EVENT_62H) \ 6000 __PMC_EV_ALIAS("STREX_PASSED", ARMV7_EVENT_63H) \ 6001 __PMC_EV_ALIAS("STREX_FAILED", ARMV7_EVENT_64H) \ 6002 __PMC_EV_ALIAS("DATA_EVICTION", ARMV7_EVENT_65H) \ 6003 __PMC_EV_ALIAS("ISSUE_DNOT_DISPATCH_ANY_INSTR", ARMV7_EVENT_66H) \ 6004 __PMC_EV_ALIAS("ISSUE_IS_EMPTY", ARMV7_EVENT_67H) \ 6005 __PMC_EV_ALIAS("INSTR_RENAMED", ARMV7_EVENT_68H) \ 6006 __PMC_EV_ALIAS("PREDICTABLE_FUNCTION_RETURN", ARMV7_EVENT_6EH) \ 6007 __PMC_EV_ALIAS("MAIN_EXECUTION_UNIT_PIPE", ARMV7_EVENT_70H) \ 6008 __PMC_EV_ALIAS("SECOND_EXECUTION_UNIT_PIPE", ARMV7_EVENT_71H) \ 6009 __PMC_EV_ALIAS("LOAD_STORE_PIPE", ARMV7_EVENT_72H) \ 6010 __PMC_EV_ALIAS("FLOATING_POINT_INSTR_RENAMED", ARMV7_EVENT_73H) \ 6011 __PMC_EV_ALIAS("NEON_INSTRS_RENAMED", ARMV7_EVENT_74H) \ 6012 __PMC_EV_ALIAS("PLD_STALL", ARMV7_EVENT_80H) \ 6013 __PMC_EV_ALIAS("WRITE_STALL", ARMV7_EVENT_81H) \ 6014 __PMC_EV_ALIAS("INSTR_MAIN_TLB_MISS_STALL", ARMV7_EVENT_82H) \ 6015 __PMC_EV_ALIAS("DATA_MAIN_TLB_MISS_STALL", ARMV7_EVENT_83H) \ 6016 __PMC_EV_ALIAS("INSTR_MICRO_TLB_MISS_STALL", ARMV7_EVENT_84H) \ 6017 __PMC_EV_ALIAS("DATA_MICRO_TLB_MISS_STALL", ARMV7_EVENT_85H) \ 6018 __PMC_EV_ALIAS("DMB_STALL", ARMV7_EVENT_86H) \ 6019 __PMC_EV_ALIAS("INTEGER_CORE_CLOCK_ENABLED", ARMV7_EVENT_8AH) \ 6020 __PMC_EV_ALIAS("DATA_ENGINE_CLOCK_ENABLED", ARMV7_EVENT_8BH) \ 6021 __PMC_EV_ALIAS("ISB", ARMV7_EVENT_90H) \ 6022 __PMC_EV_ALIAS("DSB", ARMV7_EVENT_91H) \ 6023 __PMC_EV_ALIAS("DMB", ARMV7_EVENT_92H) \ 6024 __PMC_EV_ALIAS("EXTERNAL_INTERRUPT", ARMV7_EVENT_93H) \ 6025 __PMC_EV_ALIAS("PLE_CACHE_LINE_REQ_COMPLETED", ARMV7_EVENT_A0H) \ 6026 __PMC_EV_ALIAS("PLE_CACHE_LINE_REQ_SKIPPED", ARMV7_EVENT_A1H) \ 6027 __PMC_EV_ALIAS("PLE_FIFO_FLUSH", ARMV7_EVENT_A2H) \ 6028 __PMC_EV_ALIAS("PLE_REQUEST_COMPLETED", ARMV7_EVENT_A3H) \ 6029 __PMC_EV_ALIAS("PLE_FIFO_OVERFLOW", ARMV7_EVENT_A4H) \ 6030 __PMC_EV_ALIAS("PLE_REQUEST_PROGRAMMED", ARMV7_EVENT_A5H) 6031 6032 /* 6033 * ARMv8 Events 6034 */ 6035 6036 #define __PMC_EV_ARMV8() \ 6037 __PMC_EV(ARMV8, EVENT_00H) \ 6038 __PMC_EV(ARMV8, EVENT_01H) \ 6039 __PMC_EV(ARMV8, EVENT_02H) \ 6040 __PMC_EV(ARMV8, EVENT_03H) \ 6041 __PMC_EV(ARMV8, EVENT_04H) \ 6042 __PMC_EV(ARMV8, EVENT_05H) \ 6043 __PMC_EV(ARMV8, EVENT_06H) \ 6044 __PMC_EV(ARMV8, EVENT_07H) \ 6045 __PMC_EV(ARMV8, EVENT_08H) \ 6046 __PMC_EV(ARMV8, EVENT_09H) \ 6047 __PMC_EV(ARMV8, EVENT_0AH) \ 6048 __PMC_EV(ARMV8, EVENT_0BH) \ 6049 __PMC_EV(ARMV8, EVENT_0CH) \ 6050 __PMC_EV(ARMV8, EVENT_0DH) \ 6051 __PMC_EV(ARMV8, EVENT_0EH) \ 6052 __PMC_EV(ARMV8, EVENT_0FH) \ 6053 __PMC_EV(ARMV8, EVENT_10H) \ 6054 __PMC_EV(ARMV8, EVENT_11H) \ 6055 __PMC_EV(ARMV8, EVENT_12H) \ 6056 __PMC_EV(ARMV8, EVENT_13H) \ 6057 __PMC_EV(ARMV8, EVENT_14H) \ 6058 __PMC_EV(ARMV8, EVENT_15H) \ 6059 __PMC_EV(ARMV8, EVENT_16H) \ 6060 __PMC_EV(ARMV8, EVENT_17H) \ 6061 __PMC_EV(ARMV8, EVENT_18H) \ 6062 __PMC_EV(ARMV8, EVENT_19H) \ 6063 __PMC_EV(ARMV8, EVENT_1AH) \ 6064 __PMC_EV(ARMV8, EVENT_1BH) \ 6065 __PMC_EV(ARMV8, EVENT_1CH) \ 6066 __PMC_EV(ARMV8, EVENT_1DH) \ 6067 __PMC_EV(ARMV8, EVENT_1EH) \ 6068 __PMC_EV(ARMV8, EVENT_1FH) \ 6069 __PMC_EV(ARMV8, EVENT_20H) \ 6070 __PMC_EV(ARMV8, EVENT_21H) \ 6071 __PMC_EV(ARMV8, EVENT_22H) \ 6072 __PMC_EV(ARMV8, EVENT_23H) \ 6073 __PMC_EV(ARMV8, EVENT_24H) \ 6074 __PMC_EV(ARMV8, EVENT_25H) \ 6075 __PMC_EV(ARMV8, EVENT_26H) \ 6076 __PMC_EV(ARMV8, EVENT_27H) \ 6077 __PMC_EV(ARMV8, EVENT_28H) \ 6078 __PMC_EV(ARMV8, EVENT_29H) \ 6079 __PMC_EV(ARMV8, EVENT_2AH) \ 6080 __PMC_EV(ARMV8, EVENT_2BH) \ 6081 __PMC_EV(ARMV8, EVENT_2CH) \ 6082 __PMC_EV(ARMV8, EVENT_2DH) \ 6083 __PMC_EV(ARMV8, EVENT_2EH) \ 6084 __PMC_EV(ARMV8, EVENT_2FH) \ 6085 __PMC_EV(ARMV8, EVENT_30H) \ 6086 __PMC_EV(ARMV8, EVENT_31H) \ 6087 __PMC_EV(ARMV8, EVENT_32H) \ 6088 __PMC_EV(ARMV8, EVENT_33H) \ 6089 __PMC_EV(ARMV8, EVENT_34H) \ 6090 __PMC_EV(ARMV8, EVENT_35H) \ 6091 __PMC_EV(ARMV8, EVENT_36H) \ 6092 __PMC_EV(ARMV8, EVENT_37H) \ 6093 __PMC_EV(ARMV8, EVENT_38H) \ 6094 __PMC_EV(ARMV8, EVENT_39H) \ 6095 __PMC_EV(ARMV8, EVENT_3AH) \ 6096 __PMC_EV(ARMV8, EVENT_3BH) \ 6097 __PMC_EV(ARMV8, EVENT_3CH) \ 6098 __PMC_EV(ARMV8, EVENT_3DH) \ 6099 __PMC_EV(ARMV8, EVENT_3EH) \ 6100 __PMC_EV(ARMV8, EVENT_3FH) \ 6101 __PMC_EV(ARMV8, EVENT_40H) \ 6102 __PMC_EV(ARMV8, EVENT_41H) \ 6103 __PMC_EV(ARMV8, EVENT_42H) \ 6104 __PMC_EV(ARMV8, EVENT_43H) \ 6105 __PMC_EV(ARMV8, EVENT_44H) \ 6106 __PMC_EV(ARMV8, EVENT_45H) \ 6107 __PMC_EV(ARMV8, EVENT_46H) \ 6108 __PMC_EV(ARMV8, EVENT_47H) \ 6109 __PMC_EV(ARMV8, EVENT_48H) \ 6110 __PMC_EV(ARMV8, EVENT_49H) \ 6111 __PMC_EV(ARMV8, EVENT_4AH) \ 6112 __PMC_EV(ARMV8, EVENT_4BH) \ 6113 __PMC_EV(ARMV8, EVENT_4CH) \ 6114 __PMC_EV(ARMV8, EVENT_4DH) \ 6115 __PMC_EV(ARMV8, EVENT_4EH) \ 6116 __PMC_EV(ARMV8, EVENT_4FH) \ 6117 __PMC_EV(ARMV8, EVENT_50H) \ 6118 __PMC_EV(ARMV8, EVENT_51H) \ 6119 __PMC_EV(ARMV8, EVENT_52H) \ 6120 __PMC_EV(ARMV8, EVENT_53H) \ 6121 __PMC_EV(ARMV8, EVENT_54H) \ 6122 __PMC_EV(ARMV8, EVENT_55H) \ 6123 __PMC_EV(ARMV8, EVENT_56H) \ 6124 __PMC_EV(ARMV8, EVENT_57H) \ 6125 __PMC_EV(ARMV8, EVENT_58H) \ 6126 __PMC_EV(ARMV8, EVENT_59H) \ 6127 __PMC_EV(ARMV8, EVENT_5AH) \ 6128 __PMC_EV(ARMV8, EVENT_5BH) \ 6129 __PMC_EV(ARMV8, EVENT_5CH) \ 6130 __PMC_EV(ARMV8, EVENT_5DH) \ 6131 __PMC_EV(ARMV8, EVENT_5EH) \ 6132 __PMC_EV(ARMV8, EVENT_5FH) \ 6133 __PMC_EV(ARMV8, EVENT_60H) \ 6134 __PMC_EV(ARMV8, EVENT_61H) \ 6135 __PMC_EV(ARMV8, EVENT_62H) \ 6136 __PMC_EV(ARMV8, EVENT_63H) \ 6137 __PMC_EV(ARMV8, EVENT_64H) \ 6138 __PMC_EV(ARMV8, EVENT_65H) \ 6139 __PMC_EV(ARMV8, EVENT_66H) \ 6140 __PMC_EV(ARMV8, EVENT_67H) \ 6141 __PMC_EV(ARMV8, EVENT_68H) \ 6142 __PMC_EV(ARMV8, EVENT_69H) \ 6143 __PMC_EV(ARMV8, EVENT_6AH) \ 6144 __PMC_EV(ARMV8, EVENT_6BH) \ 6145 __PMC_EV(ARMV8, EVENT_6CH) \ 6146 __PMC_EV(ARMV8, EVENT_6DH) \ 6147 __PMC_EV(ARMV8, EVENT_6EH) \ 6148 __PMC_EV(ARMV8, EVENT_6FH) \ 6149 __PMC_EV(ARMV8, EVENT_70H) \ 6150 __PMC_EV(ARMV8, EVENT_71H) \ 6151 __PMC_EV(ARMV8, EVENT_72H) \ 6152 __PMC_EV(ARMV8, EVENT_73H) \ 6153 __PMC_EV(ARMV8, EVENT_74H) \ 6154 __PMC_EV(ARMV8, EVENT_75H) \ 6155 __PMC_EV(ARMV8, EVENT_76H) \ 6156 __PMC_EV(ARMV8, EVENT_77H) \ 6157 __PMC_EV(ARMV8, EVENT_78H) \ 6158 __PMC_EV(ARMV8, EVENT_79H) \ 6159 __PMC_EV(ARMV8, EVENT_7AH) \ 6160 __PMC_EV(ARMV8, EVENT_7BH) \ 6161 __PMC_EV(ARMV8, EVENT_7CH) \ 6162 __PMC_EV(ARMV8, EVENT_7DH) \ 6163 __PMC_EV(ARMV8, EVENT_7EH) \ 6164 __PMC_EV(ARMV8, EVENT_7FH) \ 6165 __PMC_EV(ARMV8, EVENT_80H) \ 6166 __PMC_EV(ARMV8, EVENT_81H) \ 6167 __PMC_EV(ARMV8, EVENT_82H) \ 6168 __PMC_EV(ARMV8, EVENT_83H) \ 6169 __PMC_EV(ARMV8, EVENT_84H) \ 6170 __PMC_EV(ARMV8, EVENT_85H) \ 6171 __PMC_EV(ARMV8, EVENT_86H) \ 6172 __PMC_EV(ARMV8, EVENT_87H) \ 6173 __PMC_EV(ARMV8, EVENT_88H) \ 6174 __PMC_EV(ARMV8, EVENT_89H) \ 6175 __PMC_EV(ARMV8, EVENT_8AH) \ 6176 __PMC_EV(ARMV8, EVENT_8BH) \ 6177 __PMC_EV(ARMV8, EVENT_8CH) \ 6178 __PMC_EV(ARMV8, EVENT_8DH) \ 6179 __PMC_EV(ARMV8, EVENT_8EH) \ 6180 __PMC_EV(ARMV8, EVENT_8FH) \ 6181 __PMC_EV(ARMV8, EVENT_90H) \ 6182 __PMC_EV(ARMV8, EVENT_91H) \ 6183 __PMC_EV(ARMV8, EVENT_92H) \ 6184 __PMC_EV(ARMV8, EVENT_93H) \ 6185 __PMC_EV(ARMV8, EVENT_94H) \ 6186 __PMC_EV(ARMV8, EVENT_95H) \ 6187 __PMC_EV(ARMV8, EVENT_96H) \ 6188 __PMC_EV(ARMV8, EVENT_97H) \ 6189 __PMC_EV(ARMV8, EVENT_98H) \ 6190 __PMC_EV(ARMV8, EVENT_99H) \ 6191 __PMC_EV(ARMV8, EVENT_9AH) \ 6192 __PMC_EV(ARMV8, EVENT_9BH) \ 6193 __PMC_EV(ARMV8, EVENT_9CH) \ 6194 __PMC_EV(ARMV8, EVENT_9DH) \ 6195 __PMC_EV(ARMV8, EVENT_9EH) \ 6196 __PMC_EV(ARMV8, EVENT_9FH) \ 6197 __PMC_EV(ARMV8, EVENT_A0H) \ 6198 __PMC_EV(ARMV8, EVENT_A1H) \ 6199 __PMC_EV(ARMV8, EVENT_A2H) \ 6200 __PMC_EV(ARMV8, EVENT_A3H) \ 6201 __PMC_EV(ARMV8, EVENT_A4H) \ 6202 __PMC_EV(ARMV8, EVENT_A5H) \ 6203 __PMC_EV(ARMV8, EVENT_A6H) \ 6204 __PMC_EV(ARMV8, EVENT_A7H) \ 6205 __PMC_EV(ARMV8, EVENT_A8H) \ 6206 __PMC_EV(ARMV8, EVENT_A9H) \ 6207 __PMC_EV(ARMV8, EVENT_AAH) \ 6208 __PMC_EV(ARMV8, EVENT_ABH) \ 6209 __PMC_EV(ARMV8, EVENT_ACH) \ 6210 __PMC_EV(ARMV8, EVENT_ADH) \ 6211 __PMC_EV(ARMV8, EVENT_AEH) \ 6212 __PMC_EV(ARMV8, EVENT_AFH) \ 6213 __PMC_EV(ARMV8, EVENT_B0H) \ 6214 __PMC_EV(ARMV8, EVENT_B1H) \ 6215 __PMC_EV(ARMV8, EVENT_B2H) \ 6216 __PMC_EV(ARMV8, EVENT_B3H) \ 6217 __PMC_EV(ARMV8, EVENT_B4H) \ 6218 __PMC_EV(ARMV8, EVENT_B5H) \ 6219 __PMC_EV(ARMV8, EVENT_B6H) \ 6220 __PMC_EV(ARMV8, EVENT_B7H) \ 6221 __PMC_EV(ARMV8, EVENT_B8H) \ 6222 __PMC_EV(ARMV8, EVENT_B9H) \ 6223 __PMC_EV(ARMV8, EVENT_BAH) \ 6224 __PMC_EV(ARMV8, EVENT_BBH) \ 6225 __PMC_EV(ARMV8, EVENT_BCH) \ 6226 __PMC_EV(ARMV8, EVENT_BDH) \ 6227 __PMC_EV(ARMV8, EVENT_BEH) \ 6228 __PMC_EV(ARMV8, EVENT_BFH) \ 6229 __PMC_EV(ARMV8, EVENT_C0H) \ 6230 __PMC_EV(ARMV8, EVENT_C1H) \ 6231 __PMC_EV(ARMV8, EVENT_C2H) \ 6232 __PMC_EV(ARMV8, EVENT_C3H) \ 6233 __PMC_EV(ARMV8, EVENT_C4H) \ 6234 __PMC_EV(ARMV8, EVENT_C5H) \ 6235 __PMC_EV(ARMV8, EVENT_C6H) \ 6236 __PMC_EV(ARMV8, EVENT_C7H) \ 6237 __PMC_EV(ARMV8, EVENT_C8H) \ 6238 __PMC_EV(ARMV8, EVENT_C9H) \ 6239 __PMC_EV(ARMV8, EVENT_CAH) \ 6240 __PMC_EV(ARMV8, EVENT_CBH) \ 6241 __PMC_EV(ARMV8, EVENT_CCH) \ 6242 __PMC_EV(ARMV8, EVENT_CDH) \ 6243 __PMC_EV(ARMV8, EVENT_CEH) \ 6244 __PMC_EV(ARMV8, EVENT_CFH) \ 6245 __PMC_EV(ARMV8, EVENT_D0H) \ 6246 __PMC_EV(ARMV8, EVENT_D1H) \ 6247 __PMC_EV(ARMV8, EVENT_D2H) \ 6248 __PMC_EV(ARMV8, EVENT_D3H) \ 6249 __PMC_EV(ARMV8, EVENT_D4H) \ 6250 __PMC_EV(ARMV8, EVENT_D5H) \ 6251 __PMC_EV(ARMV8, EVENT_D6H) \ 6252 __PMC_EV(ARMV8, EVENT_D7H) \ 6253 __PMC_EV(ARMV8, EVENT_D8H) \ 6254 __PMC_EV(ARMV8, EVENT_D9H) \ 6255 __PMC_EV(ARMV8, EVENT_DAH) \ 6256 __PMC_EV(ARMV8, EVENT_DBH) \ 6257 __PMC_EV(ARMV8, EVENT_DCH) \ 6258 __PMC_EV(ARMV8, EVENT_DDH) \ 6259 __PMC_EV(ARMV8, EVENT_DEH) \ 6260 __PMC_EV(ARMV8, EVENT_DFH) \ 6261 __PMC_EV(ARMV8, EVENT_E0H) \ 6262 __PMC_EV(ARMV8, EVENT_E1H) \ 6263 __PMC_EV(ARMV8, EVENT_E2H) \ 6264 __PMC_EV(ARMV8, EVENT_E3H) \ 6265 __PMC_EV(ARMV8, EVENT_E4H) \ 6266 __PMC_EV(ARMV8, EVENT_E5H) \ 6267 __PMC_EV(ARMV8, EVENT_E6H) \ 6268 __PMC_EV(ARMV8, EVENT_E7H) \ 6269 __PMC_EV(ARMV8, EVENT_E8H) \ 6270 __PMC_EV(ARMV8, EVENT_E9H) \ 6271 __PMC_EV(ARMV8, EVENT_EAH) \ 6272 __PMC_EV(ARMV8, EVENT_EBH) \ 6273 __PMC_EV(ARMV8, EVENT_ECH) \ 6274 __PMC_EV(ARMV8, EVENT_EDH) \ 6275 __PMC_EV(ARMV8, EVENT_EEH) \ 6276 __PMC_EV(ARMV8, EVENT_EFH) \ 6277 __PMC_EV(ARMV8, EVENT_F0H) \ 6278 __PMC_EV(ARMV8, EVENT_F1H) \ 6279 __PMC_EV(ARMV8, EVENT_F2H) \ 6280 __PMC_EV(ARMV8, EVENT_F3H) \ 6281 __PMC_EV(ARMV8, EVENT_F4H) \ 6282 __PMC_EV(ARMV8, EVENT_F5H) \ 6283 __PMC_EV(ARMV8, EVENT_F6H) \ 6284 __PMC_EV(ARMV8, EVENT_F7H) \ 6285 __PMC_EV(ARMV8, EVENT_F8H) \ 6286 __PMC_EV(ARMV8, EVENT_F9H) \ 6287 __PMC_EV(ARMV8, EVENT_FAH) \ 6288 __PMC_EV(ARMV8, EVENT_FBH) \ 6289 __PMC_EV(ARMV8, EVENT_FCH) \ 6290 __PMC_EV(ARMV8, EVENT_FDH) \ 6291 __PMC_EV(ARMV8, EVENT_FEH) \ 6292 __PMC_EV(ARMV8, EVENT_FFH) 6293 6294 #define PMC_EV_ARMV8_FIRST PMC_EV_ARMV8_EVENT_00H 6295 #define PMC_EV_ARMV8_LAST PMC_EV_ARMV8_EVENT_FFH 6296 6297 #define __PMC_EV_ALIAS_ARMV8_COMMON() \ 6298 __PMC_EV_ALIAS("SW_INCR", ARMV8_EVENT_00H) \ 6299 __PMC_EV_ALIAS("L1I_CACHE_REFILL", ARMV8_EVENT_01H) \ 6300 __PMC_EV_ALIAS("L1I_TLB_REFILL", ARMV8_EVENT_02H) \ 6301 __PMC_EV_ALIAS("L1D_CACHE_REFILL", ARMV8_EVENT_03H) \ 6302 __PMC_EV_ALIAS("L1D_CACHE", ARMV8_EVENT_04H) \ 6303 __PMC_EV_ALIAS("L1D_TLB_REFILL", ARMV8_EVENT_05H) \ 6304 __PMC_EV_ALIAS("INST_RETIRED", ARMV8_EVENT_08H) \ 6305 __PMC_EV_ALIAS("EXC_TAKEN", ARMV8_EVENT_09H) \ 6306 __PMC_EV_ALIAS("EXC_RETURN", ARMV8_EVENT_0AH) \ 6307 __PMC_EV_ALIAS("CID_WRITE_RETIRED", ARMV8_EVENT_0BH) \ 6308 __PMC_EV_ALIAS("BR_MIS_PRED", ARMV8_EVENT_10H) \ 6309 __PMC_EV_ALIAS("CPU_CYCLES", ARMV8_EVENT_11H) \ 6310 __PMC_EV_ALIAS("BR_PRED", ARMV8_EVENT_12H) \ 6311 __PMC_EV_ALIAS("MEM_ACCESS", ARMV8_EVENT_13H) \ 6312 __PMC_EV_ALIAS("L1I_CACHE", ARMV8_EVENT_14H) \ 6313 __PMC_EV_ALIAS("L1D_CACHE_WB", ARMV8_EVENT_15H) \ 6314 __PMC_EV_ALIAS("L2D_CACHE", ARMV8_EVENT_16H) \ 6315 __PMC_EV_ALIAS("L2D_CACHE_REFILL", ARMV8_EVENT_17H) \ 6316 __PMC_EV_ALIAS("L2D_CACHE_WB", ARMV8_EVENT_18H) \ 6317 __PMC_EV_ALIAS("BUS_ACCESS", ARMV8_EVENT_19H) \ 6318 __PMC_EV_ALIAS("MEMORY_ERROR", ARMV8_EVENT_1AH) \ 6319 __PMC_EV_ALIAS("BUS_CYCLES", ARMV8_EVENT_1DH) \ 6320 __PMC_EV_ALIAS("CHAIN", ARMV8_EVENT_1EH) \ 6321 __PMC_EV_ALIAS("BUS_ACCESS_LD", ARMV8_EVENT_60H) \ 6322 __PMC_EV_ALIAS("BUS_ACCESS_ST", ARMV8_EVENT_61H) \ 6323 __PMC_EV_ALIAS("BR_INDIRECT_SPEC", ARMV8_EVENT_7AH) \ 6324 __PMC_EV_ALIAS("EXC_IRQ", ARMV8_EVENT_86H) \ 6325 __PMC_EV_ALIAS("EXC_FIQ", ARMV8_EVENT_87H) 6326 6327 #define __PMC_EV_ALIAS_ARMV8_CORTEX_A53() \ 6328 __PMC_EV_ALIAS_ARMV8_COMMON() \ 6329 __PMC_EV_ALIAS("LD_RETIRED", ARMV8_EVENT_06H) \ 6330 __PMC_EV_ALIAS("ST_RETIRED", ARMV8_EVENT_07H) \ 6331 __PMC_EV_ALIAS("PC_WRITE_RETIRED", ARMV8_EVENT_0CH) \ 6332 __PMC_EV_ALIAS("BR_IMMED_RETIRED", ARMV8_EVENT_0DH) \ 6333 __PMC_EV_ALIAS("BR_RETURN_RETIRED", ARMV8_EVENT_0EH) \ 6334 __PMC_EV_ALIAS("UNALIGNED_LDST_RETIRED",ARMV8_EVENT_0FH) 6335 6336 #define __PMC_EV_ALIAS_ARMV8_CORTEX_A57() \ 6337 __PMC_EV_ALIAS_ARMV8_COMMON() \ 6338 __PMC_EV_ALIAS("INST_SPEC", ARMV8_EVENT_1BH) \ 6339 __PMC_EV_ALIAS("TTBR_WRITE_RETIRED", ARMV8_EVENT_1CH) \ 6340 __PMC_EV_ALIAS("L1D_CACHE_LD", ARMV8_EVENT_40H) \ 6341 __PMC_EV_ALIAS("L1D_CACHE_ST", ARMV8_EVENT_41H) \ 6342 __PMC_EV_ALIAS("L1D_CACHE_REFILL_LD", ARMV8_EVENT_42H) \ 6343 __PMC_EV_ALIAS("L1D_CACHE_REFILL_ST", ARMV8_EVENT_43H) \ 6344 __PMC_EV_ALIAS("L1D_CACHE_WB_VICTIM", ARMV8_EVENT_46H) \ 6345 __PMC_EV_ALIAS("L1D_CACHE_WB_CLEAN", ARMV8_EVENT_47H) \ 6346 __PMC_EV_ALIAS("L1D_CACHE_INVAL", ARMV8_EVENT_48H) \ 6347 __PMC_EV_ALIAS("L1D_TLB_REFILL_LD", ARMV8_EVENT_4CH) \ 6348 __PMC_EV_ALIAS("L1D_TLB_REFILL_ST", ARMV8_EVENT_4DH) \ 6349 __PMC_EV_ALIAS("L2D_CACHE_LD", ARMV8_EVENT_50H) \ 6350 __PMC_EV_ALIAS("L2D_CACHE_ST", ARMV8_EVENT_51H) \ 6351 __PMC_EV_ALIAS("L2D_CACHE_REFILL_LD", ARMV8_EVENT_52H) \ 6352 __PMC_EV_ALIAS("L2D_CACHE_REFILL_ST", ARMV8_EVENT_53H) \ 6353 __PMC_EV_ALIAS("L2D_CACHE_WB_VICTIM", ARMV8_EVENT_56H) \ 6354 __PMC_EV_ALIAS("L2D_CACHE_WB_CLEAN", ARMV8_EVENT_57H) \ 6355 __PMC_EV_ALIAS("L2D_CACHE_INVAL", ARMV8_EVENT_58H) \ 6356 __PMC_EV_ALIAS("BUS_ACCESS_SHARED", ARMV8_EVENT_62H) \ 6357 __PMC_EV_ALIAS("BUS_ACCESS_NOT_SHARED", ARMV8_EVENT_63H) \ 6358 __PMC_EV_ALIAS("BUS_ACCESS_NORMAL", ARMV8_EVENT_64H) \ 6359 __PMC_EV_ALIAS("BUS_ACCESS_PERIPH", ARMV8_EVENT_65H) \ 6360 __PMC_EV_ALIAS("MEM_ACCESS_LD", ARMV8_EVENT_66H) \ 6361 __PMC_EV_ALIAS("MEM_ACCESS_ST", ARMV8_EVENT_67H) \ 6362 __PMC_EV_ALIAS("UNALIGNED_LD_SPEC", ARMV8_EVENT_68H) \ 6363 __PMC_EV_ALIAS("UNALIGNED_ST_SPEC", ARMV8_EVENT_69H) \ 6364 __PMC_EV_ALIAS("UNALIGNED_LDST_SPEC", ARMV8_EVENT_6AH) \ 6365 __PMC_EV_ALIAS("LDREX_SPEC", ARMV8_EVENT_6CH) \ 6366 __PMC_EV_ALIAS("STREX_PASS_SPEC", ARMV8_EVENT_6DH) \ 6367 __PMC_EV_ALIAS("STREX_FAIL_SPEC", ARMV8_EVENT_6EH) \ 6368 __PMC_EV_ALIAS("LD_SPEC", ARMV8_EVENT_70H) \ 6369 __PMC_EV_ALIAS("ST_SPEC", ARMV8_EVENT_71H) \ 6370 __PMC_EV_ALIAS("LDST_SPEC", ARMV8_EVENT_72H) \ 6371 __PMC_EV_ALIAS("DP_SPEC", ARMV8_EVENT_73H) \ 6372 __PMC_EV_ALIAS("ASE_SPEC", ARMV8_EVENT_74H) \ 6373 __PMC_EV_ALIAS("VFP_SPEC", ARMV8_EVENT_75H) \ 6374 __PMC_EV_ALIAS("PC_WRITE_SPEC", ARMV8_EVENT_76H) \ 6375 __PMC_EV_ALIAS("CRYPTO_SPEC", ARMV8_EVENT_77H) \ 6376 __PMC_EV_ALIAS("BR_IMMED_SPEC", ARMV8_EVENT_78H) \ 6377 __PMC_EV_ALIAS("BR_RETURN_SPEC", ARMV8_EVENT_79H) \ 6378 __PMC_EV_ALIAS("ISB_SPEC", ARMV8_EVENT_7CH) \ 6379 __PMC_EV_ALIAS("DSB_SPEC", ARMV8_EVENT_7DH) \ 6380 __PMC_EV_ALIAS("DMB_SPEC", ARMV8_EVENT_7EH) \ 6381 __PMC_EV_ALIAS("EXC_UNDEF", ARMV8_EVENT_81H) \ 6382 __PMC_EV_ALIAS("EXC_SVC", ARMV8_EVENT_82H) \ 6383 __PMC_EV_ALIAS("EXC_PABORT", ARMV8_EVENT_83H) \ 6384 __PMC_EV_ALIAS("EXC_DABORT", ARMV8_EVENT_84H) \ 6385 __PMC_EV_ALIAS("EXC_SMC", ARMV8_EVENT_88H) \ 6386 __PMC_EV_ALIAS("EXC_HVC", ARMV8_EVENT_8AH) \ 6387 __PMC_EV_ALIAS("EXC_TRAP_PABORT", ARMV8_EVENT_8BH) \ 6388 __PMC_EV_ALIAS("EXC_TRAP_DABORT", ARMV8_EVENT_8CH) \ 6389 __PMC_EV_ALIAS("EXC_TRAP_OTHER", ARMV8_EVENT_8DH) \ 6390 __PMC_EV_ALIAS("EXC_TRAP_IRQ", ARMV8_EVENT_8EH) \ 6391 __PMC_EV_ALIAS("EXC_TRAP_FIQ", ARMV8_EVENT_8FH) \ 6392 __PMC_EV_ALIAS("RC_LD_SPEC", ARMV8_EVENT_90H) \ 6393 __PMC_EV_ALIAS("RC_ST_SPEC", ARMV8_EVENT_91H) 6394 6395 /* 6396 * MIPS Events from "Programming the MIPS32 24K Core Family", 6397 * Document Number: MD00355 Revision 04.63 December 19, 2008 6398 * These events are kept in the order found in Table 7.4. 6399 * For counters which are different between the left hand 6400 * column (0/2) and the right hand column (1/3) the left 6401 * hand is given first, e.g. BRANCH_COMPLETED and BRANCH_MISPRED 6402 * in the definition below. 6403 */ 6404 6405 #define __PMC_EV_MIPS24K() \ 6406 __PMC_EV(MIPS24K, CYCLE) \ 6407 __PMC_EV(MIPS24K, INSTR_EXECUTED) \ 6408 __PMC_EV(MIPS24K, BRANCH_COMPLETED) \ 6409 __PMC_EV(MIPS24K, BRANCH_MISPRED) \ 6410 __PMC_EV(MIPS24K, RETURN) \ 6411 __PMC_EV(MIPS24K, RETURN_MISPRED) \ 6412 __PMC_EV(MIPS24K, RETURN_NOT_31) \ 6413 __PMC_EV(MIPS24K, RETURN_NOTPRED) \ 6414 __PMC_EV(MIPS24K, ITLB_ACCESS) \ 6415 __PMC_EV(MIPS24K, ITLB_MISS) \ 6416 __PMC_EV(MIPS24K, DTLB_ACCESS) \ 6417 __PMC_EV(MIPS24K, DTLB_MISS) \ 6418 __PMC_EV(MIPS24K, JTLB_IACCESS) \ 6419 __PMC_EV(MIPS24K, JTLB_IMISS) \ 6420 __PMC_EV(MIPS24K, JTLB_DACCESS) \ 6421 __PMC_EV(MIPS24K, JTLB_DMISS) \ 6422 __PMC_EV(MIPS24K, IC_FETCH) \ 6423 __PMC_EV(MIPS24K, IC_MISS) \ 6424 __PMC_EV(MIPS24K, DC_LOADSTORE) \ 6425 __PMC_EV(MIPS24K, DC_WRITEBACK) \ 6426 __PMC_EV(MIPS24K, DC_MISS) \ 6427 __PMC_EV(MIPS24K, STORE_MISS) \ 6428 __PMC_EV(MIPS24K, LOAD_MISS) \ 6429 __PMC_EV(MIPS24K, INTEGER_COMPLETED) \ 6430 __PMC_EV(MIPS24K, FP_COMPLETED) \ 6431 __PMC_EV(MIPS24K, LOAD_COMPLETED) \ 6432 __PMC_EV(MIPS24K, STORE_COMPLETED) \ 6433 __PMC_EV(MIPS24K, BARRIER_COMPLETED) \ 6434 __PMC_EV(MIPS24K, MIPS16_COMPLETED) \ 6435 __PMC_EV(MIPS24K, NOP_COMPLETED) \ 6436 __PMC_EV(MIPS24K, INTEGER_MULDIV_COMPLETED)\ 6437 __PMC_EV(MIPS24K, RF_STALL) \ 6438 __PMC_EV(MIPS24K, INSTR_REFETCH) \ 6439 __PMC_EV(MIPS24K, STORE_COND_COMPLETED) \ 6440 __PMC_EV(MIPS24K, STORE_COND_FAILED) \ 6441 __PMC_EV(MIPS24K, ICACHE_REQUESTS) \ 6442 __PMC_EV(MIPS24K, ICACHE_HIT) \ 6443 __PMC_EV(MIPS24K, L2_WRITEBACK) \ 6444 __PMC_EV(MIPS24K, L2_ACCESS) \ 6445 __PMC_EV(MIPS24K, L2_MISS) \ 6446 __PMC_EV(MIPS24K, L2_ERR_CORRECTED) \ 6447 __PMC_EV(MIPS24K, EXCEPTIONS) \ 6448 __PMC_EV(MIPS24K, RF_CYCLES_STALLED) \ 6449 __PMC_EV(MIPS24K, IFU_CYCLES_STALLED) \ 6450 __PMC_EV(MIPS24K, ALU_CYCLES_STALLED) \ 6451 __PMC_EV(MIPS24K, UNCACHED_LOAD) \ 6452 __PMC_EV(MIPS24K, UNCACHED_STORE) \ 6453 __PMC_EV(MIPS24K, CP2_REG_TO_REG_COMPLETED)\ 6454 __PMC_EV(MIPS24K, MFTC_COMPLETED) \ 6455 __PMC_EV(MIPS24K, IC_BLOCKED_CYCLES) \ 6456 __PMC_EV(MIPS24K, DC_BLOCKED_CYCLES) \ 6457 __PMC_EV(MIPS24K, L2_IMISS_STALL_CYCLES) \ 6458 __PMC_EV(MIPS24K, L2_DMISS_STALL_CYCLES) \ 6459 __PMC_EV(MIPS24K, DMISS_CYCLES) \ 6460 __PMC_EV(MIPS24K, L2_MISS_CYCLES) \ 6461 __PMC_EV(MIPS24K, UNCACHED_BLOCK_CYCLES) \ 6462 __PMC_EV(MIPS24K, MDU_STALL_CYCLES) \ 6463 __PMC_EV(MIPS24K, FPU_STALL_CYCLES) \ 6464 __PMC_EV(MIPS24K, CP2_STALL_CYCLES) \ 6465 __PMC_EV(MIPS24K, COREXTEND_STALL_CYCLES) \ 6466 __PMC_EV(MIPS24K, ISPRAM_STALL_CYCLES) \ 6467 __PMC_EV(MIPS24K, DSPRAM_STALL_CYCLES) \ 6468 __PMC_EV(MIPS24K, CACHE_STALL_CYCLES) \ 6469 __PMC_EV(MIPS24K, LOAD_TO_USE_STALLS) \ 6470 __PMC_EV(MIPS24K, BASE_MISPRED_STALLS) \ 6471 __PMC_EV(MIPS24K, CPO_READ_STALLS) \ 6472 __PMC_EV(MIPS24K, BRANCH_MISPRED_CYCLES) \ 6473 __PMC_EV(MIPS24K, IFETCH_BUFFER_FULL) \ 6474 __PMC_EV(MIPS24K, FETCH_BUFFER_ALLOCATED) \ 6475 __PMC_EV(MIPS24K, EJTAG_ITRIGGER) \ 6476 __PMC_EV(MIPS24K, EJTAG_DTRIGGER) \ 6477 __PMC_EV(MIPS24K, FSB_LT_QUARTER) \ 6478 __PMC_EV(MIPS24K, FSB_QUARTER_TO_HALF) \ 6479 __PMC_EV(MIPS24K, FSB_GT_HALF) \ 6480 __PMC_EV(MIPS24K, FSB_FULL_PIPELINE_STALLS)\ 6481 __PMC_EV(MIPS24K, LDQ_LT_QUARTER) \ 6482 __PMC_EV(MIPS24K, LDQ_QUARTER_TO_HALF) \ 6483 __PMC_EV(MIPS24K, LDQ_GT_HALF) \ 6484 __PMC_EV(MIPS24K, LDQ_FULL_PIPELINE_STALLS)\ 6485 __PMC_EV(MIPS24K, WBB_LT_QUARTER) \ 6486 __PMC_EV(MIPS24K, WBB_QUARTER_TO_HALF) \ 6487 __PMC_EV(MIPS24K, WBB_GT_HALF) \ 6488 __PMC_EV(MIPS24K, WBB_FULL_PIPELINE_STALLS) \ 6489 __PMC_EV(MIPS24K, REQUEST_LATENCY) \ 6490 __PMC_EV(MIPS24K, REQUEST_COUNT) 6491 6492 #define PMC_EV_MIPS24K_FIRST PMC_EV_MIPS24K_CYCLE 6493 #define PMC_EV_MIPS24K_LAST PMC_EV_MIPS24K_WBB_FULL_PIPELINE_STALLS 6494 6495 /* 6496 * MIPS74k events. Similar to MIPS24k, the arrangement 6497 * is (0,2) then (1,3) events. 6498 */ 6499 #define __PMC_EV_MIPS74K() \ 6500 __PMC_EV(MIPS74K, CYCLES) \ 6501 __PMC_EV(MIPS74K, INSTR_EXECUTED) \ 6502 __PMC_EV(MIPS74K, PREDICTED_JR_31) \ 6503 __PMC_EV(MIPS74K, JR_31_MISPREDICTIONS) \ 6504 __PMC_EV(MIPS74K, REDIRECT_STALLS) \ 6505 __PMC_EV(MIPS74K, JR_31_NO_PREDICTIONS) \ 6506 __PMC_EV(MIPS74K, ITLB_ACCESSES) \ 6507 __PMC_EV(MIPS74K, ITLB_MISSES) \ 6508 __PMC_EV(MIPS74K, JTLB_INSN_MISSES) \ 6509 __PMC_EV(MIPS74K, ICACHE_ACCESSES) \ 6510 __PMC_EV(MIPS74K, ICACHE_MISSES) \ 6511 __PMC_EV(MIPS74K, ICACHE_MISS_STALLS) \ 6512 __PMC_EV(MIPS74K, UNCACHED_IFETCH_STALLS) \ 6513 __PMC_EV(MIPS74K, PDTRACE_BACK_STALLS) \ 6514 __PMC_EV(MIPS74K, IFU_REPLAYS) \ 6515 __PMC_EV(MIPS74K, KILLED_FETCH_SLOTS) \ 6516 __PMC_EV(MIPS74K, IFU_IDU_MISS_PRED_UPSTREAM_CYCLES) \ 6517 __PMC_EV(MIPS74K, IFU_IDU_NO_FETCH_CYCLES) \ 6518 __PMC_EV(MIPS74K, IFU_IDU_CLOGED_DOWNSTREAM_CYCLES) \ 6519 __PMC_EV(MIPS74K, DDQ0_FULL_DR_STALLS) \ 6520 __PMC_EV(MIPS74K, DDQ1_FULL_DR_STALLS) \ 6521 __PMC_EV(MIPS74K, ALCB_FULL_DR_STALLS) \ 6522 __PMC_EV(MIPS74K, AGCB_FULL_DR_STALLS) \ 6523 __PMC_EV(MIPS74K, CLDQ_FULL_DR_STALLS) \ 6524 __PMC_EV(MIPS74K, IODQ_FULL_DR_STALLS) \ 6525 __PMC_EV(MIPS74K, ALU_EMPTY_CYCLES) \ 6526 __PMC_EV(MIPS74K, AGEN_EMPTY_CYCLES) \ 6527 __PMC_EV(MIPS74K, ALU_OPERANDS_NOT_READY_CYCLES) \ 6528 __PMC_EV(MIPS74K, AGEN_OPERANDS_NOT_READY_CYCLES) \ 6529 __PMC_EV(MIPS74K, ALU_NO_ISSUES_CYCLES) \ 6530 __PMC_EV(MIPS74K, AGEN_NO_ISSUES_CYCLES) \ 6531 __PMC_EV(MIPS74K, ALU_BUBBLE_CYCLES) \ 6532 __PMC_EV(MIPS74K, AGEN_BUBBLE_CYCLES) \ 6533 __PMC_EV(MIPS74K, SINGLE_ISSUE_CYCLES) \ 6534 __PMC_EV(MIPS74K, DUAL_ISSUE_CYCLES) \ 6535 __PMC_EV(MIPS74K, OOO_ALU_ISSUE_CYCLES) \ 6536 __PMC_EV(MIPS74K, OOO_AGEN_ISSUE_CYCLES) \ 6537 __PMC_EV(MIPS74K, JALR_JALR_HB_INSNS) \ 6538 __PMC_EV(MIPS74K, DCACHE_LINE_REFILL_REQUESTS) \ 6539 __PMC_EV(MIPS74K, DCACHE_LOAD_ACCESSES) \ 6540 __PMC_EV(MIPS74K, DCACHE_ACCESSES) \ 6541 __PMC_EV(MIPS74K, DCACHE_WRITEBACKS) \ 6542 __PMC_EV(MIPS74K, DCACHE_MISSES) \ 6543 __PMC_EV(MIPS74K, JTLB_DATA_ACCESSES) \ 6544 __PMC_EV(MIPS74K, JTLB_DATA_MISSES) \ 6545 __PMC_EV(MIPS74K, LOAD_STORE_REPLAYS) \ 6546 __PMC_EV(MIPS74K, VA_TRANSALTION_CORNER_CASES) \ 6547 __PMC_EV(MIPS74K, LOAD_STORE_BLOCKED_CYCLES) \ 6548 __PMC_EV(MIPS74K, LOAD_STORE_NO_FILL_REQUESTS) \ 6549 __PMC_EV(MIPS74K, L2_CACHE_WRITEBACKS) \ 6550 __PMC_EV(MIPS74K, L2_CACHE_ACCESSES) \ 6551 __PMC_EV(MIPS74K, L2_CACHE_MISSES) \ 6552 __PMC_EV(MIPS74K, L2_CACHE_MISS_CYCLES) \ 6553 __PMC_EV(MIPS74K, FSB_FULL_STALLS) \ 6554 __PMC_EV(MIPS74K, FSB_OVER_50_FULL) \ 6555 __PMC_EV(MIPS74K, LDQ_FULL_STALLS) \ 6556 __PMC_EV(MIPS74K, LDQ_OVER_50_FULL) \ 6557 __PMC_EV(MIPS74K, WBB_FULL_STALLS) \ 6558 __PMC_EV(MIPS74K, WBB_OVER_50_FULL) \ 6559 __PMC_EV(MIPS74K, LOAD_MISS_CONSUMER_REPLAYS) \ 6560 __PMC_EV(MIPS74K, CP1_CP2_LOAD_INSNS) \ 6561 __PMC_EV(MIPS74K, JR_NON_31_INSNS) \ 6562 __PMC_EV(MIPS74K, MISPREDICTED_JR_31_INSNS) \ 6563 __PMC_EV(MIPS74K, BRANCH_INSNS) \ 6564 __PMC_EV(MIPS74K, CP1_CP2_COND_BRANCH_INSNS) \ 6565 __PMC_EV(MIPS74K, BRANCH_LIKELY_INSNS) \ 6566 __PMC_EV(MIPS74K, MISPREDICTED_BRANCH_LIKELY_INSNS) \ 6567 __PMC_EV(MIPS74K, COND_BRANCH_INSNS) \ 6568 __PMC_EV(MIPS74K, MISPREDICTED_BRANCH_INSNS) \ 6569 __PMC_EV(MIPS74K, INTEGER_INSNS) \ 6570 __PMC_EV(MIPS74K, FPU_INSNS) \ 6571 __PMC_EV(MIPS74K, LOAD_INSNS) \ 6572 __PMC_EV(MIPS74K, STORE_INSNS) \ 6573 __PMC_EV(MIPS74K, J_JAL_INSNS) \ 6574 __PMC_EV(MIPS74K, MIPS16_INSNS) \ 6575 __PMC_EV(MIPS74K, NOP_INSNS) \ 6576 __PMC_EV(MIPS74K, NT_MUL_DIV_INSNS) \ 6577 __PMC_EV(MIPS74K, DSP_INSNS) \ 6578 __PMC_EV(MIPS74K, ALU_DSP_SATURATION_INSNS) \ 6579 __PMC_EV(MIPS74K, DSP_BRANCH_INSNS) \ 6580 __PMC_EV(MIPS74K, MDU_DSP_SATURATION_INSNS) \ 6581 __PMC_EV(MIPS74K, UNCACHED_LOAD_INSNS) \ 6582 __PMC_EV(MIPS74K, UNCACHED_STORE_INSNS) \ 6583 __PMC_EV(MIPS74K, EJTAG_INSN_TRIGGERS) \ 6584 __PMC_EV(MIPS74K, CP1_BRANCH_MISPREDICTIONS) \ 6585 __PMC_EV(MIPS74K, SC_INSNS) \ 6586 __PMC_EV(MIPS74K, FAILED_SC_INSNS) \ 6587 __PMC_EV(MIPS74K, PREFETCH_INSNS) \ 6588 __PMC_EV(MIPS74K, CACHE_HIT_PREFETCH_INSNS) \ 6589 __PMC_EV(MIPS74K, NO_INSN_CYCLES) \ 6590 __PMC_EV(MIPS74K, LOAD_MISS_INSNS) \ 6591 __PMC_EV(MIPS74K, ONE_INSN_CYCLES) \ 6592 __PMC_EV(MIPS74K, TWO_INSNS_CYCLES) \ 6593 __PMC_EV(MIPS74K, GFIFO_BLOCKED_CYCLES) \ 6594 __PMC_EV(MIPS74K, CP1_CP2_STORE_INSNS) \ 6595 __PMC_EV(MIPS74K, MISPREDICTION_STALLS) \ 6596 __PMC_EV(MIPS74K, MISPREDICTED_BRANCH_INSNS_CYCLES) \ 6597 __PMC_EV(MIPS74K, EXCEPTIONS_TAKEN) \ 6598 __PMC_EV(MIPS74K, GRADUATION_REPLAYS) \ 6599 __PMC_EV(MIPS74K, COREEXTEND_EVENTS) \ 6600 __PMC_EV(MIPS74K, ISPRAM_EVENTS) \ 6601 __PMC_EV(MIPS74K, DSPRAM_EVENTS) \ 6602 __PMC_EV(MIPS74K, L2_CACHE_SINGLE_BIT_ERRORS) \ 6603 __PMC_EV(MIPS74K, SYSTEM_EVENT_0) \ 6604 __PMC_EV(MIPS74K, SYSTEM_EVENT_1) \ 6605 __PMC_EV(MIPS74K, SYSTEM_EVENT_2) \ 6606 __PMC_EV(MIPS74K, SYSTEM_EVENT_3) \ 6607 __PMC_EV(MIPS74K, SYSTEM_EVENT_4) \ 6608 __PMC_EV(MIPS74K, SYSTEM_EVENT_5) \ 6609 __PMC_EV(MIPS74K, SYSTEM_EVENT_6) \ 6610 __PMC_EV(MIPS74K, SYSTEM_EVENT_7) \ 6611 __PMC_EV(MIPS74K, OCP_ALL_REQUESTS) \ 6612 __PMC_EV(MIPS74K, OCP_ALL_CACHEABLE_REQUESTS) \ 6613 __PMC_EV(MIPS74K, OCP_READ_REQUESTS) \ 6614 __PMC_EV(MIPS74K, OCP_READ_CACHEABLE_REQUESTS) \ 6615 __PMC_EV(MIPS74K, OCP_WRITE_REQUESTS) \ 6616 __PMC_EV(MIPS74K, OCP_WRITE_CACHEABLE_REQUESTS) \ 6617 __PMC_EV(MIPS74K, FSB_LESS_25_FULL) \ 6618 __PMC_EV(MIPS74K, FSB_25_50_FULL) \ 6619 __PMC_EV(MIPS74K, LDQ_LESS_25_FULL) \ 6620 __PMC_EV(MIPS74K, LDQ_25_50_FULL) \ 6621 __PMC_EV(MIPS74K, WBB_LESS_25_FULL) \ 6622 __PMC_EV(MIPS74K, WBB_25_50_FULL) 6623 6624 #define PMC_EV_MIPS74K_FIRST PMC_EV_MIPS74K_CYCLES 6625 #define PMC_EV_MIPS74K_LAST PMC_EV_MIPS74K_WBB_25_50_FULL 6626 6627 /* 6628 * Cavium Octeon counters. Obtained from cvmx-core.h 6629 */ 6630 #define __PMC_EV_OCTEON() \ 6631 __PMC_EV(OCTEON, CLK) \ 6632 __PMC_EV(OCTEON, ISSUE) \ 6633 __PMC_EV(OCTEON, RET) \ 6634 __PMC_EV(OCTEON, NISSUE) \ 6635 __PMC_EV(OCTEON, SISSUE) \ 6636 __PMC_EV(OCTEON, DISSUE) \ 6637 __PMC_EV(OCTEON, IFI) \ 6638 __PMC_EV(OCTEON, BR) \ 6639 __PMC_EV(OCTEON, BRMIS) \ 6640 __PMC_EV(OCTEON, J) \ 6641 __PMC_EV(OCTEON, JMIS) \ 6642 __PMC_EV(OCTEON, REPLAY) \ 6643 __PMC_EV(OCTEON, IUNA) \ 6644 __PMC_EV(OCTEON, TRAP) \ 6645 __PMC_EV(OCTEON, UULOAD) \ 6646 __PMC_EV(OCTEON, UUSTORE) \ 6647 __PMC_EV(OCTEON, ULOAD) \ 6648 __PMC_EV(OCTEON, USTORE) \ 6649 __PMC_EV(OCTEON, EC) \ 6650 __PMC_EV(OCTEON, MC) \ 6651 __PMC_EV(OCTEON, CC) \ 6652 __PMC_EV(OCTEON, CSRC) \ 6653 __PMC_EV(OCTEON, CFETCH) \ 6654 __PMC_EV(OCTEON, CPREF) \ 6655 __PMC_EV(OCTEON, ICA) \ 6656 __PMC_EV(OCTEON, II) \ 6657 __PMC_EV(OCTEON, IP) \ 6658 __PMC_EV(OCTEON, CIMISS) \ 6659 __PMC_EV(OCTEON, WBUF) \ 6660 __PMC_EV(OCTEON, WDAT) \ 6661 __PMC_EV(OCTEON, WBUFLD) \ 6662 __PMC_EV(OCTEON, WBUFFL) \ 6663 __PMC_EV(OCTEON, WBUFTR) \ 6664 __PMC_EV(OCTEON, BADD) \ 6665 __PMC_EV(OCTEON, BADDL2) \ 6666 __PMC_EV(OCTEON, BFILL) \ 6667 __PMC_EV(OCTEON, DDIDS) \ 6668 __PMC_EV(OCTEON, IDIDS) \ 6669 __PMC_EV(OCTEON, DIDNA) \ 6670 __PMC_EV(OCTEON, LDS) \ 6671 __PMC_EV(OCTEON, LMLDS) \ 6672 __PMC_EV(OCTEON, IOLDS) \ 6673 __PMC_EV(OCTEON, DMLDS) \ 6674 __PMC_EV(OCTEON, STS) \ 6675 __PMC_EV(OCTEON, LMSTS) \ 6676 __PMC_EV(OCTEON, IOSTS) \ 6677 __PMC_EV(OCTEON, IOBDMA) \ 6678 __PMC_EV(OCTEON, DTLB) \ 6679 __PMC_EV(OCTEON, DTLBAD) \ 6680 __PMC_EV(OCTEON, ITLB) \ 6681 __PMC_EV(OCTEON, SYNC) \ 6682 __PMC_EV(OCTEON, SYNCIOB) \ 6683 __PMC_EV(OCTEON, SYNCW) 6684 6685 #define PMC_EV_OCTEON_FIRST PMC_EV_OCTEON_CLK 6686 #define PMC_EV_OCTEON_LAST PMC_EV_OCTEON_SYNCW 6687 6688 #define __PMC_EV_PPC7450() \ 6689 __PMC_EV(PPC7450, CYCLE) \ 6690 __PMC_EV(PPC7450, INSTR_COMPLETED) \ 6691 __PMC_EV(PPC7450, TLB_BIT_TRANSITIONS) \ 6692 __PMC_EV(PPC7450, INSTR_DISPATCHED) \ 6693 __PMC_EV(PPC7450, PMON_EXCEPT) \ 6694 __PMC_EV(PPC7450, PMON_SIG) \ 6695 __PMC_EV(PPC7450, VPU_INSTR_COMPLETED) \ 6696 __PMC_EV(PPC7450, VFPU_INSTR_COMPLETED) \ 6697 __PMC_EV(PPC7450, VIU1_INSTR_COMPLETED) \ 6698 __PMC_EV(PPC7450, VIU2_INSTR_COMPLETED) \ 6699 __PMC_EV(PPC7450, MTVSCR_INSTR_COMPLETED) \ 6700 __PMC_EV(PPC7450, MTVRSAVE_INSTR_COMPLETED) \ 6701 __PMC_EV(PPC7450, VPU_INSTR_WAIT_CYCLES) \ 6702 __PMC_EV(PPC7450, VFPU_INSTR_WAIT_CYCLES) \ 6703 __PMC_EV(PPC7450, VIU1_INSTR_WAIT_CYCLES) \ 6704 __PMC_EV(PPC7450, VIU2_INSTR_WAIT_CYCLES) \ 6705 __PMC_EV(PPC7450, MFVSCR_SYNC_CYCLES) \ 6706 __PMC_EV(PPC7450, VSCR_SAT_SET) \ 6707 __PMC_EV(PPC7450, STORE_INSTR_COMPLETED) \ 6708 __PMC_EV(PPC7450, L1_INSTR_CACHE_MISSES) \ 6709 __PMC_EV(PPC7450, L1_DATA_SNOOPS) \ 6710 __PMC_EV(PPC7450, UNRESOLVED_BRANCHES) \ 6711 __PMC_EV(PPC7450, SPEC_BUFFER_CYCLES) \ 6712 __PMC_EV(PPC7450, BRANCH_UNIT_STALL_CYCLES) \ 6713 __PMC_EV(PPC7450, TRUE_BRANCH_TARGET_HITS) \ 6714 __PMC_EV(PPC7450, BRANCH_LINK_STAC_PREDICTED) \ 6715 __PMC_EV(PPC7450, GPR_ISSUE_QUEUE_DISPATCHES) \ 6716 __PMC_EV(PPC7450, CYCLES_THREE_INSTR_DISPATCHED) \ 6717 __PMC_EV(PPC7450, THRESHOLD_INSTR_QUEUE_ENTRIES_CYCLES) \ 6718 __PMC_EV(PPC7450, THRESHOLD_VEC_INSTR_QUEUE_ENTRIES_CYCLES) \ 6719 __PMC_EV(PPC7450, CYCLES_NO_COMPLETED_INSTRS) \ 6720 __PMC_EV(PPC7450, IU2_INSTR_COMPLETED) \ 6721 __PMC_EV(PPC7450, BRANCHES_COMPLETED) \ 6722 __PMC_EV(PPC7450, EIEIO_INSTR_COMPLETED) \ 6723 __PMC_EV(PPC7450, MTSPR_INSTR_COMPLETED) \ 6724 __PMC_EV(PPC7450, SC_INSTR_COMPLETED) \ 6725 __PMC_EV(PPC7450, LS_LM_COMPLETED) \ 6726 __PMC_EV(PPC7450, ITLB_HW_TABLE_SEARCH_CYCLES) \ 6727 __PMC_EV(PPC7450, DTLB_HW_SEARCH_CYCLES_OVER_THRESHOLD) \ 6728 __PMC_EV(PPC7450, L1_INSTR_CACHE_ACCESSES) \ 6729 __PMC_EV(PPC7450, INSTR_BKPT_MATCHES) \ 6730 __PMC_EV(PPC7450, L1_DATA_CACHE_LOAD_MISS_CYCLES_OVER_THRESHOLD)\ 6731 __PMC_EV(PPC7450, L1_DATA_SNOOP_HIT_ON_MODIFIED) \ 6732 __PMC_EV(PPC7450, LOAD_MISS_ALIAS) \ 6733 __PMC_EV(PPC7450, LOAD_MISS_ALIAS_ON_TOUCH) \ 6734 __PMC_EV(PPC7450, TOUCH_ALIAS) \ 6735 __PMC_EV(PPC7450, L1_DATA_SNOOP_HIT_CASTOUT_QUEUE) \ 6736 __PMC_EV(PPC7450, L1_DATA_SNOOP_HIT_CASTOUT) \ 6737 __PMC_EV(PPC7450, L1_DATA_SNOOP_HITS) \ 6738 __PMC_EV(PPC7450, WRITE_THROUGH_STORES) \ 6739 __PMC_EV(PPC7450, CACHE_INHIBITED_STORES) \ 6740 __PMC_EV(PPC7450, L1_DATA_LOAD_HIT) \ 6741 __PMC_EV(PPC7450, L1_DATA_TOUCH_HIT) \ 6742 __PMC_EV(PPC7450, L1_DATA_STORE_HIT) \ 6743 __PMC_EV(PPC7450, L1_DATA_TOTAL_HITS) \ 6744 __PMC_EV(PPC7450, DST_INSTR_DISPATCHED) \ 6745 __PMC_EV(PPC7450, REFRESHED_DSTS) \ 6746 __PMC_EV(PPC7450, SUCCESSFUL_DST_TABLE_SEARCHES) \ 6747 __PMC_EV(PPC7450, DSS_INSTR_COMPLETED) \ 6748 __PMC_EV(PPC7450, DST_STREAM_0_CACHE_LINE_FETCHES) \ 6749 __PMC_EV(PPC7450, VTQ_SUSPENDS_DUE_TO_CTX_CHANGE) \ 6750 __PMC_EV(PPC7450, VTQ_LINE_FETCH_HIT) \ 6751 __PMC_EV(PPC7450, VEC_LOAD_INSTR_COMPLETED) \ 6752 __PMC_EV(PPC7450, FP_STORE_INSTR_COMPLETED_IN_LSU) \ 6753 __PMC_EV(PPC7450, FPU_RENORMALIZATION) \ 6754 __PMC_EV(PPC7450, FPU_DENORMALIZATION) \ 6755 __PMC_EV(PPC7450, FP_STORE_CAUSES_STALL_IN_LSU) \ 6756 __PMC_EV(PPC7450, LD_ST_TRUE_ALIAS_STALL) \ 6757 __PMC_EV(PPC7450, LSU_INDEXED_ALIAS_STALL) \ 6758 __PMC_EV(PPC7450, LSU_ALIAS_VS_FSQ_WB0_WB1) \ 6759 __PMC_EV(PPC7450, LSU_ALIAS_VS_CSQ) \ 6760 __PMC_EV(PPC7450, LSU_LOAD_HIT_LINE_ALIAS_VS_CSQ0) \ 6761 __PMC_EV(PPC7450, LSU_LOAD_MISS_LINE_ALIAS_VS_CSQ0) \ 6762 __PMC_EV(PPC7450, LSU_TOUCH_LINE_ALIAS_VS_FSQ_WB0_WB1) \ 6763 __PMC_EV(PPC7450, LSU_TOUCH_ALIAS_VS_CSQ) \ 6764 __PMC_EV(PPC7450, LSU_LMQ_FULL_STALL) \ 6765 __PMC_EV(PPC7450, FP_LOAD_INSTR_COMPLETED_IN_LSU) \ 6766 __PMC_EV(PPC7450, FP_LOAD_SINGLE_INSTR_COMPLETED_IN_LSU) \ 6767 __PMC_EV(PPC7450, FP_LOAD_DOUBLE_COMPLETED_IN_LSU) \ 6768 __PMC_EV(PPC7450, LSU_RA_LATCH_STALL) \ 6769 __PMC_EV(PPC7450, LSU_LOAD_VS_STORE_QUEUE_ALIAS_STALL) \ 6770 __PMC_EV(PPC7450, LSU_LMQ_INDEX_ALIAS) \ 6771 __PMC_EV(PPC7450, LSU_STORE_QUEUE_INDEX_ALIAS) \ 6772 __PMC_EV(PPC7450, LSU_CSQ_FORWARDING) \ 6773 __PMC_EV(PPC7450, LSU_MISALIGNED_LOAD_FINISH) \ 6774 __PMC_EV(PPC7450, LSU_MISALIGN_STORE_COMPLETED) \ 6775 __PMC_EV(PPC7450, LSU_MISALIGN_STALL) \ 6776 __PMC_EV(PPC7450, FP_ONE_QUARTER_FPSCR_RENAMES_BUSY) \ 6777 __PMC_EV(PPC7450, FP_ONE_HALF_FPSCR_RENAMES_BUSY) \ 6778 __PMC_EV(PPC7450, FP_THREE_QUARTERS_FPSCR_RENAMES_BUSY) \ 6779 __PMC_EV(PPC7450, FP_ALL_FPSCR_RENAMES_BUSY) \ 6780 __PMC_EV(PPC7450, FP_DENORMALIZED_RESULT) \ 6781 __PMC_EV(PPC7450, L1_DATA_TOTAL_MISSES) \ 6782 __PMC_EV(PPC7450, DISPATCHES_TO_FPR_ISSUE_QUEUE) \ 6783 __PMC_EV(PPC7450, LSU_INSTR_COMPLETED) \ 6784 __PMC_EV(PPC7450, LOAD_INSTR_COMPLETED) \ 6785 __PMC_EV(PPC7450, SS_SM_INSTR_COMPLETED) \ 6786 __PMC_EV(PPC7450, TLBIE_INSTR_COMPLETED) \ 6787 __PMC_EV(PPC7450, LWARX_INSTR_COMPLETED) \ 6788 __PMC_EV(PPC7450, MFSPR_INSTR_COMPLETED) \ 6789 __PMC_EV(PPC7450, REFETCH_SERIALIZATION) \ 6790 __PMC_EV(PPC7450, COMPLETION_QUEUE_ENTRIES_OVER_THRESHOLD) \ 6791 __PMC_EV(PPC7450, CYCLES_ONE_INSTR_DISPATCHED) \ 6792 __PMC_EV(PPC7450, CYCLES_TWO_INSTR_COMPLETED) \ 6793 __PMC_EV(PPC7450, ITLB_NON_SPECULATIVE_MISSES) \ 6794 __PMC_EV(PPC7450, CYCLES_WAITING_FROM_L1_INSTR_CACHE_MISS) \ 6795 __PMC_EV(PPC7450, L1_DATA_LOAD_ACCESS_MISS) \ 6796 __PMC_EV(PPC7450, L1_DATA_TOUCH_MISS) \ 6797 __PMC_EV(PPC7450, L1_DATA_STORE_MISS) \ 6798 __PMC_EV(PPC7450, L1_DATA_TOUCH_MISS_CYCLES) \ 6799 __PMC_EV(PPC7450, L1_DATA_CYCLES_USED) \ 6800 __PMC_EV(PPC7450, DST_STREAM_1_CACHE_LINE_FETCHES) \ 6801 __PMC_EV(PPC7450, VTQ_STREAM_CANCELED_PREMATURELY) \ 6802 __PMC_EV(PPC7450, VTQ_RESUMES_DUE_TO_CTX_CHANGE) \ 6803 __PMC_EV(PPC7450, VTQ_LINE_FETCH_MISS) \ 6804 __PMC_EV(PPC7450, VTQ_LINE_FETCH) \ 6805 __PMC_EV(PPC7450, TLBIE_SNOOPS) \ 6806 __PMC_EV(PPC7450, L1_INSTR_CACHE_RELOADS) \ 6807 __PMC_EV(PPC7450, L1_DATA_CACHE_RELOADS) \ 6808 __PMC_EV(PPC7450, L1_DATA_CACHE_CASTOUTS_TO_L2) \ 6809 __PMC_EV(PPC7450, STORE_MERGE_GATHER) \ 6810 __PMC_EV(PPC7450, CACHEABLE_STORE_MERGE_TO_32_BYTES) \ 6811 __PMC_EV(PPC7450, DATA_BKPT_MATCHES) \ 6812 __PMC_EV(PPC7450, FALL_THROUGH_BRANCHES_PROCESSED) \ 6813 __PMC_EV(PPC7450, \ 6814 FIRST_SPECULATIVE_BRANCH_BUFFER_RESOLVED_CORRECTLY) \ 6815 __PMC_EV(PPC7450, SECOND_SPECULATION_BUFFER_ACTIVE) \ 6816 __PMC_EV(PPC7450, BPU_STALL_ON_LR_DEPENDENCY) \ 6817 __PMC_EV(PPC7450, BTIC_MISS) \ 6818 __PMC_EV(PPC7450, BRANCH_LINK_STACK_CORRECTLY_RESOLVED) \ 6819 __PMC_EV(PPC7450, FPR_ISSUE_STALLED) \ 6820 __PMC_EV(PPC7450, SWITCHES_BETWEEN_PRIV_USER) \ 6821 __PMC_EV(PPC7450, LSU_COMPLETES_FP_STORE_SINGLE) \ 6822 __PMC_EV(PPC7450, VR_ISSUE_QUEUE_DISPATCHES) \ 6823 __PMC_EV(PPC7450, VR_STALLS) \ 6824 __PMC_EV(PPC7450, GPR_RENAME_BUFFER_ENTRIES_OVER_THRESHOLD) \ 6825 __PMC_EV(PPC7450, FPR_ISSUE_QUEUE_ENTRIES) \ 6826 __PMC_EV(PPC7450, FPU_INSTR_COMPLETED) \ 6827 __PMC_EV(PPC7450, STWCX_INSTR_COMPLETED) \ 6828 __PMC_EV(PPC7450, LS_LM_INSTR_PIECES) \ 6829 __PMC_EV(PPC7450, ITLB_HW_SEARCH_CYCLES_OVER_THRESHOLD) \ 6830 __PMC_EV(PPC7450, DTLB_MISSES) \ 6831 __PMC_EV(PPC7450, CANCELLED_L1_INSTR_CACHE_MISSES) \ 6832 __PMC_EV(PPC7450, L1_DATA_CACHE_OP_HIT) \ 6833 __PMC_EV(PPC7450, L1_DATA_LOAD_MISS_CYCLES) \ 6834 __PMC_EV(PPC7450, L1_DATA_PUSHES) \ 6835 __PMC_EV(PPC7450, L1_DATA_TOTAL_MISS) \ 6836 __PMC_EV(PPC7450, VT2_FETCHES) \ 6837 __PMC_EV(PPC7450, TAKEN_BRANCHES_PROCESSED) \ 6838 __PMC_EV(PPC7450, BRANCH_FLUSHES) \ 6839 __PMC_EV(PPC7450, \ 6840 SECOND_SPECULATIVE_BRANCH_BUFFER_RESOLVED_CORRECTLY) \ 6841 __PMC_EV(PPC7450, THIRD_SPECULATION_BUFFER_ACTIVE) \ 6842 __PMC_EV(PPC7450, BRANCH_UNIT_STALL_ON_CTR_DEPENDENCY) \ 6843 __PMC_EV(PPC7450, FAST_BTIC_HIT) \ 6844 __PMC_EV(PPC7450, BRANCH_LINK_STACK_MISPREDICTED) \ 6845 __PMC_EV(PPC7450, CYCLES_THREE_INSTR_COMPLETED) \ 6846 __PMC_EV(PPC7450, CYCLES_NO_INSTR_DISPATCHED) \ 6847 __PMC_EV(PPC7450, GPR_ISSUE_QUEUE_ENTRIES_OVER_THRESHOLD) \ 6848 __PMC_EV(PPC7450, GPR_ISSUE_QUEUE_STALLED) \ 6849 __PMC_EV(PPC7450, IU1_INSTR_COMPLETED) \ 6850 __PMC_EV(PPC7450, DSSALL_INSTR_COMPLETED) \ 6851 __PMC_EV(PPC7450, TLBSYNC_INSTR_COMPLETED) \ 6852 __PMC_EV(PPC7450, SYNC_INSTR_COMPLETED) \ 6853 __PMC_EV(PPC7450, SS_SM_INSTR_PIECES) \ 6854 __PMC_EV(PPC7450, DTLB_HW_SEARCH_CYCLES) \ 6855 __PMC_EV(PPC7450, SNOOP_RETRIES) \ 6856 __PMC_EV(PPC7450, SUCCESSFUL_STWCX) \ 6857 __PMC_EV(PPC7450, DST_STREAM_3_CACHE_LINE_FETCHES) \ 6858 __PMC_EV(PPC7450, \ 6859 THIRD_SPECULATIVE_BRANCH_BUFFER_RESOLVED_CORRECTLY) \ 6860 __PMC_EV(PPC7450, MISPREDICTED_BRANCHES) \ 6861 __PMC_EV(PPC7450, FOLDED_BRANCHES) \ 6862 __PMC_EV(PPC7450, FP_STORE_DOUBLE_COMPLETES_IN_LSU) \ 6863 __PMC_EV(PPC7450, L2_CACHE_HITS) \ 6864 __PMC_EV(PPC7450, L3_CACHE_HITS) \ 6865 __PMC_EV(PPC7450, L2_INSTR_CACHE_MISSES) \ 6866 __PMC_EV(PPC7450, L3_INSTR_CACHE_MISSES) \ 6867 __PMC_EV(PPC7450, L2_DATA_CACHE_MISSES) \ 6868 __PMC_EV(PPC7450, L3_DATA_CACHE_MISSES) \ 6869 __PMC_EV(PPC7450, L2_LOAD_HITS) \ 6870 __PMC_EV(PPC7450, L2_STORE_HITS) \ 6871 __PMC_EV(PPC7450, L3_LOAD_HITS) \ 6872 __PMC_EV(PPC7450, L3_STORE_HITS) \ 6873 __PMC_EV(PPC7450, L2_TOUCH_HITS) \ 6874 __PMC_EV(PPC7450, L3_TOUCH_HITS) \ 6875 __PMC_EV(PPC7450, SNOOP_MODIFIED) \ 6876 __PMC_EV(PPC7450, SNOOP_VALID) \ 6877 __PMC_EV(PPC7450, INTERVENTION) \ 6878 __PMC_EV(PPC7450, L2_CACHE_MISSES) \ 6879 __PMC_EV(PPC7450, L3_CACHE_MISSES) \ 6880 __PMC_EV(PPC7450, L2_CACHE_CASTOUTS) \ 6881 __PMC_EV(PPC7450, L3_CACHE_CASTOUTS) \ 6882 __PMC_EV(PPC7450, L2SQ_FULL_CYCLES) \ 6883 __PMC_EV(PPC7450, L3SQ_FULL_CYCLES) \ 6884 __PMC_EV(PPC7450, RAQ_FULL_CYCLES) \ 6885 __PMC_EV(PPC7450, WAQ_FULL_CYCLES) \ 6886 __PMC_EV(PPC7450, L1_EXTERNAL_INTERVENTIONS) \ 6887 __PMC_EV(PPC7450, L2_EXTERNAL_INTERVENTIONS) \ 6888 __PMC_EV(PPC7450, L3_EXTERNAL_INTERVENTIONS) \ 6889 __PMC_EV(PPC7450, EXTERNAL_INTERVENTIONS) \ 6890 __PMC_EV(PPC7450, EXTERNAL_PUSHES) \ 6891 __PMC_EV(PPC7450, EXTERNAL_SNOOP_RETRY) \ 6892 __PMC_EV(PPC7450, DTQ_FULL_CYCLES) \ 6893 __PMC_EV(PPC7450, BUS_RETRY) \ 6894 __PMC_EV(PPC7450, L2_VALID_REQUEST) \ 6895 __PMC_EV(PPC7450, BORDQ_FULL) \ 6896 __PMC_EV(PPC7450, BUS_TAS_FOR_READS) \ 6897 __PMC_EV(PPC7450, BUS_TAS_FOR_WRITES) \ 6898 __PMC_EV(PPC7450, BUS_READS_NOT_RETRIED) \ 6899 __PMC_EV(PPC7450, BUS_WRITES_NOT_RETRIED) \ 6900 __PMC_EV(PPC7450, BUS_READS_WRITES_NOT_RETRIED) \ 6901 __PMC_EV(PPC7450, BUS_RETRY_DUE_TO_L1_RETRY) \ 6902 __PMC_EV(PPC7450, BUS_RETRY_DUE_TO_PREVIOUS_ADJACENT) \ 6903 __PMC_EV(PPC7450, BUS_RETRY_DUE_TO_COLLISION) \ 6904 __PMC_EV(PPC7450, BUS_RETRY_DUE_TO_INTERVENTION_ORDERING) \ 6905 __PMC_EV(PPC7450, SNOOP_REQUESTS) \ 6906 __PMC_EV(PPC7450, PREFETCH_ENGINE_REQUEST) \ 6907 __PMC_EV(PPC7450, PREFETCH_ENGINE_COLLISION_VS_LOAD) \ 6908 __PMC_EV(PPC7450, PREFETCH_ENGINE_COLLISION_VS_STORE) \ 6909 __PMC_EV(PPC7450, PREFETCH_ENGINE_COLLISION_VS_INSTR_FETCH) \ 6910 __PMC_EV(PPC7450, \ 6911 PREFETCH_ENGINE_COLLISION_VS_LOAD_STORE_INSTR_FETCH) \ 6912 __PMC_EV(PPC7450, PREFETCH_ENGINE_FULL) 6913 6914 #define PMC_EV_PPC7450_FIRST PMC_EV_PPC7450_CYCLE 6915 #define PMC_EV_PPC7450_LAST PMC_EV_PPC7450_PREFETCH_ENGINE_FULL 6916 6917 #define __PMC_EV_PPC970() \ 6918 __PMC_EV(PPC970, INSTR_COMPLETED) \ 6919 __PMC_EV(PPC970, MARKED_GROUP_DISPATCH) \ 6920 __PMC_EV(PPC970, MARKED_STORE_COMPLETED) \ 6921 __PMC_EV(PPC970, GCT_EMPTY) \ 6922 __PMC_EV(PPC970, RUN_CYCLES) \ 6923 __PMC_EV(PPC970, OVERFLOW) \ 6924 __PMC_EV(PPC970, CYCLES) \ 6925 __PMC_EV(PPC970, THRESHOLD_TIMEOUT) \ 6926 __PMC_EV(PPC970, GROUP_DISPATCH) \ 6927 __PMC_EV(PPC970, BR_MARKED_INSTR_FINISH) \ 6928 __PMC_EV(PPC970, GCT_EMPTY_BY_SRQ_FULL) \ 6929 __PMC_EV(PPC970, STOP_COMPLETION) \ 6930 __PMC_EV(PPC970, LSU_EMPTY) \ 6931 __PMC_EV(PPC970, MARKED_STORE_WITH_INTR) \ 6932 __PMC_EV(PPC970, CYCLES_IN_SUPER) \ 6933 __PMC_EV(PPC970, VPU_MARKED_INSTR_COMPLETED) \ 6934 __PMC_EV(PPC970, FXU0_IDLE_FXU1_BUSY) \ 6935 __PMC_EV(PPC970, SRQ_EMPTY) \ 6936 __PMC_EV(PPC970, MARKED_GROUP_COMPLETED) \ 6937 __PMC_EV(PPC970, CR_MARKED_INSTR_FINISH) \ 6938 __PMC_EV(PPC970, DISPATCH_SUCCESS) \ 6939 __PMC_EV(PPC970, FXU0_IDLE_FXU1_IDLE) \ 6940 __PMC_EV(PPC970, ONE_PLUS_INSTR_COMPLETED) \ 6941 __PMC_EV(PPC970, GROUP_MARKED_IDU) \ 6942 __PMC_EV(PPC970, MARKED_GROUP_COMPLETE_TIMEOUT) \ 6943 __PMC_EV(PPC970, FXU0_BUSY_FXU1_BUSY) \ 6944 __PMC_EV(PPC970, MARKED_STORE_SENT_TO_STS) \ 6945 __PMC_EV(PPC970, FXU_MARKED_INSTR_FINISHED) \ 6946 __PMC_EV(PPC970, MARKED_GROUP_ISSUED) \ 6947 __PMC_EV(PPC970, FXU0_BUSY_FXU1_IDLE) \ 6948 __PMC_EV(PPC970, GROUP_COMPLETED) \ 6949 __PMC_EV(PPC970, FPU_MARKED_INSTR_COMPLETED) \ 6950 __PMC_EV(PPC970, MARKED_INSTR_FINISH_ANY_UNIT) \ 6951 __PMC_EV(PPC970, EXTERNAL_INTERRUPT) \ 6952 __PMC_EV(PPC970, GROUP_DISPATCH_REJECT) \ 6953 __PMC_EV(PPC970, LSU_MARKED_INSTR_FINISH) \ 6954 __PMC_EV(PPC970, TIMEBASE_EVENT) \ 6955 __PMC_EV(PPC970, LSU_COMPLETION_STALL) \ 6956 __PMC_EV(PPC970, FXU_COMPLETION_STALL) \ 6957 __PMC_EV(PPC970, DCACHE_MISS_COMPLETION_STALL) \ 6958 __PMC_EV(PPC970, FPU_COMPLETION_STALL) \ 6959 __PMC_EV(PPC970, FXU_LONG_INSTR_COMPLETION_STALL) \ 6960 __PMC_EV(PPC970, REJECT_COMPLETION_STALL) \ 6961 __PMC_EV(PPC970, FPU_LONG_INSTR_COMPLETION_STALL) \ 6962 __PMC_EV(PPC970, GCT_EMPTY_BY_ICACHE_MISS) \ 6963 __PMC_EV(PPC970, REJECT_COMPLETION_STALL_ERAT_MISS) \ 6964 __PMC_EV(PPC970, GCT_EMPTY_BY_BRANCH_MISS_PREDICT) \ 6965 __PMC_EV(PPC970, BUS_HIGH) \ 6966 __PMC_EV(PPC970, BUS_LOW) \ 6967 __PMC_EV(PPC970, ADDER) 6968 6969 6970 #define PMC_EV_PPC970_FIRST PMC_EV_PPC970_INSTR_COMPLETED 6971 #define PMC_EV_PPC970_LAST PMC_EV_PPC970_ADDER 6972 6973 #define __PMC_EV_E500() \ 6974 __PMC_EV(E500, CYCLES) \ 6975 __PMC_EV(E500, INSTR_COMPLETED) \ 6976 __PMC_EV(E500, UOPS_COMPLETED) \ 6977 __PMC_EV(E500, INSTR_FETCHED) \ 6978 __PMC_EV(E500, UOPS_DECODED) \ 6979 __PMC_EV(E500, PM_EVENT_TRANSITIONS) \ 6980 __PMC_EV(E500, PM_EVENT_CYCLES) \ 6981 __PMC_EV(E500, BRANCH_INSTRS_COMPLETED) \ 6982 __PMC_EV(E500, LOAD_UOPS_COMPLETED) \ 6983 __PMC_EV(E500, STORE_UOPS_COMPLETED) \ 6984 __PMC_EV(E500, CQ_REDIRECTS) \ 6985 __PMC_EV(E500, BRANCHES_FINISHED) \ 6986 __PMC_EV(E500, TAKEN_BRANCHES_FINISHED) \ 6987 __PMC_EV(E500, FINISHED_UNCOND_BRANCHES_MISS_BTB) \ 6988 __PMC_EV(E500, BRANCH_MISPRED) \ 6989 __PMC_EV(E500, BTB_BRANCH_MISPRED_FROM_DIRECTION) \ 6990 __PMC_EV(E500, BTB_HITS_PSEUDO_HITS) \ 6991 __PMC_EV(E500, CYCLES_DECODE_STALLED) \ 6992 __PMC_EV(E500, CYCLES_ISSUE_STALLED) \ 6993 __PMC_EV(E500, CYCLES_BRANCH_ISSUE_STALLED) \ 6994 __PMC_EV(E500, CYCLES_SU1_SCHED_STALLED) \ 6995 __PMC_EV(E500, CYCLES_SU2_SCHED_STALLED) \ 6996 __PMC_EV(E500, CYCLES_MU_SCHED_STALLED) \ 6997 __PMC_EV(E500, CYCLES_LRU_SCHED_STALLED) \ 6998 __PMC_EV(E500, CYCLES_BU_SCHED_STALLED) \ 6999 __PMC_EV(E500, TOTAL_TRANSLATED) \ 7000 __PMC_EV(E500, LOADS_TRANSLATED) \ 7001 __PMC_EV(E500, STORES_TRANSLATED) \ 7002 __PMC_EV(E500, TOUCHES_TRANSLATED) \ 7003 __PMC_EV(E500, CACHEOPS_TRANSLATED) \ 7004 __PMC_EV(E500, CACHE_INHIBITED_ACCESS_TRANSLATED) \ 7005 __PMC_EV(E500, GUARDED_LOADS_TRANSLATED) \ 7006 __PMC_EV(E500, WRITE_THROUGH_STORES_TRANSLATED) \ 7007 __PMC_EV(E500, MISALIGNED_LOAD_STORE_ACCESS_TRANSLATED) \ 7008 __PMC_EV(E500, TOTAL_ALLOCATED_TO_DLFB) \ 7009 __PMC_EV(E500, LOADS_TRANSLATED_ALLOCATED_TO_DLFB) \ 7010 __PMC_EV(E500, STORES_COMPLETED_ALLOCATED_TO_DLFB) \ 7011 __PMC_EV(E500, TOUCHES_TRANSLATED_ALLOCATED_TO_DLFB) \ 7012 __PMC_EV(E500, STORES_COMPLETED) \ 7013 __PMC_EV(E500, DATA_L1_CACHE_LOCKS) \ 7014 __PMC_EV(E500, DATA_L1_CACHE_RELOADS) \ 7015 __PMC_EV(E500, DATA_L1_CACHE_CASTOUTS) \ 7016 __PMC_EV(E500, LOAD_MISS_DLFB_FULL) \ 7017 __PMC_EV(E500, LOAD_MISS_LDQ_FULL) \ 7018 __PMC_EV(E500, LOAD_GUARDED_MISS) \ 7019 __PMC_EV(E500, STORE_TRANSLATE_WHEN_QUEUE_FULL) \ 7020 __PMC_EV(E500, ADDRESS_COLLISION) \ 7021 __PMC_EV(E500, DATA_MMU_MISS) \ 7022 __PMC_EV(E500, DATA_MMU_BUSY) \ 7023 __PMC_EV(E500, PART2_MISALIGNED_CACHE_ACCESS) \ 7024 __PMC_EV(E500, LOAD_MISS_DLFB_FULL_CYCLES) \ 7025 __PMC_EV(E500, LOAD_MISS_LDQ_FULL_CYCLES) \ 7026 __PMC_EV(E500, LOAD_GUARDED_MISS_CYCLES) \ 7027 __PMC_EV(E500, STORE_TRANSLATE_WHEN_QUEUE_FULL_CYCLES) \ 7028 __PMC_EV(E500, ADDRESS_COLLISION_CYCLES) \ 7029 __PMC_EV(E500, DATA_MMU_MISS_CYCLES) \ 7030 __PMC_EV(E500, DATA_MMU_BUSY_CYCLES) \ 7031 __PMC_EV(E500, PART2_MISALIGNED_CACHE_ACCESS_CYCLES) \ 7032 __PMC_EV(E500, INSTR_L1_CACHE_LOCKS) \ 7033 __PMC_EV(E500, INSTR_L1_CACHE_RELOADS) \ 7034 __PMC_EV(E500, INSTR_L1_CACHE_FETCHES) \ 7035 __PMC_EV(E500, INSTR_MMU_TLB4K_RELOADS) \ 7036 __PMC_EV(E500, INSTR_MMU_VSP_RELOADS) \ 7037 __PMC_EV(E500, DATA_MMU_TLB4K_RELOADS) \ 7038 __PMC_EV(E500, DATA_MMU_VSP_RELOADS) \ 7039 __PMC_EV(E500, L2MMU_MISSES) \ 7040 __PMC_EV(E500, BIU_MASTER_REQUESTS) \ 7041 __PMC_EV(E500, BIU_MASTER_INSTR_SIDE_REQUESTS) \ 7042 __PMC_EV(E500, BIU_MASTER_DATA_SIDE_REQUESTS) \ 7043 __PMC_EV(E500, BIU_MASTER_DATA_SIDE_CASTOUT_REQUESTS) \ 7044 __PMC_EV(E500, BIU_MASTER_RETRIES) \ 7045 __PMC_EV(E500, SNOOP_REQUESTS) \ 7046 __PMC_EV(E500, SNOOP_HITS) \ 7047 __PMC_EV(E500, SNOOP_PUSHES) \ 7048 __PMC_EV(E500, SNOOP_RETRIES) \ 7049 __PMC_EV(E500, DLFB_LOAD_MISS_CYCLES) \ 7050 __PMC_EV(E500, ILFB_FETCH_MISS_CYCLES) \ 7051 __PMC_EV(E500, EXT_INPU_INTR_LATENCY_CYCLES) \ 7052 __PMC_EV(E500, CRIT_INPUT_INTR_LATENCY_CYCLES) \ 7053 __PMC_EV(E500, EXT_INPUT_INTR_PENDING_LATENCY_CYCLES) \ 7054 __PMC_EV(E500, CRIT_INPUT_INTR_PENDING_LATENCY_CYCLES) \ 7055 __PMC_EV(E500, PMC0_OVERFLOW) \ 7056 __PMC_EV(E500, PMC1_OVERFLOW) \ 7057 __PMC_EV(E500, PMC2_OVERFLOW) \ 7058 __PMC_EV(E500, PMC3_OVERFLOW) \ 7059 __PMC_EV(E500, INTERRUPTS_TAKEN) \ 7060 __PMC_EV(E500, EXT_INPUT_INTR_TAKEN) \ 7061 __PMC_EV(E500, CRIT_INPUT_INTR_TAKEN) \ 7062 __PMC_EV(E500, SYSCALL_TRAP_INTR) \ 7063 __PMC_EV(E500, TLB_BIT_TRANSITIONS) \ 7064 __PMC_EV(E500, L2_LINEFILL_BUFFER) \ 7065 __PMC_EV(E500, LV2_VS) \ 7066 __PMC_EV(E500, CASTOUTS_RELEASED) \ 7067 __PMC_EV(E500, INTV_ALLOCATIONS) \ 7068 __PMC_EV(E500, DLFB_RETRIES_TO_MBAR) \ 7069 __PMC_EV(E500, STORE_RETRIES) \ 7070 __PMC_EV(E500, STASH_L1_HITS) \ 7071 __PMC_EV(E500, STASH_L2_HITS) \ 7072 __PMC_EV(E500, STASH_BUSY_1) \ 7073 __PMC_EV(E500, STASH_BUSY_2) \ 7074 __PMC_EV(E500, STASH_BUSY_3) \ 7075 __PMC_EV(E500, STASH_HITS) \ 7076 __PMC_EV(E500, STASH_HIT_DLFB) \ 7077 __PMC_EV(E500, STASH_REQUESTS) \ 7078 __PMC_EV(E500, STASH_REQUESTS_L1) \ 7079 __PMC_EV(E500, STASH_REQUESTS_L2) \ 7080 __PMC_EV(E500, STALLS_NO_CAQ_OR_COB) \ 7081 __PMC_EV(E500, L2_CACHE_ACCESSES) \ 7082 __PMC_EV(E500, L2_HIT_CACHE_ACCESSES) \ 7083 __PMC_EV(E500, L2_CACHE_DATA_ACCESSES) \ 7084 __PMC_EV(E500, L2_CACHE_DATA_HITS) \ 7085 __PMC_EV(E500, L2_CACHE_INSTR_ACCESSES) \ 7086 __PMC_EV(E500, L2_CACHE_INSTR_HITS) \ 7087 __PMC_EV(E500, L2_CACHE_ALLOCATIONS) \ 7088 __PMC_EV(E500, L2_CACHE_DATA_ALLOCATIONS) \ 7089 __PMC_EV(E500, L2_CACHE_DIRTY_DATA_ALLOCATIONS) \ 7090 __PMC_EV(E500, L2_CACHE_INSTR_ALLOCATIONS) \ 7091 __PMC_EV(E500, L2_CACHE_UPDATES) \ 7092 __PMC_EV(E500, L2_CACHE_CLEAN_UPDATES) \ 7093 __PMC_EV(E500, L2_CACHE_DIRTY_UPDATES) \ 7094 __PMC_EV(E500, L2_CACHE_CLEAN_REDUNDANT_UPDATES) \ 7095 __PMC_EV(E500, L2_CACHE_DIRTY_REDUNDANT_UPDATES) \ 7096 __PMC_EV(E500, L2_CACHE_LOCKS) \ 7097 __PMC_EV(E500, L2_CACHE_CASTOUTS) \ 7098 __PMC_EV(E500, L2_CACHE_DATA_DIRTY_HITS) \ 7099 __PMC_EV(E500, INSTR_LFB_WENT_HIGH_PRIORITY) \ 7100 __PMC_EV(E500, SNOOP_THROTTLING_TURNED_ON) \ 7101 __PMC_EV(E500, L2_CLEAN_LINE_INVALIDATIONS) \ 7102 __PMC_EV(E500, L2_INCOHERENT_LINE_INVALIDATIONS) \ 7103 __PMC_EV(E500, L2_COHERENT_LINE_INVALIDATIONS) \ 7104 __PMC_EV(E500, COHERENT_LOOKUP_MISS_DUE_TO_VALID_BUT_INCOHERENT_MATCHES) \ 7105 __PMC_EV(E500, IAC1S_DETECTED) \ 7106 __PMC_EV(E500, IAC2S_DETECTED) \ 7107 __PMC_EV(E500, DAC1S_DTECTED) \ 7108 __PMC_EV(E500, DAC2S_DTECTED) \ 7109 __PMC_EV(E500, DVT0_DETECTED) \ 7110 __PMC_EV(E500, DVT1_DETECTED) \ 7111 __PMC_EV(E500, DVT2_DETECTED) \ 7112 __PMC_EV(E500, DVT3_DETECTED) \ 7113 __PMC_EV(E500, DVT4_DETECTED) \ 7114 __PMC_EV(E500, DVT5_DETECTED) \ 7115 __PMC_EV(E500, DVT6_DETECTED) \ 7116 __PMC_EV(E500, DVT7_DETECTED) \ 7117 __PMC_EV(E500, CYCLES_COMPLETION_STALLED_NEXUS_FIFO_FULL) \ 7118 __PMC_EV(E500, FPU_DOUBLE_PUMP) \ 7119 __PMC_EV(E500, FPU_FINISH) \ 7120 __PMC_EV(E500, FPU_DIVIDE_CYCLES) \ 7121 __PMC_EV(E500, FPU_DENORM_INPUT_CYCLES) \ 7122 __PMC_EV(E500, FPU_RESULT_STALL_CYCLES) \ 7123 __PMC_EV(E500, FPU_FPSCR_FULL_STALL) \ 7124 __PMC_EV(E500, FPU_PIPE_SYNC_STALLS) \ 7125 __PMC_EV(E500, FPU_INPUT_DATA_STALLS) \ 7126 __PMC_EV(E500, DECORATED_LOADS) \ 7127 __PMC_EV(E500, DECORATED_STORES) \ 7128 __PMC_EV(E500, LOAD_RETRIES) \ 7129 __PMC_EV(E500, STWCX_SUCCESSES) \ 7130 __PMC_EV(E500, STWCX_FAILURES) \ 7131 7132 #define PMC_EV_E500_FIRST PMC_EV_E500_CYCLES 7133 #define PMC_EV_E500_LAST PMC_EV_E500_STWCX_FAILURES 7134 /* 7135 * All known PMC events. 7136 * 7137 * PMC event numbers are allocated sparsely to allow new PMC events to 7138 * be added to a PMC class without breaking ABI compatibility. The 7139 * current allocation scheme is: 7140 * 7141 * START #EVENTS DESCRIPTION 7142 * 0 0x1000 Reserved 7143 * 0x1000 0x0001 TSC 7144 * 0x2000 0x0080 AMD K7 events 7145 * 0x2080 0x0100 AMD K8 events 7146 * 0x10000 0x0080 INTEL architectural fixed-function events 7147 * 0x10080 0x0F80 INTEL architectural programmable events 7148 * 0x11000 0x0080 INTEL Pentium 4 events 7149 * 0x11080 0x0080 INTEL Pentium MMX events 7150 * 0x11100 0x0100 INTEL Pentium Pro/P-II/P-III/Pentium-M events 7151 * 0x11200 0x00FF INTEL XScale events 7152 * 0x11300 0x00FF MIPS 24K events 7153 * 0x11400 0x00FF Octeon events 7154 * 0x11500 0x00FF MIPS 74K events 7155 * 0x13000 0x00FF MPC7450 events 7156 * 0x13100 0x00FF IBM PPC970 events 7157 * 0x13300 0x00FF Freescale e500 events 7158 * 0x14000 0x0100 ARMv7 events 7159 * 0x14100 0x0100 ARMv8 events 7160 * 0x20000 0x1000 Software events 7161 */ 7162 #define __PMC_EVENTS() \ 7163 __PMC_EV_BLOCK(TSC, 0x01000) \ 7164 __PMC_EV_TSC() \ 7165 __PMC_EV_BLOCK(K7, 0x2000) \ 7166 __PMC_EV_K7() \ 7167 __PMC_EV_BLOCK(K8, 0x2080) \ 7168 __PMC_EV_K8() \ 7169 __PMC_EV_BLOCK(IAF, 0x10000) \ 7170 __PMC_EV_IAF() \ 7171 __PMC_EV_BLOCK(IAP, 0x10080) \ 7172 __PMC_EV_IAP() \ 7173 __PMC_EV_BLOCK(P4, 0x11000) \ 7174 __PMC_EV_P4() \ 7175 __PMC_EV_BLOCK(P5, 0x11080) \ 7176 __PMC_EV_P5() \ 7177 __PMC_EV_BLOCK(P6, 0x11100) \ 7178 __PMC_EV_P6() \ 7179 __PMC_EV_BLOCK(XSCALE, 0x11200) \ 7180 __PMC_EV_XSCALE() \ 7181 __PMC_EV_BLOCK(MIPS24K, 0x11300) \ 7182 __PMC_EV_MIPS24K() \ 7183 __PMC_EV_BLOCK(OCTEON, 0x11400) \ 7184 __PMC_EV_OCTEON() \ 7185 __PMC_EV_BLOCK(MIPS74K, 0x11500) \ 7186 __PMC_EV_MIPS74K() \ 7187 __PMC_EV_BLOCK(UCF, 0x12000) \ 7188 __PMC_EV_UCF() \ 7189 __PMC_EV_BLOCK(UCP, 0x12080) \ 7190 __PMC_EV_UCP() \ 7191 __PMC_EV_BLOCK(PPC7450, 0x13000) \ 7192 __PMC_EV_PPC7450() \ 7193 __PMC_EV_BLOCK(PPC970, 0x13100) \ 7194 __PMC_EV_PPC970() \ 7195 __PMC_EV_BLOCK(E500, 0x13300) \ 7196 __PMC_EV_E500() \ 7197 __PMC_EV_BLOCK(ARMV7, 0x14000) \ 7198 __PMC_EV_ARMV7() \ 7199 __PMC_EV_BLOCK(ARMV8, 0x14100) \ 7200 __PMC_EV_ARMV8() 7201 7202 #define PMC_EVENT_FIRST PMC_EV_TSC_TSC 7203 #define PMC_EVENT_LAST PMC_EV_SOFT_LAST 7204 7205 #endif /* _DEV_HWPMC_PMC_EVENTS_H_ */ 7206