Commit 236257ee authored by Heiko Carstens's avatar Heiko Carstens Committed by Martin Schwidefsky

[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: default avatarHeiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: default avatarMartin Schwidefsky <schwidefsky@de.ibm.com>
parent 59f35d53
...@@ -129,7 +129,7 @@ __show_trace(unsigned long sp, unsigned long low, unsigned long high) ...@@ -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"); register unsigned long __r15 asm ("15");
unsigned long sp; unsigned long sp;
...@@ -151,6 +151,9 @@ void show_trace(struct task_struct *task, unsigned long * stack) ...@@ -151,6 +151,9 @@ void show_trace(struct task_struct *task, unsigned long * stack)
__show_trace(sp, S390_lowcore.thread_info, __show_trace(sp, S390_lowcore.thread_info,
S390_lowcore.thread_info + THREAD_SIZE); S390_lowcore.thread_info + THREAD_SIZE);
printk("\n"); printk("\n");
if (!task)
task = current;
debug_show_held_locks(task);
} }
void show_stack(struct task_struct *task, unsigned long *sp) void show_stack(struct task_struct *task, unsigned long *sp)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment