diff options
| author | Prasanna S. Panchamukhi <prasanna@in.ibm.com> | 2004-10-02 19:14:25 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-10-02 19:14:25 -0700 |
| commit | 644f6741bec0455fa7d8c780034cc8f01988c3e0 (patch) | |
| tree | d816abf4c13c710f79031481aa97d57690f2b4a5 /kernel | |
| parent | 5fe20d6e675d7e62df7cfc8385574785727a9e41 (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 'kernel')
| -rw-r--r-- | kernel/kprobes.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/kernel/kprobes.c b/kernel/kprobes.c index 01436a31c690..ca4e28b4c6a7 100644 --- a/kernel/kprobes.c +++ b/kernel/kprobes.c @@ -25,6 +25,8 @@ * hlists and exceptions notifier as suggested by Andi Kleen. * 2004-July Suparna Bhattacharya <suparna@in.ibm.com> added jumper probes * interface to access function arguments. + * 2004-Sep Prasanna S Panchamukhi <prasanna@in.ibm.com> Changed Kprobes + * exceptions notifier to be first on the priority list. */ #include <linux/kprobes.h> #include <linux/spinlock.h> @@ -108,6 +110,7 @@ void unregister_kprobe(struct kprobe *p) static struct notifier_block kprobe_exceptions_nb = { .notifier_call = kprobe_exceptions_notify, + .priority = 0x7fffffff /* we need to notified first */ }; int register_jprobe(struct jprobe *jp) |
