Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 30228
b: refs/heads/master
c: 3d5631e
h: refs/heads/master
v: v3
  • Loading branch information
Anil S Keshavamurthy authored and Linus Torvalds committed Jun 26, 2006
1 parent 2be938f commit 2378a57
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d98f8f05188b45168db43df8ddc9feeb0b1cd512
refs/heads/master: 3d5631e0631a11633c649bc995a6537ec21b67b4
8 changes: 8 additions & 0 deletions trunk/kernel/kprobes.c
Original file line number Diff line number Diff line change
Expand Up @@ -556,6 +556,11 @@ void __kprobes unregister_kprobe(struct kprobe *p)
}

static struct notifier_block kprobe_exceptions_nb = {
.notifier_call = kprobe_exceptions_notify,
.priority = 0x7fffffff /* we need to be notified first */
};

static struct notifier_block kprobe_page_fault_nb = {
.notifier_call = kprobe_exceptions_notify,
.priority = 0x7fffffff /* we need to notified first */
};
Expand Down Expand Up @@ -673,6 +678,9 @@ static int __init init_kprobes(void)
if (!err)
err = register_die_notifier(&kprobe_exceptions_nb);

if (!err)
err = register_page_fault_notifier(&kprobe_page_fault_nb);

return err;
}

Expand Down

0 comments on commit 2378a57

Please sign in to comment.