diff options
| author | Anil S Keshavamurthy <anil.s.keshavamurthy@intel.com> | 2006-06-26 03:25:28 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-06-26 12:58:22 -0400 |
| commit | 3d5631e0631a11633c649bc995a6537ec21b67b4 (patch) | |
| tree | 84924f8c647c2d67b9a1113408efd24e48dabf66 /kernel | |
| parent | d98f8f05188b45168db43df8ddc9feeb0b1cd512 (diff) | |
[PATCH] Kprobes registers for notify page fault
Kprobes now registers for page fault notifications.
Signed-off-by: Anil S Keshavamurthy <anil.s.keshavmurthy@intel.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 | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/kernel/kprobes.c b/kernel/kprobes.c index f095178e48c3..507f26e7ae7c 100644 --- a/kernel/kprobes.c +++ b/kernel/kprobes.c | |||
| @@ -557,6 +557,11 @@ valid_p: | |||
| 557 | 557 | ||
| 558 | static struct notifier_block kprobe_exceptions_nb = { | 558 | static struct notifier_block kprobe_exceptions_nb = { |
| 559 | .notifier_call = kprobe_exceptions_notify, | 559 | .notifier_call = kprobe_exceptions_notify, |
| 560 | .priority = 0x7fffffff /* we need to be notified first */ | ||
| 561 | }; | ||
| 562 | |||
| 563 | static struct notifier_block kprobe_page_fault_nb = { | ||
| 564 | .notifier_call = kprobe_exceptions_notify, | ||
| 560 | .priority = 0x7fffffff /* we need to notified first */ | 565 | .priority = 0x7fffffff /* we need to notified first */ |
| 561 | }; | 566 | }; |
| 562 | 567 | ||
| @@ -673,6 +678,9 @@ static int __init init_kprobes(void) | |||
| 673 | if (!err) | 678 | if (!err) |
| 674 | err = register_die_notifier(&kprobe_exceptions_nb); | 679 | err = register_die_notifier(&kprobe_exceptions_nb); |
| 675 | 680 | ||
| 681 | if (!err) | ||
| 682 | err = register_page_fault_notifier(&kprobe_page_fault_nb); | ||
| 683 | |||
| 676 | return err; | 684 | return err; |
| 677 | } | 685 | } |
| 678 | 686 | ||
