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