summaryrefslogtreecommitdiff
path: root/blktrace.h
diff options
context:
space:
mode:
authorJens Axboe <axboe@suse.de>2005-09-26 14:26:24 +0200
committerJens Axboe <axboe@suse.de>2005-09-26 14:26:24 +0200
commitbf0720afa8e5f5e2a2bb87abc0b015f35beadef3 (patch)
treee7fb0e719707339024d6655512efabe7f3861fae /blktrace.h
parent0583b6a25eaa259bf9ade5746452473464814f6e (diff)
downloadblktrace-bf0720afa8e5f5e2a2bb87abc0b015f35beadef3.tar.gz
blktrace-bf0720afa8e5f5e2a2bb87abc0b015f35beadef3.tar.bz2
[PATCH] blkparse: Add option to hash process by name
For some traces, you really don't want to see thousands of cc1 processes in the stats, you want to collect the stats by name instead. This adds the -n option to blkparse, enabling that. Switched to Jenkins hash at the same time, as it allows for easy hash-by-u32 or hash-by-name as we see fit.
Diffstat (limited to 'blktrace.h')
-rw-r--r--blktrace.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/blktrace.h b/blktrace.h
index 6ef5ab0..bd704ba 100644
--- a/blktrace.h
+++ b/blktrace.h
@@ -17,6 +17,9 @@
#define min(a, b) ((a) < (b) ? (a) : (b))
+typedef __u32 u32;
+typedef __u8 u8;
+
struct io_stats {
unsigned long qreads, qwrites, creads, cwrites, mreads, mwrites;
unsigned long ireads, iwrites;