summaryrefslogtreecommitdiffstats
path: root/patches/linux-3.11-rc1/0012-HACK-make-stack-dumps-provoked-by-BUG-a-bit-more-hel.patch
blob: 8e3c0c741899874473eef4a504ae0642c3137b58 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
From: =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= <u.kleine-koenig@pengutronix.de>
Date: Wed, 14 Dec 2011 11:03:48 +0100
Subject: [PATCH] HACK! make stack dumps provoked by BUG a bit more helpful
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

the right fix would be to continue unwinding at the end when process is
in handler mode

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
---
 arch/arm/kernel/process.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/arch/arm/kernel/process.c b/arch/arm/kernel/process.c
index d3ca4f6..51e29b1 100644
--- a/arch/arm/kernel/process.c
+++ b/arch/arm/kernel/process.c
@@ -301,11 +301,13 @@ void __show_regs(struct pt_regs *regs)
 #endif
 }
 
+#include <asm/unwind.h>
+
 void show_regs(struct pt_regs * regs)
 {
 	printk("\n");
 	__show_regs(regs);
-	dump_stack();
+	unwind_backtrace(regs, current);
 }
 
 ATOMIC_NOTIFIER_HEAD(thread_notify_head);