TRACE-CMD-STACK(1)

๐Ÿ’… TRACE-CMD-STACK(1) ๐Ÿ’…

okay so bestie, welcome to the libtracefs manual โ€” this one's trace-cmd-stack, and it's genuinely iconic.


โœจ NAME โœจ

trace-cmd-stack โ€” read, enable or disable Ftrace Linux kernel stack tracing. that's it, that's the whole vibe ๐ŸŽ€

โœจ SYNOPSIS โœจ

trace-cmd stack

that's the whole thing. no flags mandatory, no drama. slay.

โœจ DESCRIPTION โœจ

okay so trace-cmd(1) stack turns on the Ftrace stack tracer inside the kernel โ€” main character energy fr. the stack tracer enables the function tracer, and at each function call within the kernel, the stack is checked. and like, whenever a new maximum usage stack gets discovered? it's recorded. that's the whole point ๐Ÿ’–

when you pass no option at all, the current stack is just displayed. no cap.

to enable the stack tracer, use the option --start, and to disable the stack tracer, use the option --stop. the output will be the maximum stack found since the start was enabled ๐Ÿซถ so like, it's literally keeping receipts.

use --reset to reset the stack counter to zero. clean slate, new era, we love to see it โœจ

now use --verbose[=level] to set the log level. (yes the original manpage literally says "User --verbose[=level]" โ€” typo, we forgive her, she's doing her best ๐Ÿ’€)

supported log levels are:

  • "none"
  • "critical"
  • "error"
  • "warning"
  • "info"
  • "debug"
  • "all"

โ€ฆor their identifiers "0", "1", "2", "3", "4", "5", "6" ๐Ÿ”ข

setting the log level to a specific value enables all logs from that and all previous levels โ€” so it's cumulative, bestie, not picky. the level will default to "info" if one is not specified ๐ŸŒธ

ngl this is the chillest trace-cmd tool in the family. no complicated config file, just vibes and stack maxima.

๐Ÿฆ‹ SEE ALSO ๐Ÿฆ‹

the whole friend group, no one left out:

๐Ÿ’œ AUTHOR ๐Ÿ’œ

written by Steven Rostedt, <rostedt@goodmis.org[1]> โ€” the icon, the legend, the moment ๐Ÿ‘‘

๐ŸŒˆ RESOURCES ๐ŸŒˆ

https://git.kernel.org/pub/scm/utils/trace-cmd/trace-cmd.git/

go look, it's giving open source excellence ๐Ÿงš

๐Ÿ“ COPYING ๐Ÿ“

Copyright (C) 2010 Red Hat, Inc. free use of this software is granted under the terms of the GNU Public License (GPL) โ€” periodt. ๐Ÿ’…

โญ NOTES โญ

  1. rostedt@goodmis.org mailto:rostedt@goodmis.org

k so that's the whole page ๐Ÿ’– remember: --start to turn it on, --stop to turn it off, --reset when you need a fresh start, --verbose[=level] when you want it to actually talk to you, and no option at all to just peek at the current stack. iykyk ๐ŸŽ€

and that's a wrap, bestie โ€” this page came from the libtracefs manual, dated 03/09/2026, and it's TRACE-CMD-STACK(1) forever and always ๐ŸŒธ๐Ÿซถโœจ

๐Ÿ“ฆ where this page comes from