]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
tracing: Use flexible array for entry fetch code
authorRosen Penev <rosenp@gmail.com>
Mon, 1 Jun 2026 14:35:21 +0000 (23:35 +0900)
committerMasami Hiramatsu (Google) <mhiramat@kernel.org>
Mon, 1 Jun 2026 14:35:21 +0000 (23:35 +0900)
commitcf24cbb4e5861caacfdb5bface90b80eaa26e649
tree98c2aac9c34699d9d9622d94dd65a6cfc2a38076
parent4304c8165281fe730b6861d37a30b567d3c57832
tracing: Use flexible array for entry fetch code

Store probe entry fetch instructions in the probe_entry_arg
allocation instead of allocating a separate instruction array.

This keeps the entry fetch code tied to the entry argument lifetime while
leaving regular probe_arg instruction arrays separately allocated and
freed.

Assisted-by: Codex:GPT-5.5
Link: https://lore.kernel.org/all/20260520215817.16560-1-rosenp@gmail.com/
Signed-off-by: Rosen Penev <rosenp@gmail.com>
Signed-off-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
kernel/trace/trace_probe.c
kernel/trace/trace_probe.h