Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1370628 > unrolled thread

[PATCH] sched: don't dump sched debug info in SysRq-W

Started byRabin Vincent <rabin.vincent@axis.com>
First post2016-04-04 15:50 +0200
Last post2016-04-13 13:40 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH] sched: don't dump sched debug info in SysRq-W Rabin Vincent <rabin.vincent@axis.com> - 2016-04-04 15:50 +0200
    [tip:sched/core] sched/debug: Don't dump sched debug info in  SysRq-W tip-bot for Rabin Vincent <tipbot@zytor.com> - 2016-04-13 13:40 +0200

#1370628 — [PATCH] sched: don't dump sched debug info in SysRq-W

FromRabin Vincent <rabin.vincent@axis.com>
Date2016-04-04 15:50 +0200
Subject[PATCH] sched: don't dump sched debug info in SysRq-W
Message-ID<rkd3c-3J0-23@gated-at.bofh.it>
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

[toc] | [next] | [standalone]


#1377808 — [tip:sched/core] sched/debug: Don't dump sched debug info in SysRq-W

Fromtip-bot for Rabin Vincent <tipbot@zytor.com>
Date2016-04-13 13:40 +0200
Subject[tip:sched/core] sched/debug: Don't dump sched debug info in SysRq-W
Message-ID<rnrjm-x5-71@gated-at.bofh.it>
In reply to#1370628
Commit-ID:  fb90a6e93c0684ab2629a42462400603aa829b9c
Gitweb:     http://git.kernel.org/tip/fb90a6e93c0684ab2629a42462400603aa829b9c
Author:     Rabin Vincent <rabinv@axis.com>
AuthorDate: Mon, 4 Apr 2016 15:42:02 +0200
Committer:  Ingo Molnar <mingo@kernel.org>
CommitDate: Wed, 13 Apr 2016 11:23:21 +0200

sched/debug: Don't dump sched debug info in SysRq-W

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>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/1459777322-30902-1-git-send-email-rabin.vincent@axis.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
---
 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 1159423..06efbb9 100644
--- a/kernel/sched/core.c
+++ b/kernel/sched/core.c
@@ -5050,7 +5050,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();
 	/*

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web