Go to the documentation of this file.
6 #ifndef _UAPI_ASM_IA64_PERFMON_H
7 #define _UAPI_ASM_IA64_PERFMON_H
12 #define PFM_WRITE_PMCS 0x01
13 #define PFM_WRITE_PMDS 0x02
14 #define PFM_READ_PMDS 0x03
16 #define PFM_START 0x05
17 #define PFM_ENABLE 0x06
18 #define PFM_DISABLE 0x07
19 #define PFM_CREATE_CONTEXT 0x08
20 #define PFM_DESTROY_CONTEXT 0x09
21 #define PFM_RESTART 0x0a
22 #define PFM_PROTECT_CONTEXT 0x0b
23 #define PFM_GET_FEATURES 0x0c
24 #define PFM_DEBUG 0x0d
25 #define PFM_UNPROTECT_CONTEXT 0x0e
26 #define PFM_GET_PMC_RESET_VAL 0x0f
27 #define PFM_LOAD_CONTEXT 0x10
28 #define PFM_UNLOAD_CONTEXT 0x11
33 #define PFM_WRITE_IBRS 0x20
34 #define PFM_WRITE_DBRS 0x21
39 #define PFM_FL_NOTIFY_BLOCK 0x01
40 #define PFM_FL_SYSTEM_WIDE 0x02
41 #define PFM_FL_OVFL_NO_MSG 0x80
46 #define PFM_SETFL_EXCL_IDLE 0x01
51 #define PFM_REGFL_OVFL_NOTIFY 0x1
52 #define PFM_REGFL_RANDOM 0x2
60 #define PFM_REG_RETFL_NOTAVAIL (1UL<<31)
61 #define PFM_REG_RETFL_EINVAL (1UL<<30)
62 #define PFM_REG_RETFL_MASK (PFM_REG_RETFL_NOTAVAIL|PFM_REG_RETFL_EINVAL)
64 #define PFM_REG_HAS_ERROR(flag) (((flag) & PFM_REG_RETFL_MASK) != 0)
78 unsigned long ctx_reserved2[11];
95 unsigned long reg_reset_pmds[4];
100 unsigned long reg_smpl_pmds[4];
103 unsigned long reg_reserved2[3];
112 unsigned long dbreg_reserved2[1];
125 unsigned long load_reserved2[3];
131 unsigned long msg_ovfl_pmds[4];
150 #define PFM_MSG_OVFL 1
151 #define PFM_MSG_END 2
162 #define PFM_VERSION_MAJ 2U
163 #define PFM_VERSION_MIN 0U
164 #define PFM_VERSION (((PFM_VERSION_MAJ&0xffff)<<16)|(PFM_VERSION_MIN & 0xffff))
165 #define PFM_VERSION_MAJOR(x) (((x)>>16) & 0xffff)
166 #define PFM_VERSION_MINOR(x) ((x) & 0xffff)
172 #define PMU_FIRST_COUNTER 4
173 #define PMU_MAX_PMCS 256
174 #define PMU_MAX_PMDS 256