]> asedeno.scripts.mit.edu Git - linux.git/commit
kprobes: Initialize kprobes at postcore_initcall
authorMasami Hiramatsu <mhiramat@kernel.org>
Wed, 22 May 2019 08:32:27 +0000 (17:32 +0900)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Sun, 26 May 2019 03:04:43 +0000 (23:04 -0400)
commitb5f8b32c93b21c457a958d2a6bf938dab41bac4e
treefcdc0b252c508ddcd9c34c2c34c0d51884251853
parent539b75b2b9eece3fc6da5672d4b67440d5e454a9
kprobes: Initialize kprobes at postcore_initcall

Initialize kprobes at postcore_initcall level instead of module_init
since kprobes is not a module, and it depends on only subsystems
initialized in core_initcall.
This will allow ftrace kprobe event to add new events when it is
initializing because ftrace kprobe event is initialized at
later initcall level.

Link: http://lkml.kernel.org/r/155851394736.15728.13626739508905120098.stgit@devnote2
Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
kernel/kprobes.c