Hi, Here is the 3rd version of improvement patches for making persistent ring buffers robust to failures. This fixes some issues of persistent ring buffer on real machines. The previous version is here:
https://lore.kernel.org/all/177140965047.1537493.15501794841217306382.st...@mhiramat.tok.corp.google.com/ In this version, I rebased the series on top of trace/fixes branch (thus the first patch has been merged.) I updated the description [1/3], used RB_MISSED_EVENTS flag to indicate the corrupted page [3/3] and I found a new bug on using rb_data_page::commit as index. So added a new fix [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]>
