]> www.infradead.org Git - users/dwmw2/linux.git/commit
ring-buffer: Add buffer meta data for persistent ring buffer
authorSteven Rostedt <rostedt@goodmis.org>
Wed, 5 Mar 2025 16:45:41 +0000 (11:45 -0500)
committerSteven Rostedt (Google) <rostedt@goodmis.org>
Fri, 28 Mar 2025 12:39:26 +0000 (08:39 -0400)
commit4009cc31e7813ed66a04237ddff76706ff57a771
tree12c9eddf01514c3eb698bd7f35cf34e5814f5812
parentbcba8d4dbe6880ce9883409df486de35d3946704
ring-buffer: Add buffer meta data for persistent ring buffer

Instead of just having a meta data at the first page of each sub buffer
that has duplicate data, add a new meta page to the entire block of memory
that holds the duplicate data and remove it from the sub buffer meta data.

This will open up the extra memory in this first page to be used by the
tracer for its own persistent data.

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