blktrace: add support for non-native endian format
authorJens Axboe <axboe@kernel.dk>
Thu, 21 Nov 2013 16:55:49 +0000 (09:55 -0700)
committerJens Axboe <axboe@kernel.dk>
Thu, 21 Nov 2013 16:55:49 +0000 (09:55 -0700)
commitd95b34a61ec3fc305fe53c0132bfe82e2e5fcc04
treea53ea401f3a9e10d9e764f638db4dd8f1ee65405
parent0cf2574b73599004958856c6e5d2e59ef5e531bf
blktrace: add support for non-native endian format

The blktrace format is stored in the native endianness of
the machine it is run on. So to reply traces on a machine
with a different endianness, we need to swap the trace
fields. Detect and do this automatically.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
blktrace.c
fio.h
iolog.c
os/os.h