]> 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)
commit1bd837ecab93393ca4fbe2d89cf4c36a5a3a2d93
treefcdc0b252c508ddcd9c34c2c34c0d51884251853
parent69d9e67e0a4a2914b3463f1501a4cd1602918d8b
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