All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2] sched/debug:fix stale comments of sched_debug
@ 2021-06-05 11:47 Hailong Liu
  0 siblings, 0 replies; only message in thread
From: Hailong Liu @ 2021-06-05 11:47 UTC (permalink / raw)
  To: Ingo Molnar, Peter Zijlstra, Andy Shevchenko
  Cc: Juri Lelli, Vincent Guittot, Dietmar Eggemann, Steven Rostedt,
	Ben Segall, Mel Gorman, Daniel Bristot de Oliveira,
	Andrew Morton, Masahiro Yamada, Nick Desaulniers,
	Vitor Massaru Iha, Sedat Dilek, Wei Yang, linux-kernel,
	Hailong Liu

From: Hailong Liu <liu.hailong6@zte.com.cn>

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@zte.com.cn>
---

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



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2021-06-05 12:10 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-05 11:47 [PATCH v2] sched/debug:fix stale comments of sched_debug Hailong Liu

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.