power8-events-list.h 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. /* SPDX-License-Identifier: GPL-2.0-or-later */
  2. /*
  3. * Performance counter support for POWER8 processors.
  4. *
  5. * Copyright 2014 Sukadev Bhattiprolu, IBM Corporation.
  6. */
  7. /*
  8. * Power8 event codes.
  9. */
  10. EVENT(PM_CYC, 0x0001e)
  11. EVENT(PM_GCT_NOSLOT_CYC, 0x100f8)
  12. EVENT(PM_CMPLU_STALL, 0x4000a)
  13. EVENT(PM_INST_CMPL, 0x00002)
  14. EVENT(PM_BRU_FIN, 0x10068)
  15. EVENT(PM_BR_MPRED_CMPL, 0x400f6)
  16. /* All L1 D cache load references counted at finish, gated by reject */
  17. EVENT(PM_LD_REF_L1, 0x100ee)
  18. /* Load Missed L1 */
  19. EVENT(PM_LD_MISS_L1, 0x3e054)
  20. /* Store Missed L1 */
  21. EVENT(PM_ST_MISS_L1, 0x300f0)
  22. /* L1 cache data prefetches */
  23. EVENT(PM_L1_PREF, 0x0d8b8)
  24. /* Instruction fetches from L1 */
  25. EVENT(PM_INST_FROM_L1, 0x04080)
  26. /* Demand iCache Miss */
  27. EVENT(PM_L1_ICACHE_MISS, 0x200fd)
  28. /* Instruction Demand sectors wriittent into IL1 */
  29. EVENT(PM_L1_DEMAND_WRITE, 0x0408c)
  30. /* Instruction prefetch written into IL1 */
  31. EVENT(PM_IC_PREF_WRITE, 0x0408e)
  32. /* The data cache was reloaded from local core's L3 due to a demand load */
  33. EVENT(PM_DATA_FROM_L3, 0x4c042)
  34. /* Demand LD - L3 Miss (not L2 hit and not L3 hit) */
  35. EVENT(PM_DATA_FROM_L3MISS, 0x300fe)
  36. /* All successful D-side store dispatches for this thread */
  37. EVENT(PM_L2_ST, 0x17080)
  38. /* All successful D-side store dispatches for this thread that were L2 Miss */
  39. EVENT(PM_L2_ST_MISS, 0x17082)
  40. /* Total HW L3 prefetches(Load+store) */
  41. EVENT(PM_L3_PREF_ALL, 0x4e052)
  42. /* Data PTEG reload */
  43. EVENT(PM_DTLB_MISS, 0x300fc)
  44. /* ITLB Reloaded */
  45. EVENT(PM_ITLB_MISS, 0x400fc)
  46. /* Run_Instructions */
  47. EVENT(PM_RUN_INST_CMPL, 0x500fa)
  48. /* Alternate event code for PM_RUN_INST_CMPL */
  49. EVENT(PM_RUN_INST_CMPL_ALT, 0x400fa)
  50. /* Run_cycles */
  51. EVENT(PM_RUN_CYC, 0x600f4)
  52. /* Alternate event code for Run_cycles */
  53. EVENT(PM_RUN_CYC_ALT, 0x200f4)
  54. /* Marked store completed */
  55. EVENT(PM_MRK_ST_CMPL, 0x10134)
  56. /* Alternate event code for Marked store completed */
  57. EVENT(PM_MRK_ST_CMPL_ALT, 0x301e2)
  58. /* Marked two path branch */
  59. EVENT(PM_BR_MRK_2PATH, 0x10138)
  60. /* Alternate event code for PM_BR_MRK_2PATH */
  61. EVENT(PM_BR_MRK_2PATH_ALT, 0x40138)
  62. /* L3 castouts in Mepf state */
  63. EVENT(PM_L3_CO_MEPF, 0x18082)
  64. /* Alternate event code for PM_L3_CO_MEPF */
  65. EVENT(PM_L3_CO_MEPF_ALT, 0x3e05e)
  66. /* Data cache was reloaded from a location other than L2 due to a marked load */
  67. EVENT(PM_MRK_DATA_FROM_L2MISS, 0x1d14e)
  68. /* Alternate event code for PM_MRK_DATA_FROM_L2MISS */
  69. EVENT(PM_MRK_DATA_FROM_L2MISS_ALT, 0x401e8)
  70. /* Alternate event code for PM_CMPLU_STALL */
  71. EVENT(PM_CMPLU_STALL_ALT, 0x1e054)
  72. /* Two path branch */
  73. EVENT(PM_BR_2PATH, 0x20036)
  74. /* Alternate event code for PM_BR_2PATH */
  75. EVENT(PM_BR_2PATH_ALT, 0x40036)
  76. /* # PPC Dispatched */
  77. EVENT(PM_INST_DISP, 0x200f2)
  78. /* Alternate event code for PM_INST_DISP */
  79. EVENT(PM_INST_DISP_ALT, 0x300f2)
  80. /* Marked filter Match */
  81. EVENT(PM_MRK_FILT_MATCH, 0x2013c)
  82. /* Alternate event code for PM_MRK_FILT_MATCH */
  83. EVENT(PM_MRK_FILT_MATCH_ALT, 0x3012e)
  84. /* Alternate event code for PM_LD_MISS_L1 */
  85. EVENT(PM_LD_MISS_L1_ALT, 0x400f0)
  86. /*
  87. * Memory Access Event -- mem_access
  88. * Primary PMU event used here is PM_MRK_INST_CMPL, along with
  89. * Random Load/Store Facility Sampling (RIS) in Random sampling mode (MMCRA[SM]).
  90. */
  91. EVENT(MEM_ACCESS, 0x10401e0)