diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/perf_counter.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/include/linux/perf_counter.h b/include/linux/perf_counter.h index 00081d84169f..88f863ec2748 100644 --- a/include/linux/perf_counter.h +++ b/include/linux/perf_counter.h | |||
@@ -157,10 +157,14 @@ struct perf_counter_hw_event { | |||
157 | /* | 157 | /* |
158 | * Ioctls that can be done on a perf counter fd: | 158 | * Ioctls that can be done on a perf counter fd: |
159 | */ | 159 | */ |
160 | #define PERF_COUNTER_IOC_ENABLE _IO ('$', 0) | 160 | #define PERF_COUNTER_IOC_ENABLE _IOW('$', 0, u32) |
161 | #define PERF_COUNTER_IOC_DISABLE _IO ('$', 1) | 161 | #define PERF_COUNTER_IOC_DISABLE _IOW('$', 1, u32) |
162 | #define PERF_COUNTER_IOC_REFRESH _IOW('$', 2, u32) | 162 | #define PERF_COUNTER_IOC_REFRESH _IOW('$', 2, u32) |
163 | #define PERF_COUNTER_IOC_RESET _IO ('$', 3) | 163 | #define PERF_COUNTER_IOC_RESET _IOW('$', 3, u32) |
164 | |||
165 | enum perf_counter_ioc_flags { | ||
166 | PERF_IOC_FLAG_GROUP = 1U << 0, | ||
167 | }; | ||
164 | 168 | ||
165 | /* | 169 | /* |
166 | * Structure of the page that can be mapped via mmap | 170 | * Structure of the page that can be mapped via mmap |