summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMatt Wagantall <mattw@codeaurora.org>2013-12-05 20:01:32 -0800
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-23 19:58:37 -0700
commit5f10bd75eb0ef27794e28674c3b72865d846c385 (patch)
tree0426ddb3f2bd2cb0522cb60150d3336b0f519bec /lib
parent521a572defaba88bef6d44ebf05c71aad9abd821 (diff)
sched/debug: Make sysrq prints of sched debug data optional
Calls to sysrq_sched_debug_show() can yield rather verbose output which contributes to log spew and, under heavy load, may increase the chances of a watchdog bark. Make printing of this data optional with the introduction of a new Kconfig, CONFIG_SYSRQ_SCHED_DEBUG. Change-Id: I5f54d901d0dea403109f7ac33b8881d967a899ed Signed-off-by: Matt Wagantall <mattw@codeaurora.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/Kconfig.debug9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug
index 56b9db804d8c..23972e246b7b 100644
--- a/lib/Kconfig.debug
+++ b/lib/Kconfig.debug
@@ -876,6 +876,15 @@ config PANIC_ON_RT_THROTTLING
Say N if unsure.
+config SYSRQ_SCHED_DEBUG
+ bool "Print scheduling debugging info from sysrq-trigger"
+ depends on SCHED_DEBUG
+ default y
+ help
+ If you say Y here, the "show-task-states(T)" and
+ "show-blocked-tasks(W)" sysrq-triggers will print additional
+ scheduling statistics.
+
config SCHEDSTATS
bool "Collect scheduler statistics"
depends on DEBUG_KERNEL && PROC_FS