summaryrefslogtreecommitdiff
path: root/blktrace_api.h
diff options
context:
space:
mode:
authorNamhyung Kim <namhyung@gmail.com>2011-08-11 12:48:07 +0200
committerJens Axboe <jaxboe@fusionio.com>2011-08-11 12:48:07 +0200
commit344320932064efa7105314d2437027b0733f4631 (patch)
treea22c553bb493773c894c1b7bb5c365894b06f73e /blktrace_api.h
parentbc5f9ff87cb38ffa3b64ba607e535043eef06d14 (diff)
downloadblktrace-344320932064efa7105314d2437027b0733f4631.tar.gz
blktrace-344320932064efa7105314d2437027b0733f4631.tar.bz2
Add FLUSH/FUA support
Add FLUSH/FUA support to blktrace. As FLUSH precedes WRITE and/or FUA follows WRITE, use the same 'F' flag for both cases and distinguish them by their (relative) position. The end results look like (other flags might be shown also): - WRITE: W - WRITE_FLUSH: FW - WRITE_FUA: WF - WRITE_FLUSH_FUA: FWF Note that we reuse TC_BARRIER due to lack of bit space of act_mask. Signed-off-by: Namhyung Kim <namhyung@gmail.com> Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
Diffstat (limited to 'blktrace_api.h')
-rw-r--r--blktrace_api.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/blktrace_api.h b/blktrace_api.h
index ba9ee60..b222218 100644
--- a/blktrace_api.h
+++ b/blktrace_api.h
@@ -9,7 +9,7 @@
enum {
BLK_TC_READ = 1 << 0, /* reads */
BLK_TC_WRITE = 1 << 1, /* writes */
- BLK_TC_BARRIER = 1 << 2, /* barrier */
+ BLK_TC_FLUSH = 1 << 2, /* flush */
BLK_TC_SYNC = 1 << 3, /* sync */
BLK_TC_QUEUE = 1 << 4, /* queueing/merging */
BLK_TC_REQUEUE = 1 << 5, /* requeueing */
@@ -22,8 +22,9 @@ enum {
BLK_TC_META = 1 << 12, /* metadata */
BLK_TC_DISCARD = 1 << 13, /* discard requests */
BLK_TC_DRV_DATA = 1 << 14, /* binary driver data */
+ BLK_TC_FUA = 1 << 15, /* fua requests */
- BLK_TC_END = 1 << 15, /* only 16-bits, reminder */
+ BLK_TC_END = 1 << 15, /* we've run out of bits! */
};
#define BLK_TC_SHIFT (16)