aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/blktrace_api.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/blktrace_api.h')
-rw-r--r--include/linux/blktrace_api.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/blktrace_api.h b/include/linux/blktrace_api.h
index 1dba3493d520..59b4b2e8ab67 100644
--- a/include/linux/blktrace_api.h
+++ b/include/linux/blktrace_api.h
@@ -142,6 +142,9 @@ struct blk_user_trace_setup {
142 142
143#ifdef __KERNEL__ 143#ifdef __KERNEL__
144#if defined(CONFIG_BLK_DEV_IO_TRACE) 144#if defined(CONFIG_BLK_DEV_IO_TRACE)
145
146#include <linux/sysfs.h>
147
145struct blk_trace { 148struct blk_trace {
146 int trace_state; 149 int trace_state;
147 struct rchan *rchan; 150 struct rchan *rchan;
@@ -192,6 +195,8 @@ extern int blk_trace_setup(struct request_queue *q, char *name, dev_t dev,
192extern int blk_trace_startstop(struct request_queue *q, int start); 195extern int blk_trace_startstop(struct request_queue *q, int start);
193extern int blk_trace_remove(struct request_queue *q); 196extern int blk_trace_remove(struct request_queue *q);
194 197
198extern struct attribute_group blk_trace_attr_group;
199
195#else /* !CONFIG_BLK_DEV_IO_TRACE */ 200#else /* !CONFIG_BLK_DEV_IO_TRACE */
196#define blk_trace_ioctl(bdev, cmd, arg) (-ENOTTY) 201#define blk_trace_ioctl(bdev, cmd, arg) (-ENOTTY)
197#define blk_trace_shutdown(q) do { } while (0) 202#define blk_trace_shutdown(q) do { } while (0)