]> git.dujemihanovic.xyz Git - linux.git/commit
tracing/fprobe: Support raw tracepoint events on modules
authorMasami Hiramatsu (Google) <mhiramat@kernel.org>
Sun, 18 Aug 2024 10:43:16 +0000 (19:43 +0900)
committerMasami Hiramatsu (Google) <mhiramat@kernel.org>
Wed, 25 Sep 2024 14:23:44 +0000 (23:23 +0900)
commit67e9a9ee476e862fda27803bdce888c04e4b3380
treec9f74298377acc14853c594e52fd7480c264e2e6
parentd4df54f338e43c790460674a3cc7db35b8395421
tracing/fprobe: Support raw tracepoint events on modules

Support raw tracepoint event on module by fprobe events.
Since it only uses for_each_kernel_tracepoint() to find a tracepoint,
the tracepoints on modules are not handled. Thus if user specified a
tracepoint on a module, it shows an error.
This adds new for_each_module_tracepoint() API to tracepoint subsystem,
and uses it to find tracepoints on modules.

Link: https://lore.kernel.org/all/172397779651.286558.15903703620679186867.stgit@devnote2/
Reported-by: don <zds100@gmail.com>
Closes: https://lore.kernel.org/all/20240530215718.aeec973a1d0bf058d39cb1e3@kernel.org/
Signed-off-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
kernel/trace/trace_fprobe.c