aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorAnanth N Mavinakayanahalli <amavin@redhat.com>2005-05-05 16:15:42 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-05-05 16:36:39 -0700
commit64f562c6df3cfc5d1b2b4bdbcb7951457df9c237 (patch)
tree5fecfd97cfa1965185ec2254668d90d8f03e3f5f /include
parent04dea5f93231204cc3ca0ab793ce76dbb10c86ba (diff)
downloadkernel_samsung_aries-64f562c6df3cfc5d1b2b4bdbcb7951457df9c237.zip
kernel_samsung_aries-64f562c6df3cfc5d1b2b4bdbcb7951457df9c237.tar.gz
kernel_samsung_aries-64f562c6df3cfc5d1b2b4bdbcb7951457df9c237.tar.bz2
[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')
-rw-r--r--include/linux/kprobes.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/kprobes.h b/include/linux/kprobes.h
index f20c163..99ddba5 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;