summaryrefslogtreecommitdiff
path: root/blktrace_api.h
diff options
context:
space:
mode:
authorNathan Scott <nathans@sgi.com>2005-09-12 10:06:59 +0200
committerJens Axboe <axboe@suse.de>2005-09-12 10:06:59 +0200
commite7c9f3ffe9833eae21b2601d1cecb2e5d5c7f35f (patch)
treefd011d4723dfb9888cd082b4c7caabc1c3b348fc /blktrace_api.h
parent916b5501e4f8a38f0c2f23a6fcc1c1407f8ed532 (diff)
downloadblktrace-e7c9f3ffe9833eae21b2601d1cecb2e5d5c7f35f.tar.gz
blktrace-e7c9f3ffe9833eae21b2601d1cecb2e5d5c7f35f.tar.bz2
[PATCH] Add support for tracing multiple devices
This bumps the protocol number to 0x05, as device info was added to the trace structure.
Diffstat (limited to 'blktrace_api.h')
-rw-r--r--blktrace_api.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/blktrace_api.h b/blktrace_api.h
index e79e151..2b3a7ba 100644
--- a/blktrace_api.h
+++ b/blktrace_api.h
@@ -51,7 +51,7 @@ enum {
#define BLK_TA_COMPLETE (__BLK_TA_COMPLETE| BLK_TC_ACT(BLK_TC_COMPLETE))
#define BLK_IO_TRACE_MAGIC 0x65617400
-#define BLK_IO_TRACE_VERSION 0x04
+#define BLK_IO_TRACE_VERSION 0x05
/*
* The trace itself
@@ -67,6 +67,7 @@ struct blk_io_trace {
__u32 cpu; /* on what cpu did it happen */
__u16 error; /* completion error */
__u16 pdu_len; /* length of data after this trace */
+ __u32 device; /* device identifier (dev_t) */
char comm[16]; /* task command name (TASK_COMM_LEN) */
};