This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[RFC][PATCH -tip 6/9] arm: add kernel_trap_sp()
- From: Masami Hiramatsu <mhiramat at redhat dot com>
- To: Russell King <rmk+kernel at arm dot linux dot org dot uk>, Ingo Molnar <mingo at elte dot hu>
- Cc: Ananth N Mavinakayanahalli <ananth at in dot ibm dot com>, LKML <linux-kernel at vger dot kernel dot org>, systemtap-ml <systemtap at sources dot redhat dot com>, Steven Rostedt <rostedt at goodmis dot org>
- Date: Thu, 19 Mar 2009 17:10:36 -0400
- Subject: [RFC][PATCH -tip 6/9] arm: add kernel_trap_sp()
Add kernel_trap_sp() on ARM, based on systemtap's runtime/regs.h.
Signed-off-by: Masami Hiramatsu <mhiramat@redhat.com>
Cc: Russell King <rmk+kernel@arm.linux.org.uk>
---
arch/arm/include/asm/ptrace.h | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/arch/arm/include/asm/ptrace.h b/arch/arm/include/asm/ptrace.h
index 7319261..14e0e16 100644
--- a/arch/arm/include/asm/ptrace.h
+++ b/arch/arm/include/asm/ptrace.h
@@ -138,7 +138,8 @@ static inline int valid_user_regs(struct pt_regs *regs)
return 0;
}
-#define instruction_pointer(regs) (regs)->ARM_pc
+#define instruction_pointer(regs) ((regs)->ARM_pc)
+#define kernel_trap_sp(regs) ((regs)->ARM_sp)
#ifdef CONFIG_SMP
extern unsigned long profile_pc(struct pt_regs *regs);
--
Masami Hiramatsu
Software Engineer
Hitachi Computer Products (America) Inc.
Software Solutions Division
e-mail: mhiramat@redhat.com