]> git.ipfire.org Git - thirdparty/linux.git/commit
tracing: Rename trace_array field max_buffer to snapshot_buffer
authorSteven Rostedt <rostedt@goodmis.org>
Sun, 8 Feb 2026 18:38:33 +0000 (13:38 -0500)
committerSteven Rostedt (Google) <rostedt@goodmis.org>
Mon, 9 Feb 2026 02:01:13 +0000 (21:01 -0500)
commit694b3f6fe0b6c86ff75e94302708f5a718027297
treebd40aabafc4b37ddc59fc489a470c6cf685bf9e8
parent98021e37d694ddc48f45b690045df013054fd69c
tracing: Rename trace_array field max_buffer to snapshot_buffer

When tracing was first added, there were latency tracers that would take a
snapshot of the current trace when a new max latency was hit. This
snapshot buffer was called "max_buffer". Since then, a snapshot feature
was added that allowed user space or event triggers to trigger a snapshot
of the current buffer using the same max_buffer of the trace_array.

As this snapshot buffer now has a more generic use case, calling it
"max_buffer" is confusing. Rename it to snapshot_buffer.

Cc: Masami Hiramatsu <mhiramat@kernel.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Link: https://patch.msgid.link/20260208183856.428446729@kernel.org
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
kernel/trace/trace.c
kernel/trace/trace.h
kernel/trace/trace_selftest.c