diff options
author | Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com> | 2017-02-08 01:24:14 +0530 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2017-02-10 14:42:49 +1100 |
commit | fc62d0207ae0ebc9d19df68394c0dc925b4a92d1 (patch) | |
tree | 09a4650df470622b431d22c20457e2f6d0247b22 /kernel/kprobes.c | |
parent | 496e9cb5b2aa2ba303d2bbd08518f9be2219ab4b (diff) | |
download | linux-fc62d0207ae0ebc9d19df68394c0dc925b4a92d1.tar.gz linux-fc62d0207ae0ebc9d19df68394c0dc925b4a92d1.tar.bz2 linux-fc62d0207ae0ebc9d19df68394c0dc925b4a92d1.zip |
kprobes: Introduce weak variant of kprobe_exceptions_notify()
kprobe_exceptions_notify() is not used on some of the architectures such
as arm[64] and powerpc anymore. Introduce a weak variant for such
architectures.
Signed-off-by: Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
Acked-by: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'kernel/kprobes.c')
-rw-r--r-- | kernel/kprobes.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/kernel/kprobes.c b/kernel/kprobes.c index 43460104f119..60a702a05684 100644 --- a/kernel/kprobes.c +++ b/kernel/kprobes.c @@ -1705,6 +1705,12 @@ void unregister_kprobes(struct kprobe **kps, int num) } EXPORT_SYMBOL_GPL(unregister_kprobes); +int __weak __kprobes kprobe_exceptions_notify(struct notifier_block *self, + unsigned long val, void *data) +{ + return NOTIFY_DONE; +} + static struct notifier_block kprobe_exceptions_nb = { .notifier_call = kprobe_exceptions_notify, .priority = 0x7fffffff /* we need to be notified first */ |