diff options
Diffstat (limited to 'include/linux/blktrace_api.h')
-rw-r--r-- | include/linux/blktrace_api.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/linux/blktrace_api.h b/include/linux/blktrace_api.h index 23faa67e8022..07c698621ad0 100644 --- a/include/linux/blktrace_api.h +++ b/include/linux/blktrace_api.h | |||
@@ -5,6 +5,7 @@ | |||
5 | #ifdef __KERNEL__ | 5 | #ifdef __KERNEL__ |
6 | #include <linux/blkdev.h> | 6 | #include <linux/blkdev.h> |
7 | #include <linux/relay.h> | 7 | #include <linux/relay.h> |
8 | #include <linux/compat.h> | ||
8 | #endif | 9 | #endif |
9 | 10 | ||
10 | /* | 11 | /* |
@@ -203,6 +204,17 @@ extern int blk_trace_init_sysfs(struct device *dev); | |||
203 | 204 | ||
204 | extern struct attribute_group blk_trace_attr_group; | 205 | extern struct attribute_group blk_trace_attr_group; |
205 | 206 | ||
207 | struct compat_blk_user_trace_setup { | ||
208 | char name[32]; | ||
209 | u16 act_mask; | ||
210 | u32 buf_size; | ||
211 | u32 buf_nr; | ||
212 | compat_u64 start_lba; | ||
213 | compat_u64 end_lba; | ||
214 | u32 pid; | ||
215 | }; | ||
216 | #define BLKTRACESETUP32 _IOWR(0x12, 115, struct compat_blk_user_trace_setup) | ||
217 | |||
206 | #else /* !CONFIG_BLK_DEV_IO_TRACE */ | 218 | #else /* !CONFIG_BLK_DEV_IO_TRACE */ |
207 | # define blk_trace_ioctl(bdev, cmd, arg) (-ENOTTY) | 219 | # define blk_trace_ioctl(bdev, cmd, arg) (-ENOTTY) |
208 | # define blk_trace_shutdown(q) do { } while (0) | 220 | # define blk_trace_shutdown(q) do { } while (0) |