diff options
author | Anton Arapov <anton@redhat.com> | 2013-04-03 18:00:31 +0200 |
---|---|---|
committer | Oleg Nesterov <oleg@redhat.com> | 2013-04-13 15:31:53 +0200 |
commit | ea024870cf10687b3fded66a9deb6253888f30b7 (patch) | |
tree | 6071017ca5e987d991b42ceae519d92476ed3b36 /include/linux/uprobes.h | |
parent | 3f47107c5c2972ca47f216889080f6ef818b25e3 (diff) | |
download | op-kernel-dev-ea024870cf10687b3fded66a9deb6253888f30b7.zip op-kernel-dev-ea024870cf10687b3fded66a9deb6253888f30b7.tar.gz |
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 1961288..5c8d329 100644 --- a/include/linux/uprobes.h +++ b/include/linux/uprobes.h @@ -46,6 +46,9 @@ enum uprobe_filter_ctx { struct uprobe_consumer { int (*handler)(struct uprobe_consumer *self, struct pt_regs *regs); + int (*ret_handler)(struct uprobe_consumer *self, + unsigned long func, + struct pt_regs *regs); bool (*filter)(struct uprobe_consumer *self, enum uprobe_filter_ctx ctx, struct mm_struct *mm); |