[<prev] [next>] [day] [month] [year] [list]
Message-ID: <49C2B4C6.7030802@redhat.com>
Date: Thu, 19 Mar 2009 17:10:30 -0400
From: Masami Hiramatsu <mhiramat@...hat.com>
To: Martin Schwidefsky <schwidefsky@...ibm.com>,
Ingo Molnar <mingo@...e.hu>
CC: Ananth N Mavinakayanahalli <ananth@...ibm.com>,
systemtap-ml <systemtap@...rces.redhat.com>,
LKML <linux-kernel@...r.kernel.org>,
Steven Rostedt <rostedt@...dmis.org>
Subject: [RFC][PATCH -tip 5/9] s390: add kernel_trap_sp()
Add kernel_trap_sp() on s390 (and cleanup a bit), based on systemtap's
runtime/regs.h.
Signed-off-by: Masami Hiramatsu <mhiramat@...hat.com>
Cc: Martin Schwidefsky <schwidefsky@...ibm.com>
---
arch/s390/include/asm/ptrace.h | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/arch/s390/include/asm/ptrace.h b/arch/s390/include/asm/ptrace.h
index 8920025..304b413 100644
--- a/arch/s390/include/asm/ptrace.h
+++ b/arch/s390/include/asm/ptrace.h
@@ -491,8 +491,9 @@ extern void user_disable_single_step(struct task_struct *);
#define user_mode(regs) (((regs)->psw.mask & PSW_MASK_PSTATE) != 0)
#define instruction_pointer(regs) ((regs)->psw.addr & PSW_ADDR_INSN)
-#define user_stack_pointer(regs)((regs)->gprs[15])
-#define regs_return_value(regs)((regs)->gprs[2])
+#define user_stack_pointer(regs) ((regs)->gprs[15])
+#define kernel_trap_sp(regs) (user_stack_pointer(regs))
+#define regs_return_value(regs) ((regs)->gprs[2])
#define profile_pc(regs) instruction_pointer(regs)
extern void show_regs(struct pt_regs * regs);
#endif /* __KERNEL__ */
--
Masami Hiramatsu
Software Engineer
Hitachi Computer Products (America) Inc.
Software Solutions Division
e-mail: mhiramat@...hat.com
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists