aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sparc
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2008-07-31 00:57:59 -0400
committerDavid S. Miller <davem@davemloft.net>2008-07-31 00:57:59 -0400
commit5afe27380bc42454254c9c83c045240249c15e35 (patch)
treee7bdb90ea5e42b779b9ddeea9d945638da33eb23 /arch/sparc
parentc9b23e0c302377ccff700bee663b878d04e4ef3a (diff)
sparc64: Make global reg dumping even more useful.
Record one more level of stack frame program counter. Particularly when lockdep and all sorts of spinlock debugging is enabled, figuring out the caller of spin_lock() is difficult when the cpu is stuck on the lock. Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc')
-rw-r--r--arch/sparc/include/asm/ptrace_64.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/sparc/include/asm/ptrace_64.h b/arch/sparc/include/asm/ptrace_64.h
index ec6d45c84cd0..390d92ac67cf 100644
--- a/arch/sparc/include/asm/ptrace_64.h
+++ b/arch/sparc/include/asm/ptrace_64.h
@@ -134,9 +134,9 @@ struct global_reg_snapshot {
134 unsigned long tnpc; 134 unsigned long tnpc;
135 unsigned long o7; 135 unsigned long o7;
136 unsigned long i7; 136 unsigned long i7;
137 unsigned long rpc;
137 struct thread_info *thread; 138 struct thread_info *thread;
138 unsigned long pad1; 139 unsigned long pad1;
139 unsigned long pad2;
140}; 140};
141 141
142#define __ARCH_WANT_COMPAT_SYS_PTRACE 142#define __ARCH_WANT_COMPAT_SYS_PTRACE
@@ -315,9 +315,9 @@ extern void __show_regs(struct pt_regs *);
315#define GR_SNAP_TNPC 0x10 315#define GR_SNAP_TNPC 0x10
316#define GR_SNAP_O7 0x18 316#define GR_SNAP_O7 0x18
317#define GR_SNAP_I7 0x20 317#define GR_SNAP_I7 0x20
318#define GR_SNAP_THREAD 0x28 318#define GR_SNAP_RPC 0x28
319#define GR_SNAP_PAD1 0x30 319#define GR_SNAP_THREAD 0x30
320#define GR_SNAP_PAD2 0x38 320#define GR_SNAP_PAD1 0x38
321 321
322#endif /* __KERNEL__ */ 322#endif /* __KERNEL__ */
323 323