summaryrefslogtreecommitdiff
path: root/blktrace_api.h
diff options
context:
space:
mode:
authorNathan Scott <nathans@sgi.com>2005-09-06 08:48:11 +0200
committerJens Axboe <axboe@suse.de>2005-09-06 08:48:11 +0200
commit654aaa528674a4e849337a89b820027a67d74bfb (patch)
treeafd6390fb892151d14e01a28cff1045b27def5ef /blktrace_api.h
parent72ca88010f8be84b601024d5ab1a07a218cdbb0a (diff)
downloadblktrace-654aaa528674a4e849337a89b820027a67d74bfb.tar.gz
blktrace-654aaa528674a4e849337a89b820027a67d74bfb.tar.bz2
[PATCH] Bump ->cpu to 32-bits for alignment and add process name
Diffstat (limited to 'blktrace_api.h')
-rw-r--r--blktrace_api.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/blktrace_api.h b/blktrace_api.h
index 5b0ab31..e6a7498 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 0x03
+#define BLK_IO_TRACE_VERSION 0x04
/*
* The trace itself
@@ -64,9 +64,11 @@ struct blk_io_trace {
__u32 bytes; /* transfer length */
__u32 action; /* what happened */
__u32 pid; /* who did it */
- __u16 cpu; /* on what cpu did it happen */
+ __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) */
};
/*