diff options
author | Masami Hiramatsu <mhiramat@kernel.org> | 2020-03-26 23:50:00 +0900 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2020-05-12 17:15:32 +0200 |
commit | 16db6264c93d2d7df9eb8be5d9eb717ab30105fe (patch) | |
tree | 5276739d63b183b27c6b6a6a07af9be91ed4730b /include/linux/module.h | |
parent | 1e6769b0aece51ea7a3dc3117c37d4a5669e4a21 (diff) | |
download | lwn-16db6264c93d2d7df9eb8be5d9eb717ab30105fe.tar.gz lwn-16db6264c93d2d7df9eb8be5d9eb717ab30105fe.zip |
kprobes: Support NOKPROBE_SYMBOL() in modules
Support NOKPROBE_SYMBOL() in modules. NOKPROBE_SYMBOL() records only symbol
address in "_kprobe_blacklist" section in the module.
Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Alexandre Chartre <alexandre.chartre@oracle.com>
Acked-by: Peter Zijlstra <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20200505134059.771170126@linutronix.de
Diffstat (limited to 'include/linux/module.h')
-rw-r--r-- | include/linux/module.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/module.h b/include/linux/module.h index 369c354f9207..1192097c9a69 100644 --- a/include/linux/module.h +++ b/include/linux/module.h @@ -492,6 +492,8 @@ struct module { #ifdef CONFIG_KPROBES void *kprobes_text_start; unsigned int kprobes_text_size; + unsigned long *kprobe_blacklist; + unsigned int num_kprobe_blacklist; #endif #ifdef CONFIG_LIVEPATCH |