diff options
author | Nathan Scott <nathans@sgi.com> | 2005-09-12 10:06:59 +0200 |
---|---|---|
committer | Jens Axboe <axboe@suse.de> | 2005-09-12 10:06:59 +0200 |
commit | e7c9f3ffe9833eae21b2601d1cecb2e5d5c7f35f (patch) | |
tree | fd011d4723dfb9888cd082b4c7caabc1c3b348fc /blktrace.h | |
parent | 916b5501e4f8a38f0c2f23a6fcc1c1407f8ed532 (diff) | |
download | blktrace-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.h')
-rw-r--r-- | blktrace.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -7,7 +7,7 @@ #include "blktrace_api.h" #define CHECK_MAGIC(t) (((t)->magic & 0xffffff00) == BLK_IO_TRACE_MAGIC) -#define SUPPORTED_VERSION (0x04) +#define SUPPORTED_VERSION (0x05) #if defined(__LITTLE_ENDIAN_BITFIELD) #define be16_to_cpu(x) __bswap_16(x) @@ -54,6 +54,7 @@ static inline void trace_to_be(struct blk_io_trace *t) t->cpu = cpu_to_be32(t->cpu); t->error = cpu_to_be16(t->error); t->pdu_len = cpu_to_be16(t->pdu_len); + t->device = cpu_to_be32(t->device); /* t->comm is a string (endian neutral) */ } @@ -69,6 +70,7 @@ static inline void trace_to_cpu(struct blk_io_trace *t) t->cpu = be32_to_cpu(t->cpu); t->error = be16_to_cpu(t->error); t->pdu_len = be16_to_cpu(t->pdu_len); + t->device = be32_to_cpu(t->device); /* t->comm is a string (endian neutral) */ } |