Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8c64580d authored by Ingo Molnar's avatar Ingo Molnar Committed by Linus Torvalds
Browse files

[PATCH] lockdep: print all lock classes on SysRQ-D



Print all lock-classes on SysRq-D.

Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
Signed-off-by: default avatarArjan van de Ven <arjan@linux.intel.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 4d9f34ad
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -147,12 +147,13 @@ static struct sysrq_key_op sysrq_mountro_op = {
	.enable_mask	= SYSRQ_ENABLE_REMOUNT,
};

#ifdef CONFIG_DEBUG_MUTEXES
#ifdef CONFIG_LOCKDEP
static void sysrq_handle_showlocks(int key, struct pt_regs *pt_regs,
				struct tty_struct *tty)
{
	debug_show_all_locks();
}

static struct sysrq_key_op sysrq_showlocks_op = {
	.handler	= sysrq_handle_showlocks,
	.help_msg	= "show-all-locks(D)",