TRACE-CMD-EXTRACT(1)
๐ TRACE-CMD-EXTRACT(1) โ the libtracefs girlies' edition ๐
okay so like, welcome to the libtracefs manual page for trace-cmd-extract โ yes bestie, that's the manual name, we're just vibing with it up here instead of doing a whole separate line, slay โจ
๐ธ NAME ๐ธ
trace-cmd-extract โ extract out the data from the Ftrace Linux tracer. that's it, that's the whole job, and it does it immaculately ๐
โจ SYNOPSIS โจ
trace-cmd extract [OPTIONS]
๐ฆ DESCRIPTION ๐ฆ
okay so trace-cmd extract (that's the trace-cmd(1) girlie, hi ๐) is usually the thing you run after trace-cmd-start(1) and trace-cmd-stop(1). but lowkey it also works if the Ftrace tracer was started manually through the Ftrace pseudo file system โ no gatekeeping here ๐
what it actually does: it creates a trace.dat file, which is the file that trace-cmd-report(1) reads from. how? it reads the kernel internal ring buffer and turns it into that trace.dat. it's giving data extraction main character energy, no cap ๐ซถ
๐ OPTIONS ๐
-pplugin โ so, like,extractdoesn't actually start any traces (it's not that kind of girl), but some plugins require just reading the output in ASCII format. those are the latency tracers, because latency tracers have their own separate internal buffer. so thepluginoption is only necessary for thewakeup,wakeup-rt,irqsoff,preemptoffandpreemptirqsoffplugins. and without this option? theextractcommand will extract from the internal Ftrace buffers. periodt ๐-Ooption โ if a latency tracer is being extracted and you used the-poption, then there are some Ftrace options that can change the format. this updates those options before extracting. to see the list of options, go seetrace-cmd-list. to enable an option, write its name; to disable the option, append the charactersnoto it. for example:noprint-parentwill disable theprint-parentoption that prints the parent function when printing a function event. iykyk ๐ง-ooutputfile โ default behaviour is thatextractcreates atrace.datfile. this option changes where that file gets written to. move it, relocate it, make it yours ๐-sโ extract from the snapshot buffer, if the kernel supports it. iconic behaviour only โจ--dateโ this is the same as thetrace-cmd-record(1)--dateoption, but (big but) it does cause the extract routine to disable all tracing. that is, the end of the extract will perform something similar totrace-cmd-reset(1). so like, be aware bestie ๐-Bbuffer-name โ if the kernel supports multiple buffers, this extracts the trace for only the given buffer. it does not affect any other buffer, she's very respectful like that ๐. you can use this multiple times to specify different buffers. when this option is used, the top level instance will not be extracted unless-tis given.-aโ extract all existing buffer instances. when this option is used, the top level instance will not be extracted unless-tis given. same rules, different flag, we love consistency ๐-tโ extracts 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 extracted. don't forget her or she'll simply not show up ๐ซถ--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 a specific value enables all logs from that level and all previous levels. if you don't specify one, the level defaults to"info". so chatty of her ๐
example โ enable all critical, error and warning logs:
trace-cmd extract --verbose=warning
๐ฅ SEE ALSO ๐ฅ
trace-cmd(1), trace-cmd-record(1), trace-cmd-report(1), trace-cmd-start(1), trace-cmd-stop(1), trace-cmd-reset(1), trace-cmd-split(1), trace-cmd-list(1), trace-cmd-listen(1)
the whole friend group fr fr ๐ฏโโ๏ธ
๐ AUTHOR ๐
Written by Steven Rostedt, <rostedt@goodmis.org[1]> โ the icon, the legend, the moment ๐
๐ RESOURCES ๐
https://git.kernel.org/pub/scm/utils/trace-cmd/trace-cmd.git/
go look, bestie, it's 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). free use, we love to see it ๐
๐ NOTES ๐
rostedt@goodmis.orgmailto:rostedt@goodmis.org
ok that's the whole page!! every flag, every value, every default, all accounted for, nothing dropped ๐ โจ
and finally, the cute little sign-off: this was the libtracefs manual page, dated 03/09/2026, and the page you just read is TRACE-CMD-EXTRACT(1). mwah, go extract those traces 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