reset-ftrace(8)

πŸ“¦ version 2017-12, in nixos 26.05, nixpkgs unstable

✨ 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 πŸ’€

perf(1)


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