]> Git Repo - linux.git/commit
blktrace: add FLUSH/FUA support
authorNamhyung Kim <[email protected]>
Thu, 11 Aug 2011 08:36:05 +0000 (10:36 +0200)
committerJens Axboe <[email protected]>
Thu, 11 Aug 2011 08:36:05 +0000 (10:36 +0200)
commitc09c47caedc9854d59378d6e34c989e51cfdd2b4
treead7de20c08092cdf1cbbb83625a76acab3b0e2ce
parent8e4bf84474960e832b56293c9b0674c88b5b05ce
blktrace: 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
so that the older versions of blktrace tools will report flush
requests as barriers from now on.

Cc: Steven Rostedt <[email protected]>
Cc: Frederic Weisbecker <[email protected]>
Cc: Ingo Molnar <[email protected]>
Signed-off-by: Namhyung Kim <[email protected]>
Reviewed-by: Jeff Moyer <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
include/linux/blktrace_api.h
include/trace/events/block.h
kernel/trace/blktrace.c
This page took 0.093216 seconds and 4 git commands to generate.