reset-ftrace(8)
β¨ reset-ftrace β the manual, but make it cute β¨
ok so bestie, welcome to reset-ftrace(8), a System Manager's Manual situation, and it's literally about resetting the state of ftrace and turning off ALL the tracing. it was written for Linux ftrace. iykyk π
πΈ NAME πΈ
reset-ftrace β resets the state of ftrace, disabling all tracing. written for Linux ftrace, no cap. π¦
π SYNOPSIS π
reset-ftrace [-fhq]
β¨ DESCRIPTION β¨
so what it does is reset the state of a bunch of different ftrace files, and it shows you the before state AND the after state, because we love transparency in this house. π
ngl this one is probably only gonna be useful to the ftrace hacker girlies who, while they're off developing ftrace software, keep getting the subsystem stuck in a partially active state, and just want a quick lil way to reset everything. check the end of this script for the actual files it resets, and add more if you need more β the script is right there, go off. π
WARNING: only use this if and when you are 100% sure there are no other active ftrace sessions on your system, because otherwise it will kill them. like, actually end them. so do a vibe check on your system first, bestie, fr fr. π
π§ REQUIREMENTS π§
- FTRACE CONFIG.
that's it, that's the requirement. slay. β¨
π OPTIONS π
-fβ Force. if the ftrace lock file exists (/var/tmp/.ftrace-lock), it deletes it. bye bye lock file π«Ά-hβ prints the usage message. the classic cry for help option, iconic.-qβ Quiet. it still runs, it just doesn't print any output. main character energy but silent. π€«
π EXAMPLES π
reset the various ftrace files:
# reset-ftrace
π SOURCE π
this is from the perf-tools collection. π
https://github.com/brendangregg/perf-tools
also look under the examples directory for a text file containing example usage, output, and commentary for this tool. it's giving documentation, we love to see it. π
β OS β
Linux. obviously. π§
π₯ STABILITY π₯
Unstable β in development. so like, she's growing, she's evolving, be gentle. π¦
π AUTHOR π
Brendan Gregg π
π SEE ALSO π
and that's the whole page bestie!! this one came out of the USER COMMANDS section, dated 2014-07-07, and that's the tea. go reset some ftrace state, you got this. π β¨π
π¦ where this page comes from
- debian bookworm: perf-tools-unstable 1.0.1~20200130+git49b8cdf-1 Β· GPL-2.0-or-later
- debian trixie: perf-tools-unstable 1.0.1~20200130+git49b8cdf-1 Β· GPL-2.0-or-later
- ubuntu jammy: perf-tools-unstable 1.0.1~20200130+git49b8cdf-1ubuntu1 Β· GPL-2.0-or-later
- ubuntu noble: perf-tools-unstable 1.0.1~20200130+git49b8cdf-1ubuntu1 Β· GPL-2.0-or-later
- ubuntu resolute: perf-tools-unstable 1.0.1~20200130+git49b8cdf-1ubuntu2 Β· GPL-2.0-or-later
- ubuntu stonking: perf-tools-unstable 1.0.1~20200130+git49b8cdf-1ubuntu2 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms