summaryrefslogtreecommitdiff
path: root/blktrace.h
diff options
context:
space:
mode:
authorJens Axboe <axboe@suse.de>2006-02-02 11:56:56 +0100
committerJens Axboe <axboe@suse.de>2006-02-02 11:56:56 +0100
commit210824c332e30b543676a537ddd34d380bc9c69d (patch)
treed5ed9e014865e2e612eefdd1631c6b2430cf9404 /blktrace.h
parent89482da65bbe96da701e2c873e3eeb3016b4e651 (diff)
downloadblktrace-210824c332e30b543676a537ddd34d380bc9c69d.tar.gz
blktrace-210824c332e30b543676a537ddd34d380bc9c69d.tar.bz2
[PATCH] Make the sequence per-CPU so the kernel side can be lockless
Diffstat (limited to 'blktrace.h')
-rw-r--r--blktrace.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/blktrace.h b/blktrace.h
index 7462edc..4937479 100644
--- a/blktrace.h
+++ b/blktrace.h
@@ -6,6 +6,7 @@
#include <endian.h>
#include "blktrace_api.h"
+#include "rbtree.h"
#define MINORBITS 20
#define MINORMASK ((1U << MINORBITS) - 1)
@@ -41,12 +42,17 @@ struct per_cpu_info {
char fname[128];
struct io_stats io_stats;
+
+ struct rb_root rb_last;
+ unsigned long rb_last_entries;
+ unsigned long last_sequence;
+ unsigned long smallest_seq_read;
};
extern FILE *ofp;
#define CHECK_MAGIC(t) (((t)->magic & 0xffffff00) == BLK_IO_TRACE_MAGIC)
-#define SUPPORTED_VERSION (0x05)
+#define SUPPORTED_VERSION (0x06)
#if __BYTE_ORDER == __LITTLE_ENDIAN
#define be16_to_cpu(x) __bswap_16(x)