linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] arm: show_regs dump stack when ARM_UNWIND enable
@ 2010-07-20 15:24 janboe
  2010-07-20 15:37 ` Catalin Marinas
  0 siblings, 1 reply; 8+ messages in thread
From: janboe @ 2010-07-20 15:24 UTC (permalink / raw)
  To: linux-arm-kernel

__backtrace is empty when ARM_UNWIND enable, so instead dump_stack

Signed-off-by: janboe <janboe.ye@gmail.com>
---
 arch/arm/kernel/process.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/arch/arm/kernel/process.c b/arch/arm/kernel/process.c
index acf5e6f..e7ad878 100644
--- a/arch/arm/kernel/process.c
+++ b/arch/arm/kernel/process.c
@@ -271,7 +271,11 @@ void show_regs(struct pt_regs * regs)
 	printk("\n");
 	printk("Pid: %d, comm: %20s\n", task_pid_nr(current), current->comm);
 	__show_regs(regs);
+#ifdef CONFIG_ARM_UNWIND
+	dump_stack();
+#else
 	__backtrace();
+#endif
 }
 
 ATOMIC_NOTIFIER_HEAD(thread_notify_head);
-- 
1.7.1

^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2010-08-10 22:59 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-20 15:24 [PATCH] arm: show_regs dump stack when ARM_UNWIND enable janboe
2010-07-20 15:37 ` Catalin Marinas
2010-07-20 15:54   ` ye janboe
2010-07-21  9:21     ` Catalin Marinas
2010-07-21 17:24       ` Janboe Ye
2010-07-22  8:00         ` Russell King - ARM Linux
2010-08-10  3:27           ` ye janboe
2010-08-10 22:59             ` Russell King - ARM Linux

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).