Nick Pelly | 976c44b | 2010-08-23 14:47:38 -0700 | [diff] [blame] | 1 | /**************************************************************************** |
| 2 | **************************************************************************** |
| 3 | *** |
| 4 | *** This header was automatically generated from a Linux kernel header |
| 5 | *** of the same name, to make information necessary for userspace to |
| 6 | *** call into the kernel available to libc. It contains only constants, |
| 7 | *** structures, and macros generated from the original header, and thus, |
| 8 | *** contains no copyrightable information. |
| 9 | *** |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 10 | *** To edit the content of this header, modify the corresponding |
| 11 | *** source file (e.g. under external/kernel-headers/original/) then |
| 12 | *** run bionic/libc/kernel/tools/update_all.py |
| 13 | *** |
| 14 | *** Any manual change here will be lost the next time this script will |
| 15 | *** be run. You've been warned! |
| 16 | *** |
Nick Pelly | 976c44b | 2010-08-23 14:47:38 -0700 | [diff] [blame] | 17 | **************************************************************************** |
| 18 | ****************************************************************************/ |
| 19 | #ifndef _LINUX_PERF_EVENT_H |
| 20 | #define _LINUX_PERF_EVENT_H |
Nick Pelly | 976c44b | 2010-08-23 14:47:38 -0700 | [diff] [blame] | 21 | #include <linux/types.h> |
| 22 | #include <linux/ioctl.h> |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 23 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Nick Pelly | 976c44b | 2010-08-23 14:47:38 -0700 | [diff] [blame] | 24 | #include <asm/byteorder.h> |
Nick Pelly | 976c44b | 2010-08-23 14:47:38 -0700 | [diff] [blame] | 25 | enum perf_type_id { |
| 26 | PERF_TYPE_HARDWARE = 0, |
| 27 | PERF_TYPE_SOFTWARE = 1, |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 28 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Nick Pelly | 976c44b | 2010-08-23 14:47:38 -0700 | [diff] [blame] | 29 | PERF_TYPE_TRACEPOINT = 2, |
| 30 | PERF_TYPE_HW_CACHE = 3, |
| 31 | PERF_TYPE_RAW = 4, |
| 32 | PERF_TYPE_BREAKPOINT = 5, |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 33 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Nick Pelly | 976c44b | 2010-08-23 14:47:38 -0700 | [diff] [blame] | 34 | PERF_TYPE_MAX, |
| 35 | }; |
Nick Pelly | 976c44b | 2010-08-23 14:47:38 -0700 | [diff] [blame] | 36 | enum perf_hw_id { |
Nick Pelly | 976c44b | 2010-08-23 14:47:38 -0700 | [diff] [blame] | 37 | PERF_COUNT_HW_CPU_CYCLES = 0, |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 38 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Nick Pelly | 976c44b | 2010-08-23 14:47:38 -0700 | [diff] [blame] | 39 | PERF_COUNT_HW_INSTRUCTIONS = 1, |
| 40 | PERF_COUNT_HW_CACHE_REFERENCES = 2, |
| 41 | PERF_COUNT_HW_CACHE_MISSES = 3, |
| 42 | PERF_COUNT_HW_BRANCH_INSTRUCTIONS = 4, |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 43 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Nick Pelly | 976c44b | 2010-08-23 14:47:38 -0700 | [diff] [blame] | 44 | PERF_COUNT_HW_BRANCH_MISSES = 5, |
| 45 | PERF_COUNT_HW_BUS_CYCLES = 6, |
Nick Pelly | 976c44b | 2010-08-23 14:47:38 -0700 | [diff] [blame] | 46 | PERF_COUNT_HW_MAX, |
| 47 | }; |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 48 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Nick Pelly | 976c44b | 2010-08-23 14:47:38 -0700 | [diff] [blame] | 49 | enum perf_hw_cache_id { |
| 50 | PERF_COUNT_HW_CACHE_L1D = 0, |
| 51 | PERF_COUNT_HW_CACHE_L1I = 1, |
| 52 | PERF_COUNT_HW_CACHE_LL = 2, |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 53 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Nick Pelly | 976c44b | 2010-08-23 14:47:38 -0700 | [diff] [blame] | 54 | PERF_COUNT_HW_CACHE_DTLB = 3, |
| 55 | PERF_COUNT_HW_CACHE_ITLB = 4, |
| 56 | PERF_COUNT_HW_CACHE_BPU = 5, |
Nick Pelly | 976c44b | 2010-08-23 14:47:38 -0700 | [diff] [blame] | 57 | PERF_COUNT_HW_CACHE_MAX, |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 58 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Nick Pelly | 976c44b | 2010-08-23 14:47:38 -0700 | [diff] [blame] | 59 | }; |
Nick Pelly | 976c44b | 2010-08-23 14:47:38 -0700 | [diff] [blame] | 60 | enum perf_hw_cache_op_id { |
| 61 | PERF_COUNT_HW_CACHE_OP_READ = 0, |
| 62 | PERF_COUNT_HW_CACHE_OP_WRITE = 1, |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 63 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Nick Pelly | 976c44b | 2010-08-23 14:47:38 -0700 | [diff] [blame] | 64 | PERF_COUNT_HW_CACHE_OP_PREFETCH = 2, |
Nick Pelly | 976c44b | 2010-08-23 14:47:38 -0700 | [diff] [blame] | 65 | PERF_COUNT_HW_CACHE_OP_MAX, |
| 66 | }; |
Nick Pelly | 976c44b | 2010-08-23 14:47:38 -0700 | [diff] [blame] | 67 | enum perf_hw_cache_op_result_id { |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 68 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Nick Pelly | 976c44b | 2010-08-23 14:47:38 -0700 | [diff] [blame] | 69 | PERF_COUNT_HW_CACHE_RESULT_ACCESS = 0, |
| 70 | PERF_COUNT_HW_CACHE_RESULT_MISS = 1, |
Nick Pelly | 976c44b | 2010-08-23 14:47:38 -0700 | [diff] [blame] | 71 | PERF_COUNT_HW_CACHE_RESULT_MAX, |
| 72 | }; |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 73 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Nick Pelly | 976c44b | 2010-08-23 14:47:38 -0700 | [diff] [blame] | 74 | enum perf_sw_ids { |
| 75 | PERF_COUNT_SW_CPU_CLOCK = 0, |
| 76 | PERF_COUNT_SW_TASK_CLOCK = 1, |
| 77 | PERF_COUNT_SW_PAGE_FAULTS = 2, |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 78 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Nick Pelly | 976c44b | 2010-08-23 14:47:38 -0700 | [diff] [blame] | 79 | PERF_COUNT_SW_CONTEXT_SWITCHES = 3, |
| 80 | PERF_COUNT_SW_CPU_MIGRATIONS = 4, |
| 81 | PERF_COUNT_SW_PAGE_FAULTS_MIN = 5, |
| 82 | PERF_COUNT_SW_PAGE_FAULTS_MAJ = 6, |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 83 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Nick Pelly | 976c44b | 2010-08-23 14:47:38 -0700 | [diff] [blame] | 84 | PERF_COUNT_SW_ALIGNMENT_FAULTS = 7, |
| 85 | PERF_COUNT_SW_EMULATION_FAULTS = 8, |
Nick Pelly | 976c44b | 2010-08-23 14:47:38 -0700 | [diff] [blame] | 86 | PERF_COUNT_SW_MAX, |
| 87 | }; |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 88 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Nick Pelly | 976c44b | 2010-08-23 14:47:38 -0700 | [diff] [blame] | 89 | enum perf_event_sample_format { |
| 90 | PERF_SAMPLE_IP = 1U << 0, |
| 91 | PERF_SAMPLE_TID = 1U << 1, |
| 92 | PERF_SAMPLE_TIME = 1U << 2, |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 93 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Nick Pelly | 976c44b | 2010-08-23 14:47:38 -0700 | [diff] [blame] | 94 | PERF_SAMPLE_ADDR = 1U << 3, |
| 95 | PERF_SAMPLE_READ = 1U << 4, |
| 96 | PERF_SAMPLE_CALLCHAIN = 1U << 5, |
| 97 | PERF_SAMPLE_ID = 1U << 6, |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 98 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Nick Pelly | 976c44b | 2010-08-23 14:47:38 -0700 | [diff] [blame] | 99 | PERF_SAMPLE_CPU = 1U << 7, |
| 100 | PERF_SAMPLE_PERIOD = 1U << 8, |
| 101 | PERF_SAMPLE_STREAM_ID = 1U << 9, |
| 102 | PERF_SAMPLE_RAW = 1U << 10, |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 103 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Nick Pelly | 976c44b | 2010-08-23 14:47:38 -0700 | [diff] [blame] | 104 | PERF_SAMPLE_MAX = 1U << 11, |
| 105 | }; |
Nick Pelly | 976c44b | 2010-08-23 14:47:38 -0700 | [diff] [blame] | 106 | enum perf_event_read_format { |
| 107 | PERF_FORMAT_TOTAL_TIME_ENABLED = 1U << 0, |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 108 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Nick Pelly | 976c44b | 2010-08-23 14:47:38 -0700 | [diff] [blame] | 109 | PERF_FORMAT_TOTAL_TIME_RUNNING = 1U << 1, |
| 110 | PERF_FORMAT_ID = 1U << 2, |
| 111 | PERF_FORMAT_GROUP = 1U << 3, |
Nick Pelly | 976c44b | 2010-08-23 14:47:38 -0700 | [diff] [blame] | 112 | PERF_FORMAT_MAX = 1U << 4, |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 113 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Nick Pelly | 976c44b | 2010-08-23 14:47:38 -0700 | [diff] [blame] | 114 | }; |
Elliott Hughes | c95eb57 | 2013-01-29 18:15:55 -0800 | [diff] [blame] | 115 | #define PERF_ATTR_SIZE_VER0 64 |
Nick Pelly | 976c44b | 2010-08-23 14:47:38 -0700 | [diff] [blame] | 116 | struct perf_event_attr { |
Nick Pelly | 976c44b | 2010-08-23 14:47:38 -0700 | [diff] [blame] | 117 | __u32 type; |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 118 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Nick Pelly | 976c44b | 2010-08-23 14:47:38 -0700 | [diff] [blame] | 119 | __u32 size; |
Nick Pelly | 976c44b | 2010-08-23 14:47:38 -0700 | [diff] [blame] | 120 | __u64 config; |
Nick Pelly | 976c44b | 2010-08-23 14:47:38 -0700 | [diff] [blame] | 121 | union { |
| 122 | __u64 sample_period; |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 123 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Nick Pelly | 976c44b | 2010-08-23 14:47:38 -0700 | [diff] [blame] | 124 | __u64 sample_freq; |
| 125 | }; |
Nick Pelly | 976c44b | 2010-08-23 14:47:38 -0700 | [diff] [blame] | 126 | __u64 sample_type; |
| 127 | __u64 read_format; |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 128 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Nick Pelly | 976c44b | 2010-08-23 14:47:38 -0700 | [diff] [blame] | 129 | __u64 disabled : 1, |
| 130 | inherit : 1, |
| 131 | pinned : 1, |
| 132 | exclusive : 1, |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 133 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Nick Pelly | 976c44b | 2010-08-23 14:47:38 -0700 | [diff] [blame] | 134 | exclude_user : 1, |
| 135 | exclude_kernel : 1, |
| 136 | exclude_hv : 1, |
| 137 | exclude_idle : 1, |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 138 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Nick Pelly | 976c44b | 2010-08-23 14:47:38 -0700 | [diff] [blame] | 139 | mmap : 1, |
| 140 | comm : 1, |
| 141 | freq : 1, |
| 142 | inherit_stat : 1, |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 143 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Nick Pelly | 976c44b | 2010-08-23 14:47:38 -0700 | [diff] [blame] | 144 | enable_on_exec : 1, |
| 145 | task : 1, |
| 146 | watermark : 1, |
Nick Pelly | 976c44b | 2010-08-23 14:47:38 -0700 | [diff] [blame] | 147 | precise_ip : 2, |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 148 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Nick Pelly | 976c44b | 2010-08-23 14:47:38 -0700 | [diff] [blame] | 149 | __reserved_1 : 47; |
Nick Pelly | 976c44b | 2010-08-23 14:47:38 -0700 | [diff] [blame] | 150 | union { |
| 151 | __u32 wakeup_events; |
| 152 | __u32 wakeup_watermark; |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 153 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Nick Pelly | 976c44b | 2010-08-23 14:47:38 -0700 | [diff] [blame] | 154 | }; |
Nick Pelly | 976c44b | 2010-08-23 14:47:38 -0700 | [diff] [blame] | 155 | __u32 bp_type; |
| 156 | __u64 bp_addr; |
| 157 | __u64 bp_len; |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 158 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Nick Pelly | 976c44b | 2010-08-23 14:47:38 -0700 | [diff] [blame] | 159 | }; |
Nick Pelly | 976c44b | 2010-08-23 14:47:38 -0700 | [diff] [blame] | 160 | #define PERF_EVENT_IOC_ENABLE _IO ('$', 0) |
| 161 | #define PERF_EVENT_IOC_DISABLE _IO ('$', 1) |
| 162 | #define PERF_EVENT_IOC_REFRESH _IO ('$', 2) |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 163 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Nick Pelly | 976c44b | 2010-08-23 14:47:38 -0700 | [diff] [blame] | 164 | #define PERF_EVENT_IOC_RESET _IO ('$', 3) |
| 165 | #define PERF_EVENT_IOC_PERIOD _IOW('$', 4, __u64) |
| 166 | #define PERF_EVENT_IOC_SET_OUTPUT _IO ('$', 5) |
| 167 | #define PERF_EVENT_IOC_SET_FILTER _IOW('$', 6, char *) |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 168 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Nick Pelly | 976c44b | 2010-08-23 14:47:38 -0700 | [diff] [blame] | 169 | enum perf_event_ioc_flags { |
| 170 | PERF_IOC_FLAG_GROUP = 1U << 0, |
| 171 | }; |
Nick Pelly | 976c44b | 2010-08-23 14:47:38 -0700 | [diff] [blame] | 172 | struct perf_event_mmap_page { |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 173 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Nick Pelly | 976c44b | 2010-08-23 14:47:38 -0700 | [diff] [blame] | 174 | __u32 version; |
| 175 | __u32 compat_version; |
Nick Pelly | 976c44b | 2010-08-23 14:47:38 -0700 | [diff] [blame] | 176 | __u32 lock; |
| 177 | __u32 index; |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 178 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Nick Pelly | 976c44b | 2010-08-23 14:47:38 -0700 | [diff] [blame] | 179 | __s64 offset; |
| 180 | __u64 time_enabled; |
| 181 | __u64 time_running; |
Nick Pelly | 976c44b | 2010-08-23 14:47:38 -0700 | [diff] [blame] | 182 | __u64 __reserved[123]; |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 183 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Nick Pelly | 976c44b | 2010-08-23 14:47:38 -0700 | [diff] [blame] | 184 | __u64 data_head; |
| 185 | __u64 data_tail; |
| 186 | }; |
Nick Pelly | 976c44b | 2010-08-23 14:47:38 -0700 | [diff] [blame] | 187 | #define PERF_RECORD_MISC_CPUMODE_MASK (7 << 0) |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 188 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Nick Pelly | 976c44b | 2010-08-23 14:47:38 -0700 | [diff] [blame] | 189 | #define PERF_RECORD_MISC_CPUMODE_UNKNOWN (0 << 0) |
| 190 | #define PERF_RECORD_MISC_KERNEL (1 << 0) |
| 191 | #define PERF_RECORD_MISC_USER (2 << 0) |
| 192 | #define PERF_RECORD_MISC_HYPERVISOR (3 << 0) |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 193 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Nick Pelly | 976c44b | 2010-08-23 14:47:38 -0700 | [diff] [blame] | 194 | #define PERF_RECORD_MISC_GUEST_KERNEL (4 << 0) |
| 195 | #define PERF_RECORD_MISC_GUEST_USER (5 << 0) |
Nick Pelly | 976c44b | 2010-08-23 14:47:38 -0700 | [diff] [blame] | 196 | #define PERF_RECORD_MISC_EXACT_IP (1 << 14) |
Nick Pelly | 976c44b | 2010-08-23 14:47:38 -0700 | [diff] [blame] | 197 | #define PERF_RECORD_MISC_EXT_RESERVED (1 << 15) |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 198 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Nick Pelly | 976c44b | 2010-08-23 14:47:38 -0700 | [diff] [blame] | 199 | struct perf_event_header { |
| 200 | __u32 type; |
| 201 | __u16 misc; |
| 202 | __u16 size; |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 203 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Nick Pelly | 976c44b | 2010-08-23 14:47:38 -0700 | [diff] [blame] | 204 | }; |
Nick Pelly | 976c44b | 2010-08-23 14:47:38 -0700 | [diff] [blame] | 205 | enum perf_event_type { |
Nick Pelly | 976c44b | 2010-08-23 14:47:38 -0700 | [diff] [blame] | 206 | PERF_RECORD_MMAP = 1, |
Nick Pelly | 976c44b | 2010-08-23 14:47:38 -0700 | [diff] [blame] | 207 | PERF_RECORD_LOST = 2, |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 208 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Nick Pelly | 976c44b | 2010-08-23 14:47:38 -0700 | [diff] [blame] | 209 | PERF_RECORD_COMM = 3, |
Nick Pelly | 976c44b | 2010-08-23 14:47:38 -0700 | [diff] [blame] | 210 | PERF_RECORD_EXIT = 4, |
Nick Pelly | 976c44b | 2010-08-23 14:47:38 -0700 | [diff] [blame] | 211 | PERF_RECORD_THROTTLE = 5, |
| 212 | PERF_RECORD_UNTHROTTLE = 6, |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 213 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Nick Pelly | 976c44b | 2010-08-23 14:47:38 -0700 | [diff] [blame] | 214 | PERF_RECORD_FORK = 7, |
Nick Pelly | 976c44b | 2010-08-23 14:47:38 -0700 | [diff] [blame] | 215 | PERF_RECORD_READ = 8, |
Nick Pelly | 976c44b | 2010-08-23 14:47:38 -0700 | [diff] [blame] | 216 | PERF_RECORD_SAMPLE = 9, |
Nick Pelly | 976c44b | 2010-08-23 14:47:38 -0700 | [diff] [blame] | 217 | PERF_RECORD_MAX, |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 218 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Nick Pelly | 976c44b | 2010-08-23 14:47:38 -0700 | [diff] [blame] | 219 | }; |
Nick Pelly | 976c44b | 2010-08-23 14:47:38 -0700 | [diff] [blame] | 220 | enum perf_callchain_context { |
| 221 | PERF_CONTEXT_HV = (__u64)-32, |
| 222 | PERF_CONTEXT_KERNEL = (__u64)-128, |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 223 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Nick Pelly | 976c44b | 2010-08-23 14:47:38 -0700 | [diff] [blame] | 224 | PERF_CONTEXT_USER = (__u64)-512, |
Nick Pelly | 976c44b | 2010-08-23 14:47:38 -0700 | [diff] [blame] | 225 | PERF_CONTEXT_GUEST = (__u64)-2048, |
| 226 | PERF_CONTEXT_GUEST_KERNEL = (__u64)-2176, |
| 227 | PERF_CONTEXT_GUEST_USER = (__u64)-2560, |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 228 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Nick Pelly | 976c44b | 2010-08-23 14:47:38 -0700 | [diff] [blame] | 229 | PERF_CONTEXT_MAX = (__u64)-4095, |
| 230 | }; |
Nick Pelly | 976c44b | 2010-08-23 14:47:38 -0700 | [diff] [blame] | 231 | #define PERF_FLAG_FD_NO_GROUP (1U << 0) |
| 232 | #define PERF_FLAG_FD_OUTPUT (1U << 1) |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 233 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Nick Pelly | 976c44b | 2010-08-23 14:47:38 -0700 | [diff] [blame] | 234 | #endif |