path: root/blktrace_api.h
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 <>
2009-01-21The git commit 11914a53d2ec2974a565311af327b8983d8c820d added __BLK_TA_ABORTMartin Peschke
to blktrace_api.h. A corresponding addition to the blktrace tools repository has been missing, breaking the API. Blkparse complained: "Bad fs action 40010011" Signed-off-by: Martin Peschke <> Signed-off-by: Jens Axboe <>
2008-10-16Add driver data supportStefan Raspl
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 <> Signed-off-by: Martin Peschke <> 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.
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-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-02-08[PATCH] blktrace: use the new setup/start/stop/teardown ioctlsJens Axboe
2006-02-02[PATCH] Make the sequence per-CPU so the kernel side can be locklessJens Axboe
2005-11-16[PATCH] blk_io_trace_remap structure needs padding on 32-bitChristoph Hellwig
Signed-off-by: Jens Axboe <>
2005-10-31[PATCH] update kernel support for recent kernelJens Axboe
Also add ->start_lba ->end_lba support for tracing a range, and ->pid for only following a specific app.
2005-10-06[PATCH] Add support for remap actionsJens Axboe
2005-09-22[PATCH] Add support for bounce and split operationsJens Axboe
2005-09-21[PATCH] blkparse: split queue and insert into two operationsJens Axboe
We need this to support md/dm actions.
2005-09-16[PATCH] Improve unplug loggingJens Axboe
Extend it to capture whether this was an io based unplug (eg someone doing a wait_on_page() or similar), or of it was a timeout based event). The logging code also forget to turn the unplug payload into on-wire big endian and the parsing pdu offset was wrong.
2005-09-15[PATCH] blkparse: Add support for the plug/unplug eventsJens Axboe
2005-09-12[PATCH] Add support for tracing multiple devicesNathan Scott
This bumps the protocol number to 0x05, as device info was added to the trace structure.
2005-09-09[PATCH] Fix time typo, it's in nanosecondsNathan Scott
2005-09-06[PATCH] Backout the ->device change from revision 4Jens Axboe
2005-09-06[PATCH] Bump ->cpu to 32-bits for alignment and add process nameNathan Scott
2005-09-05[PATCH] Support for live tracingJens Axboe
This patch adds support for doing live traces again, by allowing pipe of data from blktrace to blkparse. A structural change was needed in blk_io_trace to pass the CPU number info directly instead of inferring it from the filename. To parse realtime: $ blktrace -d /dev/xxx -o - | blkparse -i -
2005-08-29[PATCH] Always store trace data in big endian formatJens Axboe