TRACE-CMD-STREAM(1)

๐Ÿ’– TRACE-CMD-STREAM(1) โ€” the libtracefs girlies' guide ๐Ÿ’–

okay so bestie, welcome to trace-cmd-stream, straight out of the libtracefs manual, and honestly? it's giving live-trace realness. let's get into it ๐Ÿซถ


โœจ SYNOPSIS โœจ

trace-cmd stream [OPTIONS] [command]

that's it. that's the whole vibe check. [OPTIONS] and an optional [command], and you're off ๐Ÿฆ‹


๐Ÿ’… DESCRIPTION ๐Ÿ’…

okay so trace-cmd(1) with the stream subcommand starts tracing exactly like trace-cmd-record(1) does โ€” same energy, same setup โ€” except it does not record to a file. nope! instead it reads the binary buffer as it is happening, converts it to a human readable format, and writes it to stdout. live. in real time. no cap ๐ŸŽ€

lowkey this is basically the same as running trace-cmd-start(1) and then doing a trace-cmd-show(1) with the -p option. like, same result, different path. iykyk.

now, real talk: trace-cmd-stream is not as efficient as reading from the pipe file, because most of the stream work is done in userspace. it's literally doing the heavy lifting itself instead of letting the kernel handle it ๐Ÿ˜ญ key point though โ€” that's exactly why it's useful: if you need to do the work mostly in userspace instead of the kernel, this is your girl. slay ๐Ÿ’…

and plot twist โ€” stream also helps to debug trace-cmd-profile(1), which uses the stream code to perform the live data analysis for the profile. so it's not just a pretty face โœจ


๐ŸŒธ OPTIONS ๐ŸŒธ

  • the options here are the same as trace-cmd-record(1), with one exception: it does not take the -o option. that's the whole tea. no -o, periodt ๐Ÿ’€
honestly this section is short and i respect that. the rest of the flags live over in trace-cmd-record(1) โ€” go say hi ๐Ÿ‘‘

๐Ÿ”ฅ SEE ALSO ๐Ÿ”ฅ

the whole squad, fr fr ๐ŸŒˆ


๐Ÿ’œ AUTHOR ๐Ÿ’œ

written by Steven Rostedt, <rostedt@goodmis.org[1]> โ€” icon behavior, we stan ๐Ÿ‘‘


๐Ÿฆ‹ RESOURCES ๐Ÿฆ‹

https://git.kernel.org/pub/scm/utils/trace-cmd/trace-cmd.git/

go look, bestie, the source is right there ๐Ÿ’–


๐ŸŽ€ COPYING ๐ŸŽ€

Copyright (C) 2014 Red Hat, Inc. free use of this software is granted under the terms of the GNU Public License (GPL). so yes, free, but read the license, it's not a suggestion โœจ


๐Ÿ“ NOTES ๐Ÿ“

  1. rostedt@goodmis.org mailto:rostedt@goodmis.org

like, literally the same email, just clickable. that's the note. ๐Ÿ“


aaaand that's the page!! this one's from libtracefs, dated 03/09/2026, and it's a whole TRACE-CMD-STREAM(1) moment. happy streaming, bestie โ€” may your buffers be binary and your stdout be gorgeous ๐Ÿ’–โœจ๐ŸŽ€๐Ÿฆ‹๐ŸŒธ๐Ÿ’…๐Ÿซถ

๐Ÿ“ฆ where this page comes from