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:
trace-cmd(1)trace-cmd-record(1)trace-cmd-report(1)trace-cmd-start(1)trace-cmd-extract(1)trace-cmd-reset(1)trace-cmd-split(1)trace-cmd-list(1)trace-cmd-listen(1)
๐ 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 โญ
rostedt@goodmis.orgmailto:rostedt@goodmis.org
k so that's the whole page ๐ remember:--startto turn it on,--stopto turn it off,--resetwhen 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
- arch rolling: trace-cmd 3.4-1 ยท GPL-2.0-only AND LGPL-2.1-only
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms