]> git.ipfire.org Git - thirdparty/linux.git/commit
ring-buffer: Add non-consuming read for ring-buffer remotes
authorVincent Donnefort <vdonnefort@google.com>
Mon, 9 Mar 2026 16:24:50 +0000 (16:24 +0000)
committerSteven Rostedt (Google) <rostedt@goodmis.org>
Mon, 9 Mar 2026 16:33:53 +0000 (12:33 -0400)
commitfbd1743ecba11ea163920279bc16263d79bb0929
tree3951abd88268dd1a2a450efed68a1ef270afef97
parent2e67fabd8b77c4f482df9b211bca1b495c6c2c24
ring-buffer: Add non-consuming read for ring-buffer remotes

Hopefully, the remote will only swap pages on the kernel instruction (via
the swap_reader_page() callback). This means we know at what point the
ring-buffer geometry has changed. It is therefore possible to rearrange
the kernel view of that ring-buffer to allow non-consuming read.

Link: https://patch.msgid.link/20260309162516.2623589-5-vdonnefort@google.com
Reviewed-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Signed-off-by: Vincent Donnefort <vdonnefort@google.com>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
kernel/trace/ring_buffer.c