summaryrefslogtreecommitdiff
path: root/blktrace_api.h
diff options
context:
space:
mode:
authorStefan Raspl <raspl@linux.vnet.ibm.com>2008-10-16 08:14:17 +0200
committerJens Axboe <jens.axboe@oracle.com>2008-10-16 08:14:17 +0200
commitc54b9dd9a993fc76f3649279e6a4295f6aba2054 (patch)
tree947b48afe26a051130c1f863ff8ee973a170b740 /blktrace_api.h
parent5d4f19d9812264bfb45427716330d0bd2529dfd9 (diff)
downloadblktrace-c54b9dd9a993fc76f3649279e6a4295f6aba2054.tar.gz
blktrace-c54b9dd9a993fc76f3649279e6a4295f6aba2054.tar.bz2
Add driver data support
Adds a new type of action 'drv_data' for blktrace to handle binary driver-specific data. Since the data is binary, blkparse will only put it in a binary file, not in the regular human-readable output. Signed-off-by: Stefan Raspl <raspl@linux.vnet.ibm.com> Signed-off-by: Martin Peschke <mpeschke@linux.vnet.ibm.com> Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'blktrace_api.h')
-rw-r--r--blktrace_api.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/blktrace_api.h b/blktrace_api.h
index 992850c..faefb15 100644
--- a/blktrace_api.h
+++ b/blktrace_api.h
@@ -21,6 +21,7 @@ enum {
BLK_TC_AHEAD = 1 << 11, /* readahead */
BLK_TC_META = 1 << 12, /* metadata */
BLK_TC_DISCARD = 1 << 13, /* discard requests */
+ BLK_TC_DRV_DATA = 1 << 14, /* binary driver data */
BLK_TC_END = 1 << 15, /* only 16-bits, reminder */
};
@@ -47,6 +48,7 @@ enum {
__BLK_TA_SPLIT, /* bio was split */
__BLK_TA_BOUNCE, /* bio was bounced */
__BLK_TA_REMAP, /* bio was remapped */
+ __BLK_TA_DRV_DATA, /* binary driver data */
};
/*
@@ -76,6 +78,7 @@ enum blktrace_notify {
#define BLK_TA_SPLIT (__BLK_TA_SPLIT)
#define BLK_TA_BOUNCE (__BLK_TA_BOUNCE)
#define BLK_TA_REMAP (__BLK_TA_REMAP | BLK_TC_ACT(BLK_TC_QUEUE))
+#define BLK_TA_DRV_DATA (__BLK_TA_DRV_DATA | BLK_TC_ACT(BLK_TC_DRV_DATA))
#define BLK_TN_PROCESS (__BLK_TN_PROCESS | BLK_TC_ACT(BLK_TC_NOTIFY))
#define BLK_TN_TIMESTAMP (__BLK_TN_TIMESTAMP | BLK_TC_ACT(BLK_TC_NOTIFY))