]> git.baikalelectronics.ru Git - kernel.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)
commitb63b434d205a88f33b2755b4d72141a0a3706b92
treefcdc0b252c508ddcd9c34c2c34c0d51884251853
parentb2a1da6840df3877baaec861c2a07e02dab1cd28
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