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 a trace.dat file to the local disk or to the network. main character energy fr.
  • set โ€” set a ftrace configuration parameter.
  • report โ€” reads a trace.dat file and converts the binary data to a ASCII text readable format.
  • stream โ€” Start tracing and read the output directly
  • profile โ€” Start profiling and read the output directly
  • hist โ€” show a histogram of the events.
  • stat โ€” show tracing (ftrace) status of the running system
  • options โ€” list the plugin options that are available to report
  • start โ€” start the tracing without recording to a trace.dat file.
  • 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 a trace.dat file.
  • show โ€” display the contents of one of the Ftrace Linux kernel tracing files
  • reset โ€” 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 a trace.dat file 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 clients
  • setup-guest โ€” create FIFOs for tracing guest VMs
  • restore โ€” restore the data files of a crashed run of trace-cmd record
  • snapshot โ€” take snapshot of running trace
  • stack โ€” run and display the stack tracer
  • check-events โ€” parse format strings for all trace events and return whether all formats are parseable
  • convert โ€” convert trace files
  • attach โ€” attach a host trace.dat file to a guest trace.dat file
  • dump โ€” 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 โญ

  1. rostedt@goodmis.org mailto: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