* Re: dump_stack missing on sparc32
@ 2005-01-14 4:19 William Lee Irwin III
2005-01-14 4:24 ` Bob Breuer
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: William Lee Irwin III @ 2005-01-14 4:19 UTC (permalink / raw)
To: sparclinux
On Thu, Jan 13, 2005 at 10:24:50PM -0600, Bob Breuer wrote:
> The sparc32 specific dump_stack function is missing, but there is a
> show_stack in arch/sparc/kernel/process.c. Should it be easy enough to
> connect these together, or are there known bugs that prevent the use of
> dump_stack?
dump_stack() just calls show_stack() with hardcoded arguments on most
architectures.
-- wli
^ permalink raw reply [flat|nested] 4+ messages in thread
* dump_stack missing on sparc32
2005-01-14 4:19 dump_stack missing on sparc32 William Lee Irwin III
@ 2005-01-14 4:24 ` Bob Breuer
2005-01-14 6:58 ` Bob Breuer
2005-01-14 7:20 ` William Lee Irwin III
2 siblings, 0 replies; 4+ messages in thread
From: Bob Breuer @ 2005-01-14 4:24 UTC (permalink / raw)
To: sparclinux
The sparc32 specific dump_stack function is missing, but there is a
show_stack in arch/sparc/kernel/process.c. Should it be easy enough to
connect these together, or are there known bugs that prevent the use of
dump_stack?
Bob
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: dump_stack missing on sparc32
2005-01-14 4:19 dump_stack missing on sparc32 William Lee Irwin III
2005-01-14 4:24 ` Bob Breuer
@ 2005-01-14 6:58 ` Bob Breuer
2005-01-14 7:20 ` William Lee Irwin III
2 siblings, 0 replies; 4+ messages in thread
From: Bob Breuer @ 2005-01-14 6:58 UTC (permalink / raw)
To: sparclinux
This adds a sparc32 specific dump_stack() to 2.6, based off of the sparc64
version.
Bob
--- linux-2.6.10-bk8-clean/arch/sparc/kernel/process.c 2005-01-12 00:16:01.000000000 -0600
+++ linux-2.6.10-bk8/arch/sparc/kernel/process.c 2005-01-14 00:38:11.000000000 -0600
@@ -333,6 +333,17 @@ void show_stack(struct task_struct *tsk,
printk("\n");
}
+void dump_stack(void)
+{
+ unsigned long *ksp;
+
+ __asm__ __volatile__("mov %%fp, %0"
+ : "=r" (ksp));
+ show_stack(current, ksp);
+}
+
+EXPORT_SYMBOL(dump_stack);
+
/*
* Note: sparc64 has a pretty intricated thread_saved_pc, check it out.
*/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: dump_stack missing on sparc32
2005-01-14 4:19 dump_stack missing on sparc32 William Lee Irwin III
2005-01-14 4:24 ` Bob Breuer
2005-01-14 6:58 ` Bob Breuer
@ 2005-01-14 7:20 ` William Lee Irwin III
2 siblings, 0 replies; 4+ messages in thread
From: William Lee Irwin III @ 2005-01-14 7:20 UTC (permalink / raw)
To: sparclinux
On Fri, Jan 14, 2005 at 12:58:35AM -0600, Bob Breuer wrote:
> This adds a sparc32 specific dump_stack() to 2.6, based off of the sparc64
> version.
Applied. Thanks Bob.
-- wli
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2005-01-14 7:20 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-14 4:19 dump_stack missing on sparc32 William Lee Irwin III
2005-01-14 4:24 ` Bob Breuer
2005-01-14 6:58 ` Bob Breuer
2005-01-14 7:20 ` William Lee Irwin III
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.