Skip to content

Commit

Permalink
[S390] lockdep: show held locks when showing a stackdump
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Heiko Carstens authored and Martin Schwidefsky committed Dec 4, 2006
1 parent 59f35d5 commit 236257e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion arch/s390/kernel/traps.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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)
Expand Down

0 comments on commit 236257e

Please sign in to comment.