diff options
author | David Smith <dsmith@redhat.com> | 2008-11-04 12:44:19 -0600 |
---|---|---|
committer | David Smith <dsmith@redhat.com> | 2008-11-04 12:44:19 -0600 |
commit | 49c9622d4708c94922f351b83b7f2f729f7a1288 (patch) | |
tree | e39365cd6221a0f5c33f1d36e18652759405a9e5 /runtime/uprobes/uprobes_s390.h | |
parent | 59d4675dca023f30aecfaa9a7836b6c75ed60029 (diff) | |
download | systemtap-steved-49c9622d4708c94922f351b83b7f2f729f7a1288.tar.gz systemtap-steved-49c9622d4708c94922f351b83b7f2f729f7a1288.tar.xz systemtap-steved-49c9622d4708c94922f351b83b7f2f729f7a1288.zip |
PR5274 - Add s390 arch support for uprobes longjump handling.
2008-11-04 David Smith <dsmith@redhat.com>
From Jim Keniston, PR 5274.
* uprobes/uprobes_s390.h: Add s390 arch support for uprobes
longjump handling.
Diffstat (limited to 'runtime/uprobes/uprobes_s390.h')
-rw-r--r-- | runtime/uprobes/uprobes_s390.h | 12 |
1 files changed, 12 insertions, 0 deletions
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 */ |