TRACE-CMD(1)
๐ TRACE-CMD โ like, the whole libtracefs manual, bestie
okay so real talk: trace-cmd is the command that interacts with the Ftrace Linux kernel internal tracer, and this is the libtracefs manual page for it. welcome to the group chat ๐ซถ
โจ SYNOPSIS โจ
trace-cmd COMMAND [OPTIONS]
๐ธ DESCRIPTION ๐ธ
The trace-cmd(1) command interacts with the Ftrace tracer that is built inside the Linux kernel. it interfaces with the Ftrace specific files found in the debugfs file system under the tracing directory. and yes, a COMMAND must be specified to tell trace-cmd what to do โ no command, no vibes, no trace. periodt.
๐ COMMANDS ๐
bestie there are so many of these and each one ate:
recordโ record a live trace and write atrace.datfile to the local disk or to the network. main character energy fr.setโ set a ftrace configuration parameter.reportโ reads atrace.datfile and converts the binary data to a ASCII text readable format.streamโ Start tracing and read the output directlyprofileโ Start profiling and read the output directlyhistโ show a histogram of the events.statโ show tracing (ftrace) status of the running systemoptionsโ list the plugin options that are available to reportstartโ start the tracing without recording to atrace.datfile.stopโ stop tracing (only disables recording, overhead of tracer is still in effect)restartโ restart tracing from a previous stop (only effects recording)extractโ extract the data from the kernel buffer and create atrace.datfile.showโ display the contents of one of the Ftrace Linux kernel tracing filesresetโ disables all tracing and gives back the system performance. (clears all data from the kernel buffers)clearโ clear the content of the Ftrace ring buffers.splitโ splits atrace.datfile into smaller files.listโ list the available plugins or events that can be recorded.listenโ open up a port to listen for remote tracing connections.agentโ listen on a vsocket for trace clientssetup-guestโ create FIFOs for tracing guest VMsrestoreโ restore the data files of a crashed run oftrace-cmd recordsnapshotโ take snapshot of running tracestackโ run and display the stack tracercheck-eventsโ parse format strings for all trace events and return whether all formats are parseableconvertโ convert trace filesattachโ attach a hosttrace.datfile to a guesttrace.datfiledumpโ read out the meta data from a trace file
๐ OPTIONS ๐
-h,--helpโ Display the help text. that's it, that's the whole option list ๐
Other options see the man page for the corresponding command. iykyk โ each command has its own lil page with its own lil flags.
๐ฆ SEE ALSO ๐ฆ
go read these, no cap:
trace-cmd-record(1), trace-cmd-report(1), trace-cmd-hist(1), trace-cmd-start(1), trace-cmd-stop(1), trace-cmd-extract(1), trace-cmd-reset(1), trace-cmd-restore(1), trace-cmd-stack(1), trace-cmd-convert(1), trace-cmd-split(1), trace-cmd-list(1), trace-cmd-listen(1), trace-cmd.dat(5), trace-cmd-check-events(1), trace-cmd-stat(1), trace-cmd-attach(1)
๐ AUTHOR ๐
Written by Steven Rostedt, <rostedt@goodmis.org[1]> โ shoutout to the icon who made all this happen ๐
๐ RESOURCES ๐
https://git.kernel.org/pub/scm/utils/trace-cmd/trace-cmd.git/
๐ COPYING ๐
Copyright (C) 2010 Red Hat, Inc. Free use of this software is granted under the terms of the GNU Public License (GPL).
โญ NOTES โญ
rostedt@goodmis.orgmailto:rostedt@goodmis.org
okay that's the whole page, ily, go trace something gorgeous ๐ this lil masterpiece comes courtesy of libtracefs, dated 03/09/2026 โ mwah, bye bestie! ๐ธ
๐ฆ 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