perf.h 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef _ASM_PERF_H_
  3. #define _ASM_PERF_H_
  4. /* ioctls */
  5. #define PA_PERF_ON _IO('p', 1)
  6. #define PA_PERF_OFF _IOR('p', 2, unsigned int)
  7. #define PA_PERF_VERSION _IOR('p', 3, int)
  8. #define PA_PERF_DEV "perf"
  9. #define PA_PERF_MINOR 146
  10. /* Interface types */
  11. #define UNKNOWN_INTF 255
  12. #define ONYX_INTF 0
  13. #define CUDA_INTF 1
  14. /* Common Onyx and Cuda images */
  15. #define CPI 0
  16. #define BUSUTIL 1
  17. #define TLBMISS 2
  18. #define TLBHANDMISS 3
  19. #define PTKN 4
  20. #define PNTKN 5
  21. #define IMISS 6
  22. #define DMISS 7
  23. #define DMISS_ACCESS 8
  24. #define BIG_CPI 9
  25. #define BIG_LS 10
  26. #define BR_ABORT 11
  27. #define ISNT 12
  28. #define QUADRANT 13
  29. #define RW_PDFET 14
  30. #define RW_WDFET 15
  31. #define SHLIB_CPI 16
  32. /* Cuda only Images */
  33. #define FLOPS 17
  34. #define CACHEMISS 18
  35. #define BRANCHES 19
  36. #define CRSTACK 20
  37. #define I_CACHE_SPEC 21
  38. #define MAX_CUDA_IMAGES 22
  39. /* Onyx only Images */
  40. #define ADDR_INV_ABORT_ALU 17
  41. #define BRAD_STALL 18
  42. #define CNTL_IN_PIPEL 19
  43. #define DSNT_XFH 20
  44. #define FET_SIG1 21
  45. #define FET_SIG2 22
  46. #define G7_1 23
  47. #define G7_2 24
  48. #define G7_3 25
  49. #define G7_4 26
  50. #define MPB_LABORT 27
  51. #define PANIC 28
  52. #define RARE_INST 29
  53. #define RW_DFET 30
  54. #define RW_IFET 31
  55. #define RW_SDFET 32
  56. #define SPEC_IFET 33
  57. #define ST_COND0 34
  58. #define ST_COND1 35
  59. #define ST_COND2 36
  60. #define ST_COND3 37
  61. #define ST_COND4 38
  62. #define ST_UNPRED0 39
  63. #define ST_UNPRED1 40
  64. #define UNPRED 41
  65. #define GO_STORE 42
  66. #define SHLIB_CALL 43
  67. #define MAX_ONYX_IMAGES 44
  68. #endif