[RFC PATCH v2 0/3] tracing: Improve persistent ring buffer

Masami Hiramatsu (Google)
2025-02-10T15:43:52Z

Hi,

Here is the 2nd version of the patch and additional improvement for ring
buffer on reseved memory. This depends on the series of "ring-buffer/tracing:
Save module information in persistent memory" here;

https://lore.kernel.org/all/20250205225031.799739376@goodmis.org/

In v2, I removed my first 2 patches, and fixes the 3rd patch. It also add
module LRU override feature which replaces the oldest removed module if
the module table is full.

I also added 2 patches to release the memory of persistent ring buffer
if user does not need it anymore. Currently persistent ring buffer has
to be enabled by kernel cmdline, user can not remove it without
changing the cmdline and rebooting. This feature allows user to remove
persistent ring buffer and release the memory without rebooting. Thus
user can set it up by default and remove it if it is not used anymore.

Thank you,
---

Masami Hiramatsu (Google) (3):
tracing: Show last module text symbols in the stacktrace
mm/memblock: Add reserved memory release function
tracing: Freeable reserved ring buffer

include/linux/mm.h | 1
kernel/trace/trace.c | 190 ++++++++++++++++++++++++++++++++++++++++---
kernel/trace/trace.h | 5 +
kernel/trace/trace_output.c | 3 -
mm/memblock.c | 72 ++++++++++++++--
5 files changed, 244 insertions(+), 27 deletions(-)

--
Masami Hiramatsu (Google) <mhiramat@kernel.org>