Thread (34 messages) 34 messages, 4 authors, 4d ago

Re: [PATCH v5 03/10] ring-buffer: Make cpu_buffer::free_page a buffer_data_read_page

From: Steven Rostedt <rostedt@goodmis.org>
Date: 2026-08-14 01:04:37
Also in: sashiko-reviews

On Thu, 13 Aug 2026 13:56:13 +0000
sashiko-bot@kernel.org wrote:
This returns -1, which tracing_buffers_read() treats as EOF. Subsequent
reads see info->spare_size == page_size, reuse the bad page, and
permanently return EOF.
If you are resizing the ring buffer at the same time as reading
trace_pipe_raw, yeah you may get garbage or an early EOF.

It's stupid to do.

-- Steve
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help