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.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'runtime/uprobes/uprobes_i386.h') diff --git a/runtime/uprobes/uprobes_i386.h b/runtime/uprobes/uprobes_i386.h index e4376b95..b5ef6363 100644 --- a/runtime/uprobes/uprobes_i386.h +++ b/runtime/uprobes/uprobes_i386.h @@ -66,7 +66,15 @@ static inline void arch_restore_uret_addr(unsigned long ret_addr, regs->eip = ret_addr; } +static unsigned long arch_get_cur_sp(struct pt_regs *regs) +{ + return (unsigned long)regs->esp; +} + static unsigned long arch_hijack_uret_addr(unsigned long trampoline_addr, struct pt_regs *regs, struct uprobe_task *utask); +static unsigned long arch_predict_sp_at_ret(struct pt_regs *regs, + struct task_struct *tsk); + #endif /* _ASM_UPROBES_H */ -- cgit