mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [GIT  PULL] ring-buffer: Updates for v6.17
@ 2025-07-29 19:24 Steven Rostedt
  2025-07-31  0:35 ` pr-tracker-bot
  0 siblings, 1 reply; 2+ messages in thread
From: Steven Rostedt @ 2025-07-29 19:24 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: LKML, Masami Hiramatsu, Mathieu Desnoyers, Colin Ian King


Linus,

ring-buffer changes for v6.17:

- Rewind persistent ring buffer on boot

  When the persistent ring buffer is being used for live kernel tracing and
  the system crashes, the tool that is reading the trace may not have recorded
  the data when the system crashed. Although the persistent ring buffer still
  has that data, when reading it after a reboot, it will start where it left
  off. That is, what was read will not be accessible.

  Instead, on reboot, have the persistent ring buffer restart where the data
  starts and this will allow the tooling to recover what was lost when the
  crash occurred.

- Remove the ring_buffer_read_prepare_sync() logic

  Reading the trace file required stopping writing to the ring buffer as the
  trace file is only an iterator and does not consume what it read. It was
  originally not safe to read the ring buffer in this mode and required
  disabling writing. The ring_buffer_read_prepare_sync() logic was used to
  stop each per_cpu ring buffer, call synchronize_rcu() and then start the
  iterator. This was used instead of calling synchronize_rcu() for each
  per_cpu buffer.

  Today, the iterator has been updated where it is safe to read the trace file
  while writing to the ring buffer is still occurring. There is no more need
  to do this synchronization and it is causing large delays on machines with
  many CPUs. Remove this unneeded synchronization.

- Make static string array a constant in show_irq_str()

  Making the string array into a constant has shown to decrease code text/data
  size.


Please pull the latest trace-ringbuffer-v6.17 tree, which can be found at:


  git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace.git
trace-ringbuffer-v6.17

Tag SHA1: 9969b67120a3c22ea35c93dc8f2f81dce5143a38
Head SHA1: 6443cdf567a900e03afe1d66fb8bcc7dad0835d0


Colin Ian King (1):
      ring-buffer: Make the const read-only 'type' static

Masami Hiramatsu (Google) (1):
      tracing: ring_buffer: Rewind persistent ring buffer on reboot

Steven Rostedt (1):
      ring-buffer: Remove ring_buffer_read_prepare_sync()

----
 include/linux/ring_buffer.h |   4 +-
 kernel/trace/ring_buffer.c  | 168 +++++++++++++++++++++++++++++---------------
 kernel/trace/trace.c        |  14 ++--
 kernel/trace/trace_kdb.c    |   8 +--
 4 files changed, 119 insertions(+), 75 deletions(-)
---------------------------

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

* Re: [GIT  PULL] ring-buffer: Updates for v6.17
  2025-07-29 19:24 [GIT PULL] ring-buffer: Updates for v6.17 Steven Rostedt
@ 2025-07-31  0:35 ` pr-tracker-bot
  0 siblings, 0 replies; 2+ messages in thread
From: pr-tracker-bot @ 2025-07-31  0:35 UTC (permalink / raw)
  To: Steven Rostedt
  Cc: Linus Torvalds, LKML, Masami Hiramatsu, Mathieu Desnoyers,
	Colin Ian King

The pull request you sent on Tue, 29 Jul 2025 15:24:59 -0400:

> git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace.git trace-ringbuffer-v6.17

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

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:[~2025-07-31  0:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-07-29 19:24 [GIT PULL] ring-buffer: Updates for v6.17 Steven Rostedt
2025-07-31  0:35 ` 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

all inboxes | Powered by JetHome®