linux-trace-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/8] sysctl: Move sysctls from kern_table into their respective subsystems
@ 2025-02-18  9:56 Joel Granados
  2025-02-18  9:56 ` [PATCH 1/8] panic: Move panic ctl tables into panic.c Joel Granados
                   ` (7 more replies)
  0 siblings, 8 replies; 16+ messages in thread
From: Joel Granados @ 2025-02-18  9:56 UTC (permalink / raw)
  To: Kees Cook, Steven Rostedt, Masami Hiramatsu, Mark Rutland,
	Mathieu Desnoyers, Peter Zijlstra, Ingo Molnar,
	Arnaldo Carvalho de Melo, Namhyung Kim, Alexander Shishkin,
	Jiri Olsa, Ian Rogers, Adrian Hunter, Liang, Kan, David S. Miller,
	Andreas Larsson, Heiko Carstens, Vasily Gorbik, Alexander Gordeev,
	Christian Borntraeger, Sven Schnelle, Gerald Schaefer,
	Thomas Gleixner, Borislav Petkov, Dave Hansen, x86,
	H. Peter Anvin, Rafael J. Wysocki, Len Brown
  Cc: linux-kernel, linux-fsdevel, linux-trace-kernel, linux-perf-users,
	sparclinux, linux-s390, linux-acpi, Joel Granados

This series relocates sysctl tables from kern_table to their respective
subsystems. To keep the scope manageable, this patchset focuses on
architecture-specific and core kernel sysctl tables. Further relocations
will follow once this series progresses.

By decentralizing sysctl registrations, subsystem maintainers regain
control over their sysctl interfaces, improving maintainability and
reducing the likelihood of merge conflicts. All this is made possible by
the work done to reduce the ctl_table memory footprint in commit
d7a76ec87195 ("sysctl: Remove check for sentinel element in ctl_table
arrays").

* Birds eye view of what has changed:
    - Archs: sparc, s390 and x86
        arch/s390/{lib/spinlock.c,mm/fault.c}
        arch/sparc/kernel/{Makefile,setup.c}
        arch/x86/include/asm/{setup.h,traps.h}
    - Kernel core:
        kernel/{panic.c,signal.c,trace/trace.c}
        kernel/events/{core.c,callchain.c}

* Testing was done by running sysctl selftests on x86_64 and 0-day.

Comments are greatly appreciated

Signed-off-by: Joel Granados <joel.granados@kernel.org>
---
Joel Granados (7):
      panic: Move panic ctl tables into panic.c
      signal: Move signal ctl tables into signal.c
      ftrace: Move trace sysctls into trace.c
      stack_tracer: move sysctl registration to kernel/trace/trace.c
      events: Move perf_event sysctls into kernel/events
      sparc: mv sparc sysctls into their own file under arch/sparc/kernel
      x86: Move sysctls into arch/x86

joel granados (1):
      s390: mv s390 sysctls into their own file under arch/s390 dir

 arch/s390/lib/spinlock.c     |  23 ++++
 arch/s390/mm/fault.c         |  17 +++
 arch/sparc/kernel/Makefile   |   1 +
 arch/sparc/kernel/setup.c    |  46 ++++++++
 arch/x86/include/asm/setup.h |   1 +
 arch/x86/include/asm/traps.h |   2 -
 arch/x86/kernel/setup.c      |  66 ++++++++++++
 include/linux/acpi.h         |   1 -
 include/linux/ftrace.h       |   7 --
 include/linux/perf_event.h   |   9 --
 kernel/events/callchain.c    |  38 +++++--
 kernel/events/core.c         |  57 ++++++++--
 kernel/panic.c               |  30 ++++++
 kernel/signal.c              |  11 ++
 kernel/sysctl.c              | 250 -------------------------------------------
 kernel/trace/trace.c         |  45 +++++++-
 16 files changed, 322 insertions(+), 282 deletions(-)
---
base-commit: 0ad2507d5d93f39619fc42372c347d6006b64319
change-id: 20250217-jag-mv_ctltables-cf75e470e085

Best regards,
-- 
Joel Granados <joel.granados@kernel.org>



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

end of thread, other threads:[~2025-03-06 10:37 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-18  9:56 [PATCH 0/8] sysctl: Move sysctls from kern_table into their respective subsystems Joel Granados
2025-02-18  9:56 ` [PATCH 1/8] panic: Move panic ctl tables into panic.c Joel Granados
2025-02-18  9:56 ` [PATCH 2/8] signal: Move signal ctl tables into signal.c Joel Granados
2025-02-18  9:56 ` [PATCH 3/8] ftrace: Move trace sysctls into trace.c Joel Granados
2025-03-04  1:44   ` Steven Rostedt
2025-03-06 10:15     ` Joel Granados
2025-02-18  9:56 ` [PATCH 4/8] stack_tracer: move sysctl registration to kernel/trace/trace.c Joel Granados
2025-03-04  1:47   ` Steven Rostedt
2025-03-06 10:37     ` Joel Granados
2025-02-18  9:56 ` [PATCH 5/8] events: Move perf_event sysctls into kernel/events Joel Granados
2025-02-18 10:35   ` Peter Zijlstra
2025-02-18  9:56 ` [PATCH 6/8] sparc: mv sparc sysctls into their own file under arch/sparc/kernel Joel Granados
2025-02-18  9:56 ` [PATCH 7/8] s390: mv s390 sysctls into their own file under arch/s390 dir joel granados
2025-02-18 14:08   ` Heiko Carstens
2025-02-21  7:59     ` Joel Granados
2025-02-18  9:56 ` [PATCH 8/8] x86: Move sysctls into arch/x86 Joel Granados

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).