public inbox for linux-trace-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/7] tracing/probes: Cleanup with guard and __free for kprobe and fprobe
@ 2025-01-06 16:02 Masami Hiramatsu (Google)
  2025-01-06 16:03 ` [PATCH v2 1/7] tracing/kprobes: Fix to free objects when failed to copy a symbol Masami Hiramatsu (Google)
                   ` (6 more replies)
  0 siblings, 7 replies; 9+ messages in thread
From: Masami Hiramatsu (Google) @ 2025-01-06 16:02 UTC (permalink / raw)
  To: Steven Rostedt, Peter Zijlstra
  Cc: Anil S Keshavamurthy, Masami Hiramatsu, David S . Miller,
	Mathieu Desnoyers, Oleg Nesterov, Tzvetomir Stoyanov,
	Naveen N Rao, Josh Poimboeuf, Jason Baron, Ard Biesheuvel,
	linux-kernel, linux-trace-kernel

Hi,

Here is the 3rd version of the series to fix and cleanup probe events in
ftrace with __free().

In this version, I fixed some issues[5/7] and update DEFINE_FREE() tag
name to specify freeing function name so that reader can understand it
easily[2/7].
Also, I added trace_fprobe cleanup with free[7/7].

Thanks,

---

Masami Hiramatsu (Google) (7):
      tracing/kprobes: Fix to free objects when failed to copy a symbol
      Provide __free(argv_free) for argv_split() users
      tracing: Use __free() for argv in dynevent
      tracing: Use __free() in trace_probe for cleanup
      tracing: Use __free() for kprobe events to cleanup
      tracing/kprobes: Simplify __trace_kprobe_create() by removing gotos
      tracing: Adopt __free() and guard() for trace_fprobe.c


 include/linux/string.h        |    3 +
 kernel/trace/trace_dynevent.c |   23 ++-----
 kernel/trace/trace_fprobe.c   |  129 ++++++++++++++++++----------------------
 kernel/trace/trace_kprobe.c   |  133 +++++++++++++++++++++--------------------
 kernel/trace/trace_probe.c    |   52 ++++++----------
 5 files changed, 156 insertions(+), 184 deletions(-)

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

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

end of thread, other threads:[~2025-01-07 11:22 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-06 16:02 [PATCH v2 0/7] tracing/probes: Cleanup with guard and __free for kprobe and fprobe Masami Hiramatsu (Google)
2025-01-06 16:03 ` [PATCH v2 1/7] tracing/kprobes: Fix to free objects when failed to copy a symbol Masami Hiramatsu (Google)
2025-01-06 16:03 ` [PATCH v2 2/7] Provide __free(argv_free) for argv_split() users Masami Hiramatsu (Google)
2025-01-06 16:03 ` [PATCH v2 3/7] tracing: Use __free() for argv in dynevent Masami Hiramatsu (Google)
2025-01-07 11:22   ` Masami Hiramatsu
2025-01-06 16:03 ` [PATCH v2 4/7] tracing: Use __free() in trace_probe for cleanup Masami Hiramatsu (Google)
2025-01-06 16:03 ` [PATCH v2 5/7] tracing: Use __free() for kprobe events to cleanup Masami Hiramatsu (Google)
2025-01-06 16:04 ` [PATCH v2 6/7] tracing/kprobes: Simplify __trace_kprobe_create() by removing gotos Masami Hiramatsu (Google)
2025-01-06 16:04 ` [PATCH v2 7/7] tracing: Adopt __free() and guard() for trace_fprobe.c Masami Hiramatsu (Google)

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