From 49c9622d4708c94922f351b83b7f2f729f7a1288 Mon Sep 17 00:00:00 2001 From: David Smith Date: Tue, 4 Nov 2008 12:44:19 -0600 Subject: PR5274 - Add s390 arch support for uprobes longjump handling. 2008-11-04 David Smith From Jim Keniston, PR 5274. * uprobes/uprobes_s390.h: Add s390 arch support for uprobes longjump handling. --- runtime/ChangeLog | 6 ++++++ runtime/uprobes/uprobes_s390.h | 12 ++++++++++++ 2 files changed, 18 insertions(+) (limited to 'runtime') diff --git a/runtime/ChangeLog b/runtime/ChangeLog index e4ea3330..5958bec8 100644 --- a/runtime/ChangeLog +++ b/runtime/ChangeLog @@ -1,3 +1,9 @@ +2008-11-04 David Smith + + From Jim Keniston, PR 5274. + * uprobes/uprobes_s390.h (arch_get_cur_sp): New function. + (arch_predict_sp_at_ret): Ditto. + 2008-11-04 Frank Ch. Eigler From Masami Hiramatsu , PR 6028. diff --git a/runtime/uprobes/uprobes_s390.h b/runtime/uprobes/uprobes_s390.h index 5c711275..47587dab 100644 --- a/runtime/uprobes/uprobes_s390.h +++ b/runtime/uprobes/uprobes_s390.h @@ -85,5 +85,17 @@ static inline void arch_restore_uret_addr(unsigned long ret_addr, static unsigned long arch_hijack_uret_addr(unsigned long trampoline_addr, struct pt_regs *regs, struct uprobe_task *utask); +static inline unsigned long arch_get_cur_sp(struct pt_regs *regs) +{ + return regs->gprs[15]; +} + +/* The stack pointer is the same upon return as it is upon function entry. */ +static inline unsigned long arch_predict_sp_at_ret(struct pt_regs *regs, + struct task_struct *tsk) +{ + return regs->gprs[15]; +} + #endif /* CONFIG_URETPROBES */ #endif /* _ASM_UPROBES_H */ -- cgit