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 * https://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 /* timestamp counters. */ 51 #define __PMC_EV_TSC() \ 52 __PMC_EV(TSC, TSC) 53 54 #define PMC_EV_TSC_FIRST PMC_EV_TSC_TSC 55 #define PMC_EV_TSC_LAST PMC_EV_TSC_TSC 56 57 #define __PMC_EV_ALIAS_TSC() \ 58 __PMC_EV_ALIAS("cycles", TSC_TSC) 59 60 /* 61 * Software events are dynamically defined. 62 */ 63 64 #define PMC_EV_DYN_COUNT 0x1000 65 66 #define PMC_EV_SOFT_FIRST 0x20000 67 #define PMC_EV_SOFT_LAST (PMC_EV_SOFT_FIRST + PMC_EV_DYN_COUNT - 1) 68 69 /* 70 * AMD K7 Events, from "The AMD Athlon(tm) Processor x86 Code 71 * Optimization Guide" [Doc#22007K, Feb 2002] 72 */ 73 74 #define __PMC_EV_K7() \ 75 __PMC_EV(K7, DC_ACCESSES) \ 76 __PMC_EV(K7, DC_MISSES) \ 77 __PMC_EV(K7, DC_REFILLS_FROM_L2) \ 78 __PMC_EV(K7, DC_REFILLS_FROM_SYSTEM) \ 79 __PMC_EV(K7, DC_WRITEBACKS) \ 80 __PMC_EV(K7, L1_DTLB_MISS_AND_L2_DTLB_HITS) \ 81 __PMC_EV(K7, L1_AND_L2_DTLB_MISSES) \ 82 __PMC_EV(K7, MISALIGNED_REFERENCES) \ 83 __PMC_EV(K7, IC_FETCHES) \ 84 __PMC_EV(K7, IC_MISSES) \ 85 __PMC_EV(K7, L1_ITLB_MISSES) \ 86 __PMC_EV(K7, L1_L2_ITLB_MISSES) \ 87 __PMC_EV(K7, RETIRED_INSTRUCTIONS) \ 88 __PMC_EV(K7, RETIRED_OPS) \ 89 __PMC_EV(K7, RETIRED_BRANCHES) \ 90 __PMC_EV(K7, RETIRED_BRANCHES_MISPREDICTED) \ 91 __PMC_EV(K7, RETIRED_TAKEN_BRANCHES) \ 92 __PMC_EV(K7, RETIRED_TAKEN_BRANCHES_MISPREDICTED) \ 93 __PMC_EV(K7, RETIRED_FAR_CONTROL_TRANSFERS) \ 94 __PMC_EV(K7, RETIRED_RESYNC_BRANCHES) \ 95 __PMC_EV(K7, INTERRUPTS_MASKED_CYCLES) \ 96 __PMC_EV(K7, INTERRUPTS_MASKED_WHILE_PENDING_CYCLES) \ 97 __PMC_EV(K7, HARDWARE_INTERRUPTS) 98 99 #define PMC_EV_K7_FIRST PMC_EV_K7_DC_ACCESSES 100 #define PMC_EV_K7_LAST PMC_EV_K7_HARDWARE_INTERRUPTS 101 102 /* AMD K8 PMCs */ 103 104 #define __PMC_EV_K8() \ 105 __PMC_EV(K8, FP_DISPATCHED_FPU_OPS) \ 106 __PMC_EV(K8, FP_CYCLES_WITH_NO_FPU_OPS_RETIRED) \ 107 __PMC_EV(K8, FP_DISPATCHED_FPU_FAST_FLAG_OPS) \ 108 __PMC_EV(K8, LS_SEGMENT_REGISTER_LOAD) \ 109 __PMC_EV(K8, LS_MICROARCHITECTURAL_RESYNC_BY_SELF_MODIFYING_CODE) \ 110 __PMC_EV(K8, LS_MICROARCHITECTURAL_RESYNC_BY_SNOOP) \ 111 __PMC_EV(K8, LS_BUFFER2_FULL) \ 112 __PMC_EV(K8, LS_LOCKED_OPERATION) \ 113 __PMC_EV(K8, LS_MICROARCHITECTURAL_LATE_CANCEL) \ 114 __PMC_EV(K8, LS_RETIRED_CFLUSH_INSTRUCTIONS) \ 115 __PMC_EV(K8, LS_RETIRED_CPUID_INSTRUCTIONS) \ 116 __PMC_EV(K8, DC_ACCESS) \ 117 __PMC_EV(K8, DC_MISS) \ 118 __PMC_EV(K8, DC_REFILL_FROM_L2) \ 119 __PMC_EV(K8, DC_REFILL_FROM_SYSTEM) \ 120 __PMC_EV(K8, DC_COPYBACK) \ 121 __PMC_EV(K8, DC_L1_DTLB_MISS_AND_L2_DTLB_HIT) \ 122 __PMC_EV(K8, DC_L1_DTLB_MISS_AND_L2_DTLB_MISS) \ 123 __PMC_EV(K8, DC_MISALIGNED_DATA_REFERENCE) \ 124 __PMC_EV(K8, DC_MICROARCHITECTURAL_LATE_CANCEL) \ 125 __PMC_EV(K8, DC_MICROARCHITECTURAL_EARLY_CANCEL) \ 126 __PMC_EV(K8, DC_ONE_BIT_ECC_ERROR) \ 127 __PMC_EV(K8, DC_DISPATCHED_PREFETCH_INSTRUCTIONS) \ 128 __PMC_EV(K8, DC_DCACHE_ACCESSES_BY_LOCKS) \ 129 __PMC_EV(K8, BU_CPU_CLK_UNHALTED) \ 130 __PMC_EV(K8, BU_INTERNAL_L2_REQUEST) \ 131 __PMC_EV(K8, BU_FILL_REQUEST_L2_MISS) \ 132 __PMC_EV(K8, BU_FILL_INTO_L2) \ 133 __PMC_EV(K8, IC_FETCH) \ 134 __PMC_EV(K8, IC_MISS) \ 135 __PMC_EV(K8, IC_REFILL_FROM_L2) \ 136 __PMC_EV(K8, IC_REFILL_FROM_SYSTEM) \ 137 __PMC_EV(K8, IC_L1_ITLB_MISS_AND_L2_ITLB_HIT) \ 138 __PMC_EV(K8, IC_L1_ITLB_MISS_AND_L2_ITLB_MISS) \ 139 __PMC_EV(K8, IC_MICROARCHITECTURAL_RESYNC_BY_SNOOP) \ 140 __PMC_EV(K8, IC_INSTRUCTION_FETCH_STALL) \ 141 __PMC_EV(K8, IC_RETURN_STACK_HIT) \ 142 __PMC_EV(K8, IC_RETURN_STACK_OVERFLOW) \ 143 __PMC_EV(K8, FR_RETIRED_X86_INSTRUCTIONS) \ 144 __PMC_EV(K8, FR_RETIRED_UOPS) \ 145 __PMC_EV(K8, FR_RETIRED_BRANCHES) \ 146 __PMC_EV(K8, FR_RETIRED_BRANCHES_MISPREDICTED) \ 147 __PMC_EV(K8, FR_RETIRED_TAKEN_BRANCHES) \ 148 __PMC_EV(K8, FR_RETIRED_TAKEN_BRANCHES_MISPREDICTED) \ 149 __PMC_EV(K8, FR_RETIRED_FAR_CONTROL_TRANSFERS) \ 150 __PMC_EV(K8, FR_RETIRED_RESYNCS) \ 151 __PMC_EV(K8, FR_RETIRED_NEAR_RETURNS) \ 152 __PMC_EV(K8, FR_RETIRED_NEAR_RETURNS_MISPREDICTED) \ 153 __PMC_EV(K8, FR_RETIRED_TAKEN_BRANCHES_MISPREDICTED_BY_ADDR_MISCOMPARE) \ 154 __PMC_EV(K8, FR_RETIRED_FPU_INSTRUCTIONS) \ 155 __PMC_EV(K8, FR_RETIRED_FASTPATH_DOUBLE_OP_INSTRUCTIONS) \ 156 __PMC_EV(K8, FR_INTERRUPTS_MASKED_CYCLES) \ 157 __PMC_EV(K8, FR_INTERRUPTS_MASKED_WHILE_PENDING_CYCLES) \ 158 __PMC_EV(K8, FR_TAKEN_HARDWARE_INTERRUPTS) \ 159 __PMC_EV(K8, FR_DECODER_EMPTY) \ 160 __PMC_EV(K8, FR_DISPATCH_STALLS) \ 161 __PMC_EV(K8, FR_DISPATCH_STALL_FROM_BRANCH_ABORT_TO_RETIRE) \ 162 __PMC_EV(K8, FR_DISPATCH_STALL_FOR_SERIALIZATION) \ 163 __PMC_EV(K8, FR_DISPATCH_STALL_FOR_SEGMENT_LOAD) \ 164 __PMC_EV(K8, FR_DISPATCH_STALL_WHEN_REORDER_BUFFER_IS_FULL) \ 165 __PMC_EV(K8, FR_DISPATCH_STALL_WHEN_RESERVATION_STATIONS_ARE_FULL) \ 166 __PMC_EV(K8, FR_DISPATCH_STALL_WHEN_FPU_IS_FULL) \ 167 __PMC_EV(K8, FR_DISPATCH_STALL_WHEN_LS_IS_FULL) \ 168 __PMC_EV(K8, FR_DISPATCH_STALL_WHEN_WAITING_FOR_ALL_TO_BE_QUIET) \ 169 __PMC_EV(K8, FR_DISPATCH_STALL_WHEN_FAR_XFER_OR_RESYNC_BRANCH_PENDING) \ 170 __PMC_EV(K8, FR_FPU_EXCEPTIONS) \ 171 __PMC_EV(K8, FR_NUMBER_OF_BREAKPOINTS_FOR_DR0) \ 172 __PMC_EV(K8, FR_NUMBER_OF_BREAKPOINTS_FOR_DR1) \ 173 __PMC_EV(K8, FR_NUMBER_OF_BREAKPOINTS_FOR_DR2) \ 174 __PMC_EV(K8, FR_NUMBER_OF_BREAKPOINTS_FOR_DR3) \ 175 __PMC_EV(K8, NB_MEMORY_CONTROLLER_PAGE_ACCESS_EVENT) \ 176 __PMC_EV(K8, NB_MEMORY_CONTROLLER_PAGE_TABLE_OVERFLOW) \ 177 __PMC_EV(K8, NB_MEMORY_CONTROLLER_DRAM_COMMAND_SLOTS_MISSED) \ 178 __PMC_EV(K8, NB_MEMORY_CONTROLLER_TURNAROUND) \ 179 __PMC_EV(K8, NB_MEMORY_CONTROLLER_BYPASS_SATURATION) \ 180 __PMC_EV(K8, NB_SIZED_COMMANDS) \ 181 __PMC_EV(K8, NB_PROBE_RESULT) \ 182 __PMC_EV(K8, NB_HT_BUS0_BANDWIDTH) \ 183 __PMC_EV(K8, NB_HT_BUS1_BANDWIDTH) \ 184 __PMC_EV(K8, NB_HT_BUS2_BANDWIDTH) 185 186 #define PMC_EV_K8_FIRST PMC_EV_K8_FP_DISPATCHED_FPU_OPS 187 #define PMC_EV_K8_LAST PMC_EV_K8_NB_HT_BUS2_BANDWIDTH 188 189 /* 190 * Events supported by Intel architectural fixed function counters, 191 * from the "Intel 64 and IA-32 Architectures Software Developer's 192 * Manual Volume 3B: System Programming Guide, Part 2", July 2008. 193 */ 194 #define __PMC_EV_IAF() \ 195 __PMC_EV(IAF, INSTR_RETIRED_ANY) \ 196 __PMC_EV(IAF, CPU_CLK_UNHALTED_CORE) \ 197 __PMC_EV(IAF, CPU_CLK_UNHALTED_REF) 198 199 #define PMC_EV_IAF_FIRST PMC_EV_IAF_INSTR_RETIRED_ANY 200 #define PMC_EV_IAF_LAST PMC_EV_IAF_CPU_CLK_UNHALTED_REF 201 202 #define __PMC_EV_ALIAS_IAF() \ 203 __PMC_EV_ALIAS("instruction-retired", IAF_INSTR_RETIRED_ANY) \ 204 __PMC_EV_ALIAS("unhalted-core-cycles", IAF_CPU_CLK_UNHALTED_CORE) \ 205 __PMC_EV_ALIAS("unhalted-reference-cycles", IAF_CPU_CLK_UNHALTED_REF) 206 207 /* 208 * ARMv7 Events 209 */ 210 211 #define __PMC_EV_ARMV7() \ 212 __PMC_EV(ARMV7, EVENT_00H) \ 213 __PMC_EV(ARMV7, EVENT_01H) \ 214 __PMC_EV(ARMV7, EVENT_02H) \ 215 __PMC_EV(ARMV7, EVENT_03H) \ 216 __PMC_EV(ARMV7, EVENT_04H) \ 217 __PMC_EV(ARMV7, EVENT_05H) \ 218 __PMC_EV(ARMV7, EVENT_06H) \ 219 __PMC_EV(ARMV7, EVENT_07H) \ 220 __PMC_EV(ARMV7, EVENT_08H) \ 221 __PMC_EV(ARMV7, EVENT_09H) \ 222 __PMC_EV(ARMV7, EVENT_0AH) \ 223 __PMC_EV(ARMV7, EVENT_0BH) \ 224 __PMC_EV(ARMV7, EVENT_0CH) \ 225 __PMC_EV(ARMV7, EVENT_0DH) \ 226 __PMC_EV(ARMV7, EVENT_0EH) \ 227 __PMC_EV(ARMV7, EVENT_0FH) \ 228 __PMC_EV(ARMV7, EVENT_10H) \ 229 __PMC_EV(ARMV7, EVENT_11H) \ 230 __PMC_EV(ARMV7, EVENT_12H) \ 231 __PMC_EV(ARMV7, EVENT_13H) \ 232 __PMC_EV(ARMV7, EVENT_14H) \ 233 __PMC_EV(ARMV7, EVENT_15H) \ 234 __PMC_EV(ARMV7, EVENT_16H) \ 235 __PMC_EV(ARMV7, EVENT_17H) \ 236 __PMC_EV(ARMV7, EVENT_18H) \ 237 __PMC_EV(ARMV7, EVENT_19H) \ 238 __PMC_EV(ARMV7, EVENT_1AH) \ 239 __PMC_EV(ARMV7, EVENT_1BH) \ 240 __PMC_EV(ARMV7, EVENT_1CH) \ 241 __PMC_EV(ARMV7, EVENT_1DH) \ 242 __PMC_EV(ARMV7, EVENT_1EH) \ 243 __PMC_EV(ARMV7, EVENT_1FH) \ 244 __PMC_EV(ARMV7, EVENT_20H) \ 245 __PMC_EV(ARMV7, EVENT_21H) \ 246 __PMC_EV(ARMV7, EVENT_22H) \ 247 __PMC_EV(ARMV7, EVENT_23H) \ 248 __PMC_EV(ARMV7, EVENT_24H) \ 249 __PMC_EV(ARMV7, EVENT_25H) \ 250 __PMC_EV(ARMV7, EVENT_26H) \ 251 __PMC_EV(ARMV7, EVENT_27H) \ 252 __PMC_EV(ARMV7, EVENT_28H) \ 253 __PMC_EV(ARMV7, EVENT_29H) \ 254 __PMC_EV(ARMV7, EVENT_2AH) \ 255 __PMC_EV(ARMV7, EVENT_2BH) \ 256 __PMC_EV(ARMV7, EVENT_2CH) \ 257 __PMC_EV(ARMV7, EVENT_2DH) \ 258 __PMC_EV(ARMV7, EVENT_2EH) \ 259 __PMC_EV(ARMV7, EVENT_2FH) \ 260 __PMC_EV(ARMV7, EVENT_30H) \ 261 __PMC_EV(ARMV7, EVENT_31H) \ 262 __PMC_EV(ARMV7, EVENT_32H) \ 263 __PMC_EV(ARMV7, EVENT_33H) \ 264 __PMC_EV(ARMV7, EVENT_34H) \ 265 __PMC_EV(ARMV7, EVENT_35H) \ 266 __PMC_EV(ARMV7, EVENT_36H) \ 267 __PMC_EV(ARMV7, EVENT_37H) \ 268 __PMC_EV(ARMV7, EVENT_38H) \ 269 __PMC_EV(ARMV7, EVENT_39H) \ 270 __PMC_EV(ARMV7, EVENT_3AH) \ 271 __PMC_EV(ARMV7, EVENT_3BH) \ 272 __PMC_EV(ARMV7, EVENT_3CH) \ 273 __PMC_EV(ARMV7, EVENT_3DH) \ 274 __PMC_EV(ARMV7, EVENT_3EH) \ 275 __PMC_EV(ARMV7, EVENT_3FH) \ 276 __PMC_EV(ARMV7, EVENT_40H) \ 277 __PMC_EV(ARMV7, EVENT_41H) \ 278 __PMC_EV(ARMV7, EVENT_42H) \ 279 __PMC_EV(ARMV7, EVENT_43H) \ 280 __PMC_EV(ARMV7, EVENT_44H) \ 281 __PMC_EV(ARMV7, EVENT_45H) \ 282 __PMC_EV(ARMV7, EVENT_46H) \ 283 __PMC_EV(ARMV7, EVENT_47H) \ 284 __PMC_EV(ARMV7, EVENT_48H) \ 285 __PMC_EV(ARMV7, EVENT_49H) \ 286 __PMC_EV(ARMV7, EVENT_4AH) \ 287 __PMC_EV(ARMV7, EVENT_4BH) \ 288 __PMC_EV(ARMV7, EVENT_4CH) \ 289 __PMC_EV(ARMV7, EVENT_4DH) \ 290 __PMC_EV(ARMV7, EVENT_4EH) \ 291 __PMC_EV(ARMV7, EVENT_4FH) \ 292 __PMC_EV(ARMV7, EVENT_50H) \ 293 __PMC_EV(ARMV7, EVENT_51H) \ 294 __PMC_EV(ARMV7, EVENT_52H) \ 295 __PMC_EV(ARMV7, EVENT_53H) \ 296 __PMC_EV(ARMV7, EVENT_54H) \ 297 __PMC_EV(ARMV7, EVENT_55H) \ 298 __PMC_EV(ARMV7, EVENT_56H) \ 299 __PMC_EV(ARMV7, EVENT_57H) \ 300 __PMC_EV(ARMV7, EVENT_58H) \ 301 __PMC_EV(ARMV7, EVENT_59H) \ 302 __PMC_EV(ARMV7, EVENT_5AH) \ 303 __PMC_EV(ARMV7, EVENT_5BH) \ 304 __PMC_EV(ARMV7, EVENT_5CH) \ 305 __PMC_EV(ARMV7, EVENT_5DH) \ 306 __PMC_EV(ARMV7, EVENT_5EH) \ 307 __PMC_EV(ARMV7, EVENT_5FH) \ 308 __PMC_EV(ARMV7, EVENT_60H) \ 309 __PMC_EV(ARMV7, EVENT_61H) \ 310 __PMC_EV(ARMV7, EVENT_62H) \ 311 __PMC_EV(ARMV7, EVENT_63H) \ 312 __PMC_EV(ARMV7, EVENT_64H) \ 313 __PMC_EV(ARMV7, EVENT_65H) \ 314 __PMC_EV(ARMV7, EVENT_66H) \ 315 __PMC_EV(ARMV7, EVENT_67H) \ 316 __PMC_EV(ARMV7, EVENT_68H) \ 317 __PMC_EV(ARMV7, EVENT_69H) \ 318 __PMC_EV(ARMV7, EVENT_6AH) \ 319 __PMC_EV(ARMV7, EVENT_6BH) \ 320 __PMC_EV(ARMV7, EVENT_6CH) \ 321 __PMC_EV(ARMV7, EVENT_6DH) \ 322 __PMC_EV(ARMV7, EVENT_6EH) \ 323 __PMC_EV(ARMV7, EVENT_6FH) \ 324 __PMC_EV(ARMV7, EVENT_70H) \ 325 __PMC_EV(ARMV7, EVENT_71H) \ 326 __PMC_EV(ARMV7, EVENT_72H) \ 327 __PMC_EV(ARMV7, EVENT_73H) \ 328 __PMC_EV(ARMV7, EVENT_74H) \ 329 __PMC_EV(ARMV7, EVENT_75H) \ 330 __PMC_EV(ARMV7, EVENT_76H) \ 331 __PMC_EV(ARMV7, EVENT_77H) \ 332 __PMC_EV(ARMV7, EVENT_78H) \ 333 __PMC_EV(ARMV7, EVENT_79H) \ 334 __PMC_EV(ARMV7, EVENT_7AH) \ 335 __PMC_EV(ARMV7, EVENT_7BH) \ 336 __PMC_EV(ARMV7, EVENT_7CH) \ 337 __PMC_EV(ARMV7, EVENT_7DH) \ 338 __PMC_EV(ARMV7, EVENT_7EH) \ 339 __PMC_EV(ARMV7, EVENT_7FH) \ 340 __PMC_EV(ARMV7, EVENT_80H) \ 341 __PMC_EV(ARMV7, EVENT_81H) \ 342 __PMC_EV(ARMV7, EVENT_82H) \ 343 __PMC_EV(ARMV7, EVENT_83H) \ 344 __PMC_EV(ARMV7, EVENT_84H) \ 345 __PMC_EV(ARMV7, EVENT_85H) \ 346 __PMC_EV(ARMV7, EVENT_86H) \ 347 __PMC_EV(ARMV7, EVENT_87H) \ 348 __PMC_EV(ARMV7, EVENT_88H) \ 349 __PMC_EV(ARMV7, EVENT_89H) \ 350 __PMC_EV(ARMV7, EVENT_8AH) \ 351 __PMC_EV(ARMV7, EVENT_8BH) \ 352 __PMC_EV(ARMV7, EVENT_8CH) \ 353 __PMC_EV(ARMV7, EVENT_8DH) \ 354 __PMC_EV(ARMV7, EVENT_8EH) \ 355 __PMC_EV(ARMV7, EVENT_8FH) \ 356 __PMC_EV(ARMV7, EVENT_90H) \ 357 __PMC_EV(ARMV7, EVENT_91H) \ 358 __PMC_EV(ARMV7, EVENT_92H) \ 359 __PMC_EV(ARMV7, EVENT_93H) \ 360 __PMC_EV(ARMV7, EVENT_94H) \ 361 __PMC_EV(ARMV7, EVENT_95H) \ 362 __PMC_EV(ARMV7, EVENT_96H) \ 363 __PMC_EV(ARMV7, EVENT_97H) \ 364 __PMC_EV(ARMV7, EVENT_98H) \ 365 __PMC_EV(ARMV7, EVENT_99H) \ 366 __PMC_EV(ARMV7, EVENT_9AH) \ 367 __PMC_EV(ARMV7, EVENT_9BH) \ 368 __PMC_EV(ARMV7, EVENT_9CH) \ 369 __PMC_EV(ARMV7, EVENT_9DH) \ 370 __PMC_EV(ARMV7, EVENT_9EH) \ 371 __PMC_EV(ARMV7, EVENT_9FH) \ 372 __PMC_EV(ARMV7, EVENT_A0H) \ 373 __PMC_EV(ARMV7, EVENT_A1H) \ 374 __PMC_EV(ARMV7, EVENT_A2H) \ 375 __PMC_EV(ARMV7, EVENT_A3H) \ 376 __PMC_EV(ARMV7, EVENT_A4H) \ 377 __PMC_EV(ARMV7, EVENT_A5H) \ 378 __PMC_EV(ARMV7, EVENT_A6H) \ 379 __PMC_EV(ARMV7, EVENT_A7H) \ 380 __PMC_EV(ARMV7, EVENT_A8H) \ 381 __PMC_EV(ARMV7, EVENT_A9H) \ 382 __PMC_EV(ARMV7, EVENT_AAH) \ 383 __PMC_EV(ARMV7, EVENT_ABH) \ 384 __PMC_EV(ARMV7, EVENT_ACH) \ 385 __PMC_EV(ARMV7, EVENT_ADH) \ 386 __PMC_EV(ARMV7, EVENT_AEH) \ 387 __PMC_EV(ARMV7, EVENT_AFH) \ 388 __PMC_EV(ARMV7, EVENT_B0H) \ 389 __PMC_EV(ARMV7, EVENT_B1H) \ 390 __PMC_EV(ARMV7, EVENT_B2H) \ 391 __PMC_EV(ARMV7, EVENT_B3H) \ 392 __PMC_EV(ARMV7, EVENT_B4H) \ 393 __PMC_EV(ARMV7, EVENT_B5H) \ 394 __PMC_EV(ARMV7, EVENT_B6H) \ 395 __PMC_EV(ARMV7, EVENT_B7H) \ 396 __PMC_EV(ARMV7, EVENT_B8H) \ 397 __PMC_EV(ARMV7, EVENT_B9H) \ 398 __PMC_EV(ARMV7, EVENT_BAH) \ 399 __PMC_EV(ARMV7, EVENT_BBH) \ 400 __PMC_EV(ARMV7, EVENT_BCH) \ 401 __PMC_EV(ARMV7, EVENT_BDH) \ 402 __PMC_EV(ARMV7, EVENT_BEH) \ 403 __PMC_EV(ARMV7, EVENT_BFH) \ 404 __PMC_EV(ARMV7, EVENT_C0H) \ 405 __PMC_EV(ARMV7, EVENT_C1H) \ 406 __PMC_EV(ARMV7, EVENT_C2H) \ 407 __PMC_EV(ARMV7, EVENT_C3H) \ 408 __PMC_EV(ARMV7, EVENT_C4H) \ 409 __PMC_EV(ARMV7, EVENT_C5H) \ 410 __PMC_EV(ARMV7, EVENT_C6H) \ 411 __PMC_EV(ARMV7, EVENT_C7H) \ 412 __PMC_EV(ARMV7, EVENT_C8H) \ 413 __PMC_EV(ARMV7, EVENT_C9H) \ 414 __PMC_EV(ARMV7, EVENT_CAH) \ 415 __PMC_EV(ARMV7, EVENT_CBH) \ 416 __PMC_EV(ARMV7, EVENT_CCH) \ 417 __PMC_EV(ARMV7, EVENT_CDH) \ 418 __PMC_EV(ARMV7, EVENT_CEH) \ 419 __PMC_EV(ARMV7, EVENT_CFH) \ 420 __PMC_EV(ARMV7, EVENT_D0H) \ 421 __PMC_EV(ARMV7, EVENT_D1H) \ 422 __PMC_EV(ARMV7, EVENT_D2H) \ 423 __PMC_EV(ARMV7, EVENT_D3H) \ 424 __PMC_EV(ARMV7, EVENT_D4H) \ 425 __PMC_EV(ARMV7, EVENT_D5H) \ 426 __PMC_EV(ARMV7, EVENT_D6H) \ 427 __PMC_EV(ARMV7, EVENT_D7H) \ 428 __PMC_EV(ARMV7, EVENT_D8H) \ 429 __PMC_EV(ARMV7, EVENT_D9H) \ 430 __PMC_EV(ARMV7, EVENT_DAH) \ 431 __PMC_EV(ARMV7, EVENT_DBH) \ 432 __PMC_EV(ARMV7, EVENT_DCH) \ 433 __PMC_EV(ARMV7, EVENT_DDH) \ 434 __PMC_EV(ARMV7, EVENT_DEH) \ 435 __PMC_EV(ARMV7, EVENT_DFH) \ 436 __PMC_EV(ARMV7, EVENT_E0H) \ 437 __PMC_EV(ARMV7, EVENT_E1H) \ 438 __PMC_EV(ARMV7, EVENT_E2H) \ 439 __PMC_EV(ARMV7, EVENT_E3H) \ 440 __PMC_EV(ARMV7, EVENT_E4H) \ 441 __PMC_EV(ARMV7, EVENT_E5H) \ 442 __PMC_EV(ARMV7, EVENT_E6H) \ 443 __PMC_EV(ARMV7, EVENT_E7H) \ 444 __PMC_EV(ARMV7, EVENT_E8H) \ 445 __PMC_EV(ARMV7, EVENT_E9H) \ 446 __PMC_EV(ARMV7, EVENT_EAH) \ 447 __PMC_EV(ARMV7, EVENT_EBH) \ 448 __PMC_EV(ARMV7, EVENT_ECH) \ 449 __PMC_EV(ARMV7, EVENT_EDH) \ 450 __PMC_EV(ARMV7, EVENT_EEH) \ 451 __PMC_EV(ARMV7, EVENT_EFH) \ 452 __PMC_EV(ARMV7, EVENT_F0H) \ 453 __PMC_EV(ARMV7, EVENT_F1H) \ 454 __PMC_EV(ARMV7, EVENT_F2H) \ 455 __PMC_EV(ARMV7, EVENT_F3H) \ 456 __PMC_EV(ARMV7, EVENT_F4H) \ 457 __PMC_EV(ARMV7, EVENT_F5H) \ 458 __PMC_EV(ARMV7, EVENT_F6H) \ 459 __PMC_EV(ARMV7, EVENT_F7H) \ 460 __PMC_EV(ARMV7, EVENT_F8H) \ 461 __PMC_EV(ARMV7, EVENT_F9H) \ 462 __PMC_EV(ARMV7, EVENT_FAH) \ 463 __PMC_EV(ARMV7, EVENT_FBH) \ 464 __PMC_EV(ARMV7, EVENT_FCH) \ 465 __PMC_EV(ARMV7, EVENT_FDH) \ 466 __PMC_EV(ARMV7, EVENT_FEH) \ 467 __PMC_EV(ARMV7, EVENT_FFH) 468 469 #define PMC_EV_ARMV7_FIRST PMC_EV_ARMV7_EVENT_00H 470 #define PMC_EV_ARMV7_LAST PMC_EV_ARMV7_EVENT_FFH 471 472 #define __PMC_EV_ALIAS_ARMV7_COMMON() \ 473 __PMC_EV_ALIAS("PMNC_SW_INCR", ARMV7_EVENT_00H) \ 474 __PMC_EV_ALIAS("L1_ICACHE_REFILL", ARMV7_EVENT_01H) \ 475 __PMC_EV_ALIAS("ITLB_REFILL", ARMV7_EVENT_02H) \ 476 __PMC_EV_ALIAS("L1_DCACHE_REFILL", ARMV7_EVENT_03H) \ 477 __PMC_EV_ALIAS("L1_DCACHE_ACCESS", ARMV7_EVENT_04H) \ 478 __PMC_EV_ALIAS("DTLB_REFILL", ARMV7_EVENT_05H) \ 479 __PMC_EV_ALIAS("MEM_READ", ARMV7_EVENT_06H) \ 480 __PMC_EV_ALIAS("MEM_WRITE", ARMV7_EVENT_07H) \ 481 __PMC_EV_ALIAS("EXC_TAKEN", ARMV7_EVENT_09H) \ 482 __PMC_EV_ALIAS("EXC_EXECUTED", ARMV7_EVENT_0AH) \ 483 __PMC_EV_ALIAS("CID_WRITE", ARMV7_EVENT_0BH) \ 484 __PMC_EV_ALIAS("PC_WRITE", ARMV7_EVENT_0CH) \ 485 __PMC_EV_ALIAS("PC_IMM_BRANCH", ARMV7_EVENT_0DH) \ 486 __PMC_EV_ALIAS("MEM_UNALIGNED_ACCESS", ARMV7_EVENT_0FH) \ 487 __PMC_EV_ALIAS("PC_BRANCH_MIS_PRED", ARMV7_EVENT_10H) \ 488 __PMC_EV_ALIAS("CLOCK_CYCLES", ARMV7_EVENT_11H) \ 489 __PMC_EV_ALIAS("PC_BRANCH_PRED", ARMV7_EVENT_12H) 490 491 #define __PMC_EV_ALIAS_ARMV7_COMMON_A8() \ 492 __PMC_EV_ALIAS_ARMV7_COMMON() \ 493 __PMC_EV_ALIAS("INSTR_EXECUTED", ARMV7_EVENT_08H) \ 494 __PMC_EV_ALIAS("PC_PROC_RETURN", ARMV7_EVENT_0EH) \ 495 __PMC_EV_ALIAS("MEM_ACCESS", ARMV7_EVENT_13H) \ 496 __PMC_EV_ALIAS("L1_ICACHE_ACCESS", ARMV7_EVENT_14H) \ 497 __PMC_EV_ALIAS("L1_DCACHE_WB", ARMV7_EVENT_15H) \ 498 __PMC_EV_ALIAS("L2_CACHE_ACCESS", ARMV7_EVENT_16H) \ 499 __PMC_EV_ALIAS("L2_CACHE_REFILL", ARMV7_EVENT_17H) \ 500 __PMC_EV_ALIAS("L2_CACHE_WB", ARMV7_EVENT_18H) \ 501 __PMC_EV_ALIAS("BUS_ACCESS", ARMV7_EVENT_19H) \ 502 __PMC_EV_ALIAS("MEM_ERROR", ARMV7_EVENT_1AH) \ 503 __PMC_EV_ALIAS("INSTR_SPEC", ARMV7_EVENT_1BH) \ 504 __PMC_EV_ALIAS("TTBR_WRITE", ARMV7_EVENT_1CH) \ 505 __PMC_EV_ALIAS("BUS_CYCLES", ARMV7_EVENT_1DH) \ 506 __PMC_EV_ALIAS("CPU_CYCLES", ARMV7_EVENT_FFH) 507 508 #define __PMC_EV_ALIAS_ARMV7_CORTEX_A8() \ 509 __PMC_EV_ALIAS_ARMV7_COMMON_A8() \ 510 __PMC_EV_ALIAS("WRITE_BUF_FULL", ARMV7_EVENT_40H) \ 511 __PMC_EV_ALIAS("L2_STORE_MERGED", ARMV7_EVENT_41H) \ 512 __PMC_EV_ALIAS("L2_STORE_BUFFERABLE", ARMV7_EVENT_42H) \ 513 __PMC_EV_ALIAS("L2_ACCESS", ARMV7_EVENT_43H) \ 514 __PMC_EV_ALIAS("L2_CACHE_MISS", ARMV7_EVENT_44H) \ 515 __PMC_EV_ALIAS("AXI_READ", ARMV7_EVENT_45H) \ 516 __PMC_EV_ALIAS("AXI_WRITE", ARMV7_EVENT_46H) \ 517 __PMC_EV_ALIAS("MEM_REPLAY_EVT", ARMV7_EVENT_47H) \ 518 __PMC_EV_ALIAS("MEM_UNALIGNED_ACCESS_REPLAY", ARMV7_EVENT_48H) \ 519 __PMC_EV_ALIAS("L1_DCACHE_HASH_MISS", ARMV7_EVENT_49H) \ 520 __PMC_EV_ALIAS("L1_ICACHE_HASH_MISS", ARMV7_EVENT_4AH) \ 521 __PMC_EV_ALIAS("L1_CACHE_PAGECOL_ALIAS", ARMV7_EVENT_4BH) \ 522 __PMC_EV_ALIAS("L1_DCACHE_NEON_ACCESS", ARMV7_EVENT_4CH) \ 523 __PMC_EV_ALIAS("L1_DCACHE_NEON_CACHEABLE", ARMV7_EVENT_4DH) \ 524 __PMC_EV_ALIAS("L2_CACHE_NEON_MEM_ACCESS", ARMV7_EVENT_4EH) \ 525 __PMC_EV_ALIAS("L2_CACHE_NEON_HIT", ARMV7_EVENT_4FH) \ 526 __PMC_EV_ALIAS("L1_CACHE_ACCESS_NOCP15", ARMV7_EVENT_50H) \ 527 __PMC_EV_ALIAS("RET_STACK_MISPREDICT", ARMV7_EVENT_51H) \ 528 __PMC_EV_ALIAS("BRANCH_DIR_MISPREDICT", ARMV7_EVENT_52H) \ 529 __PMC_EV_ALIAS("PRED_BRANCH_PRED_TAKEN", ARMV7_EVENT_53H) \ 530 __PMC_EV_ALIAS("PRED_BRANCH_EXEC_TAKEN", ARMV7_EVENT_54H) \ 531 __PMC_EV_ALIAS("OPS_ISSUED", ARMV7_EVENT_55H) \ 532 __PMC_EV_ALIAS("CYCLES_NO_INSTRUCTION", ARMV7_EVENT_56H) \ 533 __PMC_EV_ALIAS("INSTRUCTIONS_ISSUED_CYCLE", ARMV7_EVENT_57H) \ 534 __PMC_EV_ALIAS("CYCLES_STALLED_NEON_MRC", ARMV7_EVENT_58H) \ 535 __PMC_EV_ALIAS("CYCLES_STALLED_NEON_FULLQ", ARMV7_EVENT_59H) \ 536 __PMC_EV_ALIAS("CYCLES_NONIDLE_NEON_INT", ARMV7_EVENT_5AH) \ 537 __PMC_EV_ALIAS("PMUEXTIN0_EVT", ARMV7_EVENT_70H) \ 538 __PMC_EV_ALIAS("PMUEXTIN1_EVT", ARMV7_EVENT_71H) \ 539 __PMC_EV_ALIAS("PMUEXTIN_EVT", ARMV7_EVENT_72H) 540 #define PMC_EV_ARMV7_CORTEX_A8_FIRST PMC_EV_ARMV7_PMNC_SW_INCR 541 #define PMC_EV_ARMV7_CORTEX_A8_LAST PMC_EV_ARMV7_PMUEXTIN_EVT 542 543 #define __PMC_EV_ALIAS_ARMV7_CORTEX_A9() \ 544 __PMC_EV_ALIAS_ARMV7_COMMON() \ 545 __PMC_EV_ALIAS("JAVA_BYTECODE", ARMV7_EVENT_40H) \ 546 __PMC_EV_ALIAS("SOFTWARE_JAVA_BYTECODE", ARMV7_EVENT_41H) \ 547 __PMC_EV_ALIAS("JAZELLE_BACKWARD_BRANCH", ARMV7_EVENT_42H) \ 548 __PMC_EV_ALIAS("COHERENT_LINEFILL_MISSC", ARMV7_EVENT_50H) \ 549 __PMC_EV_ALIAS("COHERENT_LINEFILL_HITC", ARMV7_EVENT_51H) \ 550 __PMC_EV_ALIAS("INSTR_CACHE_DEPENDENT_STALL", ARMV7_EVENT_60H) \ 551 __PMC_EV_ALIAS("DATA_CACHE_DEPENDENT_STALL", ARMV7_EVENT_61H) \ 552 __PMC_EV_ALIAS("MAIN_TLB_MISS_STALL", ARMV7_EVENT_62H) \ 553 __PMC_EV_ALIAS("STREX_PASSED", ARMV7_EVENT_63H) \ 554 __PMC_EV_ALIAS("STREX_FAILED", ARMV7_EVENT_64H) \ 555 __PMC_EV_ALIAS("DATA_EVICTION", ARMV7_EVENT_65H) \ 556 __PMC_EV_ALIAS("ISSUE_DNOT_DISPATCH_ANY_INSTR", ARMV7_EVENT_66H) \ 557 __PMC_EV_ALIAS("ISSUE_IS_EMPTY", ARMV7_EVENT_67H) \ 558 __PMC_EV_ALIAS("INSTR_RENAMED", ARMV7_EVENT_68H) \ 559 __PMC_EV_ALIAS("PREDICTABLE_FUNCTION_RETURN", ARMV7_EVENT_6EH) \ 560 __PMC_EV_ALIAS("MAIN_EXECUTION_UNIT_PIPE", ARMV7_EVENT_70H) \ 561 __PMC_EV_ALIAS("SECOND_EXECUTION_UNIT_PIPE", ARMV7_EVENT_71H) \ 562 __PMC_EV_ALIAS("LOAD_STORE_PIPE", ARMV7_EVENT_72H) \ 563 __PMC_EV_ALIAS("FLOATING_POINT_INSTR_RENAMED", ARMV7_EVENT_73H) \ 564 __PMC_EV_ALIAS("NEON_INSTRS_RENAMED", ARMV7_EVENT_74H) \ 565 __PMC_EV_ALIAS("PLD_STALL", ARMV7_EVENT_80H) \ 566 __PMC_EV_ALIAS("WRITE_STALL", ARMV7_EVENT_81H) \ 567 __PMC_EV_ALIAS("INSTR_MAIN_TLB_MISS_STALL", ARMV7_EVENT_82H) \ 568 __PMC_EV_ALIAS("DATA_MAIN_TLB_MISS_STALL", ARMV7_EVENT_83H) \ 569 __PMC_EV_ALIAS("INSTR_MICRO_TLB_MISS_STALL", ARMV7_EVENT_84H) \ 570 __PMC_EV_ALIAS("DATA_MICRO_TLB_MISS_STALL", ARMV7_EVENT_85H) \ 571 __PMC_EV_ALIAS("DMB_STALL", ARMV7_EVENT_86H) \ 572 __PMC_EV_ALIAS("INTEGER_CORE_CLOCK_ENABLED", ARMV7_EVENT_8AH) \ 573 __PMC_EV_ALIAS("DATA_ENGINE_CLOCK_ENABLED", ARMV7_EVENT_8BH) \ 574 __PMC_EV_ALIAS("ISB", ARMV7_EVENT_90H) \ 575 __PMC_EV_ALIAS("DSB", ARMV7_EVENT_91H) \ 576 __PMC_EV_ALIAS("DMB", ARMV7_EVENT_92H) \ 577 __PMC_EV_ALIAS("EXTERNAL_INTERRUPT", ARMV7_EVENT_93H) \ 578 __PMC_EV_ALIAS("PLE_CACHE_LINE_REQ_COMPLETED", ARMV7_EVENT_A0H) \ 579 __PMC_EV_ALIAS("PLE_CACHE_LINE_REQ_SKIPPED", ARMV7_EVENT_A1H) \ 580 __PMC_EV_ALIAS("PLE_FIFO_FLUSH", ARMV7_EVENT_A2H) \ 581 __PMC_EV_ALIAS("PLE_REQUEST_COMPLETED", ARMV7_EVENT_A3H) \ 582 __PMC_EV_ALIAS("PLE_FIFO_OVERFLOW", ARMV7_EVENT_A4H) \ 583 __PMC_EV_ALIAS("PLE_REQUEST_PROGRAMMED", ARMV7_EVENT_A5H) 584 585 /* 586 * ARMv8 Events 587 * 588 * NB: ARMv8.1 extends this to a 16-bit encoding, but we only define the 10-bit 589 * event numbers here. 590 */ 591 592 #define __PMC_EV_ARMV8() \ 593 __PMC_EV(ARMV8, EVENT_00H) \ 594 __PMC_EV(ARMV8, EVENT_01H) \ 595 __PMC_EV(ARMV8, EVENT_02H) \ 596 __PMC_EV(ARMV8, EVENT_03H) \ 597 __PMC_EV(ARMV8, EVENT_04H) \ 598 __PMC_EV(ARMV8, EVENT_05H) \ 599 __PMC_EV(ARMV8, EVENT_06H) \ 600 __PMC_EV(ARMV8, EVENT_07H) \ 601 __PMC_EV(ARMV8, EVENT_08H) \ 602 __PMC_EV(ARMV8, EVENT_09H) \ 603 __PMC_EV(ARMV8, EVENT_0AH) \ 604 __PMC_EV(ARMV8, EVENT_0BH) \ 605 __PMC_EV(ARMV8, EVENT_0CH) \ 606 __PMC_EV(ARMV8, EVENT_0DH) \ 607 __PMC_EV(ARMV8, EVENT_0EH) \ 608 __PMC_EV(ARMV8, EVENT_0FH) \ 609 __PMC_EV(ARMV8, EVENT_10H) \ 610 __PMC_EV(ARMV8, EVENT_11H) \ 611 __PMC_EV(ARMV8, EVENT_12H) \ 612 __PMC_EV(ARMV8, EVENT_13H) \ 613 __PMC_EV(ARMV8, EVENT_14H) \ 614 __PMC_EV(ARMV8, EVENT_15H) \ 615 __PMC_EV(ARMV8, EVENT_16H) \ 616 __PMC_EV(ARMV8, EVENT_17H) \ 617 __PMC_EV(ARMV8, EVENT_18H) \ 618 __PMC_EV(ARMV8, EVENT_19H) \ 619 __PMC_EV(ARMV8, EVENT_1AH) \ 620 __PMC_EV(ARMV8, EVENT_1BH) \ 621 __PMC_EV(ARMV8, EVENT_1CH) \ 622 __PMC_EV(ARMV8, EVENT_1DH) \ 623 __PMC_EV(ARMV8, EVENT_1EH) \ 624 __PMC_EV(ARMV8, EVENT_1FH) \ 625 __PMC_EV(ARMV8, EVENT_20H) \ 626 __PMC_EV(ARMV8, EVENT_21H) \ 627 __PMC_EV(ARMV8, EVENT_22H) \ 628 __PMC_EV(ARMV8, EVENT_23H) \ 629 __PMC_EV(ARMV8, EVENT_24H) \ 630 __PMC_EV(ARMV8, EVENT_25H) \ 631 __PMC_EV(ARMV8, EVENT_26H) \ 632 __PMC_EV(ARMV8, EVENT_27H) \ 633 __PMC_EV(ARMV8, EVENT_28H) \ 634 __PMC_EV(ARMV8, EVENT_29H) \ 635 __PMC_EV(ARMV8, EVENT_2AH) \ 636 __PMC_EV(ARMV8, EVENT_2BH) \ 637 __PMC_EV(ARMV8, EVENT_2CH) \ 638 __PMC_EV(ARMV8, EVENT_2DH) \ 639 __PMC_EV(ARMV8, EVENT_2EH) \ 640 __PMC_EV(ARMV8, EVENT_2FH) \ 641 __PMC_EV(ARMV8, EVENT_30H) \ 642 __PMC_EV(ARMV8, EVENT_31H) \ 643 __PMC_EV(ARMV8, EVENT_32H) \ 644 __PMC_EV(ARMV8, EVENT_33H) \ 645 __PMC_EV(ARMV8, EVENT_34H) \ 646 __PMC_EV(ARMV8, EVENT_35H) \ 647 __PMC_EV(ARMV8, EVENT_36H) \ 648 __PMC_EV(ARMV8, EVENT_37H) \ 649 __PMC_EV(ARMV8, EVENT_38H) \ 650 __PMC_EV(ARMV8, EVENT_39H) \ 651 __PMC_EV(ARMV8, EVENT_3AH) \ 652 __PMC_EV(ARMV8, EVENT_3BH) \ 653 __PMC_EV(ARMV8, EVENT_3CH) \ 654 __PMC_EV(ARMV8, EVENT_3DH) \ 655 __PMC_EV(ARMV8, EVENT_3EH) \ 656 __PMC_EV(ARMV8, EVENT_3FH) \ 657 __PMC_EV(ARMV8, EVENT_40H) \ 658 __PMC_EV(ARMV8, EVENT_41H) \ 659 __PMC_EV(ARMV8, EVENT_42H) \ 660 __PMC_EV(ARMV8, EVENT_43H) \ 661 __PMC_EV(ARMV8, EVENT_44H) \ 662 __PMC_EV(ARMV8, EVENT_45H) \ 663 __PMC_EV(ARMV8, EVENT_46H) \ 664 __PMC_EV(ARMV8, EVENT_47H) \ 665 __PMC_EV(ARMV8, EVENT_48H) \ 666 __PMC_EV(ARMV8, EVENT_49H) \ 667 __PMC_EV(ARMV8, EVENT_4AH) \ 668 __PMC_EV(ARMV8, EVENT_4BH) \ 669 __PMC_EV(ARMV8, EVENT_4CH) \ 670 __PMC_EV(ARMV8, EVENT_4DH) \ 671 __PMC_EV(ARMV8, EVENT_4EH) \ 672 __PMC_EV(ARMV8, EVENT_4FH) \ 673 __PMC_EV(ARMV8, EVENT_50H) \ 674 __PMC_EV(ARMV8, EVENT_51H) \ 675 __PMC_EV(ARMV8, EVENT_52H) \ 676 __PMC_EV(ARMV8, EVENT_53H) \ 677 __PMC_EV(ARMV8, EVENT_54H) \ 678 __PMC_EV(ARMV8, EVENT_55H) \ 679 __PMC_EV(ARMV8, EVENT_56H) \ 680 __PMC_EV(ARMV8, EVENT_57H) \ 681 __PMC_EV(ARMV8, EVENT_58H) \ 682 __PMC_EV(ARMV8, EVENT_59H) \ 683 __PMC_EV(ARMV8, EVENT_5AH) \ 684 __PMC_EV(ARMV8, EVENT_5BH) \ 685 __PMC_EV(ARMV8, EVENT_5CH) \ 686 __PMC_EV(ARMV8, EVENT_5DH) \ 687 __PMC_EV(ARMV8, EVENT_5EH) \ 688 __PMC_EV(ARMV8, EVENT_5FH) \ 689 __PMC_EV(ARMV8, EVENT_60H) \ 690 __PMC_EV(ARMV8, EVENT_61H) \ 691 __PMC_EV(ARMV8, EVENT_62H) \ 692 __PMC_EV(ARMV8, EVENT_63H) \ 693 __PMC_EV(ARMV8, EVENT_64H) \ 694 __PMC_EV(ARMV8, EVENT_65H) \ 695 __PMC_EV(ARMV8, EVENT_66H) \ 696 __PMC_EV(ARMV8, EVENT_67H) \ 697 __PMC_EV(ARMV8, EVENT_68H) \ 698 __PMC_EV(ARMV8, EVENT_69H) \ 699 __PMC_EV(ARMV8, EVENT_6AH) \ 700 __PMC_EV(ARMV8, EVENT_6BH) \ 701 __PMC_EV(ARMV8, EVENT_6CH) \ 702 __PMC_EV(ARMV8, EVENT_6DH) \ 703 __PMC_EV(ARMV8, EVENT_6EH) \ 704 __PMC_EV(ARMV8, EVENT_6FH) \ 705 __PMC_EV(ARMV8, EVENT_70H) \ 706 __PMC_EV(ARMV8, EVENT_71H) \ 707 __PMC_EV(ARMV8, EVENT_72H) \ 708 __PMC_EV(ARMV8, EVENT_73H) \ 709 __PMC_EV(ARMV8, EVENT_74H) \ 710 __PMC_EV(ARMV8, EVENT_75H) \ 711 __PMC_EV(ARMV8, EVENT_76H) \ 712 __PMC_EV(ARMV8, EVENT_77H) \ 713 __PMC_EV(ARMV8, EVENT_78H) \ 714 __PMC_EV(ARMV8, EVENT_79H) \ 715 __PMC_EV(ARMV8, EVENT_7AH) \ 716 __PMC_EV(ARMV8, EVENT_7BH) \ 717 __PMC_EV(ARMV8, EVENT_7CH) \ 718 __PMC_EV(ARMV8, EVENT_7DH) \ 719 __PMC_EV(ARMV8, EVENT_7EH) \ 720 __PMC_EV(ARMV8, EVENT_7FH) \ 721 __PMC_EV(ARMV8, EVENT_80H) \ 722 __PMC_EV(ARMV8, EVENT_81H) \ 723 __PMC_EV(ARMV8, EVENT_82H) \ 724 __PMC_EV(ARMV8, EVENT_83H) \ 725 __PMC_EV(ARMV8, EVENT_84H) \ 726 __PMC_EV(ARMV8, EVENT_85H) \ 727 __PMC_EV(ARMV8, EVENT_86H) \ 728 __PMC_EV(ARMV8, EVENT_87H) \ 729 __PMC_EV(ARMV8, EVENT_88H) \ 730 __PMC_EV(ARMV8, EVENT_89H) \ 731 __PMC_EV(ARMV8, EVENT_8AH) \ 732 __PMC_EV(ARMV8, EVENT_8BH) \ 733 __PMC_EV(ARMV8, EVENT_8CH) \ 734 __PMC_EV(ARMV8, EVENT_8DH) \ 735 __PMC_EV(ARMV8, EVENT_8EH) \ 736 __PMC_EV(ARMV8, EVENT_8FH) \ 737 __PMC_EV(ARMV8, EVENT_90H) \ 738 __PMC_EV(ARMV8, EVENT_91H) \ 739 __PMC_EV(ARMV8, EVENT_92H) \ 740 __PMC_EV(ARMV8, EVENT_93H) \ 741 __PMC_EV(ARMV8, EVENT_94H) \ 742 __PMC_EV(ARMV8, EVENT_95H) \ 743 __PMC_EV(ARMV8, EVENT_96H) \ 744 __PMC_EV(ARMV8, EVENT_97H) \ 745 __PMC_EV(ARMV8, EVENT_98H) \ 746 __PMC_EV(ARMV8, EVENT_99H) \ 747 __PMC_EV(ARMV8, EVENT_9AH) \ 748 __PMC_EV(ARMV8, EVENT_9BH) \ 749 __PMC_EV(ARMV8, EVENT_9CH) \ 750 __PMC_EV(ARMV8, EVENT_9DH) \ 751 __PMC_EV(ARMV8, EVENT_9EH) \ 752 __PMC_EV(ARMV8, EVENT_9FH) \ 753 __PMC_EV(ARMV8, EVENT_A0H) \ 754 __PMC_EV(ARMV8, EVENT_A1H) \ 755 __PMC_EV(ARMV8, EVENT_A2H) \ 756 __PMC_EV(ARMV8, EVENT_A3H) \ 757 __PMC_EV(ARMV8, EVENT_A4H) \ 758 __PMC_EV(ARMV8, EVENT_A5H) \ 759 __PMC_EV(ARMV8, EVENT_A6H) \ 760 __PMC_EV(ARMV8, EVENT_A7H) \ 761 __PMC_EV(ARMV8, EVENT_A8H) \ 762 __PMC_EV(ARMV8, EVENT_A9H) \ 763 __PMC_EV(ARMV8, EVENT_AAH) \ 764 __PMC_EV(ARMV8, EVENT_ABH) \ 765 __PMC_EV(ARMV8, EVENT_ACH) \ 766 __PMC_EV(ARMV8, EVENT_ADH) \ 767 __PMC_EV(ARMV8, EVENT_AEH) \ 768 __PMC_EV(ARMV8, EVENT_AFH) \ 769 __PMC_EV(ARMV8, EVENT_B0H) \ 770 __PMC_EV(ARMV8, EVENT_B1H) \ 771 __PMC_EV(ARMV8, EVENT_B2H) \ 772 __PMC_EV(ARMV8, EVENT_B3H) \ 773 __PMC_EV(ARMV8, EVENT_B4H) \ 774 __PMC_EV(ARMV8, EVENT_B5H) \ 775 __PMC_EV(ARMV8, EVENT_B6H) \ 776 __PMC_EV(ARMV8, EVENT_B7H) \ 777 __PMC_EV(ARMV8, EVENT_B8H) \ 778 __PMC_EV(ARMV8, EVENT_B9H) \ 779 __PMC_EV(ARMV8, EVENT_BAH) \ 780 __PMC_EV(ARMV8, EVENT_BBH) \ 781 __PMC_EV(ARMV8, EVENT_BCH) \ 782 __PMC_EV(ARMV8, EVENT_BDH) \ 783 __PMC_EV(ARMV8, EVENT_BEH) \ 784 __PMC_EV(ARMV8, EVENT_BFH) \ 785 __PMC_EV(ARMV8, EVENT_C0H) \ 786 __PMC_EV(ARMV8, EVENT_C1H) \ 787 __PMC_EV(ARMV8, EVENT_C2H) \ 788 __PMC_EV(ARMV8, EVENT_C3H) \ 789 __PMC_EV(ARMV8, EVENT_C4H) \ 790 __PMC_EV(ARMV8, EVENT_C5H) \ 791 __PMC_EV(ARMV8, EVENT_C6H) \ 792 __PMC_EV(ARMV8, EVENT_C7H) \ 793 __PMC_EV(ARMV8, EVENT_C8H) \ 794 __PMC_EV(ARMV8, EVENT_C9H) \ 795 __PMC_EV(ARMV8, EVENT_CAH) \ 796 __PMC_EV(ARMV8, EVENT_CBH) \ 797 __PMC_EV(ARMV8, EVENT_CCH) \ 798 __PMC_EV(ARMV8, EVENT_CDH) \ 799 __PMC_EV(ARMV8, EVENT_CEH) \ 800 __PMC_EV(ARMV8, EVENT_CFH) \ 801 __PMC_EV(ARMV8, EVENT_D0H) \ 802 __PMC_EV(ARMV8, EVENT_D1H) \ 803 __PMC_EV(ARMV8, EVENT_D2H) \ 804 __PMC_EV(ARMV8, EVENT_D3H) \ 805 __PMC_EV(ARMV8, EVENT_D4H) \ 806 __PMC_EV(ARMV8, EVENT_D5H) \ 807 __PMC_EV(ARMV8, EVENT_D6H) \ 808 __PMC_EV(ARMV8, EVENT_D7H) \ 809 __PMC_EV(ARMV8, EVENT_D8H) \ 810 __PMC_EV(ARMV8, EVENT_D9H) \ 811 __PMC_EV(ARMV8, EVENT_DAH) \ 812 __PMC_EV(ARMV8, EVENT_DBH) \ 813 __PMC_EV(ARMV8, EVENT_DCH) \ 814 __PMC_EV(ARMV8, EVENT_DDH) \ 815 __PMC_EV(ARMV8, EVENT_DEH) \ 816 __PMC_EV(ARMV8, EVENT_DFH) \ 817 __PMC_EV(ARMV8, EVENT_E0H) \ 818 __PMC_EV(ARMV8, EVENT_E1H) \ 819 __PMC_EV(ARMV8, EVENT_E2H) \ 820 __PMC_EV(ARMV8, EVENT_E3H) \ 821 __PMC_EV(ARMV8, EVENT_E4H) \ 822 __PMC_EV(ARMV8, EVENT_E5H) \ 823 __PMC_EV(ARMV8, EVENT_E6H) \ 824 __PMC_EV(ARMV8, EVENT_E7H) \ 825 __PMC_EV(ARMV8, EVENT_E8H) \ 826 __PMC_EV(ARMV8, EVENT_E9H) \ 827 __PMC_EV(ARMV8, EVENT_EAH) \ 828 __PMC_EV(ARMV8, EVENT_EBH) \ 829 __PMC_EV(ARMV8, EVENT_ECH) \ 830 __PMC_EV(ARMV8, EVENT_EDH) \ 831 __PMC_EV(ARMV8, EVENT_EEH) \ 832 __PMC_EV(ARMV8, EVENT_EFH) \ 833 __PMC_EV(ARMV8, EVENT_F0H) \ 834 __PMC_EV(ARMV8, EVENT_F1H) \ 835 __PMC_EV(ARMV8, EVENT_F2H) \ 836 __PMC_EV(ARMV8, EVENT_F3H) \ 837 __PMC_EV(ARMV8, EVENT_F4H) \ 838 __PMC_EV(ARMV8, EVENT_F5H) \ 839 __PMC_EV(ARMV8, EVENT_F6H) \ 840 __PMC_EV(ARMV8, EVENT_F7H) \ 841 __PMC_EV(ARMV8, EVENT_F8H) \ 842 __PMC_EV(ARMV8, EVENT_F9H) \ 843 __PMC_EV(ARMV8, EVENT_FAH) \ 844 __PMC_EV(ARMV8, EVENT_FBH) \ 845 __PMC_EV(ARMV8, EVENT_FCH) \ 846 __PMC_EV(ARMV8, EVENT_FDH) \ 847 __PMC_EV(ARMV8, EVENT_FEH) \ 848 __PMC_EV(ARMV8, EVENT_FFH) \ 849 __PMC_EV(ARMV8, EVENT_100H) \ 850 __PMC_EV(ARMV8, EVENT_101H) \ 851 __PMC_EV(ARMV8, EVENT_102H) \ 852 __PMC_EV(ARMV8, EVENT_103H) \ 853 __PMC_EV(ARMV8, EVENT_104H) \ 854 __PMC_EV(ARMV8, EVENT_105H) \ 855 __PMC_EV(ARMV8, EVENT_106H) \ 856 __PMC_EV(ARMV8, EVENT_107H) \ 857 __PMC_EV(ARMV8, EVENT_108H) \ 858 __PMC_EV(ARMV8, EVENT_109H) \ 859 __PMC_EV(ARMV8, EVENT_10AH) \ 860 __PMC_EV(ARMV8, EVENT_10BH) \ 861 __PMC_EV(ARMV8, EVENT_10CH) \ 862 __PMC_EV(ARMV8, EVENT_10DH) \ 863 __PMC_EV(ARMV8, EVENT_10EH) \ 864 __PMC_EV(ARMV8, EVENT_10FH) \ 865 __PMC_EV(ARMV8, EVENT_110H) \ 866 __PMC_EV(ARMV8, EVENT_111H) \ 867 __PMC_EV(ARMV8, EVENT_112H) \ 868 __PMC_EV(ARMV8, EVENT_113H) \ 869 __PMC_EV(ARMV8, EVENT_114H) \ 870 __PMC_EV(ARMV8, EVENT_115H) \ 871 __PMC_EV(ARMV8, EVENT_116H) \ 872 __PMC_EV(ARMV8, EVENT_117H) \ 873 __PMC_EV(ARMV8, EVENT_118H) \ 874 __PMC_EV(ARMV8, EVENT_119H) \ 875 __PMC_EV(ARMV8, EVENT_11AH) \ 876 __PMC_EV(ARMV8, EVENT_11BH) \ 877 __PMC_EV(ARMV8, EVENT_11CH) \ 878 __PMC_EV(ARMV8, EVENT_11DH) \ 879 __PMC_EV(ARMV8, EVENT_11EH) \ 880 __PMC_EV(ARMV8, EVENT_11FH) \ 881 __PMC_EV(ARMV8, EVENT_120H) \ 882 __PMC_EV(ARMV8, EVENT_121H) \ 883 __PMC_EV(ARMV8, EVENT_122H) \ 884 __PMC_EV(ARMV8, EVENT_123H) \ 885 __PMC_EV(ARMV8, EVENT_124H) \ 886 __PMC_EV(ARMV8, EVENT_125H) \ 887 __PMC_EV(ARMV8, EVENT_126H) \ 888 __PMC_EV(ARMV8, EVENT_127H) \ 889 __PMC_EV(ARMV8, EVENT_128H) \ 890 __PMC_EV(ARMV8, EVENT_129H) \ 891 __PMC_EV(ARMV8, EVENT_12AH) \ 892 __PMC_EV(ARMV8, EVENT_12BH) \ 893 __PMC_EV(ARMV8, EVENT_12CH) \ 894 __PMC_EV(ARMV8, EVENT_12DH) \ 895 __PMC_EV(ARMV8, EVENT_12EH) \ 896 __PMC_EV(ARMV8, EVENT_12FH) \ 897 __PMC_EV(ARMV8, EVENT_130H) \ 898 __PMC_EV(ARMV8, EVENT_131H) \ 899 __PMC_EV(ARMV8, EVENT_132H) \ 900 __PMC_EV(ARMV8, EVENT_133H) \ 901 __PMC_EV(ARMV8, EVENT_134H) \ 902 __PMC_EV(ARMV8, EVENT_135H) \ 903 __PMC_EV(ARMV8, EVENT_136H) \ 904 __PMC_EV(ARMV8, EVENT_137H) \ 905 __PMC_EV(ARMV8, EVENT_138H) \ 906 __PMC_EV(ARMV8, EVENT_139H) \ 907 __PMC_EV(ARMV8, EVENT_13AH) \ 908 __PMC_EV(ARMV8, EVENT_13BH) \ 909 __PMC_EV(ARMV8, EVENT_13CH) \ 910 __PMC_EV(ARMV8, EVENT_13DH) \ 911 __PMC_EV(ARMV8, EVENT_13EH) \ 912 __PMC_EV(ARMV8, EVENT_13FH) \ 913 __PMC_EV(ARMV8, EVENT_140H) \ 914 __PMC_EV(ARMV8, EVENT_141H) \ 915 __PMC_EV(ARMV8, EVENT_142H) \ 916 __PMC_EV(ARMV8, EVENT_143H) \ 917 __PMC_EV(ARMV8, EVENT_144H) \ 918 __PMC_EV(ARMV8, EVENT_145H) \ 919 __PMC_EV(ARMV8, EVENT_146H) \ 920 __PMC_EV(ARMV8, EVENT_147H) \ 921 __PMC_EV(ARMV8, EVENT_148H) \ 922 __PMC_EV(ARMV8, EVENT_149H) \ 923 __PMC_EV(ARMV8, EVENT_14AH) \ 924 __PMC_EV(ARMV8, EVENT_14BH) \ 925 __PMC_EV(ARMV8, EVENT_14CH) \ 926 __PMC_EV(ARMV8, EVENT_14DH) \ 927 __PMC_EV(ARMV8, EVENT_14EH) \ 928 __PMC_EV(ARMV8, EVENT_14FH) \ 929 __PMC_EV(ARMV8, EVENT_150H) \ 930 __PMC_EV(ARMV8, EVENT_151H) \ 931 __PMC_EV(ARMV8, EVENT_152H) \ 932 __PMC_EV(ARMV8, EVENT_153H) \ 933 __PMC_EV(ARMV8, EVENT_154H) \ 934 __PMC_EV(ARMV8, EVENT_155H) \ 935 __PMC_EV(ARMV8, EVENT_156H) \ 936 __PMC_EV(ARMV8, EVENT_157H) \ 937 __PMC_EV(ARMV8, EVENT_158H) \ 938 __PMC_EV(ARMV8, EVENT_159H) \ 939 __PMC_EV(ARMV8, EVENT_15AH) \ 940 __PMC_EV(ARMV8, EVENT_15BH) \ 941 __PMC_EV(ARMV8, EVENT_15CH) \ 942 __PMC_EV(ARMV8, EVENT_15DH) \ 943 __PMC_EV(ARMV8, EVENT_15EH) \ 944 __PMC_EV(ARMV8, EVENT_15FH) \ 945 __PMC_EV(ARMV8, EVENT_160H) \ 946 __PMC_EV(ARMV8, EVENT_161H) \ 947 __PMC_EV(ARMV8, EVENT_162H) \ 948 __PMC_EV(ARMV8, EVENT_163H) \ 949 __PMC_EV(ARMV8, EVENT_164H) \ 950 __PMC_EV(ARMV8, EVENT_165H) \ 951 __PMC_EV(ARMV8, EVENT_166H) \ 952 __PMC_EV(ARMV8, EVENT_167H) \ 953 __PMC_EV(ARMV8, EVENT_168H) \ 954 __PMC_EV(ARMV8, EVENT_169H) \ 955 __PMC_EV(ARMV8, EVENT_16AH) \ 956 __PMC_EV(ARMV8, EVENT_16BH) \ 957 __PMC_EV(ARMV8, EVENT_16CH) \ 958 __PMC_EV(ARMV8, EVENT_16DH) \ 959 __PMC_EV(ARMV8, EVENT_16EH) \ 960 __PMC_EV(ARMV8, EVENT_16FH) \ 961 __PMC_EV(ARMV8, EVENT_170H) \ 962 __PMC_EV(ARMV8, EVENT_171H) \ 963 __PMC_EV(ARMV8, EVENT_172H) \ 964 __PMC_EV(ARMV8, EVENT_173H) \ 965 __PMC_EV(ARMV8, EVENT_174H) \ 966 __PMC_EV(ARMV8, EVENT_175H) \ 967 __PMC_EV(ARMV8, EVENT_176H) \ 968 __PMC_EV(ARMV8, EVENT_177H) \ 969 __PMC_EV(ARMV8, EVENT_178H) \ 970 __PMC_EV(ARMV8, EVENT_179H) \ 971 __PMC_EV(ARMV8, EVENT_17AH) \ 972 __PMC_EV(ARMV8, EVENT_17BH) \ 973 __PMC_EV(ARMV8, EVENT_17CH) \ 974 __PMC_EV(ARMV8, EVENT_17DH) \ 975 __PMC_EV(ARMV8, EVENT_17EH) \ 976 __PMC_EV(ARMV8, EVENT_17FH) \ 977 __PMC_EV(ARMV8, EVENT_180H) \ 978 __PMC_EV(ARMV8, EVENT_181H) \ 979 __PMC_EV(ARMV8, EVENT_182H) \ 980 __PMC_EV(ARMV8, EVENT_183H) \ 981 __PMC_EV(ARMV8, EVENT_184H) \ 982 __PMC_EV(ARMV8, EVENT_185H) \ 983 __PMC_EV(ARMV8, EVENT_186H) \ 984 __PMC_EV(ARMV8, EVENT_187H) \ 985 __PMC_EV(ARMV8, EVENT_188H) \ 986 __PMC_EV(ARMV8, EVENT_189H) \ 987 __PMC_EV(ARMV8, EVENT_18AH) \ 988 __PMC_EV(ARMV8, EVENT_18BH) \ 989 __PMC_EV(ARMV8, EVENT_18CH) \ 990 __PMC_EV(ARMV8, EVENT_18DH) \ 991 __PMC_EV(ARMV8, EVENT_18EH) \ 992 __PMC_EV(ARMV8, EVENT_18FH) \ 993 __PMC_EV(ARMV8, EVENT_190H) \ 994 __PMC_EV(ARMV8, EVENT_191H) \ 995 __PMC_EV(ARMV8, EVENT_192H) \ 996 __PMC_EV(ARMV8, EVENT_193H) \ 997 __PMC_EV(ARMV8, EVENT_194H) \ 998 __PMC_EV(ARMV8, EVENT_195H) \ 999 __PMC_EV(ARMV8, EVENT_196H) \ 1000 __PMC_EV(ARMV8, EVENT_197H) \ 1001 __PMC_EV(ARMV8, EVENT_198H) \ 1002 __PMC_EV(ARMV8, EVENT_199H) \ 1003 __PMC_EV(ARMV8, EVENT_19AH) \ 1004 __PMC_EV(ARMV8, EVENT_19BH) \ 1005 __PMC_EV(ARMV8, EVENT_19CH) \ 1006 __PMC_EV(ARMV8, EVENT_19DH) \ 1007 __PMC_EV(ARMV8, EVENT_19EH) \ 1008 __PMC_EV(ARMV8, EVENT_19FH) \ 1009 __PMC_EV(ARMV8, EVENT_1A0H) \ 1010 __PMC_EV(ARMV8, EVENT_1A1H) \ 1011 __PMC_EV(ARMV8, EVENT_1A2H) \ 1012 __PMC_EV(ARMV8, EVENT_1A3H) \ 1013 __PMC_EV(ARMV8, EVENT_1A4H) \ 1014 __PMC_EV(ARMV8, EVENT_1A5H) \ 1015 __PMC_EV(ARMV8, EVENT_1A6H) \ 1016 __PMC_EV(ARMV8, EVENT_1A7H) \ 1017 __PMC_EV(ARMV8, EVENT_1A8H) \ 1018 __PMC_EV(ARMV8, EVENT_1A9H) \ 1019 __PMC_EV(ARMV8, EVENT_1AAH) \ 1020 __PMC_EV(ARMV8, EVENT_1ABH) \ 1021 __PMC_EV(ARMV8, EVENT_1ACH) \ 1022 __PMC_EV(ARMV8, EVENT_1ADH) \ 1023 __PMC_EV(ARMV8, EVENT_1AEH) \ 1024 __PMC_EV(ARMV8, EVENT_1AFH) \ 1025 __PMC_EV(ARMV8, EVENT_1B0H) \ 1026 __PMC_EV(ARMV8, EVENT_1B1H) \ 1027 __PMC_EV(ARMV8, EVENT_1B2H) \ 1028 __PMC_EV(ARMV8, EVENT_1B3H) \ 1029 __PMC_EV(ARMV8, EVENT_1B4H) \ 1030 __PMC_EV(ARMV8, EVENT_1B5H) \ 1031 __PMC_EV(ARMV8, EVENT_1B6H) \ 1032 __PMC_EV(ARMV8, EVENT_1B7H) \ 1033 __PMC_EV(ARMV8, EVENT_1B8H) \ 1034 __PMC_EV(ARMV8, EVENT_1B9H) \ 1035 __PMC_EV(ARMV8, EVENT_1BAH) \ 1036 __PMC_EV(ARMV8, EVENT_1BBH) \ 1037 __PMC_EV(ARMV8, EVENT_1BCH) \ 1038 __PMC_EV(ARMV8, EVENT_1BDH) \ 1039 __PMC_EV(ARMV8, EVENT_1BEH) \ 1040 __PMC_EV(ARMV8, EVENT_1BFH) \ 1041 __PMC_EV(ARMV8, EVENT_1C0H) \ 1042 __PMC_EV(ARMV8, EVENT_1C1H) \ 1043 __PMC_EV(ARMV8, EVENT_1C2H) \ 1044 __PMC_EV(ARMV8, EVENT_1C3H) \ 1045 __PMC_EV(ARMV8, EVENT_1C4H) \ 1046 __PMC_EV(ARMV8, EVENT_1C5H) \ 1047 __PMC_EV(ARMV8, EVENT_1C6H) \ 1048 __PMC_EV(ARMV8, EVENT_1C7H) \ 1049 __PMC_EV(ARMV8, EVENT_1C8H) \ 1050 __PMC_EV(ARMV8, EVENT_1C9H) \ 1051 __PMC_EV(ARMV8, EVENT_1CAH) \ 1052 __PMC_EV(ARMV8, EVENT_1CBH) \ 1053 __PMC_EV(ARMV8, EVENT_1CCH) \ 1054 __PMC_EV(ARMV8, EVENT_1CDH) \ 1055 __PMC_EV(ARMV8, EVENT_1CEH) \ 1056 __PMC_EV(ARMV8, EVENT_1CFH) \ 1057 __PMC_EV(ARMV8, EVENT_1D0H) \ 1058 __PMC_EV(ARMV8, EVENT_1D1H) \ 1059 __PMC_EV(ARMV8, EVENT_1D2H) \ 1060 __PMC_EV(ARMV8, EVENT_1D3H) \ 1061 __PMC_EV(ARMV8, EVENT_1D4H) \ 1062 __PMC_EV(ARMV8, EVENT_1D5H) \ 1063 __PMC_EV(ARMV8, EVENT_1D6H) \ 1064 __PMC_EV(ARMV8, EVENT_1D7H) \ 1065 __PMC_EV(ARMV8, EVENT_1D8H) \ 1066 __PMC_EV(ARMV8, EVENT_1D9H) \ 1067 __PMC_EV(ARMV8, EVENT_1DAH) \ 1068 __PMC_EV(ARMV8, EVENT_1DBH) \ 1069 __PMC_EV(ARMV8, EVENT_1DCH) \ 1070 __PMC_EV(ARMV8, EVENT_1DDH) \ 1071 __PMC_EV(ARMV8, EVENT_1DEH) \ 1072 __PMC_EV(ARMV8, EVENT_1DFH) \ 1073 __PMC_EV(ARMV8, EVENT_1E0H) \ 1074 __PMC_EV(ARMV8, EVENT_1E1H) \ 1075 __PMC_EV(ARMV8, EVENT_1E2H) \ 1076 __PMC_EV(ARMV8, EVENT_1E3H) \ 1077 __PMC_EV(ARMV8, EVENT_1E4H) \ 1078 __PMC_EV(ARMV8, EVENT_1E5H) \ 1079 __PMC_EV(ARMV8, EVENT_1E6H) \ 1080 __PMC_EV(ARMV8, EVENT_1E7H) \ 1081 __PMC_EV(ARMV8, EVENT_1E8H) \ 1082 __PMC_EV(ARMV8, EVENT_1E9H) \ 1083 __PMC_EV(ARMV8, EVENT_1EAH) \ 1084 __PMC_EV(ARMV8, EVENT_1EBH) \ 1085 __PMC_EV(ARMV8, EVENT_1ECH) \ 1086 __PMC_EV(ARMV8, EVENT_1EDH) \ 1087 __PMC_EV(ARMV8, EVENT_1EEH) \ 1088 __PMC_EV(ARMV8, EVENT_1EFH) \ 1089 __PMC_EV(ARMV8, EVENT_1F0H) \ 1090 __PMC_EV(ARMV8, EVENT_1F1H) \ 1091 __PMC_EV(ARMV8, EVENT_1F2H) \ 1092 __PMC_EV(ARMV8, EVENT_1F3H) \ 1093 __PMC_EV(ARMV8, EVENT_1F4H) \ 1094 __PMC_EV(ARMV8, EVENT_1F5H) \ 1095 __PMC_EV(ARMV8, EVENT_1F6H) \ 1096 __PMC_EV(ARMV8, EVENT_1F7H) \ 1097 __PMC_EV(ARMV8, EVENT_1F8H) \ 1098 __PMC_EV(ARMV8, EVENT_1F9H) \ 1099 __PMC_EV(ARMV8, EVENT_1FAH) \ 1100 __PMC_EV(ARMV8, EVENT_1FBH) \ 1101 __PMC_EV(ARMV8, EVENT_1FCH) \ 1102 __PMC_EV(ARMV8, EVENT_1FDH) \ 1103 __PMC_EV(ARMV8, EVENT_1FEH) \ 1104 __PMC_EV(ARMV8, EVENT_1FFH) \ 1105 __PMC_EV(ARMV8, EVENT_200H) \ 1106 __PMC_EV(ARMV8, EVENT_201H) \ 1107 __PMC_EV(ARMV8, EVENT_202H) \ 1108 __PMC_EV(ARMV8, EVENT_203H) \ 1109 __PMC_EV(ARMV8, EVENT_204H) \ 1110 __PMC_EV(ARMV8, EVENT_205H) \ 1111 __PMC_EV(ARMV8, EVENT_206H) \ 1112 __PMC_EV(ARMV8, EVENT_207H) \ 1113 __PMC_EV(ARMV8, EVENT_208H) \ 1114 __PMC_EV(ARMV8, EVENT_209H) \ 1115 __PMC_EV(ARMV8, EVENT_20AH) \ 1116 __PMC_EV(ARMV8, EVENT_20BH) \ 1117 __PMC_EV(ARMV8, EVENT_20CH) \ 1118 __PMC_EV(ARMV8, EVENT_20DH) \ 1119 __PMC_EV(ARMV8, EVENT_20EH) \ 1120 __PMC_EV(ARMV8, EVENT_20FH) \ 1121 __PMC_EV(ARMV8, EVENT_210H) \ 1122 __PMC_EV(ARMV8, EVENT_211H) \ 1123 __PMC_EV(ARMV8, EVENT_212H) \ 1124 __PMC_EV(ARMV8, EVENT_213H) \ 1125 __PMC_EV(ARMV8, EVENT_214H) \ 1126 __PMC_EV(ARMV8, EVENT_215H) \ 1127 __PMC_EV(ARMV8, EVENT_216H) \ 1128 __PMC_EV(ARMV8, EVENT_217H) \ 1129 __PMC_EV(ARMV8, EVENT_218H) \ 1130 __PMC_EV(ARMV8, EVENT_219H) \ 1131 __PMC_EV(ARMV8, EVENT_21AH) \ 1132 __PMC_EV(ARMV8, EVENT_21BH) \ 1133 __PMC_EV(ARMV8, EVENT_21CH) \ 1134 __PMC_EV(ARMV8, EVENT_21DH) \ 1135 __PMC_EV(ARMV8, EVENT_21EH) \ 1136 __PMC_EV(ARMV8, EVENT_21FH) \ 1137 __PMC_EV(ARMV8, EVENT_220H) \ 1138 __PMC_EV(ARMV8, EVENT_221H) \ 1139 __PMC_EV(ARMV8, EVENT_222H) \ 1140 __PMC_EV(ARMV8, EVENT_223H) \ 1141 __PMC_EV(ARMV8, EVENT_224H) \ 1142 __PMC_EV(ARMV8, EVENT_225H) \ 1143 __PMC_EV(ARMV8, EVENT_226H) \ 1144 __PMC_EV(ARMV8, EVENT_227H) \ 1145 __PMC_EV(ARMV8, EVENT_228H) \ 1146 __PMC_EV(ARMV8, EVENT_229H) \ 1147 __PMC_EV(ARMV8, EVENT_22AH) \ 1148 __PMC_EV(ARMV8, EVENT_22BH) \ 1149 __PMC_EV(ARMV8, EVENT_22CH) \ 1150 __PMC_EV(ARMV8, EVENT_22DH) \ 1151 __PMC_EV(ARMV8, EVENT_22EH) \ 1152 __PMC_EV(ARMV8, EVENT_22FH) \ 1153 __PMC_EV(ARMV8, EVENT_230H) \ 1154 __PMC_EV(ARMV8, EVENT_231H) \ 1155 __PMC_EV(ARMV8, EVENT_232H) \ 1156 __PMC_EV(ARMV8, EVENT_233H) \ 1157 __PMC_EV(ARMV8, EVENT_234H) \ 1158 __PMC_EV(ARMV8, EVENT_235H) \ 1159 __PMC_EV(ARMV8, EVENT_236H) \ 1160 __PMC_EV(ARMV8, EVENT_237H) \ 1161 __PMC_EV(ARMV8, EVENT_238H) \ 1162 __PMC_EV(ARMV8, EVENT_239H) \ 1163 __PMC_EV(ARMV8, EVENT_23AH) \ 1164 __PMC_EV(ARMV8, EVENT_23BH) \ 1165 __PMC_EV(ARMV8, EVENT_23CH) \ 1166 __PMC_EV(ARMV8, EVENT_23DH) \ 1167 __PMC_EV(ARMV8, EVENT_23EH) \ 1168 __PMC_EV(ARMV8, EVENT_23FH) \ 1169 __PMC_EV(ARMV8, EVENT_240H) \ 1170 __PMC_EV(ARMV8, EVENT_241H) \ 1171 __PMC_EV(ARMV8, EVENT_242H) \ 1172 __PMC_EV(ARMV8, EVENT_243H) \ 1173 __PMC_EV(ARMV8, EVENT_244H) \ 1174 __PMC_EV(ARMV8, EVENT_245H) \ 1175 __PMC_EV(ARMV8, EVENT_246H) \ 1176 __PMC_EV(ARMV8, EVENT_247H) \ 1177 __PMC_EV(ARMV8, EVENT_248H) \ 1178 __PMC_EV(ARMV8, EVENT_249H) \ 1179 __PMC_EV(ARMV8, EVENT_24AH) \ 1180 __PMC_EV(ARMV8, EVENT_24BH) \ 1181 __PMC_EV(ARMV8, EVENT_24CH) \ 1182 __PMC_EV(ARMV8, EVENT_24DH) \ 1183 __PMC_EV(ARMV8, EVENT_24EH) \ 1184 __PMC_EV(ARMV8, EVENT_24FH) \ 1185 __PMC_EV(ARMV8, EVENT_250H) \ 1186 __PMC_EV(ARMV8, EVENT_251H) \ 1187 __PMC_EV(ARMV8, EVENT_252H) \ 1188 __PMC_EV(ARMV8, EVENT_253H) \ 1189 __PMC_EV(ARMV8, EVENT_254H) \ 1190 __PMC_EV(ARMV8, EVENT_255H) \ 1191 __PMC_EV(ARMV8, EVENT_256H) \ 1192 __PMC_EV(ARMV8, EVENT_257H) \ 1193 __PMC_EV(ARMV8, EVENT_258H) \ 1194 __PMC_EV(ARMV8, EVENT_259H) \ 1195 __PMC_EV(ARMV8, EVENT_25AH) \ 1196 __PMC_EV(ARMV8, EVENT_25BH) \ 1197 __PMC_EV(ARMV8, EVENT_25CH) \ 1198 __PMC_EV(ARMV8, EVENT_25DH) \ 1199 __PMC_EV(ARMV8, EVENT_25EH) \ 1200 __PMC_EV(ARMV8, EVENT_25FH) \ 1201 __PMC_EV(ARMV8, EVENT_260H) \ 1202 __PMC_EV(ARMV8, EVENT_261H) \ 1203 __PMC_EV(ARMV8, EVENT_262H) \ 1204 __PMC_EV(ARMV8, EVENT_263H) \ 1205 __PMC_EV(ARMV8, EVENT_264H) \ 1206 __PMC_EV(ARMV8, EVENT_265H) \ 1207 __PMC_EV(ARMV8, EVENT_266H) \ 1208 __PMC_EV(ARMV8, EVENT_267H) \ 1209 __PMC_EV(ARMV8, EVENT_268H) \ 1210 __PMC_EV(ARMV8, EVENT_269H) \ 1211 __PMC_EV(ARMV8, EVENT_26AH) \ 1212 __PMC_EV(ARMV8, EVENT_26BH) \ 1213 __PMC_EV(ARMV8, EVENT_26CH) \ 1214 __PMC_EV(ARMV8, EVENT_26DH) \ 1215 __PMC_EV(ARMV8, EVENT_26EH) \ 1216 __PMC_EV(ARMV8, EVENT_26FH) \ 1217 __PMC_EV(ARMV8, EVENT_270H) \ 1218 __PMC_EV(ARMV8, EVENT_271H) \ 1219 __PMC_EV(ARMV8, EVENT_272H) \ 1220 __PMC_EV(ARMV8, EVENT_273H) \ 1221 __PMC_EV(ARMV8, EVENT_274H) \ 1222 __PMC_EV(ARMV8, EVENT_275H) \ 1223 __PMC_EV(ARMV8, EVENT_276H) \ 1224 __PMC_EV(ARMV8, EVENT_277H) \ 1225 __PMC_EV(ARMV8, EVENT_278H) \ 1226 __PMC_EV(ARMV8, EVENT_279H) \ 1227 __PMC_EV(ARMV8, EVENT_27AH) \ 1228 __PMC_EV(ARMV8, EVENT_27BH) \ 1229 __PMC_EV(ARMV8, EVENT_27CH) \ 1230 __PMC_EV(ARMV8, EVENT_27DH) \ 1231 __PMC_EV(ARMV8, EVENT_27EH) \ 1232 __PMC_EV(ARMV8, EVENT_27FH) \ 1233 __PMC_EV(ARMV8, EVENT_280H) \ 1234 __PMC_EV(ARMV8, EVENT_281H) \ 1235 __PMC_EV(ARMV8, EVENT_282H) \ 1236 __PMC_EV(ARMV8, EVENT_283H) \ 1237 __PMC_EV(ARMV8, EVENT_284H) \ 1238 __PMC_EV(ARMV8, EVENT_285H) \ 1239 __PMC_EV(ARMV8, EVENT_286H) \ 1240 __PMC_EV(ARMV8, EVENT_287H) \ 1241 __PMC_EV(ARMV8, EVENT_288H) \ 1242 __PMC_EV(ARMV8, EVENT_289H) \ 1243 __PMC_EV(ARMV8, EVENT_28AH) \ 1244 __PMC_EV(ARMV8, EVENT_28BH) \ 1245 __PMC_EV(ARMV8, EVENT_28CH) \ 1246 __PMC_EV(ARMV8, EVENT_28DH) \ 1247 __PMC_EV(ARMV8, EVENT_28EH) \ 1248 __PMC_EV(ARMV8, EVENT_28FH) \ 1249 __PMC_EV(ARMV8, EVENT_290H) \ 1250 __PMC_EV(ARMV8, EVENT_291H) \ 1251 __PMC_EV(ARMV8, EVENT_292H) \ 1252 __PMC_EV(ARMV8, EVENT_293H) \ 1253 __PMC_EV(ARMV8, EVENT_294H) \ 1254 __PMC_EV(ARMV8, EVENT_295H) \ 1255 __PMC_EV(ARMV8, EVENT_296H) \ 1256 __PMC_EV(ARMV8, EVENT_297H) \ 1257 __PMC_EV(ARMV8, EVENT_298H) \ 1258 __PMC_EV(ARMV8, EVENT_299H) \ 1259 __PMC_EV(ARMV8, EVENT_29AH) \ 1260 __PMC_EV(ARMV8, EVENT_29BH) \ 1261 __PMC_EV(ARMV8, EVENT_29CH) \ 1262 __PMC_EV(ARMV8, EVENT_29DH) \ 1263 __PMC_EV(ARMV8, EVENT_29EH) \ 1264 __PMC_EV(ARMV8, EVENT_29FH) \ 1265 __PMC_EV(ARMV8, EVENT_2A0H) \ 1266 __PMC_EV(ARMV8, EVENT_2A1H) \ 1267 __PMC_EV(ARMV8, EVENT_2A2H) \ 1268 __PMC_EV(ARMV8, EVENT_2A3H) \ 1269 __PMC_EV(ARMV8, EVENT_2A4H) \ 1270 __PMC_EV(ARMV8, EVENT_2A5H) \ 1271 __PMC_EV(ARMV8, EVENT_2A6H) \ 1272 __PMC_EV(ARMV8, EVENT_2A7H) \ 1273 __PMC_EV(ARMV8, EVENT_2A8H) \ 1274 __PMC_EV(ARMV8, EVENT_2A9H) \ 1275 __PMC_EV(ARMV8, EVENT_2AAH) \ 1276 __PMC_EV(ARMV8, EVENT_2ABH) \ 1277 __PMC_EV(ARMV8, EVENT_2ACH) \ 1278 __PMC_EV(ARMV8, EVENT_2ADH) \ 1279 __PMC_EV(ARMV8, EVENT_2AEH) \ 1280 __PMC_EV(ARMV8, EVENT_2AFH) \ 1281 __PMC_EV(ARMV8, EVENT_2B0H) \ 1282 __PMC_EV(ARMV8, EVENT_2B1H) \ 1283 __PMC_EV(ARMV8, EVENT_2B2H) \ 1284 __PMC_EV(ARMV8, EVENT_2B3H) \ 1285 __PMC_EV(ARMV8, EVENT_2B4H) \ 1286 __PMC_EV(ARMV8, EVENT_2B5H) \ 1287 __PMC_EV(ARMV8, EVENT_2B6H) \ 1288 __PMC_EV(ARMV8, EVENT_2B7H) \ 1289 __PMC_EV(ARMV8, EVENT_2B8H) \ 1290 __PMC_EV(ARMV8, EVENT_2B9H) \ 1291 __PMC_EV(ARMV8, EVENT_2BAH) \ 1292 __PMC_EV(ARMV8, EVENT_2BBH) \ 1293 __PMC_EV(ARMV8, EVENT_2BCH) \ 1294 __PMC_EV(ARMV8, EVENT_2BDH) \ 1295 __PMC_EV(ARMV8, EVENT_2BEH) \ 1296 __PMC_EV(ARMV8, EVENT_2BFH) \ 1297 __PMC_EV(ARMV8, EVENT_2C0H) \ 1298 __PMC_EV(ARMV8, EVENT_2C1H) \ 1299 __PMC_EV(ARMV8, EVENT_2C2H) \ 1300 __PMC_EV(ARMV8, EVENT_2C3H) \ 1301 __PMC_EV(ARMV8, EVENT_2C4H) \ 1302 __PMC_EV(ARMV8, EVENT_2C5H) \ 1303 __PMC_EV(ARMV8, EVENT_2C6H) \ 1304 __PMC_EV(ARMV8, EVENT_2C7H) \ 1305 __PMC_EV(ARMV8, EVENT_2C8H) \ 1306 __PMC_EV(ARMV8, EVENT_2C9H) \ 1307 __PMC_EV(ARMV8, EVENT_2CAH) \ 1308 __PMC_EV(ARMV8, EVENT_2CBH) \ 1309 __PMC_EV(ARMV8, EVENT_2CCH) \ 1310 __PMC_EV(ARMV8, EVENT_2CDH) \ 1311 __PMC_EV(ARMV8, EVENT_2CEH) \ 1312 __PMC_EV(ARMV8, EVENT_2CFH) \ 1313 __PMC_EV(ARMV8, EVENT_2D0H) \ 1314 __PMC_EV(ARMV8, EVENT_2D1H) \ 1315 __PMC_EV(ARMV8, EVENT_2D2H) \ 1316 __PMC_EV(ARMV8, EVENT_2D3H) \ 1317 __PMC_EV(ARMV8, EVENT_2D4H) \ 1318 __PMC_EV(ARMV8, EVENT_2D5H) \ 1319 __PMC_EV(ARMV8, EVENT_2D6H) \ 1320 __PMC_EV(ARMV8, EVENT_2D7H) \ 1321 __PMC_EV(ARMV8, EVENT_2D8H) \ 1322 __PMC_EV(ARMV8, EVENT_2D9H) \ 1323 __PMC_EV(ARMV8, EVENT_2DAH) \ 1324 __PMC_EV(ARMV8, EVENT_2DBH) \ 1325 __PMC_EV(ARMV8, EVENT_2DCH) \ 1326 __PMC_EV(ARMV8, EVENT_2DDH) \ 1327 __PMC_EV(ARMV8, EVENT_2DEH) \ 1328 __PMC_EV(ARMV8, EVENT_2DFH) \ 1329 __PMC_EV(ARMV8, EVENT_2E0H) \ 1330 __PMC_EV(ARMV8, EVENT_2E1H) \ 1331 __PMC_EV(ARMV8, EVENT_2E2H) \ 1332 __PMC_EV(ARMV8, EVENT_2E3H) \ 1333 __PMC_EV(ARMV8, EVENT_2E4H) \ 1334 __PMC_EV(ARMV8, EVENT_2E5H) \ 1335 __PMC_EV(ARMV8, EVENT_2E6H) \ 1336 __PMC_EV(ARMV8, EVENT_2E7H) \ 1337 __PMC_EV(ARMV8, EVENT_2E8H) \ 1338 __PMC_EV(ARMV8, EVENT_2E9H) \ 1339 __PMC_EV(ARMV8, EVENT_2EAH) \ 1340 __PMC_EV(ARMV8, EVENT_2EBH) \ 1341 __PMC_EV(ARMV8, EVENT_2ECH) \ 1342 __PMC_EV(ARMV8, EVENT_2EDH) \ 1343 __PMC_EV(ARMV8, EVENT_2EEH) \ 1344 __PMC_EV(ARMV8, EVENT_2EFH) \ 1345 __PMC_EV(ARMV8, EVENT_2F0H) \ 1346 __PMC_EV(ARMV8, EVENT_2F1H) \ 1347 __PMC_EV(ARMV8, EVENT_2F2H) \ 1348 __PMC_EV(ARMV8, EVENT_2F3H) \ 1349 __PMC_EV(ARMV8, EVENT_2F4H) \ 1350 __PMC_EV(ARMV8, EVENT_2F5H) \ 1351 __PMC_EV(ARMV8, EVENT_2F6H) \ 1352 __PMC_EV(ARMV8, EVENT_2F7H) \ 1353 __PMC_EV(ARMV8, EVENT_2F8H) \ 1354 __PMC_EV(ARMV8, EVENT_2F9H) \ 1355 __PMC_EV(ARMV8, EVENT_2FAH) \ 1356 __PMC_EV(ARMV8, EVENT_2FBH) \ 1357 __PMC_EV(ARMV8, EVENT_2FCH) \ 1358 __PMC_EV(ARMV8, EVENT_2FDH) \ 1359 __PMC_EV(ARMV8, EVENT_2FEH) \ 1360 __PMC_EV(ARMV8, EVENT_2FFH) \ 1361 __PMC_EV(ARMV8, EVENT_300H) \ 1362 __PMC_EV(ARMV8, EVENT_301H) \ 1363 __PMC_EV(ARMV8, EVENT_302H) \ 1364 __PMC_EV(ARMV8, EVENT_303H) \ 1365 __PMC_EV(ARMV8, EVENT_304H) \ 1366 __PMC_EV(ARMV8, EVENT_305H) \ 1367 __PMC_EV(ARMV8, EVENT_306H) \ 1368 __PMC_EV(ARMV8, EVENT_307H) \ 1369 __PMC_EV(ARMV8, EVENT_308H) \ 1370 __PMC_EV(ARMV8, EVENT_309H) \ 1371 __PMC_EV(ARMV8, EVENT_30AH) \ 1372 __PMC_EV(ARMV8, EVENT_30BH) \ 1373 __PMC_EV(ARMV8, EVENT_30CH) \ 1374 __PMC_EV(ARMV8, EVENT_30DH) \ 1375 __PMC_EV(ARMV8, EVENT_30EH) \ 1376 __PMC_EV(ARMV8, EVENT_30FH) \ 1377 __PMC_EV(ARMV8, EVENT_310H) \ 1378 __PMC_EV(ARMV8, EVENT_311H) \ 1379 __PMC_EV(ARMV8, EVENT_312H) \ 1380 __PMC_EV(ARMV8, EVENT_313H) \ 1381 __PMC_EV(ARMV8, EVENT_314H) \ 1382 __PMC_EV(ARMV8, EVENT_315H) \ 1383 __PMC_EV(ARMV8, EVENT_316H) \ 1384 __PMC_EV(ARMV8, EVENT_317H) \ 1385 __PMC_EV(ARMV8, EVENT_318H) \ 1386 __PMC_EV(ARMV8, EVENT_319H) \ 1387 __PMC_EV(ARMV8, EVENT_31AH) \ 1388 __PMC_EV(ARMV8, EVENT_31BH) \ 1389 __PMC_EV(ARMV8, EVENT_31CH) \ 1390 __PMC_EV(ARMV8, EVENT_31DH) \ 1391 __PMC_EV(ARMV8, EVENT_31EH) \ 1392 __PMC_EV(ARMV8, EVENT_31FH) \ 1393 __PMC_EV(ARMV8, EVENT_320H) \ 1394 __PMC_EV(ARMV8, EVENT_321H) \ 1395 __PMC_EV(ARMV8, EVENT_322H) \ 1396 __PMC_EV(ARMV8, EVENT_323H) \ 1397 __PMC_EV(ARMV8, EVENT_324H) \ 1398 __PMC_EV(ARMV8, EVENT_325H) \ 1399 __PMC_EV(ARMV8, EVENT_326H) \ 1400 __PMC_EV(ARMV8, EVENT_327H) \ 1401 __PMC_EV(ARMV8, EVENT_328H) \ 1402 __PMC_EV(ARMV8, EVENT_329H) \ 1403 __PMC_EV(ARMV8, EVENT_32AH) \ 1404 __PMC_EV(ARMV8, EVENT_32BH) \ 1405 __PMC_EV(ARMV8, EVENT_32CH) \ 1406 __PMC_EV(ARMV8, EVENT_32DH) \ 1407 __PMC_EV(ARMV8, EVENT_32EH) \ 1408 __PMC_EV(ARMV8, EVENT_32FH) \ 1409 __PMC_EV(ARMV8, EVENT_330H) \ 1410 __PMC_EV(ARMV8, EVENT_331H) \ 1411 __PMC_EV(ARMV8, EVENT_332H) \ 1412 __PMC_EV(ARMV8, EVENT_333H) \ 1413 __PMC_EV(ARMV8, EVENT_334H) \ 1414 __PMC_EV(ARMV8, EVENT_335H) \ 1415 __PMC_EV(ARMV8, EVENT_336H) \ 1416 __PMC_EV(ARMV8, EVENT_337H) \ 1417 __PMC_EV(ARMV8, EVENT_338H) \ 1418 __PMC_EV(ARMV8, EVENT_339H) \ 1419 __PMC_EV(ARMV8, EVENT_33AH) \ 1420 __PMC_EV(ARMV8, EVENT_33BH) \ 1421 __PMC_EV(ARMV8, EVENT_33CH) \ 1422 __PMC_EV(ARMV8, EVENT_33DH) \ 1423 __PMC_EV(ARMV8, EVENT_33EH) \ 1424 __PMC_EV(ARMV8, EVENT_33FH) \ 1425 __PMC_EV(ARMV8, EVENT_340H) \ 1426 __PMC_EV(ARMV8, EVENT_341H) \ 1427 __PMC_EV(ARMV8, EVENT_342H) \ 1428 __PMC_EV(ARMV8, EVENT_343H) \ 1429 __PMC_EV(ARMV8, EVENT_344H) \ 1430 __PMC_EV(ARMV8, EVENT_345H) \ 1431 __PMC_EV(ARMV8, EVENT_346H) \ 1432 __PMC_EV(ARMV8, EVENT_347H) \ 1433 __PMC_EV(ARMV8, EVENT_348H) \ 1434 __PMC_EV(ARMV8, EVENT_349H) \ 1435 __PMC_EV(ARMV8, EVENT_34AH) \ 1436 __PMC_EV(ARMV8, EVENT_34BH) \ 1437 __PMC_EV(ARMV8, EVENT_34CH) \ 1438 __PMC_EV(ARMV8, EVENT_34DH) \ 1439 __PMC_EV(ARMV8, EVENT_34EH) \ 1440 __PMC_EV(ARMV8, EVENT_34FH) \ 1441 __PMC_EV(ARMV8, EVENT_350H) \ 1442 __PMC_EV(ARMV8, EVENT_351H) \ 1443 __PMC_EV(ARMV8, EVENT_352H) \ 1444 __PMC_EV(ARMV8, EVENT_353H) \ 1445 __PMC_EV(ARMV8, EVENT_354H) \ 1446 __PMC_EV(ARMV8, EVENT_355H) \ 1447 __PMC_EV(ARMV8, EVENT_356H) \ 1448 __PMC_EV(ARMV8, EVENT_357H) \ 1449 __PMC_EV(ARMV8, EVENT_358H) \ 1450 __PMC_EV(ARMV8, EVENT_359H) \ 1451 __PMC_EV(ARMV8, EVENT_35AH) \ 1452 __PMC_EV(ARMV8, EVENT_35BH) \ 1453 __PMC_EV(ARMV8, EVENT_35CH) \ 1454 __PMC_EV(ARMV8, EVENT_35DH) \ 1455 __PMC_EV(ARMV8, EVENT_35EH) \ 1456 __PMC_EV(ARMV8, EVENT_35FH) \ 1457 __PMC_EV(ARMV8, EVENT_360H) \ 1458 __PMC_EV(ARMV8, EVENT_361H) \ 1459 __PMC_EV(ARMV8, EVENT_362H) \ 1460 __PMC_EV(ARMV8, EVENT_363H) \ 1461 __PMC_EV(ARMV8, EVENT_364H) \ 1462 __PMC_EV(ARMV8, EVENT_365H) \ 1463 __PMC_EV(ARMV8, EVENT_366H) \ 1464 __PMC_EV(ARMV8, EVENT_367H) \ 1465 __PMC_EV(ARMV8, EVENT_368H) \ 1466 __PMC_EV(ARMV8, EVENT_369H) \ 1467 __PMC_EV(ARMV8, EVENT_36AH) \ 1468 __PMC_EV(ARMV8, EVENT_36BH) \ 1469 __PMC_EV(ARMV8, EVENT_36CH) \ 1470 __PMC_EV(ARMV8, EVENT_36DH) \ 1471 __PMC_EV(ARMV8, EVENT_36EH) \ 1472 __PMC_EV(ARMV8, EVENT_36FH) \ 1473 __PMC_EV(ARMV8, EVENT_370H) \ 1474 __PMC_EV(ARMV8, EVENT_371H) \ 1475 __PMC_EV(ARMV8, EVENT_372H) \ 1476 __PMC_EV(ARMV8, EVENT_373H) \ 1477 __PMC_EV(ARMV8, EVENT_374H) \ 1478 __PMC_EV(ARMV8, EVENT_375H) \ 1479 __PMC_EV(ARMV8, EVENT_376H) \ 1480 __PMC_EV(ARMV8, EVENT_377H) \ 1481 __PMC_EV(ARMV8, EVENT_378H) \ 1482 __PMC_EV(ARMV8, EVENT_379H) \ 1483 __PMC_EV(ARMV8, EVENT_37AH) \ 1484 __PMC_EV(ARMV8, EVENT_37BH) \ 1485 __PMC_EV(ARMV8, EVENT_37CH) \ 1486 __PMC_EV(ARMV8, EVENT_37DH) \ 1487 __PMC_EV(ARMV8, EVENT_37EH) \ 1488 __PMC_EV(ARMV8, EVENT_37FH) \ 1489 __PMC_EV(ARMV8, EVENT_380H) \ 1490 __PMC_EV(ARMV8, EVENT_381H) \ 1491 __PMC_EV(ARMV8, EVENT_382H) \ 1492 __PMC_EV(ARMV8, EVENT_383H) \ 1493 __PMC_EV(ARMV8, EVENT_384H) \ 1494 __PMC_EV(ARMV8, EVENT_385H) \ 1495 __PMC_EV(ARMV8, EVENT_386H) \ 1496 __PMC_EV(ARMV8, EVENT_387H) \ 1497 __PMC_EV(ARMV8, EVENT_388H) \ 1498 __PMC_EV(ARMV8, EVENT_389H) \ 1499 __PMC_EV(ARMV8, EVENT_38AH) \ 1500 __PMC_EV(ARMV8, EVENT_38BH) \ 1501 __PMC_EV(ARMV8, EVENT_38CH) \ 1502 __PMC_EV(ARMV8, EVENT_38DH) \ 1503 __PMC_EV(ARMV8, EVENT_38EH) \ 1504 __PMC_EV(ARMV8, EVENT_38FH) \ 1505 __PMC_EV(ARMV8, EVENT_390H) \ 1506 __PMC_EV(ARMV8, EVENT_391H) \ 1507 __PMC_EV(ARMV8, EVENT_392H) \ 1508 __PMC_EV(ARMV8, EVENT_393H) \ 1509 __PMC_EV(ARMV8, EVENT_394H) \ 1510 __PMC_EV(ARMV8, EVENT_395H) \ 1511 __PMC_EV(ARMV8, EVENT_396H) \ 1512 __PMC_EV(ARMV8, EVENT_397H) \ 1513 __PMC_EV(ARMV8, EVENT_398H) \ 1514 __PMC_EV(ARMV8, EVENT_399H) \ 1515 __PMC_EV(ARMV8, EVENT_39AH) \ 1516 __PMC_EV(ARMV8, EVENT_39BH) \ 1517 __PMC_EV(ARMV8, EVENT_39CH) \ 1518 __PMC_EV(ARMV8, EVENT_39DH) \ 1519 __PMC_EV(ARMV8, EVENT_39EH) \ 1520 __PMC_EV(ARMV8, EVENT_39FH) \ 1521 __PMC_EV(ARMV8, EVENT_3A0H) \ 1522 __PMC_EV(ARMV8, EVENT_3A1H) \ 1523 __PMC_EV(ARMV8, EVENT_3A2H) \ 1524 __PMC_EV(ARMV8, EVENT_3A3H) \ 1525 __PMC_EV(ARMV8, EVENT_3A4H) \ 1526 __PMC_EV(ARMV8, EVENT_3A5H) \ 1527 __PMC_EV(ARMV8, EVENT_3A6H) \ 1528 __PMC_EV(ARMV8, EVENT_3A7H) \ 1529 __PMC_EV(ARMV8, EVENT_3A8H) \ 1530 __PMC_EV(ARMV8, EVENT_3A9H) \ 1531 __PMC_EV(ARMV8, EVENT_3AAH) \ 1532 __PMC_EV(ARMV8, EVENT_3ABH) \ 1533 __PMC_EV(ARMV8, EVENT_3ACH) \ 1534 __PMC_EV(ARMV8, EVENT_3ADH) \ 1535 __PMC_EV(ARMV8, EVENT_3AEH) \ 1536 __PMC_EV(ARMV8, EVENT_3AFH) \ 1537 __PMC_EV(ARMV8, EVENT_3B0H) \ 1538 __PMC_EV(ARMV8, EVENT_3B1H) \ 1539 __PMC_EV(ARMV8, EVENT_3B2H) \ 1540 __PMC_EV(ARMV8, EVENT_3B3H) \ 1541 __PMC_EV(ARMV8, EVENT_3B4H) \ 1542 __PMC_EV(ARMV8, EVENT_3B5H) \ 1543 __PMC_EV(ARMV8, EVENT_3B6H) \ 1544 __PMC_EV(ARMV8, EVENT_3B7H) \ 1545 __PMC_EV(ARMV8, EVENT_3B8H) \ 1546 __PMC_EV(ARMV8, EVENT_3B9H) \ 1547 __PMC_EV(ARMV8, EVENT_3BAH) \ 1548 __PMC_EV(ARMV8, EVENT_3BBH) \ 1549 __PMC_EV(ARMV8, EVENT_3BCH) \ 1550 __PMC_EV(ARMV8, EVENT_3BDH) \ 1551 __PMC_EV(ARMV8, EVENT_3BEH) \ 1552 __PMC_EV(ARMV8, EVENT_3BFH) \ 1553 __PMC_EV(ARMV8, EVENT_3C0H) \ 1554 __PMC_EV(ARMV8, EVENT_3C1H) \ 1555 __PMC_EV(ARMV8, EVENT_3C2H) \ 1556 __PMC_EV(ARMV8, EVENT_3C3H) \ 1557 __PMC_EV(ARMV8, EVENT_3C4H) \ 1558 __PMC_EV(ARMV8, EVENT_3C5H) \ 1559 __PMC_EV(ARMV8, EVENT_3C6H) \ 1560 __PMC_EV(ARMV8, EVENT_3C7H) \ 1561 __PMC_EV(ARMV8, EVENT_3C8H) \ 1562 __PMC_EV(ARMV8, EVENT_3C9H) \ 1563 __PMC_EV(ARMV8, EVENT_3CAH) \ 1564 __PMC_EV(ARMV8, EVENT_3CBH) \ 1565 __PMC_EV(ARMV8, EVENT_3CCH) \ 1566 __PMC_EV(ARMV8, EVENT_3CDH) \ 1567 __PMC_EV(ARMV8, EVENT_3CEH) \ 1568 __PMC_EV(ARMV8, EVENT_3CFH) \ 1569 __PMC_EV(ARMV8, EVENT_3D0H) \ 1570 __PMC_EV(ARMV8, EVENT_3D1H) \ 1571 __PMC_EV(ARMV8, EVENT_3D2H) \ 1572 __PMC_EV(ARMV8, EVENT_3D3H) \ 1573 __PMC_EV(ARMV8, EVENT_3D4H) \ 1574 __PMC_EV(ARMV8, EVENT_3D5H) \ 1575 __PMC_EV(ARMV8, EVENT_3D6H) \ 1576 __PMC_EV(ARMV8, EVENT_3D7H) \ 1577 __PMC_EV(ARMV8, EVENT_3D8H) \ 1578 __PMC_EV(ARMV8, EVENT_3D9H) \ 1579 __PMC_EV(ARMV8, EVENT_3DAH) \ 1580 __PMC_EV(ARMV8, EVENT_3DBH) \ 1581 __PMC_EV(ARMV8, EVENT_3DCH) \ 1582 __PMC_EV(ARMV8, EVENT_3DDH) \ 1583 __PMC_EV(ARMV8, EVENT_3DEH) \ 1584 __PMC_EV(ARMV8, EVENT_3DFH) \ 1585 __PMC_EV(ARMV8, EVENT_3E0H) \ 1586 __PMC_EV(ARMV8, EVENT_3E1H) \ 1587 __PMC_EV(ARMV8, EVENT_3E2H) \ 1588 __PMC_EV(ARMV8, EVENT_3E3H) \ 1589 __PMC_EV(ARMV8, EVENT_3E4H) \ 1590 __PMC_EV(ARMV8, EVENT_3E5H) \ 1591 __PMC_EV(ARMV8, EVENT_3E6H) \ 1592 __PMC_EV(ARMV8, EVENT_3E7H) \ 1593 __PMC_EV(ARMV8, EVENT_3E8H) \ 1594 __PMC_EV(ARMV8, EVENT_3E9H) \ 1595 __PMC_EV(ARMV8, EVENT_3EAH) \ 1596 __PMC_EV(ARMV8, EVENT_3EBH) \ 1597 __PMC_EV(ARMV8, EVENT_3ECH) \ 1598 __PMC_EV(ARMV8, EVENT_3EDH) \ 1599 __PMC_EV(ARMV8, EVENT_3EEH) \ 1600 __PMC_EV(ARMV8, EVENT_3EFH) \ 1601 __PMC_EV(ARMV8, EVENT_3F0H) \ 1602 __PMC_EV(ARMV8, EVENT_3F1H) \ 1603 __PMC_EV(ARMV8, EVENT_3F2H) \ 1604 __PMC_EV(ARMV8, EVENT_3F3H) \ 1605 __PMC_EV(ARMV8, EVENT_3F4H) \ 1606 __PMC_EV(ARMV8, EVENT_3F5H) \ 1607 __PMC_EV(ARMV8, EVENT_3F6H) \ 1608 __PMC_EV(ARMV8, EVENT_3F7H) \ 1609 __PMC_EV(ARMV8, EVENT_3F8H) \ 1610 __PMC_EV(ARMV8, EVENT_3F9H) \ 1611 __PMC_EV(ARMV8, EVENT_3FAH) \ 1612 __PMC_EV(ARMV8, EVENT_3FBH) \ 1613 __PMC_EV(ARMV8, EVENT_3FCH) \ 1614 __PMC_EV(ARMV8, EVENT_3FDH) \ 1615 __PMC_EV(ARMV8, EVENT_3FEH) \ 1616 __PMC_EV(ARMV8, EVENT_3FFH) 1617 1618 #define PMC_EV_ARMV8_FIRST PMC_EV_ARMV8_EVENT_00H 1619 #define PMC_EV_ARMV8_LAST PMC_EV_ARMV8_EVENT_3FFH 1620 1621 #define __PMC_EV_ALIAS_ARMV8_COMMON() \ 1622 __PMC_EV_ALIAS("SW_INCR", ARMV8_EVENT_00H) \ 1623 __PMC_EV_ALIAS("L1I_CACHE_REFILL", ARMV8_EVENT_01H) \ 1624 __PMC_EV_ALIAS("L1I_TLB_REFILL", ARMV8_EVENT_02H) \ 1625 __PMC_EV_ALIAS("L1D_CACHE_REFILL", ARMV8_EVENT_03H) \ 1626 __PMC_EV_ALIAS("L1D_CACHE", ARMV8_EVENT_04H) \ 1627 __PMC_EV_ALIAS("L1D_TLB_REFILL", ARMV8_EVENT_05H) \ 1628 __PMC_EV_ALIAS("INST_RETIRED", ARMV8_EVENT_08H) \ 1629 __PMC_EV_ALIAS("EXC_TAKEN", ARMV8_EVENT_09H) \ 1630 __PMC_EV_ALIAS("EXC_RETURN", ARMV8_EVENT_0AH) \ 1631 __PMC_EV_ALIAS("CID_WRITE_RETIRED", ARMV8_EVENT_0BH) \ 1632 __PMC_EV_ALIAS("BR_MIS_PRED", ARMV8_EVENT_10H) \ 1633 __PMC_EV_ALIAS("CPU_CYCLES", ARMV8_EVENT_11H) \ 1634 __PMC_EV_ALIAS("BR_PRED", ARMV8_EVENT_12H) \ 1635 __PMC_EV_ALIAS("MEM_ACCESS", ARMV8_EVENT_13H) \ 1636 __PMC_EV_ALIAS("L1I_CACHE", ARMV8_EVENT_14H) \ 1637 __PMC_EV_ALIAS("L1D_CACHE_WB", ARMV8_EVENT_15H) \ 1638 __PMC_EV_ALIAS("L2D_CACHE", ARMV8_EVENT_16H) \ 1639 __PMC_EV_ALIAS("L2D_CACHE_REFILL", ARMV8_EVENT_17H) \ 1640 __PMC_EV_ALIAS("L2D_CACHE_WB", ARMV8_EVENT_18H) \ 1641 __PMC_EV_ALIAS("BUS_ACCESS", ARMV8_EVENT_19H) \ 1642 __PMC_EV_ALIAS("MEMORY_ERROR", ARMV8_EVENT_1AH) \ 1643 __PMC_EV_ALIAS("BUS_CYCLES", ARMV8_EVENT_1DH) \ 1644 __PMC_EV_ALIAS("CHAIN", ARMV8_EVENT_1EH) \ 1645 __PMC_EV_ALIAS("BUS_ACCESS_LD", ARMV8_EVENT_60H) \ 1646 __PMC_EV_ALIAS("BUS_ACCESS_ST", ARMV8_EVENT_61H) \ 1647 __PMC_EV_ALIAS("BR_INDIRECT_SPEC", ARMV8_EVENT_7AH) \ 1648 __PMC_EV_ALIAS("EXC_IRQ", ARMV8_EVENT_86H) \ 1649 __PMC_EV_ALIAS("EXC_FIQ", ARMV8_EVENT_87H) 1650 1651 #define __PMC_EV_ALIAS_ARMV8_CORTEX_A53() \ 1652 __PMC_EV_ALIAS_ARMV8_COMMON() \ 1653 __PMC_EV_ALIAS("LD_RETIRED", ARMV8_EVENT_06H) \ 1654 __PMC_EV_ALIAS("ST_RETIRED", ARMV8_EVENT_07H) \ 1655 __PMC_EV_ALIAS("PC_WRITE_RETIRED", ARMV8_EVENT_0CH) \ 1656 __PMC_EV_ALIAS("BR_IMMED_RETIRED", ARMV8_EVENT_0DH) \ 1657 __PMC_EV_ALIAS("BR_RETURN_RETIRED", ARMV8_EVENT_0EH) \ 1658 __PMC_EV_ALIAS("UNALIGNED_LDST_RETIRED",ARMV8_EVENT_0FH) 1659 1660 #define __PMC_EV_ALIAS_ARMV8_CORTEX_A57_A76() \ 1661 __PMC_EV_ALIAS_ARMV8_COMMON() \ 1662 __PMC_EV_ALIAS("INST_SPEC", ARMV8_EVENT_1BH) \ 1663 __PMC_EV_ALIAS("TTBR_WRITE_RETIRED", ARMV8_EVENT_1CH) \ 1664 __PMC_EV_ALIAS("L1D_CACHE_LD", ARMV8_EVENT_40H) \ 1665 __PMC_EV_ALIAS("L1D_CACHE_ST", ARMV8_EVENT_41H) \ 1666 __PMC_EV_ALIAS("L1D_CACHE_REFILL_LD", ARMV8_EVENT_42H) \ 1667 __PMC_EV_ALIAS("L1D_CACHE_REFILL_ST", ARMV8_EVENT_43H) \ 1668 __PMC_EV_ALIAS("L1D_CACHE_WB_VICTIM", ARMV8_EVENT_46H) \ 1669 __PMC_EV_ALIAS("L1D_CACHE_WB_CLEAN", ARMV8_EVENT_47H) \ 1670 __PMC_EV_ALIAS("L1D_CACHE_INVAL", ARMV8_EVENT_48H) \ 1671 __PMC_EV_ALIAS("L1D_TLB_REFILL_LD", ARMV8_EVENT_4CH) \ 1672 __PMC_EV_ALIAS("L1D_TLB_REFILL_ST", ARMV8_EVENT_4DH) \ 1673 __PMC_EV_ALIAS("L2D_CACHE_LD", ARMV8_EVENT_50H) \ 1674 __PMC_EV_ALIAS("L2D_CACHE_ST", ARMV8_EVENT_51H) \ 1675 __PMC_EV_ALIAS("L2D_CACHE_REFILL_LD", ARMV8_EVENT_52H) \ 1676 __PMC_EV_ALIAS("L2D_CACHE_REFILL_ST", ARMV8_EVENT_53H) \ 1677 __PMC_EV_ALIAS("L2D_CACHE_WB_VICTIM", ARMV8_EVENT_56H) \ 1678 __PMC_EV_ALIAS("L2D_CACHE_WB_CLEAN", ARMV8_EVENT_57H) \ 1679 __PMC_EV_ALIAS("L2D_CACHE_INVAL", ARMV8_EVENT_58H) \ 1680 __PMC_EV_ALIAS("MEM_ACCESS_LD", ARMV8_EVENT_66H) \ 1681 __PMC_EV_ALIAS("MEM_ACCESS_ST", ARMV8_EVENT_67H) \ 1682 __PMC_EV_ALIAS("UNALIGNED_LD_SPEC", ARMV8_EVENT_68H) \ 1683 __PMC_EV_ALIAS("UNALIGNED_ST_SPEC", ARMV8_EVENT_69H) \ 1684 __PMC_EV_ALIAS("UNALIGNED_LDST_SPEC", ARMV8_EVENT_6AH) \ 1685 __PMC_EV_ALIAS("LDREX_SPEC", ARMV8_EVENT_6CH) \ 1686 __PMC_EV_ALIAS("STREX_PASS_SPEC", ARMV8_EVENT_6DH) \ 1687 __PMC_EV_ALIAS("STREX_FAIL_SPEC", ARMV8_EVENT_6EH) \ 1688 __PMC_EV_ALIAS("LD_SPEC", ARMV8_EVENT_70H) \ 1689 __PMC_EV_ALIAS("ST_SPEC", ARMV8_EVENT_71H) \ 1690 __PMC_EV_ALIAS("LDST_SPEC", ARMV8_EVENT_72H) \ 1691 __PMC_EV_ALIAS("DP_SPEC", ARMV8_EVENT_73H) \ 1692 __PMC_EV_ALIAS("ASE_SPEC", ARMV8_EVENT_74H) \ 1693 __PMC_EV_ALIAS("VFP_SPEC", ARMV8_EVENT_75H) \ 1694 __PMC_EV_ALIAS("PC_WRITE_SPEC", ARMV8_EVENT_76H) \ 1695 __PMC_EV_ALIAS("CRYPTO_SPEC", ARMV8_EVENT_77H) \ 1696 __PMC_EV_ALIAS("BR_IMMED_SPEC", ARMV8_EVENT_78H) \ 1697 __PMC_EV_ALIAS("BR_RETURN_SPEC", ARMV8_EVENT_79H) \ 1698 __PMC_EV_ALIAS("ISB_SPEC", ARMV8_EVENT_7CH) \ 1699 __PMC_EV_ALIAS("DSB_SPEC", ARMV8_EVENT_7DH) \ 1700 __PMC_EV_ALIAS("DMB_SPEC", ARMV8_EVENT_7EH) \ 1701 __PMC_EV_ALIAS("EXC_UNDEF", ARMV8_EVENT_81H) \ 1702 __PMC_EV_ALIAS("EXC_SVC", ARMV8_EVENT_82H) \ 1703 __PMC_EV_ALIAS("EXC_PABORT", ARMV8_EVENT_83H) \ 1704 __PMC_EV_ALIAS("EXC_DABORT", ARMV8_EVENT_84H) \ 1705 __PMC_EV_ALIAS("EXC_SMC", ARMV8_EVENT_88H) \ 1706 __PMC_EV_ALIAS("EXC_HVC", ARMV8_EVENT_8AH) \ 1707 __PMC_EV_ALIAS("EXC_TRAP_PABORT", ARMV8_EVENT_8BH) \ 1708 __PMC_EV_ALIAS("EXC_TRAP_DABORT", ARMV8_EVENT_8CH) \ 1709 __PMC_EV_ALIAS("EXC_TRAP_OTHER", ARMV8_EVENT_8DH) \ 1710 __PMC_EV_ALIAS("EXC_TRAP_IRQ", ARMV8_EVENT_8EH) \ 1711 __PMC_EV_ALIAS("EXC_TRAP_FIQ", ARMV8_EVENT_8FH) \ 1712 __PMC_EV_ALIAS("RC_LD_SPEC", ARMV8_EVENT_90H) \ 1713 __PMC_EV_ALIAS("RC_ST_SPEC", ARMV8_EVENT_91H) 1714 1715 #define __PMC_EV_ALIAS_ARMV8_CORTEX_A57() \ 1716 __PMC_EV_ALIAS_ARMV8_CORTEX_A57_A76() \ 1717 __PMC_EV_ALIAS("BUS_ACCESS_SHARED", ARMV8_EVENT_62H) \ 1718 __PMC_EV_ALIAS("BUS_ACCESS_NOT_SHARED", ARMV8_EVENT_63H) \ 1719 __PMC_EV_ALIAS("BUS_ACCESS_NORMAL", ARMV8_EVENT_64H) \ 1720 __PMC_EV_ALIAS("BUS_ACCESS_PERIPH", ARMV8_EVENT_65H) 1721 1722 #define __PMC_EV_ALIAS_ARMV8_CORTEX_A76() \ 1723 __PMC_EV_ALIAS_ARMV8_CORTEX_A57_A76() \ 1724 __PMC_EV_ALIAS("L2D_CACHE_ALLOCATE", ARMV8_EVENT_20H) \ 1725 __PMC_EV_ALIAS("BR_RETIRED", ARMV8_EVENT_21H) \ 1726 __PMC_EV_ALIAS("BR_MIS_PRED_RETIRED", ARMV8_EVENT_22H) \ 1727 __PMC_EV_ALIAS("STALL_FRONTEND", ARMV8_EVENT_23H) \ 1728 __PMC_EV_ALIAS("STALL_BACKEND", ARMV8_EVENT_24H) \ 1729 __PMC_EV_ALIAS("L1D_TLB", ARMV8_EVENT_25H) \ 1730 __PMC_EV_ALIAS("L1I_TLB", ARMV8_EVENT_26H) \ 1731 __PMC_EV_ALIAS("L3D_CACHE_ALLOCATE", ARMV8_EVENT_29H) \ 1732 __PMC_EV_ALIAS("L3D_CACHE_REFILL", ARMV8_EVENT_2AH) \ 1733 __PMC_EV_ALIAS("L3D_CACHE", ARMV8_EVENT_2BH) \ 1734 __PMC_EV_ALIAS("L2D_TLB_REFILL", ARMV8_EVENT_2DH) \ 1735 __PMC_EV_ALIAS("L2D_TLB", ARMV8_EVENT_2FH) \ 1736 __PMC_EV_ALIAS("REMOTE_ACCESS", ARMV8_EVENT_31H) \ 1737 __PMC_EV_ALIAS("DTLB_WALK", ARMV8_EVENT_34H) \ 1738 __PMC_EV_ALIAS("ITLB_WALK", ARMV8_EVENT_35H) \ 1739 __PMC_EV_ALIAS("LL_CACHE_RD", ARMV8_EVENT_36H) \ 1740 __PMC_EV_ALIAS("LL_CACHE_MISS_RD", ARMV8_EVENT_37H) \ 1741 __PMC_EV_ALIAS("L1D_CACHE_REFILL_INNER", ARMV8_EVENT_44H) \ 1742 __PMC_EV_ALIAS("L1D_CACHE_REFILL_OUTER", ARMV8_EVENT_45H) \ 1743 __PMC_EV_ALIAS("L1D_TLB_RD", ARMV8_EVENT_4EH) \ 1744 __PMC_EV_ALIAS("L1D_TLB_WR", ARMV8_EVENT_4FH) \ 1745 __PMC_EV_ALIAS("L2D_TLB_REFILL_RD", ARMV8_EVENT_5CH) \ 1746 __PMC_EV_ALIAS("L2D_TLB_REFILL_WR", ARMV8_EVENT_5DH) \ 1747 __PMC_EV_ALIAS("L2D_TLB_RD", ARMV8_EVENT_5EH) \ 1748 __PMC_EV_ALIAS("L2D_TLB_WR", ARMV8_EVENT_5FH) \ 1749 __PMC_EV_ALIAS("STREX_SPEC", ARMV8_EVENT_6FH) \ 1750 __PMC_EV_ALIAS("L3_CACHE_RD", ARMV8_EVENT_A0H) 1751 1752 /* 1753 * ARM DMC-620 memory controller counters. 1754 */ 1755 1756 #define __PMC_EV_DMC620_PMU_CD2() \ 1757 __PMC_EV(DMC620_PMU_CD2, clkdiv2_cycle_count) \ 1758 __PMC_EV(DMC620_PMU_CD2, clkdiv2_allocate) \ 1759 __PMC_EV(DMC620_PMU_CD2, clkdiv2_queue_depth) \ 1760 __PMC_EV(DMC620_PMU_CD2, clkdiv2_waiting_for_wr_data) \ 1761 __PMC_EV(DMC620_PMU_CD2, clkdiv2_read_backlog) \ 1762 __PMC_EV(DMC620_PMU_CD2, clkdiv2_waiting_for_mi) \ 1763 __PMC_EV(DMC620_PMU_CD2, clkdiv2_hazard_resolution) \ 1764 __PMC_EV(DMC620_PMU_CD2, clkdiv2_enqueue) \ 1765 __PMC_EV(DMC620_PMU_CD2, clkdiv2_arbitrate) \ 1766 __PMC_EV(DMC620_PMU_CD2, clkdiv2_lrank_turnaround_activate) \ 1767 __PMC_EV(DMC620_PMU_CD2, clkdiv2_prank_turnaround_activate) \ 1768 __PMC_EV(DMC620_PMU_CD2, clkdiv2_read_depth) \ 1769 __PMC_EV(DMC620_PMU_CD2, clkdiv2_write_depth) \ 1770 __PMC_EV(DMC620_PMU_CD2, clkdiv2_highhigh_qos_depth) \ 1771 __PMC_EV(DMC620_PMU_CD2, clkdiv2_high_qos_depth) \ 1772 __PMC_EV(DMC620_PMU_CD2, clkdiv2_medium_qos_depth) \ 1773 __PMC_EV(DMC620_PMU_CD2, clkdiv2_low_qos_depth) \ 1774 __PMC_EV(DMC620_PMU_CD2, clkdiv2_activate) \ 1775 __PMC_EV(DMC620_PMU_CD2, clkdiv2_rdwr) \ 1776 __PMC_EV(DMC620_PMU_CD2, clkdiv2_refresh) \ 1777 __PMC_EV(DMC620_PMU_CD2, clkdiv2_training_request) \ 1778 __PMC_EV(DMC620_PMU_CD2, clkdiv2_t_mac_tracker) \ 1779 __PMC_EV(DMC620_PMU_CD2, clkdiv2_bk_fsm_tracker) \ 1780 __PMC_EV(DMC620_PMU_CD2, clkdiv2_bk_open_tracker) \ 1781 __PMC_EV(DMC620_PMU_CD2, clkdiv2_ranks_in_pwr_down) \ 1782 __PMC_EV(DMC620_PMU_CD2, clkdiv2_ranks_in_sref) \ 1783 1784 #define __PMC_EV_DMC620_PMU_C() \ 1785 __PMC_EV(DMC620_PMU_C, clk_cycle_count) \ 1786 __PMC_EV(DMC620_PMU_C, clk_request) \ 1787 __PMC_EV(DMC620_PMU_C, clk_upload_stall) 1788 1789 #define PMC_EV_DMC620_PMU_CD2_FIRST PMC_EV_DMC620_PMU_CD2_clkdiv2_cycle_count 1790 #define PMC_EV_DMC620_PMU_CD2_LAST PMC_EV_DMC620_PMU_CD2_clkdiv2_ranks_in_sref 1791 #define PMC_EV_DMC620_PMU_C_FIRST PMC_EV_DMC620_PMU_C_clk_cycle_count 1792 #define PMC_EV_DMC620_PMU_C_LAST PMC_EV_DMC620_PMU_C_clk_upload_stall 1793 1794 /* 1795 * Arm CMN-600 Coherent Mesh Network controller counters. 1796 */ 1797 1798 #define __PMC_EV_CMN600_PMU() \ 1799 __PMC_EV(CMN600_PMU, dn_rxreq_dvmop) \ 1800 __PMC_EV(CMN600_PMU, dn_rxreq_dvmsync) \ 1801 __PMC_EV(CMN600_PMU, dn_rxreq_dvmop_vmid_filtered) \ 1802 __PMC_EV(CMN600_PMU, dn_rxreq_retried) \ 1803 __PMC_EV(CMN600_PMU, dn_rxreq_trk_occupancy) \ 1804 __PMC_EV(CMN600_PMU, dn_rxreq_tlbi_dvmop) \ 1805 __PMC_EV(CMN600_PMU, dn_rxreq_bpi_dvmop) \ 1806 __PMC_EV(CMN600_PMU, dn_rxreq_pici_dvmop) \ 1807 __PMC_EV(CMN600_PMU, dn_rxreq_vivi_dvmop) \ 1808 __PMC_EV(CMN600_PMU, dn_rxreq_dvmop_other_filtered) \ 1809 __PMC_EV(CMN600_PMU, dn_rxreq_snp_sent) \ 1810 __PMC_EV(CMN600_PMU, dn_rxreq_snp_stalled) \ 1811 __PMC_EV(CMN600_PMU, dn_rxreq_trk_full) \ 1812 __PMC_EV(CMN600_PMU, hnf_cache_miss) \ 1813 __PMC_EV(CMN600_PMU, hnf_slc_sf_cache_access) \ 1814 __PMC_EV(CMN600_PMU, hnf_cache_fill) \ 1815 __PMC_EV(CMN600_PMU, hnf_pocq_retry) \ 1816 __PMC_EV(CMN600_PMU, hnf_pocq_reqs_recvd) \ 1817 __PMC_EV(CMN600_PMU, hnf_sf_hit) \ 1818 __PMC_EV(CMN600_PMU, hnf_sf_evictions) \ 1819 __PMC_EV(CMN600_PMU, hnf_dir_snoops_sent) \ 1820 __PMC_EV(CMN600_PMU, hnf_brd_snoops_sent) \ 1821 __PMC_EV(CMN600_PMU, hnf_slc_eviction) \ 1822 __PMC_EV(CMN600_PMU, hnf_slc_fill_invalid_way) \ 1823 __PMC_EV(CMN600_PMU, hnf_mc_retries) \ 1824 __PMC_EV(CMN600_PMU, hnf_mc_reqs) \ 1825 __PMC_EV(CMN600_PMU, hnf_qos_hh_retry) \ 1826 __PMC_EV(CMN600_PMU, hnf_qos_pocq) \ 1827 __PMC_EV(CMN600_PMU, hnf_pocq_addrhaz) \ 1828 __PMC_EV(CMN600_PMU, hnf_pocq_atomic_addrhaz) \ 1829 __PMC_EV(CMN600_PMU, hnf_ld_st_swp_adq_full) \ 1830 __PMC_EV(CMN600_PMU, hnf_cmp_adq_full) \ 1831 __PMC_EV(CMN600_PMU, hnf_txdat_stall) \ 1832 __PMC_EV(CMN600_PMU, hnf_txrsp_stall) \ 1833 __PMC_EV(CMN600_PMU, hnf_seq_full) \ 1834 __PMC_EV(CMN600_PMU, hnf_seq_hit) \ 1835 __PMC_EV(CMN600_PMU, hnf_snp_sent) \ 1836 __PMC_EV(CMN600_PMU, hnf_sfbi_dir_snp_sent) \ 1837 __PMC_EV(CMN600_PMU, hnf_sfbi_brd_snp_sent) \ 1838 __PMC_EV(CMN600_PMU, hnf_snp_sent_untrk) \ 1839 __PMC_EV(CMN600_PMU, hnf_intv_dirty) \ 1840 __PMC_EV(CMN600_PMU, hnf_stash_snp_sent) \ 1841 __PMC_EV(CMN600_PMU, hnf_stash_data_pull) \ 1842 __PMC_EV(CMN600_PMU, hnf_snp_fwded) \ 1843 __PMC_EV(CMN600_PMU, hni_rrt_rd_occ_cnt_ovfl) \ 1844 __PMC_EV(CMN600_PMU, hni_rrt_wr_occ_cnt_ovfl) \ 1845 __PMC_EV(CMN600_PMU, hni_rdt_rd_occ_cnt_ovfl) \ 1846 __PMC_EV(CMN600_PMU, hni_rdt_wr_occ_cnt_ovfl) \ 1847 __PMC_EV(CMN600_PMU, hni_wdb_occ_cnt_ovfl) \ 1848 __PMC_EV(CMN600_PMU, hni_rrt_rd_alloc) \ 1849 __PMC_EV(CMN600_PMU, hni_rrt_wr_alloc) \ 1850 __PMC_EV(CMN600_PMU, hni_rdt_rd_alloc) \ 1851 __PMC_EV(CMN600_PMU, hni_rdt_wr_alloc) \ 1852 __PMC_EV(CMN600_PMU, hni_wdb_alloc) \ 1853 __PMC_EV(CMN600_PMU, hni_txrsp_retryack) \ 1854 __PMC_EV(CMN600_PMU, hni_arvalid_no_arready) \ 1855 __PMC_EV(CMN600_PMU, hni_arready_no_arvalid) \ 1856 __PMC_EV(CMN600_PMU, hni_awvalid_no_awready) \ 1857 __PMC_EV(CMN600_PMU, hni_awready_no_awvalid) \ 1858 __PMC_EV(CMN600_PMU, hni_wvalid_no_wready) \ 1859 __PMC_EV(CMN600_PMU, hni_txdat_stall) \ 1860 __PMC_EV(CMN600_PMU, hni_nonpcie_serialization) \ 1861 __PMC_EV(CMN600_PMU, hni_pcie_serialization) \ 1862 __PMC_EV(CMN600_PMU, xp_txflit_valid) \ 1863 __PMC_EV(CMN600_PMU, xp_txflit_stall) \ 1864 __PMC_EV(CMN600_PMU, xp_partial_dat_flit) \ 1865 __PMC_EV(CMN600_PMU, sbsx_rd_req) \ 1866 __PMC_EV(CMN600_PMU, sbsx_wr_req) \ 1867 __PMC_EV(CMN600_PMU, sbsx_cmo_req) \ 1868 __PMC_EV(CMN600_PMU, sbsx_txrsp_retryack) \ 1869 __PMC_EV(CMN600_PMU, sbsx_txdat_flitv) \ 1870 __PMC_EV(CMN600_PMU, sbsx_txrsp_flitv) \ 1871 __PMC_EV(CMN600_PMU, sbsx_rd_req_trkr_occ_cnt_ovfl) \ 1872 __PMC_EV(CMN600_PMU, sbsx_wr_req_trkr_occ_cnt_ovfl) \ 1873 __PMC_EV(CMN600_PMU, sbsx_cmo_req_trkr_occ_cnt_ovfl) \ 1874 __PMC_EV(CMN600_PMU, sbsx_wdb_occ_cnt_ovfl) \ 1875 __PMC_EV(CMN600_PMU, sbsx_rd_axi_trkr_occ_cnt_ovfl) \ 1876 __PMC_EV(CMN600_PMU, sbsx_cmo_axi_trkr_occ_cnt_ovfl) \ 1877 __PMC_EV(CMN600_PMU, sbsx_arvalid_no_arready) \ 1878 __PMC_EV(CMN600_PMU, sbsx_awvalid_no_awready) \ 1879 __PMC_EV(CMN600_PMU, sbsx_wvalid_no_wready) \ 1880 __PMC_EV(CMN600_PMU, sbsx_txdat_stall) \ 1881 __PMC_EV(CMN600_PMU, sbsx_txrsp_stall) \ 1882 __PMC_EV(CMN600_PMU, rnd_s0_rdata_beats) \ 1883 __PMC_EV(CMN600_PMU, rnd_s1_rdata_beats) \ 1884 __PMC_EV(CMN600_PMU, rnd_s2_rdata_beats) \ 1885 __PMC_EV(CMN600_PMU, rnd_rxdat_flits) \ 1886 __PMC_EV(CMN600_PMU, rnd_txdat_flits) \ 1887 __PMC_EV(CMN600_PMU, rnd_txreq_flits_total) \ 1888 __PMC_EV(CMN600_PMU, rnd_txreq_flits_retried) \ 1889 __PMC_EV(CMN600_PMU, rnd_rrt_occ_ovfl) \ 1890 __PMC_EV(CMN600_PMU, rnd_wrt_occ_ovfl) \ 1891 __PMC_EV(CMN600_PMU, rnd_txreq_flits_replayed) \ 1892 __PMC_EV(CMN600_PMU, rnd_wrcancel_sent) \ 1893 __PMC_EV(CMN600_PMU, rnd_s0_wdata_beats) \ 1894 __PMC_EV(CMN600_PMU, rnd_s1_wdata_beats) \ 1895 __PMC_EV(CMN600_PMU, rnd_s2_wdata_beats) \ 1896 __PMC_EV(CMN600_PMU, rnd_rrt_alloc) \ 1897 __PMC_EV(CMN600_PMU, rnd_wrt_alloc) \ 1898 __PMC_EV(CMN600_PMU, rnd_rdb_unord) \ 1899 __PMC_EV(CMN600_PMU, rnd_rdb_replay) \ 1900 __PMC_EV(CMN600_PMU, rnd_rdb_hybrid) \ 1901 __PMC_EV(CMN600_PMU, rnd_rdb_ord) \ 1902 __PMC_EV(CMN600_PMU, rni_s0_rdata_beats) \ 1903 __PMC_EV(CMN600_PMU, rni_s1_rdata_beats) \ 1904 __PMC_EV(CMN600_PMU, rni_s2_rdata_beats) \ 1905 __PMC_EV(CMN600_PMU, rni_rxdat_flits) \ 1906 __PMC_EV(CMN600_PMU, rni_txdat_flits) \ 1907 __PMC_EV(CMN600_PMU, rni_txreq_flits_total) \ 1908 __PMC_EV(CMN600_PMU, rni_txreq_flits_retried) \ 1909 __PMC_EV(CMN600_PMU, rni_rrt_occ_ovfl) \ 1910 __PMC_EV(CMN600_PMU, rni_wrt_occ_ovfl) \ 1911 __PMC_EV(CMN600_PMU, rni_txreq_flits_replayed) \ 1912 __PMC_EV(CMN600_PMU, rni_wrcancel_sent) \ 1913 __PMC_EV(CMN600_PMU, rni_s0_wdata_beats) \ 1914 __PMC_EV(CMN600_PMU, rni_s1_wdata_beats) \ 1915 __PMC_EV(CMN600_PMU, rni_s2_wdata_beats) \ 1916 __PMC_EV(CMN600_PMU, rni_rrt_alloc) \ 1917 __PMC_EV(CMN600_PMU, rni_wrt_alloc) \ 1918 __PMC_EV(CMN600_PMU, rni_rdb_unord) \ 1919 __PMC_EV(CMN600_PMU, rni_rdb_replay) \ 1920 __PMC_EV(CMN600_PMU, rni_rdb_hybrid) \ 1921 __PMC_EV(CMN600_PMU, rni_rdb_ord) \ 1922 __PMC_EV(CMN600_PMU, cxha_rddatbyp) \ 1923 __PMC_EV(CMN600_PMU, cxha_chirsp_up_stall) \ 1924 __PMC_EV(CMN600_PMU, cxha_chidat_up_stall) \ 1925 __PMC_EV(CMN600_PMU, cxha_snppcrd_lnk0_stall) \ 1926 __PMC_EV(CMN600_PMU, cxha_snppcrd_lnk1_stall) \ 1927 __PMC_EV(CMN600_PMU, cxha_snppcrd_lnk2_stall) \ 1928 __PMC_EV(CMN600_PMU, cxha_reqtrk_occ) \ 1929 __PMC_EV(CMN600_PMU, cxha_rdb_occ) \ 1930 __PMC_EV(CMN600_PMU, cxha_rdbbyp_occ) \ 1931 __PMC_EV(CMN600_PMU, cxha_wdb_occ) \ 1932 __PMC_EV(CMN600_PMU, cxha_snptrk_occ) \ 1933 __PMC_EV(CMN600_PMU, cxha_sdb_occ) \ 1934 __PMC_EV(CMN600_PMU, cxha_snphaz_occ) \ 1935 __PMC_EV(CMN600_PMU, cxra_req_trk_occ) \ 1936 __PMC_EV(CMN600_PMU, cxra_snp_trk_occ) \ 1937 __PMC_EV(CMN600_PMU, cxra_rd_dat_buf_occ) \ 1938 __PMC_EV(CMN600_PMU, cxra_wr_dat_buf_occ) \ 1939 __PMC_EV(CMN600_PMU, cxra_snp_sink_buf_occ) \ 1940 __PMC_EV(CMN600_PMU, cxra_snp_bcasts) \ 1941 __PMC_EV(CMN600_PMU, cxra_req_chains) \ 1942 __PMC_EV(CMN600_PMU, cxra_req_chain_avg_len) \ 1943 __PMC_EV(CMN600_PMU, cxra_chi_rsp_upload_stalls) \ 1944 __PMC_EV(CMN600_PMU, cxra_chi_dat_upload_stalls) \ 1945 __PMC_EV(CMN600_PMU, cxra_dat_pcrd_stalls_lnk0) \ 1946 __PMC_EV(CMN600_PMU, cxra_dat_pcrd_stalls_lnk1) \ 1947 __PMC_EV(CMN600_PMU, cxra_dat_pcrd_stalls_lnk2) \ 1948 __PMC_EV(CMN600_PMU, cxra_req_pcrd_stalls_lnk0) \ 1949 __PMC_EV(CMN600_PMU, cxra_req_pcrd_stalls_lnk1) \ 1950 __PMC_EV(CMN600_PMU, cxra_req_pcrd_stalls_lnk2) \ 1951 __PMC_EV(CMN600_PMU, cxra_ext_rsp_stall) \ 1952 __PMC_EV(CMN600_PMU, cxra_ext_dat_stall) \ 1953 __PMC_EV(CMN600_PMU, cxla_rx_tlp_link0) \ 1954 __PMC_EV(CMN600_PMU, cxla_rx_tlp_link1) \ 1955 __PMC_EV(CMN600_PMU, cxla_rx_tlp_link2) \ 1956 __PMC_EV(CMN600_PMU, cxla_tx_tlp_link0) \ 1957 __PMC_EV(CMN600_PMU, cxla_tx_tlp_link1) \ 1958 __PMC_EV(CMN600_PMU, cxla_tx_tlp_link2) \ 1959 __PMC_EV(CMN600_PMU, cxla_rx_cxs_link0) \ 1960 __PMC_EV(CMN600_PMU, cxla_rx_cxs_link1) \ 1961 __PMC_EV(CMN600_PMU, cxla_rx_cxs_link2) \ 1962 __PMC_EV(CMN600_PMU, cxla_tx_cxs_link0) \ 1963 __PMC_EV(CMN600_PMU, cxla_tx_cxs_link1) \ 1964 __PMC_EV(CMN600_PMU, cxla_tx_cxs_link2) \ 1965 __PMC_EV(CMN600_PMU, cxla_avg_rx_tlp_sz_dws) \ 1966 __PMC_EV(CMN600_PMU, cxla_avg_tx_tlp_sz_dws) \ 1967 __PMC_EV(CMN600_PMU, cxla_avg_rx_tlp_sz_ccix_msg) \ 1968 __PMC_EV(CMN600_PMU, cxla_avg_tx_tlp_sz_ccix_msg) \ 1969 __PMC_EV(CMN600_PMU, cxla_avg_sz_rx_cxs_dw_beat) \ 1970 __PMC_EV(CMN600_PMU, cxla_avg_sz_tx_cxs_dw_beat) \ 1971 __PMC_EV(CMN600_PMU, cxla_tx_cxs_link_credit_backpressure) \ 1972 __PMC_EV(CMN600_PMU, cxla_rx_tlp_buffer_full) \ 1973 __PMC_EV(CMN600_PMU, cxla_tx_tlp_buffer_full) \ 1974 __PMC_EV(CMN600_PMU, cxla_avg_latency_process_rx_tlp) \ 1975 __PMC_EV(CMN600_PMU, cxla_avg_latency_form_tx_tlp) 1976 1977 1978 #define PMC_EV_CMN600_PMU_FIRST PMC_EV_CMN600_PMU_dn_rxreq_dvmop 1979 #define PMC_EV_CMN600_PMU_LAST \ 1980 PMC_EV_CMN600_PMU_cxla_avg_latency_form_tx_tlp 1981 1982 #define __PMC_EV_PPC7450() \ 1983 __PMC_EV(PPC7450, CYCLE) \ 1984 __PMC_EV(PPC7450, INSTR_COMPLETED) \ 1985 __PMC_EV(PPC7450, TLB_BIT_TRANSITIONS) \ 1986 __PMC_EV(PPC7450, INSTR_DISPATCHED) \ 1987 __PMC_EV(PPC7450, PMON_EXCEPT) \ 1988 __PMC_EV(PPC7450, PMON_SIG) \ 1989 __PMC_EV(PPC7450, VPU_INSTR_COMPLETED) \ 1990 __PMC_EV(PPC7450, VFPU_INSTR_COMPLETED) \ 1991 __PMC_EV(PPC7450, VIU1_INSTR_COMPLETED) \ 1992 __PMC_EV(PPC7450, VIU2_INSTR_COMPLETED) \ 1993 __PMC_EV(PPC7450, MTVSCR_INSTR_COMPLETED) \ 1994 __PMC_EV(PPC7450, MTVRSAVE_INSTR_COMPLETED) \ 1995 __PMC_EV(PPC7450, VPU_INSTR_WAIT_CYCLES) \ 1996 __PMC_EV(PPC7450, VFPU_INSTR_WAIT_CYCLES) \ 1997 __PMC_EV(PPC7450, VIU1_INSTR_WAIT_CYCLES) \ 1998 __PMC_EV(PPC7450, VIU2_INSTR_WAIT_CYCLES) \ 1999 __PMC_EV(PPC7450, MFVSCR_SYNC_CYCLES) \ 2000 __PMC_EV(PPC7450, VSCR_SAT_SET) \ 2001 __PMC_EV(PPC7450, STORE_INSTR_COMPLETED) \ 2002 __PMC_EV(PPC7450, L1_INSTR_CACHE_MISSES) \ 2003 __PMC_EV(PPC7450, L1_DATA_SNOOPS) \ 2004 __PMC_EV(PPC7450, UNRESOLVED_BRANCHES) \ 2005 __PMC_EV(PPC7450, SPEC_BUFFER_CYCLES) \ 2006 __PMC_EV(PPC7450, BRANCH_UNIT_STALL_CYCLES) \ 2007 __PMC_EV(PPC7450, TRUE_BRANCH_TARGET_HITS) \ 2008 __PMC_EV(PPC7450, BRANCH_LINK_STAC_PREDICTED) \ 2009 __PMC_EV(PPC7450, GPR_ISSUE_QUEUE_DISPATCHES) \ 2010 __PMC_EV(PPC7450, CYCLES_THREE_INSTR_DISPATCHED) \ 2011 __PMC_EV(PPC7450, THRESHOLD_INSTR_QUEUE_ENTRIES_CYCLES) \ 2012 __PMC_EV(PPC7450, THRESHOLD_VEC_INSTR_QUEUE_ENTRIES_CYCLES) \ 2013 __PMC_EV(PPC7450, CYCLES_NO_COMPLETED_INSTRS) \ 2014 __PMC_EV(PPC7450, IU2_INSTR_COMPLETED) \ 2015 __PMC_EV(PPC7450, BRANCHES_COMPLETED) \ 2016 __PMC_EV(PPC7450, EIEIO_INSTR_COMPLETED) \ 2017 __PMC_EV(PPC7450, MTSPR_INSTR_COMPLETED) \ 2018 __PMC_EV(PPC7450, SC_INSTR_COMPLETED) \ 2019 __PMC_EV(PPC7450, LS_LM_COMPLETED) \ 2020 __PMC_EV(PPC7450, ITLB_HW_TABLE_SEARCH_CYCLES) \ 2021 __PMC_EV(PPC7450, DTLB_HW_SEARCH_CYCLES_OVER_THRESHOLD) \ 2022 __PMC_EV(PPC7450, L1_INSTR_CACHE_ACCESSES) \ 2023 __PMC_EV(PPC7450, INSTR_BKPT_MATCHES) \ 2024 __PMC_EV(PPC7450, L1_DATA_CACHE_LOAD_MISS_CYCLES_OVER_THRESHOLD)\ 2025 __PMC_EV(PPC7450, L1_DATA_SNOOP_HIT_ON_MODIFIED) \ 2026 __PMC_EV(PPC7450, LOAD_MISS_ALIAS) \ 2027 __PMC_EV(PPC7450, LOAD_MISS_ALIAS_ON_TOUCH) \ 2028 __PMC_EV(PPC7450, TOUCH_ALIAS) \ 2029 __PMC_EV(PPC7450, L1_DATA_SNOOP_HIT_CASTOUT_QUEUE) \ 2030 __PMC_EV(PPC7450, L1_DATA_SNOOP_HIT_CASTOUT) \ 2031 __PMC_EV(PPC7450, L1_DATA_SNOOP_HITS) \ 2032 __PMC_EV(PPC7450, WRITE_THROUGH_STORES) \ 2033 __PMC_EV(PPC7450, CACHE_INHIBITED_STORES) \ 2034 __PMC_EV(PPC7450, L1_DATA_LOAD_HIT) \ 2035 __PMC_EV(PPC7450, L1_DATA_TOUCH_HIT) \ 2036 __PMC_EV(PPC7450, L1_DATA_STORE_HIT) \ 2037 __PMC_EV(PPC7450, L1_DATA_TOTAL_HITS) \ 2038 __PMC_EV(PPC7450, DST_INSTR_DISPATCHED) \ 2039 __PMC_EV(PPC7450, REFRESHED_DSTS) \ 2040 __PMC_EV(PPC7450, SUCCESSFUL_DST_TABLE_SEARCHES) \ 2041 __PMC_EV(PPC7450, DSS_INSTR_COMPLETED) \ 2042 __PMC_EV(PPC7450, DST_STREAM_0_CACHE_LINE_FETCHES) \ 2043 __PMC_EV(PPC7450, VTQ_SUSPENDS_DUE_TO_CTX_CHANGE) \ 2044 __PMC_EV(PPC7450, VTQ_LINE_FETCH_HIT) \ 2045 __PMC_EV(PPC7450, VEC_LOAD_INSTR_COMPLETED) \ 2046 __PMC_EV(PPC7450, FP_STORE_INSTR_COMPLETED_IN_LSU) \ 2047 __PMC_EV(PPC7450, FPU_RENORMALIZATION) \ 2048 __PMC_EV(PPC7450, FPU_DENORMALIZATION) \ 2049 __PMC_EV(PPC7450, FP_STORE_CAUSES_STALL_IN_LSU) \ 2050 __PMC_EV(PPC7450, LD_ST_TRUE_ALIAS_STALL) \ 2051 __PMC_EV(PPC7450, LSU_INDEXED_ALIAS_STALL) \ 2052 __PMC_EV(PPC7450, LSU_ALIAS_VS_FSQ_WB0_WB1) \ 2053 __PMC_EV(PPC7450, LSU_ALIAS_VS_CSQ) \ 2054 __PMC_EV(PPC7450, LSU_LOAD_HIT_LINE_ALIAS_VS_CSQ0) \ 2055 __PMC_EV(PPC7450, LSU_LOAD_MISS_LINE_ALIAS_VS_CSQ0) \ 2056 __PMC_EV(PPC7450, LSU_TOUCH_LINE_ALIAS_VS_FSQ_WB0_WB1) \ 2057 __PMC_EV(PPC7450, LSU_TOUCH_ALIAS_VS_CSQ) \ 2058 __PMC_EV(PPC7450, LSU_LMQ_FULL_STALL) \ 2059 __PMC_EV(PPC7450, FP_LOAD_INSTR_COMPLETED_IN_LSU) \ 2060 __PMC_EV(PPC7450, FP_LOAD_SINGLE_INSTR_COMPLETED_IN_LSU) \ 2061 __PMC_EV(PPC7450, FP_LOAD_DOUBLE_COMPLETED_IN_LSU) \ 2062 __PMC_EV(PPC7450, LSU_RA_LATCH_STALL) \ 2063 __PMC_EV(PPC7450, LSU_LOAD_VS_STORE_QUEUE_ALIAS_STALL) \ 2064 __PMC_EV(PPC7450, LSU_LMQ_INDEX_ALIAS) \ 2065 __PMC_EV(PPC7450, LSU_STORE_QUEUE_INDEX_ALIAS) \ 2066 __PMC_EV(PPC7450, LSU_CSQ_FORWARDING) \ 2067 __PMC_EV(PPC7450, LSU_MISALIGNED_LOAD_FINISH) \ 2068 __PMC_EV(PPC7450, LSU_MISALIGN_STORE_COMPLETED) \ 2069 __PMC_EV(PPC7450, LSU_MISALIGN_STALL) \ 2070 __PMC_EV(PPC7450, FP_ONE_QUARTER_FPSCR_RENAMES_BUSY) \ 2071 __PMC_EV(PPC7450, FP_ONE_HALF_FPSCR_RENAMES_BUSY) \ 2072 __PMC_EV(PPC7450, FP_THREE_QUARTERS_FPSCR_RENAMES_BUSY) \ 2073 __PMC_EV(PPC7450, FP_ALL_FPSCR_RENAMES_BUSY) \ 2074 __PMC_EV(PPC7450, FP_DENORMALIZED_RESULT) \ 2075 __PMC_EV(PPC7450, L1_DATA_TOTAL_MISSES) \ 2076 __PMC_EV(PPC7450, DISPATCHES_TO_FPR_ISSUE_QUEUE) \ 2077 __PMC_EV(PPC7450, LSU_INSTR_COMPLETED) \ 2078 __PMC_EV(PPC7450, LOAD_INSTR_COMPLETED) \ 2079 __PMC_EV(PPC7450, SS_SM_INSTR_COMPLETED) \ 2080 __PMC_EV(PPC7450, TLBIE_INSTR_COMPLETED) \ 2081 __PMC_EV(PPC7450, LWARX_INSTR_COMPLETED) \ 2082 __PMC_EV(PPC7450, MFSPR_INSTR_COMPLETED) \ 2083 __PMC_EV(PPC7450, REFETCH_SERIALIZATION) \ 2084 __PMC_EV(PPC7450, COMPLETION_QUEUE_ENTRIES_OVER_THRESHOLD) \ 2085 __PMC_EV(PPC7450, CYCLES_ONE_INSTR_DISPATCHED) \ 2086 __PMC_EV(PPC7450, CYCLES_TWO_INSTR_COMPLETED) \ 2087 __PMC_EV(PPC7450, ITLB_NON_SPECULATIVE_MISSES) \ 2088 __PMC_EV(PPC7450, CYCLES_WAITING_FROM_L1_INSTR_CACHE_MISS) \ 2089 __PMC_EV(PPC7450, L1_DATA_LOAD_ACCESS_MISS) \ 2090 __PMC_EV(PPC7450, L1_DATA_TOUCH_MISS) \ 2091 __PMC_EV(PPC7450, L1_DATA_STORE_MISS) \ 2092 __PMC_EV(PPC7450, L1_DATA_TOUCH_MISS_CYCLES) \ 2093 __PMC_EV(PPC7450, L1_DATA_CYCLES_USED) \ 2094 __PMC_EV(PPC7450, DST_STREAM_1_CACHE_LINE_FETCHES) \ 2095 __PMC_EV(PPC7450, VTQ_STREAM_CANCELED_PREMATURELY) \ 2096 __PMC_EV(PPC7450, VTQ_RESUMES_DUE_TO_CTX_CHANGE) \ 2097 __PMC_EV(PPC7450, VTQ_LINE_FETCH_MISS) \ 2098 __PMC_EV(PPC7450, VTQ_LINE_FETCH) \ 2099 __PMC_EV(PPC7450, TLBIE_SNOOPS) \ 2100 __PMC_EV(PPC7450, L1_INSTR_CACHE_RELOADS) \ 2101 __PMC_EV(PPC7450, L1_DATA_CACHE_RELOADS) \ 2102 __PMC_EV(PPC7450, L1_DATA_CACHE_CASTOUTS_TO_L2) \ 2103 __PMC_EV(PPC7450, STORE_MERGE_GATHER) \ 2104 __PMC_EV(PPC7450, CACHEABLE_STORE_MERGE_TO_32_BYTES) \ 2105 __PMC_EV(PPC7450, DATA_BKPT_MATCHES) \ 2106 __PMC_EV(PPC7450, FALL_THROUGH_BRANCHES_PROCESSED) \ 2107 __PMC_EV(PPC7450, \ 2108 FIRST_SPECULATIVE_BRANCH_BUFFER_RESOLVED_CORRECTLY) \ 2109 __PMC_EV(PPC7450, SECOND_SPECULATION_BUFFER_ACTIVE) \ 2110 __PMC_EV(PPC7450, BPU_STALL_ON_LR_DEPENDENCY) \ 2111 __PMC_EV(PPC7450, BTIC_MISS) \ 2112 __PMC_EV(PPC7450, BRANCH_LINK_STACK_CORRECTLY_RESOLVED) \ 2113 __PMC_EV(PPC7450, FPR_ISSUE_STALLED) \ 2114 __PMC_EV(PPC7450, SWITCHES_BETWEEN_PRIV_USER) \ 2115 __PMC_EV(PPC7450, LSU_COMPLETES_FP_STORE_SINGLE) \ 2116 __PMC_EV(PPC7450, VR_ISSUE_QUEUE_DISPATCHES) \ 2117 __PMC_EV(PPC7450, VR_STALLS) \ 2118 __PMC_EV(PPC7450, GPR_RENAME_BUFFER_ENTRIES_OVER_THRESHOLD) \ 2119 __PMC_EV(PPC7450, FPR_ISSUE_QUEUE_ENTRIES) \ 2120 __PMC_EV(PPC7450, FPU_INSTR_COMPLETED) \ 2121 __PMC_EV(PPC7450, STWCX_INSTR_COMPLETED) \ 2122 __PMC_EV(PPC7450, LS_LM_INSTR_PIECES) \ 2123 __PMC_EV(PPC7450, ITLB_HW_SEARCH_CYCLES_OVER_THRESHOLD) \ 2124 __PMC_EV(PPC7450, DTLB_MISSES) \ 2125 __PMC_EV(PPC7450, CANCELLED_L1_INSTR_CACHE_MISSES) \ 2126 __PMC_EV(PPC7450, L1_DATA_CACHE_OP_HIT) \ 2127 __PMC_EV(PPC7450, L1_DATA_LOAD_MISS_CYCLES) \ 2128 __PMC_EV(PPC7450, L1_DATA_PUSHES) \ 2129 __PMC_EV(PPC7450, L1_DATA_TOTAL_MISS) \ 2130 __PMC_EV(PPC7450, VT2_FETCHES) \ 2131 __PMC_EV(PPC7450, TAKEN_BRANCHES_PROCESSED) \ 2132 __PMC_EV(PPC7450, BRANCH_FLUSHES) \ 2133 __PMC_EV(PPC7450, \ 2134 SECOND_SPECULATIVE_BRANCH_BUFFER_RESOLVED_CORRECTLY) \ 2135 __PMC_EV(PPC7450, THIRD_SPECULATION_BUFFER_ACTIVE) \ 2136 __PMC_EV(PPC7450, BRANCH_UNIT_STALL_ON_CTR_DEPENDENCY) \ 2137 __PMC_EV(PPC7450, FAST_BTIC_HIT) \ 2138 __PMC_EV(PPC7450, BRANCH_LINK_STACK_MISPREDICTED) \ 2139 __PMC_EV(PPC7450, CYCLES_THREE_INSTR_COMPLETED) \ 2140 __PMC_EV(PPC7450, CYCLES_NO_INSTR_DISPATCHED) \ 2141 __PMC_EV(PPC7450, GPR_ISSUE_QUEUE_ENTRIES_OVER_THRESHOLD) \ 2142 __PMC_EV(PPC7450, GPR_ISSUE_QUEUE_STALLED) \ 2143 __PMC_EV(PPC7450, IU1_INSTR_COMPLETED) \ 2144 __PMC_EV(PPC7450, DSSALL_INSTR_COMPLETED) \ 2145 __PMC_EV(PPC7450, TLBSYNC_INSTR_COMPLETED) \ 2146 __PMC_EV(PPC7450, SYNC_INSTR_COMPLETED) \ 2147 __PMC_EV(PPC7450, SS_SM_INSTR_PIECES) \ 2148 __PMC_EV(PPC7450, DTLB_HW_SEARCH_CYCLES) \ 2149 __PMC_EV(PPC7450, SNOOP_RETRIES) \ 2150 __PMC_EV(PPC7450, SUCCESSFUL_STWCX) \ 2151 __PMC_EV(PPC7450, DST_STREAM_3_CACHE_LINE_FETCHES) \ 2152 __PMC_EV(PPC7450, \ 2153 THIRD_SPECULATIVE_BRANCH_BUFFER_RESOLVED_CORRECTLY) \ 2154 __PMC_EV(PPC7450, MISPREDICTED_BRANCHES) \ 2155 __PMC_EV(PPC7450, FOLDED_BRANCHES) \ 2156 __PMC_EV(PPC7450, FP_STORE_DOUBLE_COMPLETES_IN_LSU) \ 2157 __PMC_EV(PPC7450, L2_CACHE_HITS) \ 2158 __PMC_EV(PPC7450, L3_CACHE_HITS) \ 2159 __PMC_EV(PPC7450, L2_INSTR_CACHE_MISSES) \ 2160 __PMC_EV(PPC7450, L3_INSTR_CACHE_MISSES) \ 2161 __PMC_EV(PPC7450, L2_DATA_CACHE_MISSES) \ 2162 __PMC_EV(PPC7450, L3_DATA_CACHE_MISSES) \ 2163 __PMC_EV(PPC7450, L2_LOAD_HITS) \ 2164 __PMC_EV(PPC7450, L2_STORE_HITS) \ 2165 __PMC_EV(PPC7450, L3_LOAD_HITS) \ 2166 __PMC_EV(PPC7450, L3_STORE_HITS) \ 2167 __PMC_EV(PPC7450, L2_TOUCH_HITS) \ 2168 __PMC_EV(PPC7450, L3_TOUCH_HITS) \ 2169 __PMC_EV(PPC7450, SNOOP_MODIFIED) \ 2170 __PMC_EV(PPC7450, SNOOP_VALID) \ 2171 __PMC_EV(PPC7450, INTERVENTION) \ 2172 __PMC_EV(PPC7450, L2_CACHE_MISSES) \ 2173 __PMC_EV(PPC7450, L3_CACHE_MISSES) \ 2174 __PMC_EV(PPC7450, L2_CACHE_CASTOUTS) \ 2175 __PMC_EV(PPC7450, L3_CACHE_CASTOUTS) \ 2176 __PMC_EV(PPC7450, L2SQ_FULL_CYCLES) \ 2177 __PMC_EV(PPC7450, L3SQ_FULL_CYCLES) \ 2178 __PMC_EV(PPC7450, RAQ_FULL_CYCLES) \ 2179 __PMC_EV(PPC7450, WAQ_FULL_CYCLES) \ 2180 __PMC_EV(PPC7450, L1_EXTERNAL_INTERVENTIONS) \ 2181 __PMC_EV(PPC7450, L2_EXTERNAL_INTERVENTIONS) \ 2182 __PMC_EV(PPC7450, L3_EXTERNAL_INTERVENTIONS) \ 2183 __PMC_EV(PPC7450, EXTERNAL_INTERVENTIONS) \ 2184 __PMC_EV(PPC7450, EXTERNAL_PUSHES) \ 2185 __PMC_EV(PPC7450, EXTERNAL_SNOOP_RETRY) \ 2186 __PMC_EV(PPC7450, DTQ_FULL_CYCLES) \ 2187 __PMC_EV(PPC7450, BUS_RETRY) \ 2188 __PMC_EV(PPC7450, L2_VALID_REQUEST) \ 2189 __PMC_EV(PPC7450, BORDQ_FULL) \ 2190 __PMC_EV(PPC7450, BUS_TAS_FOR_READS) \ 2191 __PMC_EV(PPC7450, BUS_TAS_FOR_WRITES) \ 2192 __PMC_EV(PPC7450, BUS_READS_NOT_RETRIED) \ 2193 __PMC_EV(PPC7450, BUS_WRITES_NOT_RETRIED) \ 2194 __PMC_EV(PPC7450, BUS_READS_WRITES_NOT_RETRIED) \ 2195 __PMC_EV(PPC7450, BUS_RETRY_DUE_TO_L1_RETRY) \ 2196 __PMC_EV(PPC7450, BUS_RETRY_DUE_TO_PREVIOUS_ADJACENT) \ 2197 __PMC_EV(PPC7450, BUS_RETRY_DUE_TO_COLLISION) \ 2198 __PMC_EV(PPC7450, BUS_RETRY_DUE_TO_INTERVENTION_ORDERING) \ 2199 __PMC_EV(PPC7450, SNOOP_REQUESTS) \ 2200 __PMC_EV(PPC7450, PREFETCH_ENGINE_REQUEST) \ 2201 __PMC_EV(PPC7450, PREFETCH_ENGINE_COLLISION_VS_LOAD) \ 2202 __PMC_EV(PPC7450, PREFETCH_ENGINE_COLLISION_VS_STORE) \ 2203 __PMC_EV(PPC7450, PREFETCH_ENGINE_COLLISION_VS_INSTR_FETCH) \ 2204 __PMC_EV(PPC7450, \ 2205 PREFETCH_ENGINE_COLLISION_VS_LOAD_STORE_INSTR_FETCH) \ 2206 __PMC_EV(PPC7450, PREFETCH_ENGINE_FULL) 2207 2208 #define PMC_EV_PPC7450_FIRST PMC_EV_PPC7450_CYCLE 2209 #define PMC_EV_PPC7450_LAST PMC_EV_PPC7450_PREFETCH_ENGINE_FULL 2210 2211 #define __PMC_EV_PPC970() \ 2212 __PMC_EV(PPC970, INSTR_COMPLETED) \ 2213 __PMC_EV(PPC970, MARKED_GROUP_DISPATCH) \ 2214 __PMC_EV(PPC970, MARKED_STORE_COMPLETED) \ 2215 __PMC_EV(PPC970, GCT_EMPTY) \ 2216 __PMC_EV(PPC970, RUN_CYCLES) \ 2217 __PMC_EV(PPC970, OVERFLOW) \ 2218 __PMC_EV(PPC970, CYCLES) \ 2219 __PMC_EV(PPC970, THRESHOLD_TIMEOUT) \ 2220 __PMC_EV(PPC970, GROUP_DISPATCH) \ 2221 __PMC_EV(PPC970, BR_MARKED_INSTR_FINISH) \ 2222 __PMC_EV(PPC970, GCT_EMPTY_BY_SRQ_FULL) \ 2223 __PMC_EV(PPC970, STOP_COMPLETION) \ 2224 __PMC_EV(PPC970, LSU_EMPTY) \ 2225 __PMC_EV(PPC970, MARKED_STORE_WITH_INTR) \ 2226 __PMC_EV(PPC970, CYCLES_IN_SUPER) \ 2227 __PMC_EV(PPC970, VPU_MARKED_INSTR_COMPLETED) \ 2228 __PMC_EV(PPC970, FXU0_IDLE_FXU1_BUSY) \ 2229 __PMC_EV(PPC970, SRQ_EMPTY) \ 2230 __PMC_EV(PPC970, MARKED_GROUP_COMPLETED) \ 2231 __PMC_EV(PPC970, CR_MARKED_INSTR_FINISH) \ 2232 __PMC_EV(PPC970, DISPATCH_SUCCESS) \ 2233 __PMC_EV(PPC970, FXU0_IDLE_FXU1_IDLE) \ 2234 __PMC_EV(PPC970, ONE_PLUS_INSTR_COMPLETED) \ 2235 __PMC_EV(PPC970, GROUP_MARKED_IDU) \ 2236 __PMC_EV(PPC970, MARKED_GROUP_COMPLETE_TIMEOUT) \ 2237 __PMC_EV(PPC970, FXU0_BUSY_FXU1_BUSY) \ 2238 __PMC_EV(PPC970, MARKED_STORE_SENT_TO_STS) \ 2239 __PMC_EV(PPC970, FXU_MARKED_INSTR_FINISHED) \ 2240 __PMC_EV(PPC970, MARKED_GROUP_ISSUED) \ 2241 __PMC_EV(PPC970, FXU0_BUSY_FXU1_IDLE) \ 2242 __PMC_EV(PPC970, GROUP_COMPLETED) \ 2243 __PMC_EV(PPC970, FPU_MARKED_INSTR_COMPLETED) \ 2244 __PMC_EV(PPC970, MARKED_INSTR_FINISH_ANY_UNIT) \ 2245 __PMC_EV(PPC970, EXTERNAL_INTERRUPT) \ 2246 __PMC_EV(PPC970, GROUP_DISPATCH_REJECT) \ 2247 __PMC_EV(PPC970, LSU_MARKED_INSTR_FINISH) \ 2248 __PMC_EV(PPC970, TIMEBASE_EVENT) \ 2249 __PMC_EV(PPC970, LSU_COMPLETION_STALL) \ 2250 __PMC_EV(PPC970, FXU_COMPLETION_STALL) \ 2251 __PMC_EV(PPC970, DCACHE_MISS_COMPLETION_STALL) \ 2252 __PMC_EV(PPC970, FPU_COMPLETION_STALL) \ 2253 __PMC_EV(PPC970, FXU_LONG_INSTR_COMPLETION_STALL) \ 2254 __PMC_EV(PPC970, REJECT_COMPLETION_STALL) \ 2255 __PMC_EV(PPC970, FPU_LONG_INSTR_COMPLETION_STALL) \ 2256 __PMC_EV(PPC970, GCT_EMPTY_BY_ICACHE_MISS) \ 2257 __PMC_EV(PPC970, REJECT_COMPLETION_STALL_ERAT_MISS) \ 2258 __PMC_EV(PPC970, GCT_EMPTY_BY_BRANCH_MISS_PREDICT) \ 2259 __PMC_EV(PPC970, BUS_HIGH) \ 2260 __PMC_EV(PPC970, BUS_LOW) \ 2261 __PMC_EV(PPC970, ADDER) 2262 2263 2264 #define PMC_EV_PPC970_FIRST PMC_EV_PPC970_INSTR_COMPLETED 2265 #define PMC_EV_PPC970_LAST PMC_EV_PPC970_ADDER 2266 2267 #define __PMC_EV_E500() \ 2268 __PMC_EV(E500, CYCLES) \ 2269 __PMC_EV(E500, INSTR_COMPLETED) \ 2270 __PMC_EV(E500, UOPS_COMPLETED) \ 2271 __PMC_EV(E500, INSTR_FETCHED) \ 2272 __PMC_EV(E500, UOPS_DECODED) \ 2273 __PMC_EV(E500, PM_EVENT_TRANSITIONS) \ 2274 __PMC_EV(E500, PM_EVENT_CYCLES) \ 2275 __PMC_EV(E500, BRANCH_INSTRS_COMPLETED) \ 2276 __PMC_EV(E500, LOAD_UOPS_COMPLETED) \ 2277 __PMC_EV(E500, STORE_UOPS_COMPLETED) \ 2278 __PMC_EV(E500, CQ_REDIRECTS) \ 2279 __PMC_EV(E500, BRANCHES_FINISHED) \ 2280 __PMC_EV(E500, TAKEN_BRANCHES_FINISHED) \ 2281 __PMC_EV(E500, FINISHED_UNCOND_BRANCHES_MISS_BTB) \ 2282 __PMC_EV(E500, BRANCH_MISPRED) \ 2283 __PMC_EV(E500, BTB_BRANCH_MISPRED_FROM_DIRECTION) \ 2284 __PMC_EV(E500, BTB_HITS_PSEUDO_HITS) \ 2285 __PMC_EV(E500, CYCLES_DECODE_STALLED) \ 2286 __PMC_EV(E500, CYCLES_ISSUE_STALLED) \ 2287 __PMC_EV(E500, CYCLES_BRANCH_ISSUE_STALLED) \ 2288 __PMC_EV(E500, CYCLES_SU1_SCHED_STALLED) \ 2289 __PMC_EV(E500, CYCLES_SU2_SCHED_STALLED) \ 2290 __PMC_EV(E500, CYCLES_MU_SCHED_STALLED) \ 2291 __PMC_EV(E500, CYCLES_LRU_SCHED_STALLED) \ 2292 __PMC_EV(E500, CYCLES_BU_SCHED_STALLED) \ 2293 __PMC_EV(E500, TOTAL_TRANSLATED) \ 2294 __PMC_EV(E500, LOADS_TRANSLATED) \ 2295 __PMC_EV(E500, STORES_TRANSLATED) \ 2296 __PMC_EV(E500, TOUCHES_TRANSLATED) \ 2297 __PMC_EV(E500, CACHEOPS_TRANSLATED) \ 2298 __PMC_EV(E500, CACHE_INHIBITED_ACCESS_TRANSLATED) \ 2299 __PMC_EV(E500, GUARDED_LOADS_TRANSLATED) \ 2300 __PMC_EV(E500, WRITE_THROUGH_STORES_TRANSLATED) \ 2301 __PMC_EV(E500, MISALIGNED_LOAD_STORE_ACCESS_TRANSLATED) \ 2302 __PMC_EV(E500, TOTAL_ALLOCATED_TO_DLFB) \ 2303 __PMC_EV(E500, LOADS_TRANSLATED_ALLOCATED_TO_DLFB) \ 2304 __PMC_EV(E500, STORES_COMPLETED_ALLOCATED_TO_DLFB) \ 2305 __PMC_EV(E500, TOUCHES_TRANSLATED_ALLOCATED_TO_DLFB) \ 2306 __PMC_EV(E500, STORES_COMPLETED) \ 2307 __PMC_EV(E500, DATA_L1_CACHE_LOCKS) \ 2308 __PMC_EV(E500, DATA_L1_CACHE_RELOADS) \ 2309 __PMC_EV(E500, DATA_L1_CACHE_CASTOUTS) \ 2310 __PMC_EV(E500, LOAD_MISS_DLFB_FULL) \ 2311 __PMC_EV(E500, LOAD_MISS_LDQ_FULL) \ 2312 __PMC_EV(E500, LOAD_GUARDED_MISS) \ 2313 __PMC_EV(E500, STORE_TRANSLATE_WHEN_QUEUE_FULL) \ 2314 __PMC_EV(E500, ADDRESS_COLLISION) \ 2315 __PMC_EV(E500, DATA_MMU_MISS) \ 2316 __PMC_EV(E500, DATA_MMU_BUSY) \ 2317 __PMC_EV(E500, PART2_MISALIGNED_CACHE_ACCESS) \ 2318 __PMC_EV(E500, LOAD_MISS_DLFB_FULL_CYCLES) \ 2319 __PMC_EV(E500, LOAD_MISS_LDQ_FULL_CYCLES) \ 2320 __PMC_EV(E500, LOAD_GUARDED_MISS_CYCLES) \ 2321 __PMC_EV(E500, STORE_TRANSLATE_WHEN_QUEUE_FULL_CYCLES) \ 2322 __PMC_EV(E500, ADDRESS_COLLISION_CYCLES) \ 2323 __PMC_EV(E500, DATA_MMU_MISS_CYCLES) \ 2324 __PMC_EV(E500, DATA_MMU_BUSY_CYCLES) \ 2325 __PMC_EV(E500, PART2_MISALIGNED_CACHE_ACCESS_CYCLES) \ 2326 __PMC_EV(E500, INSTR_L1_CACHE_LOCKS) \ 2327 __PMC_EV(E500, INSTR_L1_CACHE_RELOADS) \ 2328 __PMC_EV(E500, INSTR_L1_CACHE_FETCHES) \ 2329 __PMC_EV(E500, INSTR_MMU_TLB4K_RELOADS) \ 2330 __PMC_EV(E500, INSTR_MMU_VSP_RELOADS) \ 2331 __PMC_EV(E500, DATA_MMU_TLB4K_RELOADS) \ 2332 __PMC_EV(E500, DATA_MMU_VSP_RELOADS) \ 2333 __PMC_EV(E500, L2MMU_MISSES) \ 2334 __PMC_EV(E500, BIU_MASTER_REQUESTS) \ 2335 __PMC_EV(E500, BIU_MASTER_INSTR_SIDE_REQUESTS) \ 2336 __PMC_EV(E500, BIU_MASTER_DATA_SIDE_REQUESTS) \ 2337 __PMC_EV(E500, BIU_MASTER_DATA_SIDE_CASTOUT_REQUESTS) \ 2338 __PMC_EV(E500, BIU_MASTER_RETRIES) \ 2339 __PMC_EV(E500, SNOOP_REQUESTS) \ 2340 __PMC_EV(E500, SNOOP_HITS) \ 2341 __PMC_EV(E500, SNOOP_PUSHES) \ 2342 __PMC_EV(E500, SNOOP_RETRIES) \ 2343 __PMC_EV(E500, DLFB_LOAD_MISS_CYCLES) \ 2344 __PMC_EV(E500, ILFB_FETCH_MISS_CYCLES) \ 2345 __PMC_EV(E500, EXT_INPU_INTR_LATENCY_CYCLES) \ 2346 __PMC_EV(E500, CRIT_INPUT_INTR_LATENCY_CYCLES) \ 2347 __PMC_EV(E500, EXT_INPUT_INTR_PENDING_LATENCY_CYCLES) \ 2348 __PMC_EV(E500, CRIT_INPUT_INTR_PENDING_LATENCY_CYCLES) \ 2349 __PMC_EV(E500, PMC0_OVERFLOW) \ 2350 __PMC_EV(E500, PMC1_OVERFLOW) \ 2351 __PMC_EV(E500, PMC2_OVERFLOW) \ 2352 __PMC_EV(E500, PMC3_OVERFLOW) \ 2353 __PMC_EV(E500, INTERRUPTS_TAKEN) \ 2354 __PMC_EV(E500, EXT_INPUT_INTR_TAKEN) \ 2355 __PMC_EV(E500, CRIT_INPUT_INTR_TAKEN) \ 2356 __PMC_EV(E500, SYSCALL_TRAP_INTR) \ 2357 __PMC_EV(E500, TLB_BIT_TRANSITIONS) \ 2358 __PMC_EV(E500, L2_LINEFILL_BUFFER) \ 2359 __PMC_EV(E500, LV2_VS) \ 2360 __PMC_EV(E500, CASTOUTS_RELEASED) \ 2361 __PMC_EV(E500, INTV_ALLOCATIONS) \ 2362 __PMC_EV(E500, DLFB_RETRIES_TO_MBAR) \ 2363 __PMC_EV(E500, STORE_RETRIES) \ 2364 __PMC_EV(E500, STASH_L1_HITS) \ 2365 __PMC_EV(E500, STASH_L2_HITS) \ 2366 __PMC_EV(E500, STASH_BUSY_1) \ 2367 __PMC_EV(E500, STASH_BUSY_2) \ 2368 __PMC_EV(E500, STASH_BUSY_3) \ 2369 __PMC_EV(E500, STASH_HITS) \ 2370 __PMC_EV(E500, STASH_HIT_DLFB) \ 2371 __PMC_EV(E500, STASH_REQUESTS) \ 2372 __PMC_EV(E500, STASH_REQUESTS_L1) \ 2373 __PMC_EV(E500, STASH_REQUESTS_L2) \ 2374 __PMC_EV(E500, STALLS_NO_CAQ_OR_COB) \ 2375 __PMC_EV(E500, L2_CACHE_ACCESSES) \ 2376 __PMC_EV(E500, L2_HIT_CACHE_ACCESSES) \ 2377 __PMC_EV(E500, L2_CACHE_DATA_ACCESSES) \ 2378 __PMC_EV(E500, L2_CACHE_DATA_HITS) \ 2379 __PMC_EV(E500, L2_CACHE_INSTR_ACCESSES) \ 2380 __PMC_EV(E500, L2_CACHE_INSTR_HITS) \ 2381 __PMC_EV(E500, L2_CACHE_ALLOCATIONS) \ 2382 __PMC_EV(E500, L2_CACHE_DATA_ALLOCATIONS) \ 2383 __PMC_EV(E500, L2_CACHE_DIRTY_DATA_ALLOCATIONS) \ 2384 __PMC_EV(E500, L2_CACHE_INSTR_ALLOCATIONS) \ 2385 __PMC_EV(E500, L2_CACHE_UPDATES) \ 2386 __PMC_EV(E500, L2_CACHE_CLEAN_UPDATES) \ 2387 __PMC_EV(E500, L2_CACHE_DIRTY_UPDATES) \ 2388 __PMC_EV(E500, L2_CACHE_CLEAN_REDUNDANT_UPDATES) \ 2389 __PMC_EV(E500, L2_CACHE_DIRTY_REDUNDANT_UPDATES) \ 2390 __PMC_EV(E500, L2_CACHE_LOCKS) \ 2391 __PMC_EV(E500, L2_CACHE_CASTOUTS) \ 2392 __PMC_EV(E500, L2_CACHE_DATA_DIRTY_HITS) \ 2393 __PMC_EV(E500, INSTR_LFB_WENT_HIGH_PRIORITY) \ 2394 __PMC_EV(E500, SNOOP_THROTTLING_TURNED_ON) \ 2395 __PMC_EV(E500, L2_CLEAN_LINE_INVALIDATIONS) \ 2396 __PMC_EV(E500, L2_INCOHERENT_LINE_INVALIDATIONS) \ 2397 __PMC_EV(E500, L2_COHERENT_LINE_INVALIDATIONS) \ 2398 __PMC_EV(E500, COHERENT_LOOKUP_MISS_DUE_TO_VALID_BUT_INCOHERENT_MATCHES) \ 2399 __PMC_EV(E500, IAC1S_DETECTED) \ 2400 __PMC_EV(E500, IAC2S_DETECTED) \ 2401 __PMC_EV(E500, DAC1S_DTECTED) \ 2402 __PMC_EV(E500, DAC2S_DTECTED) \ 2403 __PMC_EV(E500, DVT0_DETECTED) \ 2404 __PMC_EV(E500, DVT1_DETECTED) \ 2405 __PMC_EV(E500, DVT2_DETECTED) \ 2406 __PMC_EV(E500, DVT3_DETECTED) \ 2407 __PMC_EV(E500, DVT4_DETECTED) \ 2408 __PMC_EV(E500, DVT5_DETECTED) \ 2409 __PMC_EV(E500, DVT6_DETECTED) \ 2410 __PMC_EV(E500, DVT7_DETECTED) \ 2411 __PMC_EV(E500, CYCLES_COMPLETION_STALLED_NEXUS_FIFO_FULL) \ 2412 __PMC_EV(E500, FPU_DOUBLE_PUMP) \ 2413 __PMC_EV(E500, FPU_FINISH) \ 2414 __PMC_EV(E500, FPU_DIVIDE_CYCLES) \ 2415 __PMC_EV(E500, FPU_DENORM_INPUT_CYCLES) \ 2416 __PMC_EV(E500, FPU_RESULT_STALL_CYCLES) \ 2417 __PMC_EV(E500, FPU_FPSCR_FULL_STALL) \ 2418 __PMC_EV(E500, FPU_PIPE_SYNC_STALLS) \ 2419 __PMC_EV(E500, FPU_INPUT_DATA_STALLS) \ 2420 __PMC_EV(E500, DECORATED_LOADS) \ 2421 __PMC_EV(E500, DECORATED_STORES) \ 2422 __PMC_EV(E500, LOAD_RETRIES) \ 2423 __PMC_EV(E500, STWCX_SUCCESSES) \ 2424 __PMC_EV(E500, STWCX_FAILURES) \ 2425 2426 #define PMC_EV_E500_FIRST PMC_EV_E500_CYCLES 2427 #define PMC_EV_E500_LAST PMC_EV_E500_STWCX_FAILURES 2428 /* 2429 * All known PMC events. 2430 * 2431 * PMC event numbers are allocated sparsely to allow new PMC events to 2432 * be added to a PMC class without breaking ABI compatibility. The 2433 * current allocation scheme is: 2434 * 2435 * START #EVENTS DESCRIPTION 2436 * 0 0x1000 Reserved 2437 * 0x1000 0x0001 TSC 2438 * 0x2000 0x0080 AMD K7 events 2439 * 0x2080 0x0100 AMD K8 events 2440 * 0x10000 0x0080 INTEL architectural fixed-function events 2441 * 0x10080 0x0F80 free (was INTEL architectural programmable events) 2442 * 0x11000 0x0080 free (was INTEL Pentium 4 events) 2443 * 0x11080 0x0080 free (was INTEL Pentium MMX events) 2444 * 0x11100 0x0100 free (was INTEL Pentium Pro/P-II/P-III/Pentium-M events) 2445 * 0x11200 0x00FF free (was INTEL XScale events) 2446 * 0x11300 0x00FF free (was MIPS 24K events) 2447 * 0x11400 0x00FF free (was Octeon events) 2448 * 0x11500 0x00FF free (was MIPS 74K events) 2449 * 0x11600 0x00FF free (was BERI statcounters) 2450 * 0x13000 0x00FF MPC7450 events 2451 * 0x13100 0x00FF IBM PPC970 events 2452 * 0x13200 0x00FF free (was IBM POWER8 events) 2453 * 0x13300 0x00FF Freescale e500 events 2454 * 0x14000 0x0100 ARMv7 events 2455 * 0x14100 0x0400 ARMv8 events 2456 * 0x14500 0x0020 ARM DMC-620 clkdiv2 events 2457 * 0x14520 0x0080 ARM DMC-620 clk events 2458 * 0x14600 0x0100 ARM CMN-600 events 2459 * 0x20000 0x1000 Software events 2460 */ 2461 #define __PMC_EVENTS() \ 2462 __PMC_EV_BLOCK(TSC, 0x01000) \ 2463 __PMC_EV_TSC() \ 2464 __PMC_EV_BLOCK(K7, 0x02000) \ 2465 __PMC_EV_K7() \ 2466 __PMC_EV_BLOCK(K8, 0x02080) \ 2467 __PMC_EV_K8() \ 2468 __PMC_EV_BLOCK(IAF, 0x10000) \ 2469 __PMC_EV_IAF() \ 2470 __PMC_EV_BLOCK(PPC7450, 0x13000) \ 2471 __PMC_EV_PPC7450() \ 2472 __PMC_EV_BLOCK(PPC970, 0x13100) \ 2473 __PMC_EV_PPC970() \ 2474 __PMC_EV_BLOCK(E500, 0x13300) \ 2475 __PMC_EV_E500() \ 2476 __PMC_EV_BLOCK(ARMV7, 0x14000) \ 2477 __PMC_EV_ARMV7() \ 2478 __PMC_EV_BLOCK(ARMV8, 0x14100) \ 2479 __PMC_EV_ARMV8() \ 2480 __PMC_EV_BLOCK(DMC620_PMU_CD2, 0x14500) \ 2481 __PMC_EV_DMC620_PMU_CD2() \ 2482 __PMC_EV_BLOCK(DMC620_PMU_C, 0x14520) \ 2483 __PMC_EV_DMC620_PMU_C() \ 2484 __PMC_EV_BLOCK(CMN600_PMU, 0x14600) \ 2485 __PMC_EV_CMN600_PMU() 2486 2487 #define PMC_EVENT_FIRST PMC_EV_TSC_TSC 2488 #define PMC_EVENT_LAST PMC_EV_SOFT_LAST 2489 2490 #endif /* _DEV_HWPMC_PMC_EVENTS_H_ */ 2491