Hi, Here is the 4th version of improvement patches for making persistent ring buffers robust to failures. The previous version is here:
https://lore.kernel.org/linux-trace-kernel/177186335195.133407.907308822749006594.stgit@devnote2/ In this version, I fixed to move rb_commit_index() after the definition of ring_buffer_per_cpu[2/3]. 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 | 72 +++++++++++++++++++++++++++++--------------- 1 file changed, 47 insertions(+), 25 deletions(-) -- Masami Hiramatsu (Google) <[email protected]>
