diff options
author | Anton Arapov <anton@redhat.com> | 2013-04-03 12:00:31 -0400 |
---|---|---|
committer | Oleg Nesterov <oleg@redhat.com> | 2013-04-13 09:31:53 -0400 |
commit | ea024870cf10687b3fded66a9deb6253888f30b7 (patch) | |
tree | 6071017ca5e987d991b42ceae519d92476ed3b36 /include/linux/uprobes.h | |
parent | 3f47107c5c2972ca47f216889080f6ef818b25e3 (diff) |
uretprobes: Introduce uprobe_consumer->ret_handler()
Enclose return probes implementation, introduce ->ret_handler() and update
existing code to rely on ->handler() *and* ->ret_handler() for uprobe and
uretprobe respectively.
Signed-off-by: Anton Arapov <anton@redhat.com>
Acked-by: Srikar Dronamraju <srikar@linux.vnet.ibm.com>
Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Diffstat (limited to 'include/linux/uprobes.h')
-rw-r--r-- | include/linux/uprobes.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/uprobes.h b/include/linux/uprobes.h index 19612881399a..5c8d3290df41 100644 --- a/include/linux/uprobes.h +++ b/include/linux/uprobes.h | |||
@@ -46,6 +46,9 @@ enum uprobe_filter_ctx { | |||
46 | 46 | ||
47 | struct uprobe_consumer { | 47 | struct uprobe_consumer { |
48 | int (*handler)(struct uprobe_consumer *self, struct pt_regs *regs); | 48 | int (*handler)(struct uprobe_consumer *self, struct pt_regs *regs); |
49 | int (*ret_handler)(struct uprobe_consumer *self, | ||
50 | unsigned long func, | ||
51 | struct pt_regs *regs); | ||
49 | bool (*filter)(struct uprobe_consumer *self, | 52 | bool (*filter)(struct uprobe_consumer *self, |
50 | enum uprobe_filter_ctx ctx, | 53 | enum uprobe_filter_ctx ctx, |
51 | struct mm_struct *mm); | 54 | struct mm_struct *mm); |