summaryrefslogtreecommitdiffstats
path: root/include/linux/uprobes.h
diff options
context:
space:
mode:
authorAnton Arapov <anton@redhat.com>2013-04-03 18:00:31 +0200
committerOleg Nesterov <oleg@redhat.com>2013-04-13 15:31:53 +0200
commitea024870cf10687b3fded66a9deb6253888f30b7 (patch)
tree6071017ca5e987d991b42ceae519d92476ed3b36 /include/linux/uprobes.h
parent3f47107c5c2972ca47f216889080f6ef818b25e3 (diff)
downloadlinux-stable-ea024870cf10687b3fded66a9deb6253888f30b7.tar.gz
linux-stable-ea024870cf10687b3fded66a9deb6253888f30b7.tar.bz2
linux-stable-ea024870cf10687b3fded66a9deb6253888f30b7.zip
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.h3
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 {
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);