TRACE-CMD-SNAPSHOT(1)
๐ธ NAME ๐ธ
trace-cmd-snapshot โ bestie, this is the libtracefs manual page, and this command is all about taking, resetting, freeing, or showing a Ftrace kernel snapshot. like, the whole snapshot vibe. ๐ธ๐
๐ SYNOPSIS ๐
trace-cmd snapshot [OPTIONS]
๐ DESCRIPTION ๐
okay so trace-cmd(1) snapshot controls or displays the Ftrace Linux kernel snapshot feature โ but only if the kernel supports it, so check that first bestie, no cap.
the whole point is that you can "freeze" an instance of a live trace without stopping the trace. so it's like a freeze-frame, but the trace keeps going. iconic. ๐ง
like, here's the exact workflow:
trace-cmd start -p function
trace-cmd snapshot -s
trace-cmd snapshot
[ dumps the content of buffer at 'trace-cmd snapshot -s' ]
trace-cmd snapshot -s
trace-cmd snapshot
[ dumps the new content of the buffer at the last -s operation ]
so you start the trace, take a snapshot with -s, dump the content, then take another snapshot and dump the new content. literally the whole cycle, and it's iconic. โจ
โจ OPTIONS โจ
-sโ takes a snapshot of the currently running buffer. like, right now, snap! ๐ธ-rโ clears out the buffer. bye bye, data. ๐งน-fโ frees the snapshot buffer. okay this one actually matters, bestie: the buffer takes up memory inside the kernel, and it's best to free it when you're not using it. but don't worry โ the first-soperation will allocate it again if it's not already allocated. easy. ๐-c cpuโ operates on a per cpu snapshot. heads up though: this may not be fully supported by all kernels, so if it doesn't work, that's why. ๐-B bufโ if you created a buffer instance, then the-Boption will operate on the snapshot within that buffer. so it's like, "use this buffer's snapshot, not the main one." ๐
๐ฆ SEE ALSO ๐ฆ
bestie, you should totally check out these other pages too:
trace-cmd(1)trace-cmd-record(1)trace-cmd-report(1)trace-cmd-start(1)trace-cmd-extract(1)trace-cmd-reset(1)trace-cmd-split(1)trace-cmd-list(1)trace-cmd-listen(1)
all the trace-cmd content your heart desires. ๐
๐ AUTHOR ๐
written by Steven Rostedt, <rostedt@goodmis.org[1]>. king behavior, honestly. ๐
๐ RESOURCES ๐
the repo is right here bestie: https://git.kernel.org/pub/scm/utils/trace-cmd/trace-cmd.git/ โ go off. ๐ป
๐ 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.org
๐ and that's the teaaaa! this page is from libtracefs, dated 03/09/2026, and it's TRACE-CMD-SNAPSHOT(1). slay, periodt, bye 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