linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/3] kprobes: introduce weak variant of kprobe_exceptions_notify
@ 2017-02-07 19:54 Naveen N. Rao
  2017-02-07 19:54 ` [PATCH 2/3] arm: kprobes: remove kprobe_exceptions_notify Naveen N. Rao
                   ` (4 more replies)
  0 siblings, 5 replies; 11+ messages in thread
From: Naveen N. Rao @ 2017-02-07 19:54 UTC (permalink / raw)
  To: mhiramat, ananth; +Cc: mingo, mpe, linux-arm-kernel, linux-kernel, linuxppc-dev

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>
---
 kernel/kprobes.c | 6 ++++++
 1 file changed, 6 insertions(+)

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 */
-- 
2.11.0

^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2017-03-06 18:38 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-02-07 19:54 [PATCH 1/3] kprobes: introduce weak variant of kprobe_exceptions_notify Naveen N. Rao
2017-02-07 19:54 ` [PATCH 2/3] arm: kprobes: remove kprobe_exceptions_notify Naveen N. Rao
2017-03-06 18:07   ` Naveen N. Rao
2017-03-06 18:38     ` Russell King - ARM Linux
2017-02-07 19:54 ` [PATCH 3/3] powerpc: kprobes: remove kprobe_exceptions_notify() Naveen N. Rao
2017-02-14 12:40   ` [3/3] " Michael Ellerman
2017-02-08  1:45 ` [PATCH 1/3] kprobes: introduce weak variant of kprobe_exceptions_notify Masami Hiramatsu
2017-02-10  3:41 ` Michael Ellerman
2017-02-10  7:50   ` Ingo Molnar
2017-02-13  8:32   ` Naveen N. Rao
2017-02-14 12:40 ` [1/3] " Michael Ellerman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).