From 669bdbfc3aee6d85f4f1b84766a5bfdcb0cc48cf Mon Sep 17 00:00:00 2001 From: Srikar Dronamraju Date: Tue, 28 Oct 2008 17:07:27 -0400 Subject: PR5274: uretprobes fixes, belated commit --- runtime/uprobes/uprobes_i386.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'runtime/uprobes/uprobes_i386.c') 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); +} -- cgit