summaryrefslogtreecommitdiff
path: root/blktrace_api.h
diff options
context:
space:
mode:
authorJens Axboe <axboe@suse.de>2005-10-06 11:03:20 +0200
committerJens Axboe <axboe@suse.de>2005-10-06 11:03:20 +0200
commita8f30e64d4d3e05fac70a918d175029412cb1ee7 (patch)
tree5f91ffaa5a35fc22bf3ace73746cd2c346bb47ae /blktrace_api.h
parent208660b112c49b844c8f7733ab30adc4d278ff36 (diff)
downloadblktrace-a8f30e64d4d3e05fac70a918d175029412cb1ee7.tar.gz
blktrace-a8f30e64d4d3e05fac70a918d175029412cb1ee7.tar.bz2
[PATCH] Add support for remap actions
Diffstat (limited to 'blktrace_api.h')
-rw-r--r--blktrace_api.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/blktrace_api.h b/blktrace_api.h
index 20c9d68..bc7d1ac 100644
--- a/blktrace_api.h
+++ b/blktrace_api.h
@@ -42,6 +42,7 @@ enum {
__BLK_TA_INSERT, /* insert request */
__BLK_TA_SPLIT, /* bio was split */
__BLK_TA_BOUNCE, /* bio was bounced */
+ __BLK_TA_REMAP, /* bio was remapped */
};
/*
@@ -61,6 +62,7 @@ enum {
#define BLK_TA_INSERT (__BLK_TA_INSERT | BLK_TC_ACT(BLK_TC_QUEUE))
#define BLK_TA_SPLIT (__BLK_TA_SPLIT)
#define BLK_TA_BOUNCE (__BLK_TA_BOUNCE)
+#define BLK_TA_REMAP (__BLK_TA_REMAP | BLK_TC_ACT(BLK_TC_QUEUE))
#define BLK_IO_TRACE_MAGIC 0x65617400
#define BLK_IO_TRACE_VERSION 0x05
@@ -84,6 +86,14 @@ struct blk_io_trace {
};
/*
+ * The remap event
+ */
+struct blk_io_trace_remap {
+ __u32 device;
+ __u64 sector;
+};
+
+/*
* User setup structure passed with BLKSTARTTRACE
*/
struct blk_user_trace_setup {