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