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