aboutsummaryrefslogtreecommitdiffstats
path: root/arch/s390
diff options
context:
space:
mode:
authorHeiko Carstens <heiko.carstens@de.ibm.com>2006-12-04 15:40:47 +0100
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2006-12-04 15:40:47 +0100
commit236257eee99a35d67d3feab0769bded83efdc3ec (patch)
treeffdad8451122c32f030044df27e83d3c503eb23b /arch/s390
parent59f35d53fde3987d071ea1c9bf1c9ba29fcb69fe (diff)
downloadkernel_goldelico_gta04-236257eee99a35d67d3feab0769bded83efdc3ec.zip
kernel_goldelico_gta04-236257eee99a35d67d3feab0769bded83efdc3ec.tar.gz
kernel_goldelico_gta04-236257eee99a35d67d3feab0769bded83efdc3ec.tar.bz2
[S390] lockdep: show held locks when showing a stackdump
Follow i386/x86_64: lockdep can be used to print held locks when printing a backtrace. This can be useful when debugging things like 'scheduling while atomic' asserts. Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch/s390')
-rw-r--r--arch/s390/kernel/traps.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/s390/kernel/traps.c b/arch/s390/kernel/traps.c
index 475dbb8..3cbb0dc 100644
--- a/arch/s390/kernel/traps.c
+++ b/arch/s390/kernel/traps.c
@@ -129,7 +129,7 @@ __show_trace(unsigned long sp, unsigned long low, unsigned long high)
}
}
-void show_trace(struct task_struct *task, unsigned long * stack)
+void show_trace(struct task_struct *task, unsigned long *stack)
{
register unsigned long __r15 asm ("15");
unsigned long sp;
@@ -151,6 +151,9 @@ void show_trace(struct task_struct *task, unsigned long * stack)
__show_trace(sp, S390_lowcore.thread_info,
S390_lowcore.thread_info + THREAD_SIZE);
printk("\n");
+ if (!task)
+ task = current;
+ debug_show_held_locks(task);
}
void show_stack(struct task_struct *task, unsigned long *sp)