summaryrefslogtreecommitdiff
path: root/blkrawverify.c
diff options
context:
space:
mode:
authorJens Axboe <axboe@suse.de>2006-02-06 12:06:44 +0100
committerJens Axboe <axboe@suse.de>2006-02-06 12:06:44 +0100
commit017d166066b6c8afe22b75f6dc5e91bfa8f9c67a (patch)
tree7a07de74d8517e6f3d197046a11aa63d6610873f /blkrawverify.c
parent2505038d06676b31df2f65e08009474335140834 (diff)
downloadblktrace-017d166066b6c8afe22b75f6dc5e91bfa8f9c67a.tar.gz
blktrace-017d166066b6c8afe22b75f6dc5e91bfa8f9c67a.tar.bz2
[PATCH] Allow trace data to stay CPU endianness
Basically just check whether we need to convert the trace or not in blkparse, then we can get rid of the endianness conversion in the hot path (blktrace:write_tip_events()).
Diffstat (limited to 'blkrawverify.c')
-rw-r--r--blkrawverify.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/blkrawverify.c b/blkrawverify.c
index 190f7ee..6cc9b29 100644
--- a/blkrawverify.c
+++ b/blkrawverify.c
@@ -33,6 +33,8 @@ struct trace_info {
char *string;
};
+static int data_is_native = -1;
+
#define TRACE_TO_STRING(f) {.bit_field = f, .string = #f}
static struct trace_info traces[] = {
TRACE_TO_STRING( BLK_TC_READ ),