perf.h 1.9 KB

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