power9-events-list.h 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. /* SPDX-License-Identifier: GPL-2.0-or-later */
  2. /*
  3. * Performance counter support for POWER9 processors.
  4. *
  5. * Copyright 2016 Madhavan Srinivasan, IBM Corporation.
  6. */
  7. /*
  8. * Power9 event codes.
  9. */
  10. EVENT(PM_CYC, 0x0001e)
  11. EVENT(PM_ICT_NOSLOT_CYC, 0x100f8)
  12. EVENT(PM_CMPLU_STALL, 0x1e054)
  13. EVENT(PM_INST_CMPL, 0x00002)
  14. EVENT(PM_BR_CMPL, 0x4d05e)
  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, 0x100fc)
  18. /* Load Missed L1 */
  19. EVENT(PM_LD_MISS_L1_FIN, 0x2c04e)
  20. EVENT(PM_LD_MISS_L1, 0x3e054)
  21. /* Alternate event code for PM_LD_MISS_L1 */
  22. EVENT(PM_LD_MISS_L1_ALT, 0x400f0)
  23. /* Store Missed L1 */
  24. EVENT(PM_ST_MISS_L1, 0x300f0)
  25. /* L1 cache data prefetches */
  26. EVENT(PM_L1_PREF, 0x20054)
  27. /* Instruction fetches from L1 */
  28. EVENT(PM_INST_FROM_L1, 0x04080)
  29. /* Demand iCache Miss */
  30. EVENT(PM_L1_ICACHE_MISS, 0x200fd)
  31. /* Instruction Demand sectors wriittent into IL1 */
  32. EVENT(PM_L1_DEMAND_WRITE, 0x0408c)
  33. /* Instruction prefetch written into IL1 */
  34. EVENT(PM_IC_PREF_WRITE, 0x0488c)
  35. /* The data cache was reloaded from local core's L3 due to a demand load */
  36. EVENT(PM_DATA_FROM_L3, 0x4c042)
  37. /* Demand LD - L3 Miss (not L2 hit and not L3 hit) */
  38. EVENT(PM_DATA_FROM_L3MISS, 0x300fe)
  39. /* All successful D-side store dispatches for this thread */
  40. EVENT(PM_L2_ST, 0x16880)
  41. /* All successful D-side store dispatches for this thread that were L2 Miss */
  42. EVENT(PM_L2_ST_MISS, 0x26880)
  43. /* Total HW L3 prefetches(Load+store) */
  44. EVENT(PM_L3_PREF_ALL, 0x4e052)
  45. /* Data PTEG reload */
  46. EVENT(PM_DTLB_MISS, 0x300fc)
  47. /* ITLB Reloaded */
  48. EVENT(PM_ITLB_MISS, 0x400fc)
  49. /* Run_Instructions */
  50. EVENT(PM_RUN_INST_CMPL, 0x500fa)
  51. /* Alternate event code for PM_RUN_INST_CMPL */
  52. EVENT(PM_RUN_INST_CMPL_ALT, 0x400fa)
  53. /* Run_cycles */
  54. EVENT(PM_RUN_CYC, 0x600f4)
  55. /* Alternate event code for Run_cycles */
  56. EVENT(PM_RUN_CYC_ALT, 0x200f4)
  57. /* Instruction Dispatched */
  58. EVENT(PM_INST_DISP, 0x200f2)
  59. EVENT(PM_INST_DISP_ALT, 0x300f2)
  60. /* Branch event that are not strongly biased */
  61. EVENT(PM_BR_2PATH, 0x20036)
  62. /* ALternate branch event that are not strongly biased */
  63. EVENT(PM_BR_2PATH_ALT, 0x40036)
  64. /* Blacklisted events */
  65. EVENT(PM_MRK_ST_DONE_L2, 0x10134)
  66. EVENT(PM_RADIX_PWC_L1_HIT, 0x1f056)
  67. EVENT(PM_FLOP_CMPL, 0x100f4)
  68. EVENT(PM_MRK_NTF_FIN, 0x20112)
  69. EVENT(PM_RADIX_PWC_L2_HIT, 0x2d024)
  70. EVENT(PM_IFETCH_THROTTLE, 0x3405e)
  71. EVENT(PM_MRK_L2_TM_ST_ABORT_SISTER, 0x3e15c)
  72. EVENT(PM_RADIX_PWC_L3_HIT, 0x3f056)
  73. EVENT(PM_RUN_CYC_SMT2_MODE, 0x3006c)
  74. EVENT(PM_TM_TX_PASS_RUN_INST, 0x4e014)
  75. EVENT(PM_DISP_HELD_SYNC_HOLD, 0x4003c)
  76. EVENT(PM_DTLB_MISS_16G, 0x1c058)
  77. EVENT(PM_DERAT_MISS_2M, 0x1c05a)
  78. EVENT(PM_DTLB_MISS_2M, 0x1c05c)
  79. EVENT(PM_MRK_DTLB_MISS_1G, 0x1d15c)
  80. EVENT(PM_DTLB_MISS_4K, 0x2c056)
  81. EVENT(PM_DERAT_MISS_1G, 0x2c05a)
  82. EVENT(PM_MRK_DERAT_MISS_2M, 0x2d152)
  83. EVENT(PM_MRK_DTLB_MISS_4K, 0x2d156)
  84. EVENT(PM_MRK_DTLB_MISS_16G, 0x2d15e)
  85. EVENT(PM_DTLB_MISS_64K, 0x3c056)
  86. EVENT(PM_MRK_DERAT_MISS_1G, 0x3d152)
  87. EVENT(PM_MRK_DTLB_MISS_64K, 0x3d156)
  88. EVENT(PM_DTLB_MISS_16M, 0x4c056)
  89. EVENT(PM_DTLB_MISS_1G, 0x4c05a)
  90. EVENT(PM_MRK_DTLB_MISS_16M, 0x4c15e)
  91. /*
  92. * Memory Access Events
  93. *
  94. * Primary PMU event used here is PM_MRK_INST_CMPL (0x401e0)
  95. * To enable capturing of memory profiling, these MMCRA bits
  96. * needs to be programmed and corresponding raw event format
  97. * encoding.
  98. *
  99. * MMCRA bits encoding needed are
  100. * SM (Sampling Mode)
  101. * EM (Eligibility for Random Sampling)
  102. * TECE (Threshold Event Counter Event)
  103. * TS (Threshold Start Event)
  104. * TE (Threshold End Event)
  105. *
  106. * Corresponding Raw Encoding bits:
  107. * sample [EM,SM]
  108. * thresh_sel (TECE)
  109. * thresh start (TS)
  110. * thresh end (TE)
  111. */
  112. EVENT(MEM_LOADS, 0x34340401e0)
  113. EVENT(MEM_STORES, 0x343c0401e0)