summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorPrasanna S. Panchamukhi <prasanna@in.ibm.com>2004-10-02 19:14:25 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2004-10-02 19:14:25 -0700
commit644f6741bec0455fa7d8c780034cc8f01988c3e0 (patch)
treed816abf4c13c710f79031481aa97d57690f2b4a5 /include/linux
parent5fe20d6e675d7e62df7cfc8385574785727a9e41 (diff)
[PATCH] kprobes exception notifier fix
This patch modifies the return value of kprobes exceptions notify handler. The kprobes exception notifier returns NOTIFY_STOP on handling notification. This patch helps other debuggers to co-exists with the Kprobes. Other debuggers registered for exceptions notification must return NOTIFY_STOP on handling the notification. Signed-off-by: Prasanna S Panchamukhi <prasanna@in.ibm.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/notifier.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/notifier.h b/include/linux/notifier.h
index 5a8775b9ebbf..900d43e88005 100644
--- a/include/linux/notifier.h
+++ b/include/linux/notifier.h
@@ -29,6 +29,10 @@ extern int notifier_call_chain(struct notifier_block **n, unsigned long val, voi
#define NOTIFY_OK 0x0001 /* Suits me */
#define NOTIFY_STOP_MASK 0x8000 /* Don't call further */
#define NOTIFY_BAD (NOTIFY_STOP_MASK|0x0002) /* Bad/Veto action */
+/*
+ * Clean way to return from the notifier and stop further calls.
+ */
+#define NOTIFY_STOP (NOTIFY_OK|NOTIFY_STOP_MASK)
/*
* Declared notifiers so far. I can imagine quite a few more chains