Go to the documentation of this file.
14 #ifndef _UAPI_LINUX_PERF_EVENT_H
15 #define _UAPI_LINUX_PERF_EVENT_H
17 #include <linux/types.h>
19 #include <asm/byteorder.h>
162 #define PERF_SAMPLE_BRANCH_PLM_ALL \
163 (PERF_SAMPLE_BRANCH_USER|\
164 PERF_SAMPLE_BRANCH_KERNEL|\
165 PERF_SAMPLE_BRANCH_HV)
205 #define PERF_ATTR_SIZE_VER0 64
206 #define PERF_ATTR_SIZE_VER1 72
207 #define PERF_ATTR_SIZE_VER2 80
208 #define PERF_ATTR_SIZE_VER3 96
307 #define perf_flags(attr) (*(&(attr)->read_format + 1))
312 #define PERF_EVENT_IOC_ENABLE _IO ('$', 0)
313 #define PERF_EVENT_IOC_DISABLE _IO ('$', 1)
314 #define PERF_EVENT_IOC_REFRESH _IO ('$', 2)
315 #define PERF_EVENT_IOC_RESET _IO ('$', 3)
316 #define PERF_EVENT_IOC_PERIOD _IOW('$', 4, __u64)
317 #define PERF_EVENT_IOC_SET_OUTPUT _IO ('$', 5)
318 #define PERF_EVENT_IOC_SET_FILTER _IOW('$', 6, char *)
438 #define PERF_RECORD_MISC_CPUMODE_MASK (7 << 0)
439 #define PERF_RECORD_MISC_CPUMODE_UNKNOWN (0 << 0)
440 #define PERF_RECORD_MISC_KERNEL (1 << 0)
441 #define PERF_RECORD_MISC_USER (2 << 0)
442 #define PERF_RECORD_MISC_HYPERVISOR (3 << 0)
443 #define PERF_RECORD_MISC_GUEST_KERNEL (4 << 0)
444 #define PERF_RECORD_MISC_GUEST_USER (5 << 0)
451 #define PERF_RECORD_MISC_EXACT_IP (1 << 14)
455 #define PERF_RECORD_MISC_EXT_RESERVED (1 << 15)
597 #define PERF_MAX_STACK_DEPTH 127
611 #define PERF_FLAG_FD_NO_GROUP (1U << 0)
612 #define PERF_FLAG_FD_OUTPUT (1U << 1)
613 #define PERF_FLAG_PID_CGROUP (1U << 2)