TRACE-CMD-DUMP(1)
๐ TRACE-CMD-DUMP(1) โ the libtracefs manual, bestie edition ๐
okay so you found the trace-cmd-dump page in the libtracefs manual and you're like "what is this" โ don't worry, I got you. This is the manual page for trace-cmd-dump, and by the end you're gonna be obsessed. โจ
โจ NAME โจ
trace-cmd-dump โ show a meta data from a trace file, created by trace-cmd record
(it's literally the look-inside-the-box tool, no cap ๐ซถ)
๐ธ SYNOPSIS ๐ธ
trace-cmd dump [OPTIONS] [input-file]
๐ฆ DESCRIPTION ๐ฆ
so the trace-cmd(1) dump command will display the meta data from a trace file created by trace-cmd record. that's the whole vibe. it's giving "peek behind the curtain" ๐
๐ OPTIONS ๐
-iinput-file โ by default,trace-cmd dumpwill read the filetrace.dat. but bestie, the-ioption opens up the given input-file instead. and like, note this: the input file may also be specified as the last item on the command line. two ways to do the same thing, we love options ๐-v,--validateโ check if the input file is a valid trace file, created bytrace-cmd. vibe check for your file ๐--summaryโ print a meta data summary โ initial format and a short description of each file section. this is the default action, if no arguments are specified. so like, if you do nothing, this is what you get โจ--head-pageโ print the header page information, stored in the file.--head-eventโ print the event header information, stored in the file.--ftrace-eventsโ print formats of ftrace specific events.--systemsโ print information of event systems, stored in the file โ name and number of events for each system.--eventsโ print formats of all events, stored in the file.--kallsymsโ print information of the mapping of function addresses to the function names.--printkโ printtrace_printk()format strings, stored in the file.--cmd-linesโ print mapping a PID to a process name.--optionsโ print all options, stored in the file.--flyrecordโ print the offset and the size of tracing data per each CPU.--clockโ print the trace clock, used for timestamp of the tracing events, stored in the file.--allโ print all meta data from the file. the "give me everything" button, main character energy ๐ฅ--helpโ print usage information.--verbose[=level]โ set the log level. 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 specific value enables all logs from that and all previous levels. the level will default to"info"if one is not specified.
Example: enable all critical, error and warning logs
trace-cmd report --verbose=warning
๐ง EXAMPLES ๐ง
okay these are the receipts, let me just show you:
# trace-cmd dump --summary -i trace.dat
Tracing meta data in file trace.dat:
[Initial format]
6 [Version]
0 [Little endian]
8 [Bytes in a long]
4096 [Page size, bytes]
[Header info, 205 bytes]
[Header event, 205 bytes]
[Ftrace format, 15 events]
[Events format, 2 systems]
[Kallsyms, 7144493 bytes]
[Trace printk, 2131 bytes]
[Saved command lines, 117 bytes]
8 [CPUs with tracing data]
[12 options]
[Flyrecord tracing data]
# trace-cmd dump --flyrecord -i trace.dat
[Flyrecord tracing data]
7176192 0 [offset, size of cpu 0]
7176192 0 [offset, size of cpu 1]
7176192 0 [offset, size of cpu 2]
7176192 4096 [offset, size of cpu 3]
7180288 4096 [offset, size of cpu 4]
7184384 0 [offset, size of cpu 5]
7184384 0 [offset, size of cpu 6]
7184384 0 [offset, size of cpu 7]
# trace-cmd dump --summary --systems -i trace.dat
Tracing meta data in file trace.dat:
[Initial format]
6 [Version]
0 [Little endian]
8 [Bytes in a long]
4096 [Page size, bytes]
[Header info, 205 bytes]
[Header event, 205 bytes]
[Ftrace format, 15 events]
[Events format, 3 systems]
sched 23 [system, events]
irq 5 [system, events]
kvm 70 [system, events]
[Kallsyms, 7144493 bytes]
[Trace printk, 2131 bytes]
[Saved command lines, 157 bytes]
8 [CPUs with tracing data]
[11 options]
[Flyrecord tracing data]
# trace-cmd dump --summary --systems -i trace.dat
File trace.dat is a valid trace-cmd file
like, that last one just tells you your file is valid and honestly? slay ๐โจ
๐ SEE ALSO ๐
trace-cmd(1), trace-cmd.dat(1)
๐ AUTHOR ๐
Steven Rostedt <rostedt@goodmis.org[1]>, author of trace-cmd. Tzvetomir Stoyanov <tz.stoyanov@gmail.com[2]>, author of this man page.
(we stan both of them, legends only ๐)
๐ 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.orgtz.stoyanov@gmail.commailto:tz.stoyanov@gmail.com
and that's the whole page bestie ๐ซถ this was libtracefs, dated 03/09/2026 โ ily, go dump some trace files, periodt ๐๐
๐ฆ 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