]> git.ipfire.org Git - thirdparty/linux.git/commit
ring-buffer: Introduce ring-buffer remotes
authorVincent Donnefort <vdonnefort@google.com>
Mon, 9 Mar 2026 16:24:49 +0000 (16:24 +0000)
committerSteven Rostedt (Google) <rostedt@goodmis.org>
Mon, 9 Mar 2026 16:33:53 +0000 (12:33 -0400)
commit2e67fabd8b77c4f482df9b211bca1b495c6c2c24
tree8dea2d4212917e4c9483d9fb3f68b8b664126cd8
parente682207bf7ae3f81885f612ada1ac44d027158d4
ring-buffer: Introduce ring-buffer remotes

Add ring-buffer remotes to support entities outside of the kernel (such
as firmware or a hypervisor) that writes events into a ring-buffer using
the tracefs format

Require a description of the ring-buffer pages (struct
trace_buffer_desc) and callbacks (swap_reader_page and reset) to set up
the ring-buffer on the kernel side.

Expect the remote entity to maintain and update the meta-page.

Link: https://patch.msgid.link/20260309162516.2623589-4-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>
include/linux/ring_buffer.h
kernel/trace/ring_buffer.c