linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/5] sched: Make CONFIG_SCHED_DEBUG features unconditional
@ 2025-03-17 10:42 Ingo Molnar
  2025-03-17 10:42 ` [PATCH 1/5] sched/debug: Change SCHED_WARN_ON() to WARN_ON_ONCE() Ingo Molnar
                   ` (7 more replies)
  0 siblings, 8 replies; 30+ messages in thread
From: Ingo Molnar @ 2025-03-17 10:42 UTC (permalink / raw)
  To: linux-kernel
  Cc: Dietmar Eggemann, Linus Torvalds, Peter Zijlstra, Shrikanth Hegde,
	Thomas Gleixner, Valentin Schneider, Steven Rostedt, Mel Gorman,
	Vincent Guittot

For more than a decade, CONFIG_SCHED_DEBUG=y has been enabled
in all the major Linux distributions:

   /boot/config-6.11.0-19-generic:CONFIG_SCHED_DEBUG=y

The reason is that while originally CONFIG_SCHED_DEBUG started
out as a debugging feature, over the years (decades ...) it has
grown various bits of statistics, instrumentation and
control knobs that are useful for sysadmin and general software
development purposes as well.

But within the kernel we still pretend that there's a choice,
and sometimes code that is seemingly 'debug only' creates overhead
that should be optimized in reality.

So make it all official and make CONFIG_SCHED_DEBUG unconditional.
This gets rid of a large amount of #ifdefs, so good riddance ...

Ingo Molnar (5):
  sched/debug: Change SCHED_WARN_ON() to WARN_ON_ONCE()
  sched/debug: Make 'const_debug' tunables unconditional __read_mostly
  sched/debug: Make CONFIG_SCHED_DEBUG functionality unconditional
  sched/debug, Documentation: Remove (most) CONFIG_SCHED_DEBUG references from documentation
  sched/debug: Remove CONFIG_SCHED_DEBUG

 Documentation/scheduler/sched-debug.rst                         |  2 +-
 Documentation/scheduler/sched-design-CFS.rst                    |  2 +-
 Documentation/scheduler/sched-domains.rst                       |  5 +-
 Documentation/scheduler/sched-ext.rst                           |  3 +-
 Documentation/scheduler/sched-stats.rst                         |  2 +-
 Documentation/translations/sp_SP/scheduler/sched-design-CFS.rst |  2 +-
 fs/proc/base.c                                                  |  7 ---
 include/linux/energy_model.h                                    |  2 -
 include/linux/sched/debug.h                                     |  2 -
 include/linux/sched/topology.h                                  |  4 --
 include/trace/events/sched.h                                    |  2 -
 kernel/sched/build_utility.c                                    |  4 +-
 kernel/sched/core.c                                             | 46 ++++++----------
 kernel/sched/core_sched.c                                       |  2 +-
 kernel/sched/deadline.c                                         | 14 +++--
 kernel/sched/ext.c                                              |  2 +-
 kernel/sched/fair.c                                             | 64 +++++++++++-----------
 kernel/sched/rt.c                                               |  7 +--
 kernel/sched/sched.h                                            | 83 +++++------------------------
 kernel/sched/stats.h                                            |  2 +-
 kernel/sched/topology.c                                         | 13 -----
 lib/Kconfig.debug                                               |  9 ----
 22 files changed, 79 insertions(+), 200 deletions(-)

-- 
2.45.2


^ permalink raw reply	[flat|nested] 30+ messages in thread

end of thread, other threads:[~2025-03-26  7:42 UTC | newest]

Thread overview: 30+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-17 10:42 [PATCH 0/5] sched: Make CONFIG_SCHED_DEBUG features unconditional Ingo Molnar
2025-03-17 10:42 ` [PATCH 1/5] sched/debug: Change SCHED_WARN_ON() to WARN_ON_ONCE() Ingo Molnar
2025-03-20  9:00   ` [tip: sched/core] " tip-bot2 for Ingo Molnar
2025-03-24 11:59     ` Peter Zijlstra
2025-03-25  9:37       ` Ingo Molnar
2025-03-25 11:18         ` [PATCH] bug: Introduce CONFIG_DEBUG_BUGVERBOSE_EXTRA=y to also log warning conditions Ingo Molnar
2025-03-25 12:36           ` Peter Zijlstra
2025-03-25 17:48             ` Linus Torvalds
2025-03-25 18:46               ` Peter Zijlstra
2025-03-25 22:42               ` [PATCH] bug: Add the condition string to the CONFIG_DEBUG_BUGVERBOSE=y output Ingo Molnar
2025-03-25 23:12                 ` Linus Torvalds
2025-03-26  7:42                   ` Ingo Molnar
2025-03-17 10:42 ` [PATCH 2/5] sched/debug: Make 'const_debug' tunables unconditional __read_mostly Ingo Molnar
2025-03-20  9:00   ` [tip: sched/core] " tip-bot2 for Ingo Molnar
2025-03-17 10:42 ` [PATCH 3/5] sched/debug: Make CONFIG_SCHED_DEBUG functionality unconditional Ingo Molnar
2025-03-20  9:00   ` [tip: sched/core] " tip-bot2 for Ingo Molnar
2025-03-17 10:42 ` [PATCH 4/5] sched/debug, Documentation: Remove (most) CONFIG_SCHED_DEBUG references from documentation Ingo Molnar
2025-03-20  9:00   ` [tip: sched/core] " tip-bot2 for Ingo Molnar
2025-03-17 10:42 ` [PATCH 5/5] sched/debug: Remove CONFIG_SCHED_DEBUG Ingo Molnar
2025-03-20  8:59   ` [tip: sched/core] " tip-bot2 for Ingo Molnar
2025-03-24 11:57     ` Peter Zijlstra
2025-03-17 21:39 ` [PATCH 0/5] sched: Make CONFIG_SCHED_DEBUG features unconditional Linus Torvalds
2025-03-17 22:24   ` Ingo Molnar
2025-03-17 22:42     ` Ingo Molnar
2025-03-19  8:49 ` Valentin Schneider
2025-03-19 21:09   ` Ingo Molnar
2025-03-19 12:48 ` Shrikanth Hegde
2025-03-19 21:14   ` Ingo Molnar
2025-03-20  4:41     ` Shrikanth Hegde
2025-03-20  9:00     ` [tip: sched/core] sched/debug: Remove CONFIG_SCHED_DEBUG from self-test config files tip-bot2 for Ingo Molnar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).