summaryrefslogtreecommitdiff
path: root/blktrace_api.h
diff options
context:
space:
mode:
authorJens Axboe <axboe@suse.de>2006-02-09 13:58:34 +0100
committerJens Axboe <axboe@suse.de>2006-02-09 13:58:34 +0100
commitbfc70ad577ae97011eed84b86b3c6ba01e23e80a (patch)
tree280f82f98be69ba559ef6743bbcc4fec729ad5f6 /blktrace_api.h
parent5975d309ac40b9724f70b46bbfa3747e8dc24ea5 (diff)
downloadblktrace-bfc70ad577ae97011eed84b86b3c6ba01e23e80a.tar.gz
blktrace-bfc70ad577ae97011eed84b86b3c6ba01e23e80a.tar.bz2
[PATCH] Shrink the trace by 1/3 by removing ->comm[16]
We now send notify messages out when we see a new process, so we don't need to repeatedly send the same 16 bytes of name info everytime.
Diffstat (limited to 'blktrace_api.h')
-rw-r--r--blktrace_api.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/blktrace_api.h b/blktrace_api.h
index 3513a12..1aaf0fe 100644
--- a/blktrace_api.h
+++ b/blktrace_api.h
@@ -17,6 +17,7 @@ enum {
BLK_TC_COMPLETE = 1 << 7, /* completions */
BLK_TC_FS = 1 << 8, /* fs requests */
BLK_TC_PC = 1 << 9, /* pc requests */
+ BLK_TC_NOTIFY = 1 << 10, /* special message */
BLK_TC_END = 1 << 15, /* only 16-bits, reminder */
};
@@ -65,7 +66,7 @@ enum {
#define BLK_TA_REMAP (__BLK_TA_REMAP | BLK_TC_ACT(BLK_TC_QUEUE))
#define BLK_IO_TRACE_MAGIC 0x65617400
-#define BLK_IO_TRACE_VERSION 0x06
+#define BLK_IO_TRACE_VERSION 0x07
/*
* The trace itself
@@ -78,11 +79,10 @@ struct blk_io_trace {
__u32 bytes; /* transfer length */
__u32 action; /* what happened */
__u32 pid; /* who did it */
+ __u32 device; /* device identifier (dev_t) */
__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) */
};
/*