[PATCH v5 0/3] ring-buffer: Making persistent ring buffers robust

From: Masami Hiramatsu (Google)

Date: Thu Feb 26 2026 - 08:43:46 EST


Hi,

Here is the 5th version of improvement patches for making persistent
ring buffers robust to failures.
The previous version is here:

https://lore.kernel.org/all/177191595057.435720.10116014529518464418.stgit@xxxxxxxxxxxxxxxxxxxxxxxxxxxx/

This version fixes multiple issues in the previous version.
- [1/3] Use appropriate functions for flushing cache and
stopping event recrod.
- [2/3] More fixes for masking commit fields and do not move
unrelated rb_commit_index().
- [3/3] Show total number of discarded pages instead of
showing errors on each page.

Thank you,

---

Masami Hiramatsu (Google) (3):
ring-buffer: Flush and stop persistent ring buffer on panic
ring-buffer: Handle RB_MISSED_* flags on commit field correctly
ring-buffer: Skip invalid sub-buffers when validating persistent ring buffer


kernel/trace/ring_buffer.c | 73 ++++++++++++++++++++++++++++++--------------
1 file changed, 49 insertions(+), 24 deletions(-)

--
Masami Hiramatsu (Google) <mhiramat@xxxxxxxxxx>