diff options
author | Ananth N Mavinakayanahalli <amavin@redhat.com> | 2005-05-06 03:15:42 +0400 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-05-06 03:36:39 +0400 |
commit | 64f562c6df3cfc5d1b2b4bdbcb7951457df9c237 (patch) | |
tree | 5fecfd97cfa1965185ec2254668d90d8f03e3f5f /include/linux/kprobes.h | |
parent | 04dea5f93231204cc3ca0ab793ce76dbb10c86ba (diff) | |
download | linux-64f562c6df3cfc5d1b2b4bdbcb7951457df9c237.tar.xz |
[PATCH] kprobes: Allow multiple kprobes at the same address
Allow registration of multiple kprobes at an address in an architecture
agnostic way. Corresponding handlers will be invoked in a sequence. But,
a kprobe and a jprobe can't (yet) co-exist at the same address.
Signed-off-by: Ananth N Mavinakayanahalli <amavin@redhat.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/linux/kprobes.h')
-rw-r--r-- | include/linux/kprobes.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/kprobes.h b/include/linux/kprobes.h index f20c163de4f5..99ddba5a4e00 100644 --- a/include/linux/kprobes.h +++ b/include/linux/kprobes.h @@ -43,6 +43,9 @@ typedef int (*kprobe_fault_handler_t) (struct kprobe *, struct pt_regs *, struct kprobe { struct hlist_node hlist; + /* list of kprobes for multi-handler support */ + struct list_head list; + /* location of the probe point */ kprobe_opcode_t *addr; |