mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [GIT PULL] ring-buffer: Updates for 7.2
@ 2026-06-17 20:32 Steven Rostedt
  2026-06-19  4:38 ` pr-tracker-bot
  0 siblings, 1 reply; 2+ messages in thread
From: Steven Rostedt @ 2026-06-17 20:32 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: LKML, Masami Hiramatsu, Mathieu Desnoyers, Andrew Morton


Linus,

ring-buffer: Updates for v7.2:

- Do not invalidate entire buffer for invalid sub-buffers

  For the persistent ring buffer, if one sub-buffer is found to be invalid,
  it invalidates the entire per CPU ring buffer. This can lose a lot of
  valuable data if there's some corruption with the writes to the buffer not
  syncing properly on a hard crash. Instead, if a sub-buffer is found to be
  invalid, simply zero it out and mark it for "missed events".

  When the persistent ring buffer is read and a sub-buffer that was cleared
  due to being invalid on boot up is discovered, the output will show
  "[LOST EVENTS]" to let the user know that events were missing at that
  location. Displaying the events from valid buffers can still be useful.

- Add a test to be able to test corrupted sub-buffers

  If a persistent ring buffer is created as "ptracingtest" and the new config
  that adds the test is enabled, when a panic happens, the kernel will
  randomly corrupt one of the per CPU ring buffers. On boot up, the
  sub-buffers with the corruption should be cleared and flagged. When
  reading this buffer, the missed events should should [LOST EVENTS].

- Add commit number in the sub-buffer meta debug info

  The commit is used to know the content of a meta page. Add it to the
  buffer_meta file that is shown for each per CPU buffer.

- Clean up the persistent ring buffer validation code

  Add some helper functions and make variable names more consistent.


Please pull the latest trace-ring-buffer-v7.2 tree, which can be found at:


  git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace.git
trace-ring-buffer-v7.2

Tag SHA1: eec08f17230e4b945157bba627e71a542e291784
Head SHA1: 4e8729e6598ba0d10021dbf48b308cd53a06bbc4


Masami Hiramatsu (Google) (6):
      ring-buffer: Skip invalid sub-buffers when validating persistent ring buffer
      ring-buffer: Skip invalid sub-buffers when rewinding persistent ring buffer
      ring-buffer: Add persistent ring buffer invalid-page inject test
      ring-buffer: Show commit numbers in buffer_meta file
      ring-buffer: Cleanup persistent ring buffer validation
      ring-buffer: Cleanup buffer_data_page related code

Steven Rostedt (4):
      ring-buffer: Have dropped subbuffers be persistent across reboots
      ring-buffer: Show persistent buffer dropped events in trace file
      ring-buffer: Show persistent buffer dropped events in trace_pipe file
      ring-buffer: Better comment the use of RB_MISSED_EVENTS

----
 include/linux/ring_buffer.h |   1 +
 kernel/trace/Kconfig        |  34 +++
 kernel/trace/ring_buffer.c  | 557 ++++++++++++++++++++++++++++++--------------
 kernel/trace/trace.c        |   4 +
 4 files changed, 416 insertions(+), 180 deletions(-)
---------------------------

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [GIT PULL] ring-buffer: Updates for 7.2
  2026-06-17 20:32 [GIT PULL] ring-buffer: Updates for 7.2 Steven Rostedt
@ 2026-06-19  4:38 ` pr-tracker-bot
  0 siblings, 0 replies; 2+ messages in thread
From: pr-tracker-bot @ 2026-06-19  4:38 UTC (permalink / raw)
  To: Steven Rostedt
  Cc: Linus Torvalds, LKML, Masami Hiramatsu, Mathieu Desnoyers, Andrew Morton

The pull request you sent on Wed, 17 Jun 2026 16:32:38 -0400:

> git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace.git trace-ring-buffer-v7.2

has been merged into torvalds/linux.git:
https://git.kernel.org/torvalds/c/9ecfb2f7287a967b418ba69f10d45ead0d360593

Thank you!

-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/prtracker.html

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-06-19  4:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-17 20:32 [GIT PULL] ring-buffer: Updates for 7.2 Steven Rostedt
2026-06-19  4:38 ` pr-tracker-bot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome