From: Masami Hiramatsu Date: Thu, 10 Sep 2020 12:38:39 +0000 (+0900) Subject: kprobes: Init kprobes in early_initcall X-Git-Tag: io_uring-5.10-2020-10-20~25^2~38 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=36dadef23fcca55bb6531dc12822d3b165319ccc;hp=8f2a59968f961570fe7b9d99e3a615dd21477638;p=linux-block.git kprobes: Init kprobes in early_initcall Init kprobes feature in early_initcall as same as jump_label and dynamic_debug does, so that we can use kprobes events in earlier boot stage. Link: https://lkml.kernel.org/r/159974151897.478751.8342374158615496628.stgit@devnote2 Signed-off-by: Masami Hiramatsu Signed-off-by: Steven Rostedt (VMware) --- diff --git a/kernel/kprobes.c b/kernel/kprobes.c index d750e025d1ff..9303881aac84 100644 --- a/kernel/kprobes.c +++ b/kernel/kprobes.c @@ -2529,7 +2529,7 @@ static int __init init_kprobes(void) init_test_probes(); return err; } -subsys_initcall(init_kprobes); +early_initcall(init_kprobes); #ifdef CONFIG_DEBUG_FS static void report_probe(struct seq_file *pi, struct kprobe *p,