summaryrefslogtreecommitdiff
path: root/blktrace_api.h
diff options
context:
space:
mode:
authorJens Axboe <axboe@nelson>2005-09-15 10:26:20 +0200
committerJens Axboe <axboe@nelson>2005-09-15 10:26:20 +0200
commit88b1a526dde324f2d73cfb286af993eb15b2483e (patch)
tree08928d95d2a563b1278a24aed9cb48d3a50bc684 /blktrace_api.h
parent5feb563a9022cff6f1b8930601acbe3649e0c4e7 (diff)
downloadblktrace-88b1a526dde324f2d73cfb286af993eb15b2483e.tar.gz
blktrace-88b1a526dde324f2d73cfb286af993eb15b2483e.tar.bz2
[PATCH] blkparse: Add support for the plug/unplug events
Diffstat (limited to 'blktrace_api.h')
-rw-r--r--blktrace_api.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/blktrace_api.h b/blktrace_api.h
index 2b3a7ba..c716d66 100644
--- a/blktrace_api.h
+++ b/blktrace_api.h
@@ -36,6 +36,8 @@ enum {
__BLK_TA_REQUEUE, /* request requeued */
__BLK_TA_ISSUE, /* sent to driver */
__BLK_TA_COMPLETE, /* completed by driver */
+ __BLK_TA_PLUG, /* queue was plugged */
+ __BLK_TA_UNPLUG, /* queue was unplugged */
};
/*
@@ -49,6 +51,8 @@ enum {
#define BLK_TA_REQUEUE (__BLK_TA_REQUEUE | BLK_TC_ACT(BLK_TC_REQUEUE))
#define BLK_TA_ISSUE (__BLK_TA_ISSUE | BLK_TC_ACT(BLK_TC_ISSUE))
#define BLK_TA_COMPLETE (__BLK_TA_COMPLETE| BLK_TC_ACT(BLK_TC_COMPLETE))
+#define BLK_TA_PLUG (__BLK_TA_PLUG | BLK_TC_ACT(BLK_TC_QUEUE))
+#define BLK_TA_UNPLUG (__BLK_TA_UNPLUG | BLK_TC_ACT(BLK_TC_QUEUE))
#define BLK_IO_TRACE_MAGIC 0x65617400
#define BLK_IO_TRACE_VERSION 0x05