sched/debug: Rename the sched_debug parameter to sched_verbose
authorPeter Zijlstra <peterz@infradead.org>
Thu, 15 Apr 2021 16:23:17 +0000 (18:23 +0200)
committerPeter Zijlstra <peterz@infradead.org>
Sat, 17 Apr 2021 11:22:44 +0000 (13:22 +0200)
CONFIG_SCHED_DEBUG is the build-time Kconfig knob, the boot param
sched_debug and the /debug/sched/debug_enabled knobs control the
sched_debug_enabled variable, but what they really do is make
SCHED_DEBUG more verbose, so rename the lot.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Documentation/admin-guide/kernel-parameters.txt
Documentation/scheduler/sched-domains.rst
kernel/sched/debug.c
kernel/sched/sched.h
kernel/sched/topology.c

index 04545725f187ffe787f3a226a328b1c951251f16..9e4c026f4837b16e2e64ff6ee3a8fdb67332c4ed 100644 (file)
 
        sbni=           [NET] Granch SBNI12 leased line adapter
 
-       sched_debug     [KNL] Enables verbose scheduler debug messages.
+       sched_verbose   [KNL] Enables verbose scheduler debug messages.
 
        schedstats=     [KNL,X86] Enable or disable scheduled statistics.
                        Allowed values are enable and disable. This feature
index 8582fa5e9170fa27708badb6122aacccd7b86538..14ea2f21d20ef98d0e20e16487c5073c4faada3e 100644 (file)
@@ -74,8 +74,8 @@ for a given topology level by creating a sched_domain_topology_level array and
 calling set_sched_topology() with this array as the parameter.
 
 The sched-domains debugging infrastructure can be enabled by enabling
-CONFIG_SCHED_DEBUG and adding 'sched_debug' to your cmdline. If you forgot to
-tweak your cmdline, you can also flip the /sys/kernel/debug/sched_debug
-knob. This enables an error checking parse of the sched domains which should
-catch most possible errors (described above). It also prints out the domain
-structure in a visual format.
+CONFIG_SCHED_DEBUG and adding 'sched_debug_verbose' to your cmdline. If you
+forgot to tweak your cmdline, you can also flip the
+/sys/kernel/debug/sched/verbose knob. This enables an error checking parse of
+the sched domains which should catch most possible errors (described above). It
+also prints out the domain structure in a visual format.
index bf199d6ca90602237c22897e6c17506faf63b469..461342f598ef88d42f2a00b37b66e0673ed17a74 100644 (file)
@@ -275,7 +275,7 @@ static const struct file_operations sched_dynamic_fops = {
 
 #endif /* CONFIG_PREEMPT_DYNAMIC */
 
-__read_mostly bool sched_debug_enabled;
+__read_mostly bool sched_debug_verbose;
 
 static const struct seq_operations sched_debug_sops;
 
@@ -300,7 +300,7 @@ static __init int sched_init_debug(void)
        debugfs_sched = debugfs_create_dir("sched", NULL);
 
        debugfs_create_file("features", 0644, debugfs_sched, NULL, &sched_feat_fops);
-       debugfs_create_bool("debug_enabled", 0644, debugfs_sched, &sched_debug_enabled);
+       debugfs_create_bool("verbose", 0644, debugfs_sched, &sched_debug_verbose);
 #ifdef CONFIG_PREEMPT_DYNAMIC
        debugfs_create_file("preempt", 0644, debugfs_sched, NULL, &sched_dynamic_fops);
 #endif
index 55232db745ac1ea36ff64a214034fbe77f00556d..bde72482cbb8d96c90667535509f2876b9800baf 100644 (file)
@@ -2363,7 +2363,7 @@ extern struct sched_entity *__pick_first_entity(struct cfs_rq *cfs_rq);
 extern struct sched_entity *__pick_last_entity(struct cfs_rq *cfs_rq);
 
 #ifdef CONFIG_SCHED_DEBUG
-extern bool sched_debug_enabled;
+extern bool sched_debug_verbose;
 
 extern void print_cfs_stats(struct seq_file *m, int cpu);
 extern void print_rt_stats(struct seq_file *m, int cpu);
index c343aedd9caa64f096e964bc9c02894e8c996f5d..55a0a243e87183346bddd243a3c3ca5122df80b4 100644 (file)
@@ -14,15 +14,15 @@ static cpumask_var_t sched_domains_tmpmask2;
 
 static int __init sched_debug_setup(char *str)
 {
-       sched_debug_enabled = true;
+       sched_debug_verbose = true;
 
        return 0;
 }
-early_param("sched_debug", sched_debug_setup);
+early_param("sched_verbose", sched_debug_setup);
 
 static inline bool sched_debug(void)
 {
-       return sched_debug_enabled;
+       return sched_debug_verbose;
 }
 
 #define SD_FLAG(_name, mflags) [__##_name] = { .meta_flags = mflags, .name = #_name },
@@ -131,7 +131,7 @@ static void sched_domain_debug(struct sched_domain *sd, int cpu)
 {
        int level = 0;
 
-       if (!sched_debug_enabled)
+       if (!sched_debug_verbose)
                return;
 
        if (!sd) {
@@ -152,7 +152,7 @@ static void sched_domain_debug(struct sched_domain *sd, int cpu)
 }
 #else /* !CONFIG_SCHED_DEBUG */
 
-# define sched_debug_enabled 0
+# define sched_debug_verbose 0
 # define sched_domain_debug(sd, cpu) do { } while (0)
 static inline bool sched_debug(void)
 {
@@ -2141,7 +2141,7 @@ build_sched_domains(const struct cpumask *cpu_map, struct sched_domain_attr *att
        if (has_asym)
                static_branch_inc_cpuslocked(&sched_asym_cpucapacity);
 
-       if (rq && sched_debug_enabled) {
+       if (rq && sched_debug_verbose) {
                pr_info("root domain span: %*pbl (max cpu_capacity = %lu)\n",
                        cpumask_pr_args(cpu_map), rq->rd->max_cpu_capacity);
        }