* [RFC][PATCH -tip 6/9] arm: add kernel_trap_sp()
@ 2009-03-19 21:10 Masami Hiramatsu
0 siblings, 0 replies; only message in thread
From: Masami Hiramatsu @ 2009-03-19 21:10 UTC (permalink / raw)
To: Russell King, Ingo Molnar
Cc: Ananth N Mavinakayanahalli, LKML, systemtap-ml, Steven Rostedt
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2009-03-19 21:12 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-19 21:10 [RFC][PATCH -tip 6/9] arm: add kernel_trap_sp() Masami Hiramatsu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox