1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440
|
/*
* Copyright (c) 2014 Google Inc. All rights reserved
* Contributed by Stephane Eranian <eranian@gmail.com>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
* of the Software, and to permit persons to whom the Software is furnished to do so,
* subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
* INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
* PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
* HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
* CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE
* OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*
* Cortex A57 r1p1
* based on Table 11-24 from the "Cortex A57 Technical Reference Manual"
*/
static const arm_entry_t arm_cortex_a57_pe[]={
{.name = "SW_INCR",
.modmsk = ARMV8_ATTRS,
.code = 0x00,
.desc = "Instruction architecturally executed (condition check pass) Software increment"
},
{.name = "L1I_CACHE_REFILL",
.modmsk = ARMV8_ATTRS,
.code = 0x01,
.desc = "Level 1 instruction cache refill"
},
{.name = "L1I_TLB_REFILL",
.modmsk = ARMV8_ATTRS,
.code = 0x02,
.desc = "Level 1 instruction TLB refill"
},
{.name = "L1D_CACHE_REFILL",
.modmsk = ARMV8_ATTRS,
.code = 0x03,
.desc = "Level 1 data cache refill"
},
{.name = "L1D_CACHE_ACCESS",
.modmsk = ARMV8_ATTRS,
.code = 0x04,
.desc = "Level 1 data cache access"
},
{.name = "L1D_TLB_REFILL",
.modmsk = ARMV8_ATTRS,
.code = 0x05,
.desc = "Level 1 data TLB refill"
},
{.name = "INST_RETIRED",
.modmsk = ARMV8_ATTRS,
.code = 0x08,
.desc = "Instruction architecturally executed"
},
{.name = "EXCEPTION_TAKEN",
.modmsk = ARMV8_ATTRS,
.code = 0x09,
.desc = "Exception taken"
},
{.name = "EXCEPTION_RETURN",
.modmsk = ARMV8_ATTRS,
.code = 0x0a,
.desc = "Instruction architecturally executed (condition check pass) Exception return"
},
{.name = "CID_WRITE_RETIRED",
.modmsk = ARMV8_ATTRS,
.code = 0x0b,
.desc = "Instruction architecturally executed (condition check pass) Write to CONTEXTIDR"
},
{.name = "BRANCH_MISPRED",
.modmsk = ARMV8_ATTRS,
.code = 0x10,
.desc = "Mispredicted or not predicted branch speculatively executed"
},
{.name = "CPU_CYCLES",
.modmsk = ARMV8_ATTRS,
.code = 0x11,
.desc = "Cycles"
},
{.name = "BRANCH_PRED",
.modmsk = ARMV8_ATTRS,
.code = 0x12,
.desc = "Predictable branch speculatively executed"
},
{.name = "DATA_MEM_ACCESS",
.modmsk = ARMV8_ATTRS,
.code = 0x13,
.desc = "Data memory access"
},
{.name = "L1I_CACHE_ACCESS",
.modmsk = ARMV8_ATTRS,
.code = 0x14,
.desc = "Level 1 instruction cache access"
},
{.name = "L1D_CACHE_WB",
.modmsk = ARMV8_ATTRS,
.code = 0x15,
.desc = "Level 1 data cache WriteBack"
},
{.name = "L2D_CACHE_ACCESS",
.modmsk = ARMV8_ATTRS,
.code = 0x16,
.desc = "Level 2 data cache access"
},
{.name = "L2D_CACHE_REFILL",
.modmsk = ARMV8_ATTRS,
.code = 0x17,
.desc = "Level 2 data cache refill"
},
{.name = "L2D_CACHE_WB",
.modmsk = ARMV8_ATTRS,
.code = 0x18,
.desc = "Level 2 data cache WriteBack"
},
{.name = "BUS_ACCESS",
.modmsk = ARMV8_ATTRS,
.code = 0x19,
.desc = "Bus access"
},
{.name = "LOCAL_MEMORY_ERROR",
.modmsk = ARMV8_ATTRS,
.code = 0x1a,
.desc = "Local memory error"
},
{.name = "INST_SPEC_EXEC",
.modmsk = ARMV8_ATTRS,
.code = 0x1b,
.desc = "Instruction speculatively executed"
},
{.name = "TTBR_WRITE_RETIRED",
.modmsk = ARMV8_ATTRS,
.code = 0x1c,
.desc = "Instruction architecturally executed (condition check pass) Write to translation table base"
},
{.name = "BUS_CYCLES",
.modmsk = ARMV8_ATTRS,
.code = 0x1d,
.desc = "Bus cycle"
},
{.name = "L1D_READ_ACCESS",
.modmsk = ARMV8_ATTRS,
.code = 0x40,
.desc = "Level 1 data cache read access"
},
{.name = "L1D_WRITE_ACCESS",
.modmsk = ARMV8_ATTRS,
.code = 0x41,
.desc = "Level 1 data cache write access"
},
{.name = "L1D_READ_REFILL",
.modmsk = ARMV8_ATTRS,
.code = 0x42,
.desc = "Level 1 data cache read refill"
},
{.name = "L1D_WRITE_REFILL",
.modmsk = ARMV8_ATTRS,
.code = 0x43,
.desc = "Level 1 data cache write refill"
},
{.name = "L1D_WB_VICTIM",
.modmsk = ARMV8_ATTRS,
.code = 0x46,
.desc = "Level 1 data cache writeback victim"
},
{.name = "L1D_WB_CLEAN_COHERENCY",
.modmsk = ARMV8_ATTRS,
.code = 0x47,
.desc = "Level 1 data cache writeback cleaning and coherency"
},
{.name = "L1D_INVALIDATE",
.modmsk = ARMV8_ATTRS,
.code = 0x48,
.desc = "Level 1 data cache invalidate"
},
{.name = "L1D_TLB_READ_REFILL",
.modmsk = ARMV8_ATTRS,
.code = 0x4c,
.desc = "Level 1 data TLB read refill"
},
{.name = "L1D_TLB_WRITE_REFILL",
.modmsk = ARMV8_ATTRS,
.code = 0x4d,
.desc = "Level 1 data TLB write refill"
},
{.name = "L2D_READ_ACCESS",
.modmsk = ARMV8_ATTRS,
.code = 0x50,
.desc = "Level 2 data cache read access"
},
{.name = "L2D_WRITE_ACCESS",
.modmsk = ARMV8_ATTRS,
.code = 0x51,
.desc = "Level 2 data cache write access"
},
{.name = "L2D_READ_REFILL",
.modmsk = ARMV8_ATTRS,
.code = 0x52,
.desc = "Level 2 data cache read refill"
},
{.name = "L2D_WRITE_REFILL",
.modmsk = ARMV8_ATTRS,
.code = 0x53,
.desc = "Level 2 data cache write refill"
},
{.name = "L2D_WB_VICTIM",
.modmsk = ARMV8_ATTRS,
.code = 0x56,
.desc = "Level 2 data cache writeback victim"
},
{.name = "L2D_WB_CLEAN_COHERENCY",
.modmsk = ARMV8_ATTRS,
.code = 0x57,
.desc = "Level 2 data cache writeback cleaning and coherency"
},
{.name = "L2D_INVALIDATE",
.modmsk = ARMV8_ATTRS,
.code = 0x58,
.desc = "Level 2 data cache invalidate"
},
{.name = "BUS_READ_ACCESS",
.modmsk = ARMV8_ATTRS,
.code = 0x60,
.desc = "Bus read access"
},
{.name = "BUS_WRITE_ACCESS",
.modmsk = ARMV8_ATTRS,
.code = 0x61,
.desc = "Bus write access"
},
{.name = "BUS_NORMAL_ACCESS",
.modmsk = ARMV8_ATTRS,
.code = 0x62,
.desc = "Bus normal access"
},
{.name = "BUS_NOT_NORMAL_ACCESS",
.modmsk = ARMV8_ATTRS,
.code = 0x63,
.desc = "Bus not normal access"
},
{.name = "BUS_NORMAL_ACCESS_2",
.modmsk = ARMV8_ATTRS,
.code = 0x64,
.desc = "Bus normal access"
},
{.name = "BUS_PERIPH_ACCESS",
.modmsk = ARMV8_ATTRS,
.code = 0x65,
.desc = "Bus peripheral access"
},
{.name = "DATA_MEM_READ_ACCESS",
.modmsk = ARMV8_ATTRS,
.code = 0x66,
.desc = "Data memory read access"
},
{.name = "DATA_MEM_WRITE_ACCESS",
.modmsk = ARMV8_ATTRS,
.code = 0x67,
.desc = "Data memory write access"
},
{.name = "UNALIGNED_READ_ACCESS",
.modmsk = ARMV8_ATTRS,
.code = 0x68,
.desc = "Unaligned read access"
},
{.name = "UNALIGNED_WRITE_ACCESS",
.modmsk = ARMV8_ATTRS,
.code = 0x69,
.desc = "Unaligned read access"
},
{.name = "UNALIGNED_ACCESS",
.modmsk = ARMV8_ATTRS,
.code = 0x6a,
.desc = "Unaligned access"
},
{.name = "INST_SPEC_EXEC_LDREX",
.modmsk = ARMV8_ATTRS,
.code = 0x6c,
.desc = "LDREX exclusive instruction speculatively executed"
},
{.name = "INST_SPEC_EXEC_STREX_PASS",
.modmsk = ARMV8_ATTRS,
.code = 0x6d,
.desc = "STREX pass exclusive instruction speculatively executed"
},
{.name = "INST_SPEC_EXEC_STREX_FAIL",
.modmsk = ARMV8_ATTRS,
.code = 0x6e,
.desc = "STREX fail exclusive instruction speculatively executed"
},
{.name = "INST_SPEC_EXEC_LOAD",
.modmsk = ARMV8_ATTRS,
.code = 0x70,
.desc = "Load instruction speculatively executed"
},
{.name = "INST_SPEC_EXEC_STORE",
.modmsk = ARMV8_ATTRS,
.code = 0x71,
.desc = "Store instruction speculatively executed"
},
{.name = "INST_SPEC_EXEC_LOAD_STORE",
.modmsk = ARMV8_ATTRS,
.code = 0x72,
.desc = "Load or store instruction speculatively executed"
},
{.name = "INST_SPEC_EXEC_INTEGER_INST",
.modmsk = ARMV8_ATTRS,
.code = 0x73,
.desc = "Integer data processing instruction speculatively executed"
},
{.name = "INST_SPEC_EXEC_SIMD",
.modmsk = ARMV8_ATTRS,
.code = 0x74,
.desc = "Advanced SIMD instruction speculatively executed"
},
{.name = "INST_SPEC_EXEC_VFP",
.modmsk = ARMV8_ATTRS,
.code = 0x75,
.desc = "VFP instruction speculatively executed"
},
{.name = "INST_SPEC_EXEC_SOFT_PC",
.modmsk = ARMV8_ATTRS,
.code = 0x76,
.desc = "Software of the PC instruction speculatively executed"
},
{.name = "BRANCH_SPEC_EXEC_IMM_BRANCH",
.modmsk = ARMV8_ATTRS,
.code = 0x78,
.desc = "Immediate branch speculatively executed"
},
{.name = "BRANCH_SPEC_EXEC_RET",
.modmsk = ARMV8_ATTRS,
.code = 0x79,
.desc = "Return branch speculatively executed"
},
{.name = "BRANCH_SPEC_EXEC_IND",
.modmsk = ARMV8_ATTRS,
.code = 0x7a,
.desc = "Indirect branch speculatively executed"
},
{.name = "BARRIER_SPEC_EXEC_ISB",
.modmsk = ARMV8_ATTRS,
.code = 0x7c,
.desc = "ISB barrier speculatively executed"
},
{.name = "BARRIER_SPEC_EXEC_DSB",
.modmsk = ARMV8_ATTRS,
.code = 0x7d,
.desc = "DSB barrier speculatively executed"
},
{.name = "BARRIER_SPEC_EXEC_DMB",
.modmsk = ARMV8_ATTRS,
.code = 0x7e,
.desc = "DMB barrier speculatively executed"
},
{.name = "EXCEPTION_UNDEF",
.modmsk = ARMV8_ATTRS,
.code = 0x81,
.desc = "Exception taken, other synchronous"
},
{.name = "EXCEPTION_SVC",
.modmsk = ARMV8_ATTRS,
.code = 0x82,
.desc = "Exception taken, supervisor call"
},
{.name = "EXCEPTION_PABORT",
.modmsk = ARMV8_ATTRS,
.code = 0x83,
.desc = "Exception taken, instruction abort"
},
{.name = "EXCEPTION_DABORT",
.modmsk = ARMV8_ATTRS,
.code = 0x84,
.desc = "Exception taken, data abort or SError"
},
{.name = "EXCEPTION_IRQ",
.modmsk = ARMV8_ATTRS,
.code = 0x86,
.desc = "Exception taken, irq"
},
{.name = "EXCEPTION_FIQ",
.modmsk = ARMV8_ATTRS,
.code = 0x87,
.desc = "Exception taken, irq"
},
{.name = "EXCEPTION_SMC",
.modmsk = ARMV8_ATTRS,
.code = 0x88,
.desc = "Exception taken, secure monitor call"
},
{.name = "EXCEPTION_HVC",
.modmsk = ARMV8_ATTRS,
.code = 0x8a,
.desc = "Exception taken, hypervisor call"
},
{.name = "EXCEPTION_TRAP_PABORT",
.modmsk = ARMV8_ATTRS,
.code = 0x8b,
.desc = "Exception taken, instruction abort not taken locally"
},
{.name = "EXCEPTION_TRAP_DABORT",
.modmsk = ARMV8_ATTRS,
.code = 0x8c,
.desc = "Exception taken, data abort or SError not taken locally"
},
{.name = "EXCEPTION_TRAP_OTHER",
.modmsk = ARMV8_ATTRS,
.code = 0x8d,
.desc = "Exception taken, other traps not taken locally"
},
{.name = "EXCEPTION_TRAP_IRQ",
.modmsk = ARMV8_ATTRS,
.code = 0x8e,
.desc = "Exception taken, irq not taken locally"
},
{.name = "EXCEPTION_TRAP_FIQ",
.modmsk = ARMV8_ATTRS,
.code = 0x8f,
.desc = "Exception taken, fiq not taken locally"
},
{.name = "RC_LD_SPEC",
.modmsk = ARMV8_ATTRS,
.code = 0x90,
.desc = "Release consistency instruction speculatively executed (load-acquire)",
},
{.name = "RC_ST_SPEC",
.modmsk = ARMV8_ATTRS,
.code = 0x91,
.desc = "Release consistency instruction speculatively executed (store-release)",
},
/* END Cortex A47 specific events */
};
|