diff options
author | Peter Zijlstra <peterz@infradead.org> | 2017-09-07 17:03:53 +0200 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2017-09-12 17:41:04 +0200 |
commit | 9469eb01db891b55367ee7539f1b9f7f6fd2819d (patch) | |
tree | dfe475d30b69b6e43b8ed1be0505f08123fee653 /kernel/sched/debug.c | |
parent | sched/core: WARN() when migrating to an offline CPU (diff) | |
download | linux-9469eb01db891b55367ee7539f1b9f7f6fd2819d.tar.xz linux-9469eb01db891b55367ee7539f1b9f7f6fd2819d.zip |
sched/debug: Add debugfs knob for "sched_debug"
I'm forever late for editing my kernel cmdline, add a runtime knob to
disable the "sched_debug" thing.
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/20170907150614.142924283@infradead.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'kernel/sched/debug.c')
-rw-r--r-- | kernel/sched/debug.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/kernel/sched/debug.c b/kernel/sched/debug.c index 4a23bbc3111b..b19d06ea6e10 100644 --- a/kernel/sched/debug.c +++ b/kernel/sched/debug.c @@ -181,11 +181,16 @@ static const struct file_operations sched_feat_fops = { .release = single_release, }; +__read_mostly bool sched_debug_enabled; + static __init int sched_init_debug(void) { debugfs_create_file("sched_features", 0644, NULL, NULL, &sched_feat_fops); + debugfs_create_bool("sched_debug", 0644, NULL, + &sched_debug_enabled); + return 0; } late_initcall(sched_init_debug); |