]> git.dujemihanovic.xyz Git - linux.git/commit
tracepoint: Support iterating tracepoints in a loading module
authorMasami Hiramatsu (Google) <mhiramat@kernel.org>
Sun, 18 Aug 2024 10:43:07 +0000 (19:43 +0900)
committerMasami Hiramatsu (Google) <mhiramat@kernel.org>
Wed, 25 Sep 2024 14:23:44 +0000 (23:23 +0900)
commitd4df54f338e43c790460674a3cc7db35b8395421
tree98e1cb8212aced07c1cea62b492673863b696be7
parentd5dbf8b48a4620db771f399ed7fce32d447f04a6
tracepoint: Support iterating tracepoints in a loading module

Add for_each_tracepoint_in_module() function to iterate tracepoints in
a module. This API is needed for handling tracepoints in a loading
module from tracepoint_module_notifier callback function.
This also update for_each_module_tracepoint() to pass the module to
callback function so that it can find module easily.

Link: https://lore.kernel.org/all/172397778740.286558.15781131277732977643.stgit@devnote2/
Signed-off-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
include/linux/tracepoint.h
kernel/tracepoint.c