BTRACE(8)

πŸ“¦
version 1.3.0+git.20211021 Β· 2 versions
  • 1.3.0+git.20211021 Β· centos-stream 10, centos-stream 9, debian bookworm, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0, ubuntu jammy, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking (latest)
  • 1.3.0 Β· debian trixie
, in centos-stream 10, centos-stream 9, debian bookworm, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0, ubuntu jammy, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’… BTRACE β€” the btrace(8) manual, but make it make sense

okay bestie, welcome to btrace(8) πŸ’– this is the block-device tracing era and you're gonna love it.


✨ NAME ✨

btrace β€” live tracing for block devices, bestie. that's it, that's the whole vibe. πŸ”₯


πŸ¦‹ SYNOPSIS πŸ¦‹

btrace [-s] [-t] [-w N] [-n N] [-b N] [-r <dbg mnt>] [-a <trace>...]
<dev>...

🌸 DESCRIPTION 🌸

so like. the btrace script is your quick-and-easy lil shortcut for doing live tracing of block devices β€” no cap, it's genuinely that simple. 🫢

it calls blktrace on the devices you hand it, then pipes that output straight through blkparse for formatting. that's the whole pipeline, iconic behaviour honestly.

if you wanna go deeper on how blktrace actually works under the hood, go read blktrace (8). it's giving ✨extended lore✨.


πŸ’… OPTIONS πŸ’…

  • -s β€” shows the data sorted by program (peep blkparse (1) for the details, iykyk).
  • -t β€” shows time deltas per IO (again, blkparse (1) has the tea β˜•).
  • -w N β€” sets the run time to however many seconds you put in N (see blktrace (8)).
  • -n N β€” tells it how many buffers to use (see blktrace (8)).
  • -b N β€” sets the buffer size for event extraction, scaled by 1024 (see blktrace (8)).
  • -r <dbg mnt> β€” specifies the debugfs mountpoint. that's the one, that's the path πŸŽ€
  • -a <trace>... β€” adds a mask to the current filter (see blktrace (8)).
  • <dev> β€” specifies the device you wanna trace. literally just point it at the device, slay.

πŸŽ€ EXAMPLE πŸŽ€

the simplest possible main-character move β€” just run:

% btrace /dev/sda

and boom, you get a trace of the device /dev/sda. no notes. ✨


πŸ‘‘ AUTHORS πŸ‘‘

blkparse was written by Jens Axboe, Alan D. Brunelle and Nathan Scott. legends, fr fr.

this man page was created from the blktrace documentation by Bas Zoetekouw. πŸ’œ


πŸ› REPORTING BUGS πŸ›

found a bug? don't suffer in silence bestie, report it to <linux-btrace@vger.kernel.org> πŸ“§


Copyright Β© 2006 Jens Axboe, Alan D. Brunelle and Nathan Scott.

this is free software. you may redistribute copies of it under the terms of the GNU General Public License <http://www.gnu.org/licenses/gpl.html>. There is NO WARRANTY, to the extent permitted by law. (yes, all caps, they meant it πŸ’€)

this manual page was created for Debian by Bas Zoetekouw. it was derived from the documentation provided by the authors and it may be used, distributed and modified under the terms of the GNU General Public License, version 2.

on Debian systems, the text of the GNU General Public License can be found in /usr/share/common-licenses/GPL-2. πŸ—‚οΈ


🌈 SEE ALSO 🌈

  • blktrace (8)
  • blkparse (1)
  • verify_blkparse (1)
  • blkrawverify (1)
  • btt (1)

go trace something, bestie. your block devices have been waiting for their moment. πŸ«ΆπŸ’–

and that's the whole page!! this one shipped as blktrace git-20070306202522, dated March 6, 2007 β€” yes, 2007, she's vintage and she's still serving. periodt. πŸ‘‘βœ¨