]> git.dujemihanovic.xyz Git - linux.git/commit
tracing/fprobe: Support raw tracepoints on future loaded modules
authorMasami Hiramatsu (Google) <mhiramat@kernel.org>
Sun, 18 Aug 2024 10:43:26 +0000 (19:43 +0900)
committerMasami Hiramatsu (Google) <mhiramat@kernel.org>
Wed, 25 Sep 2024 14:23:44 +0000 (23:23 +0900)
commit57a7e6de9e30cb40fd4b45e24e9eefedb84cdde5
tree6049ae545de0c7d4cd01a1928393769dea0a8bdd
parent67e9a9ee476e862fda27803bdce888c04e4b3380
tracing/fprobe: Support raw tracepoints on future loaded modules

Support raw tracepoint events on future loaded (unloaded) modules.
This allows user to create raw tracepoint events which can be used from
module's __init functions.

Note: since the kernel does not have any information about the tracepoints
in the unloaded modules, fprobe events can not check whether the tracepoint
exists nor extend the BTF based arguments.

Link: https://lore.kernel.org/all/172397780593.286558.18360375226968537828.stgit@devnote2/
Suggested-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Signed-off-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
kernel/trace/trace_fprobe.c
tools/testing/selftests/ftrace/test.d/dynevent/tprobe_syntax_errors.tc