[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20250218-jag-mv_ctltables-v1-0-cd3698ab8d29@kernel.org>
Date: Tue, 18 Feb 2025 10:56:16 +0100
From: Joel Granados <joel.granados@...nel.org>
To: Kees Cook <kees@...nel.org>, Steven Rostedt <rostedt@...dmis.org>,
Masami Hiramatsu <mhiramat@...nel.org>, Mark Rutland <mark.rutland@....com>,
Mathieu Desnoyers <mathieu.desnoyers@...icios.com>,
Peter Zijlstra <peterz@...radead.org>, Ingo Molnar <mingo@...hat.com>,
Arnaldo Carvalho de Melo <acme@...nel.org>,
Namhyung Kim <namhyung@...nel.org>,
Alexander Shishkin <alexander.shishkin@...ux.intel.com>,
Jiri Olsa <jolsa@...nel.org>, Ian Rogers <irogers@...gle.com>,
Adrian Hunter <adrian.hunter@...el.com>,
"Liang, Kan" <kan.liang@...ux.intel.com>,
"David S. Miller" <davem@...emloft.net>,
Andreas Larsson <andreas@...sler.com>, Heiko Carstens <hca@...ux.ibm.com>,
Vasily Gorbik <gor@...ux.ibm.com>,
Alexander Gordeev <agordeev@...ux.ibm.com>,
Christian Borntraeger <borntraeger@...ux.ibm.com>,
Sven Schnelle <svens@...ux.ibm.com>,
Gerald Schaefer <gerald.schaefer@...ux.ibm.com>,
Thomas Gleixner <tglx@...utronix.de>, Borislav Petkov <bp@...en8.de>,
Dave Hansen <dave.hansen@...ux.intel.com>, x86@...nel.org,
"H. Peter Anvin" <hpa@...or.com>, "Rafael J. Wysocki" <rafael@...nel.org>,
Len Brown <lenb@...nel.org>
Cc: linux-kernel@...r.kernel.org, linux-fsdevel@...r.kernel.org,
linux-trace-kernel@...r.kernel.org, linux-perf-users@...r.kernel.org,
sparclinux@...r.kernel.org, linux-s390@...r.kernel.org,
linux-acpi@...r.kernel.org, Joel Granados <joel.granados@...nel.org>
Subject: [PATCH 0/8] sysctl: Move sysctls from kern_table into their
respective subsystems
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@...nel.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@...nel.org>
Powered by blists - more mailing lists