summaryrefslogtreecommitdiffstats
path: root/runtime/uprobes/uprobes_i386.c
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/uprobes/uprobes_i386.c')
-rw-r--r--runtime/uprobes/uprobes_i386.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/runtime/uprobes/uprobes_i386.c b/runtime/uprobes/uprobes_i386.c
index 51b06f79..ffa088ed 100644
--- a/runtime/uprobes/uprobes_i386.c
+++ b/runtime/uprobes/uprobes_i386.c
@@ -301,3 +301,10 @@ unsigned long arch_hijack_uret_addr(unsigned long trampoline_address,
}
return orig_ret_addr;
}
+
+static
+unsigned long arch_predict_sp_at_ret(struct pt_regs *regs,
+ struct task_struct *tsk)
+{
+ return (unsigned long) (regs->esp + 4);
+}