diff options
Diffstat (limited to 'runtime/uprobes/uprobes_x86.h')
-rw-r--r-- | runtime/uprobes/uprobes_x86.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/runtime/uprobes/uprobes_x86.h b/runtime/uprobes/uprobes_x86.h index 30541157..041f883e 100644 --- a/runtime/uprobes/uprobes_x86.h +++ b/runtime/uprobes/uprobes_x86.h @@ -106,6 +106,15 @@ static inline void arch_restore_uret_addr(unsigned long ret_addr, REGS_IP = ret_addr; } +static unsigned long arch_get_cur_sp(struct pt_regs *regs) +{ + return (unsigned long)REGS_SP; +} + static unsigned long arch_hijack_uret_addr(unsigned long trampoline_addr, - struct pt_regs*, struct uprobe_task*); + 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 */ |