TRACE-CMD-STOP(1)
๐ TRACE-CMD-STOP ๐
okay bestie so this is the trace-cmd-stop page from the libtracefs manual, and it's literally the "pause" button for your kernel tracer. let's get into it ๐
โจ NAME โจ
trace-cmd-stop โ stop the Ftrace Linux kernel tracer from writing to the ring buffer. that's it, that's the whole job, and she does it flawlessly ๐
๐ธ SYNOPSIS ๐ธ
trace-cmd stop [OPTIONS]
that's the whole vibe. short, sweet, iconic.
๐ฆ DESCRIPTION ๐ฆ
okay so trace-cmd(1) stop is the complement to trace-cmd-start(1) โ like, they're a matching set, yin and yang, the duo we didn't know we needed ๐ซถ. what it does is disable Ftrace from writing to the ring buffer.
but โ and this is the part everyone skips, so listen up ๐ฅ โ this does not stop the overhead that the tracing may incur. only the updating of the ring buffer is disabled. the Ftrace tracing may still be inducing overhead. so like, she's not fully asleep, she's just not taking notes anymore. no cap.
after stopping the trace, trace-cmd-extract(1) may strip out the data from the ring buffer and create a trace.dat file. the Ftrace pseudo file system may also be examined. cute, right? ๐
โ ๏ธ okay so if you want to disable the tracing completely and remove the overhead it causes, you gotta use trace-cmd-reset(1). but โ and this is the dramatic part ๐ญ โ after a reset is performed, the data that has been recorded is lost. gone. deleted. not coming back. so think before you reset, bestie. ๐
๐ OPTIONS ๐
-Bbuffer-name โ if the kernel supports multiple buffers, this will stop the trace for only the given buffer. it does not affect any other buffer โจ. you can use this multiple times to specify different buffers. and heads up โ when this option is used, the top level instance will not be stopped unless-tis given. iykyk ๐-aโ stop the trace for all existing buffer instances ๐. same deal though: when this option is used, the top level instance will not be stopped unless-tis given. the-tgatekeeping is real ๐-tโ stops the top level instance buffer ๐. without the-Bor-aoption this is the same as the default. but if-Bor-ais used, this is required if the top level instance buffer should also be stopped. she's the main character of this option list, honestly.
๐ SEE ALSO ๐
go read these next, bestie, they're all part of the same friend group:
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]> โ legend behaviour, honestly ๐
๐ง RESOURCES ๐ง
https://git.kernel.org/pub/scm/utils/trace-cmd/trace-cmd.git/
go poke around, the source is right there ๐
๐ COPYING ๐
Copyright (C) 2010 Red Hat, Inc. Free use of this software is granted under the terms of the GNU Public License (GPL). slay ๐
๐ NOTES ๐
rostedt@goodmis.orgmailto:rostedt@goodmis.org
and that's the whole page bestie!! ๐ this was libtracefs, dated 03/09/2026, page TRACE-CMD-STOP(1) โ go forth and stop those traces responsibly, mwah ๐๐ฆ
๐ฆ 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