mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] sched: don't dump sched debug info in SysRq-W
@ 2016-04-04 13:42 Rabin Vincent
  2016-04-13 11:36 ` [tip:sched/core] sched/debug: Don't " tip-bot for Rabin Vincent
  0 siblings, 1 reply; 2+ messages in thread
From: Rabin Vincent @ 2016-04-04 13:42 UTC (permalink / raw)
  To: mingo, peterz; +Cc: linux-kernel, Rabin Vincent

From: Rabin Vincent <rabinv@axis.com>

sysrq_sched_debug_show() can dump a lot of information.  Don't print out
all that if we're just trying to get a list of blocked tasks (SysRq-W).
The information is still accessible with SysRq-T.

Signed-off-by: Rabin Vincent <rabinv@axis.com>
---
 kernel/sched/core.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/kernel/sched/core.c b/kernel/sched/core.c
index 8b489fc..e330d6c 100644
--- a/kernel/sched/core.c
+++ b/kernel/sched/core.c
@@ -4998,7 +4998,8 @@ void show_state_filter(unsigned long state_filter)
 	touch_all_softlockup_watchdogs();
 
 #ifdef CONFIG_SCHED_DEBUG
-	sysrq_sched_debug_show();
+	if (!state_filter)
+		sysrq_sched_debug_show();
 #endif
 	rcu_read_unlock();
 	/*
-- 
2.7.0

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-04-13 11:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-04-04 13:42 [PATCH] sched: don't dump sched debug info in SysRq-W Rabin Vincent
2016-04-13 11:36 ` [tip:sched/core] sched/debug: Don't " tip-bot for Rabin Vincent

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®