[PATCH v2 0/6] tracing: probes: Use heap instead of stack for temporary buffers

Masami Hiramatsu (Google)
2025-07-20T06:21:42Z

Hi,

This is the 2nd version of the series of cleanup patches which allocate
temporary buffers and objects on heap (slab) instead of the stack.
The previous version is here;

https://lore.kernel.org/all/175283843771.343578.8524137568048302760.stgit@devnote2/

This version updated patches according to the comment, also sorts the
#include alphabetically. Also add a kerneldoc for
traceprobe_parse_event_name().

---

Masami Hiramatsu (Google) (6):
tracing: probe: Allocate traceprobe_parse_context from heap
tracing: fprobe-event: Allocate string buffers from heap
tracing: kprobe-event: Allocate string buffers from heap
tracing: eprobe-event: Allocate string buffers from heap
tracing: uprobe-event: Allocate string buffers from heap
tracing: probes: Add a kerneldoc for traceprobe_parse_event_name()

kernel/trace/trace_eprobe.c | 40 +++++++++++++++++++++++---------
kernel/trace/trace_fprobe.c | 52 ++++++++++++++++++++++++++++--------------
kernel/trace/trace_kprobe.c | 49 ++++++++++++++++++++++++++--------------
kernel/trace/trace_probe.c | 17 +++++++++++++-
kernel/trace/trace_probe.h | 26 +++++++++++++++------
kernel/trace/trace_uprobe.c | 53 +++++++++++++++++++++++++++----------------
6 files changed, 161 insertions(+), 76 deletions(-)

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