[PATCH v2] sched/debug:fix stale comments of sched_debug

From: Hailong Liu
Date: Sat Jun 05 2021 - 08:14:19 EST


From: Hailong Liu <liu.hailong6@xxxxxxxxxx>

Since commit 'd27e9ae2f24(sched: Move /proc/sched_debug to debugfs)'
file /proc/sched_debug file no longer exists, so update the comments
and the dependencies and help text of CONFIG_SCHED_DEBUG.

Signed-off-by: Hailong Liu <liu.hailong6@xxxxxxxxxx>
---

changes since v1:
- check and updated the dependencies of CONFIG_SCHED_DEBUG which
suggested by Andy Shevchenko and Peter Zijlstra.
---
kernel/sched/debug.c | 2 +-
lib/Kconfig.debug | 9 +++++----
2 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/kernel/sched/debug.c b/kernel/sched/debug.c
index 9c882f20803e..4cbd6d602829 100644
--- a/kernel/sched/debug.c
+++ b/kernel/sched/debug.c
@@ -9,7 +9,7 @@
#include "sched.h"

/*
- * This allows printing both to /proc/sched_debug and
+ * This allows printing both to debugfs/sched/debug and
* to the console
*/
#define SEQ_printf(m, x...) \
diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug
index 678c13967580..9c1fb07a6950 100644
--- a/lib/Kconfig.debug
+++ b/lib/Kconfig.debug
@@ -1163,12 +1163,13 @@ menu "Scheduler Debugging"

config SCHED_DEBUG
bool "Collect scheduler debugging info"
- depends on DEBUG_KERNEL && PROC_FS
+ depends on DEBUG_KERNEL && PROC_FS && DEBUG_FS
default y
help
- If you say Y here, the /proc/sched_debug file will be provided
- that can help debug the scheduler. The runtime overhead of this
- option is minimal.
+ If you say Y here, the dictory debugfs/sched/ with various
+ scheduler-related debug files (such as debug, features, etc.)
+ and files /proc/pid/sched will be provided, that can help debug
+ the scheduler. The runtime overhead of this option is minimal.

config SCHED_INFO
bool
--
2.17.1