reset-trace(8)
π reset-trace(8) π
β¨ NAME β¨
reset-trace - reset the state of tracing. π
π§ SYNOPSIS π§
reset-trace [-F] [-h] [-q] [-v]
π DESCRIPTION π
okay so bestie, you will probably never need this tool π but lowkey it's a lifesaver. if you kill -9 a bcc tool (or hit it with other signals, like SIGTERM), or if a bcc tool just crashes, kernel tracing can get stuck in a semi-enabled state. it's not as dramatic as it sounds ngl: there might just be extra overhead from writing to ring buffers that nobody ever reads π«Ά this tool cleans up the tracing state, and resets and disables any active tracing. iconic behavior honestly.
π¨ Make sure no other tracing sessions are active before you run this! It might stop them from working, and maybe not gracefully π
this one specifically clears the state in at least these files in /sys/kernel/debug/tracing: kprobe_events, uprobe_events, and trace_pipe. β¨ other tracing facilities (ftrace) get checked too, and if they're not in an expected state, it prints a note for you. you can reset all tracing files with -F (force), but that will interfere with any other running tracing sessions (eg, ftrace) π
πΈ REQUIREMENTS πΈ
/sys/kernel/debug mounted as debugfs π¦
π OPTIONS π
-Fβ Force! π₯ This resets all tracing facilities, including the ones bcc doesn't use (ftrace). you really shouldn't need this one, bestie.-hβ shows the USAGE message π-qβ Quiet mode π€« no output while it's working.-vβ Verbose π£οΈ it tells you what it's doing as it goes.
π EXAMPLES π
Reset the state of tracing:
# reset-trace
Verbose:
# reset-trace -v
π SOURCE π
this is from bcc, obviously π₯°
https://github.com/iovisor/bcc
also look in the bcc distribution for a companion _examples.txt file with example usage, output, and commentary for this tool πβ¨
π OS π
Linux π§
β STABILITY β
Unstable - still in development π§ so vibe check before you rely on it.
π¦ AUTHOR π¦
Brendan Gregg π
bestie, that's the whole page π it's from the USER COMMANDS section, dated 2016-10-18, and I'm obsessed that you made it this far π«Άβ¨
π¦ where this page comes from
- alpine 3.24: bcc-doc 0.36.1-r1 Β· Apache-2.0
- nixpkgs unstable: bcc 0.37.0
- opensuse-leap 16.0: bcc-tools 0.35.0-160000.2.2 Β· Apache-2.0
- opensuse-leap 16.0: bcc-tools 0.35.0-160000.2.2 Β· Apache-2.0
- opensuse-leap 16.0: bcc-tools 0.35.0-160000.2.2 Β· Apache-2.0
- opensuse-leap 16.0: bcc-tools 0.35.0-160000.2.2 Β· Apache-2.0
- π girlified by anthropic/claude-haiku-5.5 on : a language model's rewrite of the original, under its terms