OS Manuals

/usr/bin/trace-cmd

Utilities for Linux ftrace

From trace-cmd 3.4-r2 (enterprise-packages), captured 2026-11-08 by running trace-cmd --help (exit 255). permalink

trace-cmd version 3.4.0 (3ce20923b3efa60d417da7acc8a327615fbd1419)

usage:
  trace-cmd [COMMAND] ...

  commands:
     record - record a trace into a trace.dat file
     set - set a ftrace configuration parameter
     start - start tracing without recording into a file
     extract - extract a trace from the kernel
     stop - stop the kernel from recording trace data
     restart - restart the kernel trace data recording
     show - show the contents of the kernel tracing buffer
     reset - disable all kernel tracing and clear the trace buffers
     clear - clear the trace buffers
     report - read out the trace stored in a trace.dat file
     stream - Start tracing and read the output directly
     profile - Start profiling and read the output directly
     hist - show a histogram of the trace.dat information
     stat - show the status of the running tracing (ftrace) system
     split - parse a trace.dat file into smaller file(s)
     options - list the plugin options available for trace-cmd report
     listen - listen on a network socket for trace clients
     agent - listen on a vsocket for trace clients
     setup-guest - create FIFOs for tracing guest VMs
     list - list the available events, plugins or options
     restore - restore a crashed record
     snapshot - take snapshot of running trace
     stack - output, enable or disable kernel stack tracing
     check-events - parse trace event formats
     dump - read out the meta data from a trace file
     attach - Attach a host and guest trace.dat file
     convert - convert trace file to different version
     sqlhist - Run a SQL like query to create histogram or synthetic events (see man tracefs_sql(3))

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.