path: root/blkparse_fmt.c
AgeCommit message (Collapse)Author
2011-08-11Add FLUSH/FUA supportNamhyung Kim
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 <> Signed-off-by: Jens Axboe <>
2009-05-11Converted to using the correct remap entriesAlan D. Brunelle
This follows the kernel changes to the blk_io_trace_remap structure to better align the names of the structure elements with the real intent of "from" and "to" (devices & sectors). See the kernel patches @ (Note: since the ABI order didn't change, old user code will work with the new kernel code & vice versa.) Signed-off-by: Alan D. Brunelle <> Signed-off-by: Jens Axboe <>
2008-08-15blktrace: support discard requestsDavid Woodhouse
Add support for discard requests to blktrace userspace tools. Signed-off-by: David Woodhouse <> Signed-off-by: Jens Axboe <>
2008-05-27Added in handling of MESSAGE notesAlan D. Brunelle
Sample output: 8,16 1 691118 17.417000000 0 C R 2660776 + 8 [0] 8,16 1 691119 17.417000000 0 D R 2660792 + 8 [swapper] 8,16 1 691120 17.417000000 4688 U N [dd] 42 8,16 1 0 17.418000000 0 m N elv switch: noop 8,16 1 691121 17.418000000 4638 C R 2660784 + 8 [0] 8,16 1 691122 17.418000000 4638 D R 2660800 + 8 [bash] 8,16 1 691123 17.418000000 4638 C R 2660792 + 8 [0] Thanks to Carl Henrik Lunde <> for adding in sequence printing & time-stamp correction.
2008-05-05eliminate check of empty -F formatLuis Useche
This patch eliminates the checking of -F format when it is empty. I am using this in order to blank out the events that I do not want for certain act mask. Note that there is no real motivation to have this checking. Signed-off-by: Jens Axboe <>
2007-05-30Small format update for empty requestsJens Axboe
The kernel can use empty bio's or requests for signalling purposes (such as sending a barrier down with no data attached), update the format to output more appropriately for those. Signed-off-by: Jens Axboe <>
2007-01-09[PATCH] Missed fixups wrt Bounce and BackmergeVasily Tarasov
Signed-off-by: Jens Axboe <>
2006-12-30[PATCH] Fix back descriptorsTom Zanussi
The 'B' is really a bounce, not a backmerge. Fixup other merge descriptors as well. Signed-off-by: Jens Axboe <>
2006-12-01[PATCH] blkparse: fix -f format overrideOlaf Kirch
Signed-off-by: Jens Axboe <>
2006-12-01[PATCH] Add timestamp supportOlaf Kirch
Signed-off-by: Jens Axboe <>
2006-09-15[PATCH] btt: Cleaned up patches for SEEK additions, DM, Q2A and seek fixesAlan D. Brunelle
Added changes to handle DM devices: - Used __pad field in struct blk_io_trace_remap to store from device, contains partition device information. Required modification in blkparse_fmt.c:process_default() to handle this change. - To better handle DM devices, noted that REMAP traces can refer to other REMAP traces, and thus added A_A and A_Q types (much like Q_A and Q_X) types. Signed-off-by: Jens Axboe <>
2006-07-23[PATCH] Support for logging metadata IO requestsJens Axboe
2006-07-06[PATCH] Support for readahead tracingNathan Scott
These are the userspace changes to allow blktrace to distinguish readahead from non-readahead reads.
2006-03-24[PATCH: Change remap format to have mapped-to information on the left of the ->Alan D. Brunelle
Pretty self-explanatory, works fine for MD devices. Looking into DM devices next (I think that _may_ take a kernel change).
2006-02-09[PATCH] Shrink the trace by 1/3 by removing ->comm[16]Jens Axboe
We now send notify messages out when we see a new process, so we don't need to repeatedly send the same 16 bytes of name info everytime.
2006-01-12[PATCH] blkparse_fmt: missing 'requeue' event handlingJens Axboe
2006-01-10[PATCH] Work-around for 32-bit be64_to_cpu() weirdnessJens Axboe
2005-10-07[PATCH] blkparse_fmt: use memcmp() it is (usually) fasterJens Axboe
At least it has better worst case performance.
2005-10-07[PATCH] blkparse_fmt: Check for repeated zeroes in pduJens Axboe
We can stop dumping the pdu (typically the cdb) if the rest is just zeroes, append a .. to show that is the case. Saves screen space.
2005-10-06[PATCH] blkparse: fix remap sectors dump, it was in kbJens Axboe
Add t_kb(t) and t_sec(t) macros to help with this.
2005-10-06[PATCH] Add support for remap actionsJens Axboe
2005-09-29[PATCH] Assorted compiler warningsJens Axboe
2005-09-26[PATCH] blkparse: add %N format for bytesJens Axboe
We need this for PC requests, they are not multiples of 512 like the FS requests. At the same time change the default for PC requests to dump in bytes.
2005-09-26[PATCH] blkparse: hardcode the default formats instead of parsing themJens Axboe
It takes a lot of time to manually parse each individual trace, and there's really no point in doing that work if the user did not specificy a custom format. We now only parse the given custom formats. Without any custom formats (eg the default), parsing a trace of 1.3 million entries now takes 4.3 seconds where it took 11.25 before.
2005-09-25[PATCH] blkparse: split format parsing into seperate fileJens Axboe