btrace8
Perform live tracing for block devices
Usage
btrace [-s]
[-t]
[-w
N]
[-n
N]
[-b
N]
[-r
<dbg
mnt>]
[-a
<trace> ...]
<dev> ...
Overview
The btrace script provides a quick and easy way to do live tracing of block devices. It calls blktrace on the specified devices and pipes the output through blkparse for formatting. See blktrace (8) for more in-depth information about how blktrace works.
Options
-s Displays data sorted by program (see blkparse (1)).
-t Displays time deltas per IO (see blkparse (1)).
-w N Sets run time to the number of seconds specified (see blktrace (8)).
-n N Specifies the number of buffers to use (see blktrace (8)).
-b N Specifies buffer size for event extraction (scaled by 1024) (see blktrace (8)).
-r <dbg mnt> Specifies the debugfs mountpoint.
-a <trace>... Adds mask to current filter (see blktrace (8)).
<dev> Specifies the device to trace.
Examples
Simply running
% btrace /dev/sda
will show a trace of the device /dev/sda.
Releases
9 releases since Debian 5.0 (Lenny); the text changed 2 times.