xref: /linux-6.15/init/Kconfig (revision f06e108a)
1# SPDX-License-Identifier: GPL-2.0-only
2config CC_VERSION_TEXT
3	string
4	default "$(CC_VERSION_TEXT)"
5	help
6	  This is used in unclear ways:
7
8	  - Re-run Kconfig when the compiler is updated
9	    The 'default' property references the environment variable,
10	    CC_VERSION_TEXT so it is recorded in include/config/auto.conf.cmd.
11	    When the compiler is updated, Kconfig will be invoked.
12
13	  - Ensure full rebuild when the compiler is updated
14	    include/linux/compiler-version.h contains this option in the comment
15	    line so fixdep adds include/config/CC_VERSION_TEXT into the
16	    auto-generated dependency. When the compiler is updated, syncconfig
17	    will touch it and then every file will be rebuilt.
18
19config CC_IS_GCC
20	def_bool $(success,test "$(cc-name)" = GCC)
21
22config GCC_VERSION
23	int
24	default $(cc-version) if CC_IS_GCC
25	default 0
26
27config CC_IS_CLANG
28	def_bool $(success,test "$(cc-name)" = Clang)
29
30config CLANG_VERSION
31	int
32	default $(cc-version) if CC_IS_CLANG
33	default 0
34
35config AS_IS_GNU
36	def_bool $(success,test "$(as-name)" = GNU)
37
38config AS_IS_LLVM
39	def_bool $(success,test "$(as-name)" = LLVM)
40
41config AS_VERSION
42	int
43	# Use clang version if this is the integrated assembler
44	default CLANG_VERSION if AS_IS_LLVM
45	default $(as-version)
46
47config LD_IS_BFD
48	def_bool $(success,test "$(ld-name)" = BFD)
49
50config LD_VERSION
51	int
52	default $(ld-version) if LD_IS_BFD
53	default 0
54
55config LD_IS_LLD
56	def_bool $(success,test "$(ld-name)" = LLD)
57
58config LLD_VERSION
59	int
60	default $(ld-version) if LD_IS_LLD
61	default 0
62
63config RUSTC_VERSION
64	int
65	default $(shell,$(srctree)/scripts/rustc-version.sh $(RUSTC))
66	help
67	  It does not depend on `RUST` since that one may need to use the version
68	  in a `depends on`.
69
70config RUST_IS_AVAILABLE
71	def_bool $(success,$(srctree)/scripts/rust_is_available.sh)
72	help
73	  This shows whether a suitable Rust toolchain is available (found).
74
75	  Please see Documentation/rust/quick-start.rst for instructions on how
76	  to satisfy the build requirements of Rust support.
77
78	  In particular, the Makefile target 'rustavailable' is useful to check
79	  why the Rust toolchain is not being detected.
80
81config CC_CAN_LINK
82	bool
83	default $(success,$(srctree)/scripts/cc-can-link.sh $(CC) $(CLANG_FLAGS) $(USERCFLAGS) $(USERLDFLAGS) $(m64-flag)) if 64BIT
84	default $(success,$(srctree)/scripts/cc-can-link.sh $(CC) $(CLANG_FLAGS) $(USERCFLAGS) $(USERLDFLAGS) $(m32-flag))
85
86config CC_CAN_LINK_STATIC
87	bool
88	default $(success,$(srctree)/scripts/cc-can-link.sh $(CC) $(CLANG_FLAGS) $(USERCFLAGS) $(USERLDFLAGS) $(m64-flag) -static) if 64BIT
89	default $(success,$(srctree)/scripts/cc-can-link.sh $(CC) $(CLANG_FLAGS) $(USERCFLAGS) $(USERLDFLAGS) $(m32-flag) -static)
90
91# Fixed in GCC 14, 13.3, 12.4 and 11.5
92# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113921
93config GCC_ASM_GOTO_OUTPUT_BROKEN
94	bool
95	depends on CC_IS_GCC
96	default y if GCC_VERSION < 110500
97	default y if GCC_VERSION >= 120000 && GCC_VERSION < 120400
98	default y if GCC_VERSION >= 130000 && GCC_VERSION < 130300
99
100config CC_HAS_ASM_GOTO_OUTPUT
101	def_bool y
102	depends on !GCC_ASM_GOTO_OUTPUT_BROKEN
103	depends on $(success,echo 'int foo(int x) { asm goto ("": "=r"(x) ::: bar); return x; bar: return 0; }' | $(CC) -x c - -c -o /dev/null)
104
105config CC_HAS_ASM_GOTO_TIED_OUTPUT
106	depends on CC_HAS_ASM_GOTO_OUTPUT
107	# Detect buggy gcc and clang, fixed in gcc-11 clang-14.
108	def_bool $(success,echo 'int foo(int *x) { asm goto (".long (%l[bar]) - .": "+m"(*x) ::: bar); return *x; bar: return 0; }' | $CC -x c - -c -o /dev/null)
109
110config TOOLS_SUPPORT_RELR
111	def_bool $(success,env "CC=$(CC)" "LD=$(LD)" "NM=$(NM)" "OBJCOPY=$(OBJCOPY)" $(srctree)/scripts/tools-support-relr.sh)
112
113config CC_HAS_ASM_INLINE
114	def_bool $(success,echo 'void foo(void) { asm inline (""); }' | $(CC) -x c - -c -o /dev/null)
115
116config CC_HAS_NO_PROFILE_FN_ATTR
117	def_bool $(success,echo '__attribute__((no_profile_instrument_function)) int x();' | $(CC) -x c - -c -o /dev/null -Werror)
118
119config CC_HAS_COUNTED_BY
120	# TODO: when gcc 15 is released remove the build test and add
121	# a gcc version check
122	def_bool $(success,echo 'struct flex { int count; int array[] __attribute__((__counted_by__(count))); };' | $(CC) $(CLANG_FLAGS) -x c - -c -o /dev/null -Werror)
123	# clang needs to be at least 19.1.3 to avoid __bdos miscalculations
124	# https://github.com/llvm/llvm-project/pull/110497
125	# https://github.com/llvm/llvm-project/pull/112636
126	depends on !(CC_IS_CLANG && CLANG_VERSION < 190103)
127
128config PAHOLE_VERSION
129	int
130	default $(shell,$(srctree)/scripts/pahole-version.sh $(PAHOLE))
131
132config CONSTRUCTORS
133	bool
134
135config IRQ_WORK
136	def_bool y if SMP
137
138config BUILDTIME_TABLE_SORT
139	bool
140
141config THREAD_INFO_IN_TASK
142	bool
143	help
144	  Select this to move thread_info off the stack into task_struct.  To
145	  make this work, an arch will need to remove all thread_info fields
146	  except flags and fix any runtime bugs.
147
148	  One subtle change that will be needed is to use try_get_task_stack()
149	  and put_task_stack() in save_thread_stack_tsk() and get_wchan().
150
151menu "General setup"
152
153config BROKEN
154	bool
155
156config BROKEN_ON_SMP
157	bool
158	depends on BROKEN || !SMP
159	default y
160
161config INIT_ENV_ARG_LIMIT
162	int
163	default 32 if !UML
164	default 128 if UML
165	help
166	  Maximum of each of the number of arguments and environment
167	  variables passed to init from the kernel command line.
168
169config COMPILE_TEST
170	bool "Compile also drivers which will not load"
171	depends on HAS_IOMEM
172	help
173	  Some drivers can be compiled on a different platform than they are
174	  intended to be run on. Despite they cannot be loaded there (or even
175	  when they load they cannot be used due to missing HW support),
176	  developers still, opposing to distributors, might want to build such
177	  drivers to compile-test them.
178
179	  If you are a developer and want to build everything available, say Y
180	  here. If you are a user/distributor, say N here to exclude useless
181	  drivers to be distributed.
182
183config WERROR
184	bool "Compile the kernel with warnings as errors"
185	default COMPILE_TEST
186	help
187	  A kernel build should not cause any compiler warnings, and this
188	  enables the '-Werror' (for C) and '-Dwarnings' (for Rust) flags
189	  to enforce that rule by default. Certain warnings from other tools
190	  such as the linker may be upgraded to errors with this option as
191	  well.
192
193	  However, if you have a new (or very old) compiler or linker with odd
194	  and unusual warnings, or you have some architecture with problems,
195	  you may need to disable this config option in order to
196	  successfully build the kernel.
197
198	  If in doubt, say Y.
199
200config UAPI_HEADER_TEST
201	bool "Compile test UAPI headers"
202	depends on HEADERS_INSTALL && CC_CAN_LINK
203	help
204	  Compile test headers exported to user-space to ensure they are
205	  self-contained, i.e. compilable as standalone units.
206
207	  If you are a developer or tester and want to ensure the exported
208	  headers are self-contained, say Y here. Otherwise, choose N.
209
210config LOCALVERSION
211	string "Local version - append to kernel release"
212	help
213	  Append an extra string to the end of your kernel version.
214	  This will show up when you type uname, for example.
215	  The string you set here will be appended after the contents of
216	  any files with a filename matching localversion* in your
217	  object and source tree, in that order.  Your total string can
218	  be a maximum of 64 characters.
219
220config LOCALVERSION_AUTO
221	bool "Automatically append version information to the version string"
222	default y
223	depends on !COMPILE_TEST
224	help
225	  This will try to automatically determine if the current tree is a
226	  release tree by looking for git tags that belong to the current
227	  top of tree revision.
228
229	  A string of the format -gxxxxxxxx will be added to the localversion
230	  if a git-based tree is found.  The string generated by this will be
231	  appended after any matching localversion* files, and after the value
232	  set in CONFIG_LOCALVERSION.
233
234	  (The actual string used here is the first 12 characters produced
235	  by running the command:
236
237	    $ git rev-parse --verify HEAD
238
239	  which is done within the script "scripts/setlocalversion".)
240
241config BUILD_SALT
242	string "Build ID Salt"
243	default ""
244	help
245	  The build ID is used to link binaries and their debug info. Setting
246	  this option will use the value in the calculation of the build id.
247	  This is mostly useful for distributions which want to ensure the
248	  build is unique between builds. It's safe to leave the default.
249
250config HAVE_KERNEL_GZIP
251	bool
252
253config HAVE_KERNEL_BZIP2
254	bool
255
256config HAVE_KERNEL_LZMA
257	bool
258
259config HAVE_KERNEL_XZ
260	bool
261
262config HAVE_KERNEL_LZO
263	bool
264
265config HAVE_KERNEL_LZ4
266	bool
267
268config HAVE_KERNEL_ZSTD
269	bool
270
271config HAVE_KERNEL_UNCOMPRESSED
272	bool
273
274choice
275	prompt "Kernel compression mode"
276	default KERNEL_GZIP
277	depends on HAVE_KERNEL_GZIP || HAVE_KERNEL_BZIP2 || HAVE_KERNEL_LZMA || HAVE_KERNEL_XZ || HAVE_KERNEL_LZO || HAVE_KERNEL_LZ4 || HAVE_KERNEL_ZSTD || HAVE_KERNEL_UNCOMPRESSED
278	help
279	  The linux kernel is a kind of self-extracting executable.
280	  Several compression algorithms are available, which differ
281	  in efficiency, compression and decompression speed.
282	  Compression speed is only relevant when building a kernel.
283	  Decompression speed is relevant at each boot.
284
285	  If you have any problems with bzip2 or lzma compressed
286	  kernels, mail me (Alain Knaff) <[email protected]>. (An older
287	  version of this functionality (bzip2 only), for 2.4, was
288	  supplied by Christian Ludwig)
289
290	  High compression options are mostly useful for users, who
291	  are low on disk space (embedded systems), but for whom ram
292	  size matters less.
293
294	  If in doubt, select 'gzip'
295
296config KERNEL_GZIP
297	bool "Gzip"
298	depends on HAVE_KERNEL_GZIP
299	help
300	  The old and tried gzip compression. It provides a good balance
301	  between compression ratio and decompression speed.
302
303config KERNEL_BZIP2
304	bool "Bzip2"
305	depends on HAVE_KERNEL_BZIP2
306	help
307	  Its compression ratio and speed is intermediate.
308	  Decompression speed is slowest among the choices.  The kernel
309	  size is about 10% smaller with bzip2, in comparison to gzip.
310	  Bzip2 uses a large amount of memory. For modern kernels you
311	  will need at least 8MB RAM or more for booting.
312
313config KERNEL_LZMA
314	bool "LZMA"
315	depends on HAVE_KERNEL_LZMA
316	help
317	  This compression algorithm's ratio is best.  Decompression speed
318	  is between gzip and bzip2.  Compression is slowest.
319	  The kernel size is about 33% smaller with LZMA in comparison to gzip.
320
321config KERNEL_XZ
322	bool "XZ"
323	depends on HAVE_KERNEL_XZ
324	help
325	  XZ uses the LZMA2 algorithm and instruction set specific
326	  BCJ filters which can improve compression ratio of executable
327	  code. The size of the kernel is about 30% smaller with XZ in
328	  comparison to gzip. On architectures for which there is a BCJ
329	  filter (i386, x86_64, ARM, ARM64, RISC-V, big endian PowerPC,
330	  and SPARC), XZ will create a few percent smaller kernel than
331	  plain LZMA.
332
333	  The speed is about the same as with LZMA: The decompression
334	  speed of XZ is better than that of bzip2 but worse than gzip
335	  and LZO. Compression is slow.
336
337config KERNEL_LZO
338	bool "LZO"
339	depends on HAVE_KERNEL_LZO
340	help
341	  Its compression ratio is the poorest among the choices. The kernel
342	  size is about 10% bigger than gzip; however its speed
343	  (both compression and decompression) is the fastest.
344
345config KERNEL_LZ4
346	bool "LZ4"
347	depends on HAVE_KERNEL_LZ4
348	help
349	  LZ4 is an LZ77-type compressor with a fixed, byte-oriented encoding.
350	  A preliminary version of LZ4 de/compression tool is available at
351	  <https://code.google.com/p/lz4/>.
352
353	  Its compression ratio is worse than LZO. The size of the kernel
354	  is about 8% bigger than LZO. But the decompression speed is
355	  faster than LZO.
356
357config KERNEL_ZSTD
358	bool "ZSTD"
359	depends on HAVE_KERNEL_ZSTD
360	help
361	  ZSTD is a compression algorithm targeting intermediate compression
362	  with fast decompression speed. It will compress better than GZIP and
363	  decompress around the same speed as LZO, but slower than LZ4. You
364	  will need at least 192 KB RAM or more for booting. The zstd command
365	  line tool is required for compression.
366
367config KERNEL_UNCOMPRESSED
368	bool "None"
369	depends on HAVE_KERNEL_UNCOMPRESSED
370	help
371	  Produce uncompressed kernel image. This option is usually not what
372	  you want. It is useful for debugging the kernel in slow simulation
373	  environments, where decompressing and moving the kernel is awfully
374	  slow. This option allows early boot code to skip the decompressor
375	  and jump right at uncompressed kernel image.
376
377endchoice
378
379config DEFAULT_INIT
380	string "Default init path"
381	default ""
382	help
383	  This option determines the default init for the system if no init=
384	  option is passed on the kernel command line. If the requested path is
385	  not present, we will still then move on to attempting further
386	  locations (e.g. /sbin/init, etc). If this is empty, we will just use
387	  the fallback list when init= is not passed.
388
389config DEFAULT_HOSTNAME
390	string "Default hostname"
391	default "(none)"
392	help
393	  This option determines the default system hostname before userspace
394	  calls sethostname(2). The kernel traditionally uses "(none)" here,
395	  but you may wish to use a different default here to make a minimal
396	  system more usable with less configuration.
397
398config SYSVIPC
399	bool "System V IPC"
400	help
401	  Inter Process Communication is a suite of library functions and
402	  system calls which let processes (running programs) synchronize and
403	  exchange information. It is generally considered to be a good thing,
404	  and some programs won't run unless you say Y here. In particular, if
405	  you want to run the DOS emulator dosemu under Linux (read the
406	  DOSEMU-HOWTO, available from <http://www.tldp.org/docs.html#howto>),
407	  you'll need to say Y here.
408
409	  You can find documentation about IPC with "info ipc" and also in
410	  section 6.4 of the Linux Programmer's Guide, available from
411	  <http://www.tldp.org/guides.html>.
412
413config SYSVIPC_SYSCTL
414	bool
415	depends on SYSVIPC
416	depends on SYSCTL
417	default y
418
419config SYSVIPC_COMPAT
420	def_bool y
421	depends on COMPAT && SYSVIPC
422
423config POSIX_MQUEUE
424	bool "POSIX Message Queues"
425	depends on NET
426	help
427	  POSIX variant of message queues is a part of IPC. In POSIX message
428	  queues every message has a priority which decides about succession
429	  of receiving it by a process. If you want to compile and run
430	  programs written e.g. for Solaris with use of its POSIX message
431	  queues (functions mq_*) say Y here.
432
433	  POSIX message queues are visible as a filesystem called 'mqueue'
434	  and can be mounted somewhere if you want to do filesystem
435	  operations on message queues.
436
437	  If unsure, say Y.
438
439config POSIX_MQUEUE_SYSCTL
440	bool
441	depends on POSIX_MQUEUE
442	depends on SYSCTL
443	default y
444
445config WATCH_QUEUE
446	bool "General notification queue"
447	default n
448	help
449
450	  This is a general notification queue for the kernel to pass events to
451	  userspace by splicing them into pipes.  It can be used in conjunction
452	  with watches for key/keyring change notifications and device
453	  notifications.
454
455	  See Documentation/core-api/watch_queue.rst
456
457config CROSS_MEMORY_ATTACH
458	bool "Enable process_vm_readv/writev syscalls"
459	depends on MMU
460	default y
461	help
462	  Enabling this option adds the system calls process_vm_readv and
463	  process_vm_writev which allow a process with the correct privileges
464	  to directly read from or write to another process' address space.
465	  See the man page for more details.
466
467config USELIB
468	bool "uselib syscall (for libc5 and earlier)"
469	default ALPHA || M68K || SPARC
470	help
471	  This option enables the uselib syscall, a system call used in the
472	  dynamic linker from libc5 and earlier.  glibc does not use this
473	  system call.  If you intend to run programs built on libc5 or
474	  earlier, you may need to enable this syscall.  Current systems
475	  running glibc can safely disable this.
476
477config AUDIT
478	bool "Auditing support"
479	depends on NET
480	help
481	  Enable auditing infrastructure that can be used with another
482	  kernel subsystem, such as SELinux (which requires this for
483	  logging of avc messages output).  System call auditing is included
484	  on architectures which support it.
485
486config HAVE_ARCH_AUDITSYSCALL
487	bool
488
489config AUDITSYSCALL
490	def_bool y
491	depends on AUDIT && HAVE_ARCH_AUDITSYSCALL
492	select FSNOTIFY
493
494source "kernel/irq/Kconfig"
495source "kernel/time/Kconfig"
496source "kernel/bpf/Kconfig"
497source "kernel/Kconfig.preempt"
498
499menu "CPU/Task time and stats accounting"
500
501config VIRT_CPU_ACCOUNTING
502	bool
503
504choice
505	prompt "Cputime accounting"
506	default TICK_CPU_ACCOUNTING
507
508# Kind of a stub config for the pure tick based cputime accounting
509config TICK_CPU_ACCOUNTING
510	bool "Simple tick based cputime accounting"
511	depends on !S390 && !NO_HZ_FULL
512	help
513	  This is the basic tick based cputime accounting that maintains
514	  statistics about user, system and idle time spent on per jiffies
515	  granularity.
516
517	  If unsure, say Y.
518
519config VIRT_CPU_ACCOUNTING_NATIVE
520	bool "Deterministic task and CPU time accounting"
521	depends on HAVE_VIRT_CPU_ACCOUNTING && !NO_HZ_FULL
522	select VIRT_CPU_ACCOUNTING
523	help
524	  Select this option to enable more accurate task and CPU time
525	  accounting.  This is done by reading a CPU counter on each
526	  kernel entry and exit and on transitions within the kernel
527	  between system, softirq and hardirq state, so there is a
528	  small performance impact.  In the case of s390 or IBM POWER > 5,
529	  this also enables accounting of stolen time on logically-partitioned
530	  systems.
531
532config VIRT_CPU_ACCOUNTING_GEN
533	bool "Full dynticks CPU time accounting"
534	depends on HAVE_CONTEXT_TRACKING_USER
535	depends on HAVE_VIRT_CPU_ACCOUNTING_GEN
536	depends on GENERIC_CLOCKEVENTS
537	select VIRT_CPU_ACCOUNTING
538	select CONTEXT_TRACKING_USER
539	help
540	  Select this option to enable task and CPU time accounting on full
541	  dynticks systems. This accounting is implemented by watching every
542	  kernel-user boundaries using the context tracking subsystem.
543	  The accounting is thus performed at the expense of some significant
544	  overhead.
545
546	  For now this is only useful if you are working on the full
547	  dynticks subsystem development.
548
549	  If unsure, say N.
550
551endchoice
552
553config IRQ_TIME_ACCOUNTING
554	bool "Fine granularity task level IRQ time accounting"
555	depends on HAVE_IRQ_TIME_ACCOUNTING && !VIRT_CPU_ACCOUNTING_NATIVE
556	help
557	  Select this option to enable fine granularity task irq time
558	  accounting. This is done by reading a timestamp on each
559	  transitions between softirq and hardirq state, so there can be a
560	  small performance impact.
561
562	  If in doubt, say N here.
563
564config HAVE_SCHED_AVG_IRQ
565	def_bool y
566	depends on IRQ_TIME_ACCOUNTING || PARAVIRT_TIME_ACCOUNTING
567	depends on SMP
568
569config SCHED_HW_PRESSURE
570	bool
571	default y if ARM && ARM_CPU_TOPOLOGY
572	default y if ARM64
573	depends on SMP
574	depends on CPU_FREQ_THERMAL
575	help
576	  Select this option to enable HW pressure accounting in the
577	  scheduler. HW pressure is the value conveyed to the scheduler
578	  that reflects the reduction in CPU compute capacity resulted from
579	  HW throttling. HW throttling occurs when the performance of
580	  a CPU is capped due to high operating temperatures as an example.
581
582	  If selected, the scheduler will be able to balance tasks accordingly,
583	  i.e. put less load on throttled CPUs than on non/less throttled ones.
584
585	  This requires the architecture to implement
586	  arch_update_hw_pressure() and arch_scale_thermal_pressure().
587
588config BSD_PROCESS_ACCT
589	bool "BSD Process Accounting"
590	depends on MULTIUSER
591	help
592	  If you say Y here, a user level program will be able to instruct the
593	  kernel (via a special system call) to write process accounting
594	  information to a file: whenever a process exits, information about
595	  that process will be appended to the file by the kernel.  The
596	  information includes things such as creation time, owning user,
597	  command name, memory usage, controlling terminal etc. (the complete
598	  list is in the struct acct in <file:include/linux/acct.h>).  It is
599	  up to the user level program to do useful things with this
600	  information.  This is generally a good idea, so say Y.
601
602config BSD_PROCESS_ACCT_V3
603	bool "BSD Process Accounting version 3 file format"
604	depends on BSD_PROCESS_ACCT
605	default n
606	help
607	  If you say Y here, the process accounting information is written
608	  in a new file format that also logs the process IDs of each
609	  process and its parent. Note that this file format is incompatible
610	  with previous v0/v1/v2 file formats, so you will need updated tools
611	  for processing it. A preliminary version of these tools is available
612	  at <http://www.gnu.org/software/acct/>.
613
614config TASKSTATS
615	bool "Export task/process statistics through netlink"
616	depends on NET
617	depends on MULTIUSER
618	default n
619	help
620	  Export selected statistics for tasks/processes through the
621	  generic netlink interface. Unlike BSD process accounting, the
622	  statistics are available during the lifetime of tasks/processes as
623	  responses to commands. Like BSD accounting, they are sent to user
624	  space on task exit.
625
626	  Say N if unsure.
627
628config TASK_DELAY_ACCT
629	bool "Enable per-task delay accounting"
630	depends on TASKSTATS
631	select SCHED_INFO
632	help
633	  Collect information on time spent by a task waiting for system
634	  resources like cpu, synchronous block I/O completion and swapping
635	  in pages. Such statistics can help in setting a task's priorities
636	  relative to other tasks for cpu, io, rss limits etc.
637
638	  Say N if unsure.
639
640config TASK_XACCT
641	bool "Enable extended accounting over taskstats"
642	depends on TASKSTATS
643	help
644	  Collect extended task accounting data and send the data
645	  to userland for processing over the taskstats interface.
646
647	  Say N if unsure.
648
649config TASK_IO_ACCOUNTING
650	bool "Enable per-task storage I/O accounting"
651	depends on TASK_XACCT
652	help
653	  Collect information on the number of bytes of storage I/O which this
654	  task has caused.
655
656	  Say N if unsure.
657
658config PSI
659	bool "Pressure stall information tracking"
660	select KERNFS
661	help
662	  Collect metrics that indicate how overcommitted the CPU, memory,
663	  and IO capacity are in the system.
664
665	  If you say Y here, the kernel will create /proc/pressure/ with the
666	  pressure statistics files cpu, memory, and io. These will indicate
667	  the share of walltime in which some or all tasks in the system are
668	  delayed due to contention of the respective resource.
669
670	  In kernels with cgroup support, cgroups (cgroup2 only) will
671	  have cpu.pressure, memory.pressure, and io.pressure files,
672	  which aggregate pressure stalls for the grouped tasks only.
673
674	  For more details see Documentation/accounting/psi.rst.
675
676	  Say N if unsure.
677
678config PSI_DEFAULT_DISABLED
679	bool "Require boot parameter to enable pressure stall information tracking"
680	default n
681	depends on PSI
682	help
683	  If set, pressure stall information tracking will be disabled
684	  per default but can be enabled through passing psi=1 on the
685	  kernel commandline during boot.
686
687	  This feature adds some code to the task wakeup and sleep
688	  paths of the scheduler. The overhead is too low to affect
689	  common scheduling-intense workloads in practice (such as
690	  webservers, memcache), but it does show up in artificial
691	  scheduler stress tests, such as hackbench.
692
693	  If you are paranoid and not sure what the kernel will be
694	  used for, say Y.
695
696	  Say N if unsure.
697
698endmenu # "CPU/Task time and stats accounting"
699
700config CPU_ISOLATION
701	bool "CPU isolation"
702	depends on SMP || COMPILE_TEST
703	default y
704	help
705	  Make sure that CPUs running critical tasks are not disturbed by
706	  any source of "noise" such as unbound workqueues, timers, kthreads...
707	  Unbound jobs get offloaded to housekeeping CPUs. This is driven by
708	  the "isolcpus=" boot parameter.
709
710	  Say Y if unsure.
711
712source "kernel/rcu/Kconfig"
713
714config IKCONFIG
715	tristate "Kernel .config support"
716	help
717	  This option enables the complete Linux kernel ".config" file
718	  contents to be saved in the kernel. It provides documentation
719	  of which kernel options are used in a running kernel or in an
720	  on-disk kernel.  This information can be extracted from the kernel
721	  image file with the script scripts/extract-ikconfig and used as
722	  input to rebuild the current kernel or to build another kernel.
723	  It can also be extracted from a running kernel by reading
724	  /proc/config.gz if enabled (below).
725
726config IKCONFIG_PROC
727	bool "Enable access to .config through /proc/config.gz"
728	depends on IKCONFIG && PROC_FS
729	help
730	  This option enables access to the kernel configuration file
731	  through /proc/config.gz.
732
733config IKHEADERS
734	tristate "Enable kernel headers through /sys/kernel/kheaders.tar.xz"
735	depends on SYSFS
736	help
737	  This option enables access to the in-kernel headers that are generated during
738	  the build process. These can be used to build eBPF tracing programs,
739	  or similar programs.  If you build the headers as a module, a module called
740	  kheaders.ko is built which can be loaded on-demand to get access to headers.
741
742config LOG_BUF_SHIFT
743	int "Kernel log buffer size (16 => 64KB, 17 => 128KB)"
744	range 12 25
745	default 17
746	depends on PRINTK
747	help
748	  Select the minimal kernel log buffer size as a power of 2.
749	  The final size is affected by LOG_CPU_MAX_BUF_SHIFT config
750	  parameter, see below. Any higher size also might be forced
751	  by "log_buf_len" boot parameter.
752
753	  Examples:
754		     17 => 128 KB
755		     16 => 64 KB
756		     15 => 32 KB
757		     14 => 16 KB
758		     13 =>  8 KB
759		     12 =>  4 KB
760
761config LOG_CPU_MAX_BUF_SHIFT
762	int "CPU kernel log buffer size contribution (13 => 8 KB, 17 => 128KB)"
763	depends on SMP
764	range 0 21
765	default 0 if BASE_SMALL
766	default 12
767	depends on PRINTK
768	help
769	  This option allows to increase the default ring buffer size
770	  according to the number of CPUs. The value defines the contribution
771	  of each CPU as a power of 2. The used space is typically only few
772	  lines however it might be much more when problems are reported,
773	  e.g. backtraces.
774
775	  The increased size means that a new buffer has to be allocated and
776	  the original static one is unused. It makes sense only on systems
777	  with more CPUs. Therefore this value is used only when the sum of
778	  contributions is greater than the half of the default kernel ring
779	  buffer as defined by LOG_BUF_SHIFT. The default values are set
780	  so that more than 16 CPUs are needed to trigger the allocation.
781
782	  Also this option is ignored when "log_buf_len" kernel parameter is
783	  used as it forces an exact (power of two) size of the ring buffer.
784
785	  The number of possible CPUs is used for this computation ignoring
786	  hotplugging making the computation optimal for the worst case
787	  scenario while allowing a simple algorithm to be used from bootup.
788
789	  Examples shift values and their meaning:
790		     17 => 128 KB for each CPU
791		     16 =>  64 KB for each CPU
792		     15 =>  32 KB for each CPU
793		     14 =>  16 KB for each CPU
794		     13 =>   8 KB for each CPU
795		     12 =>   4 KB for each CPU
796
797config PRINTK_INDEX
798	bool "Printk indexing debugfs interface"
799	depends on PRINTK && DEBUG_FS
800	help
801	  Add support for indexing of all printk formats known at compile time
802	  at <debugfs>/printk/index/<module>.
803
804	  This can be used as part of maintaining daemons which monitor
805	  /dev/kmsg, as it permits auditing the printk formats present in a
806	  kernel, allowing detection of cases where monitored printks are
807	  changed or no longer present.
808
809	  There is no additional runtime cost to printk with this enabled.
810
811#
812# Architectures with an unreliable sched_clock() should select this:
813#
814config HAVE_UNSTABLE_SCHED_CLOCK
815	bool
816
817config GENERIC_SCHED_CLOCK
818	bool
819
820menu "Scheduler features"
821
822config UCLAMP_TASK
823	bool "Enable utilization clamping for RT/FAIR tasks"
824	depends on CPU_FREQ_GOV_SCHEDUTIL
825	help
826	  This feature enables the scheduler to track the clamped utilization
827	  of each CPU based on RUNNABLE tasks scheduled on that CPU.
828
829	  With this option, the user can specify the min and max CPU
830	  utilization allowed for RUNNABLE tasks. The max utilization defines
831	  the maximum frequency a task should use while the min utilization
832	  defines the minimum frequency it should use.
833
834	  Both min and max utilization clamp values are hints to the scheduler,
835	  aiming at improving its frequency selection policy, but they do not
836	  enforce or grant any specific bandwidth for tasks.
837
838	  If in doubt, say N.
839
840config UCLAMP_BUCKETS_COUNT
841	int "Number of supported utilization clamp buckets"
842	range 5 20
843	default 5
844	depends on UCLAMP_TASK
845	help
846	  Defines the number of clamp buckets to use. The range of each bucket
847	  will be SCHED_CAPACITY_SCALE/UCLAMP_BUCKETS_COUNT. The higher the
848	  number of clamp buckets the finer their granularity and the higher
849	  the precision of clamping aggregation and tracking at run-time.
850
851	  For example, with the minimum configuration value we will have 5
852	  clamp buckets tracking 20% utilization each. A 25% boosted tasks will
853	  be refcounted in the [20..39]% bucket and will set the bucket clamp
854	  effective value to 25%.
855	  If a second 30% boosted task should be co-scheduled on the same CPU,
856	  that task will be refcounted in the same bucket of the first task and
857	  it will boost the bucket clamp effective value to 30%.
858	  The clamp effective value of a bucket is reset to its nominal value
859	  (20% in the example above) when there are no more tasks refcounted in
860	  that bucket.
861
862	  An additional boost/capping margin can be added to some tasks. In the
863	  example above the 25% task will be boosted to 30% until it exits the
864	  CPU. If that should be considered not acceptable on certain systems,
865	  it's always possible to reduce the margin by increasing the number of
866	  clamp buckets to trade off used memory for run-time tracking
867	  precision.
868
869	  If in doubt, use the default value.
870
871endmenu
872
873#
874# For architectures that want to enable the support for NUMA-affine scheduler
875# balancing logic:
876#
877config ARCH_SUPPORTS_NUMA_BALANCING
878	bool
879
880#
881# For architectures that prefer to flush all TLBs after a number of pages
882# are unmapped instead of sending one IPI per page to flush. The architecture
883# must provide guarantees on what happens if a clean TLB cache entry is
884# written after the unmap. Details are in mm/rmap.c near the check for
885# should_defer_flush. The architecture should also consider if the full flush
886# and the refill costs are offset by the savings of sending fewer IPIs.
887config ARCH_WANT_BATCHED_UNMAP_TLB_FLUSH
888	bool
889
890config CC_HAS_INT128
891	def_bool !$(cc-option,$(m64-flag) -D__SIZEOF_INT128__=0) && 64BIT
892
893config CC_IMPLICIT_FALLTHROUGH
894	string
895	default "-Wimplicit-fallthrough=5" if CC_IS_GCC && $(cc-option,-Wimplicit-fallthrough=5)
896	default "-Wimplicit-fallthrough" if CC_IS_CLANG && $(cc-option,-Wunreachable-code-fallthrough)
897
898# Currently, disable gcc-10+ array-bounds globally.
899# It's still broken in gcc-13, so no upper bound yet.
900config GCC10_NO_ARRAY_BOUNDS
901	def_bool y
902
903config CC_NO_ARRAY_BOUNDS
904	bool
905	default y if CC_IS_GCC && GCC_VERSION >= 90000 && GCC10_NO_ARRAY_BOUNDS
906
907# Currently, disable -Wstringop-overflow for GCC globally.
908config GCC_NO_STRINGOP_OVERFLOW
909	def_bool y
910
911config CC_NO_STRINGOP_OVERFLOW
912	bool
913	default y if CC_IS_GCC && GCC_NO_STRINGOP_OVERFLOW
914
915config CC_STRINGOP_OVERFLOW
916	bool
917	default y if CC_IS_GCC && !CC_NO_STRINGOP_OVERFLOW
918
919#
920# For architectures that know their GCC __int128 support is sound
921#
922config ARCH_SUPPORTS_INT128
923	bool
924
925# For architectures that (ab)use NUMA to represent different memory regions
926# all cpu-local but of different latencies, such as SuperH.
927#
928config ARCH_WANT_NUMA_VARIABLE_LOCALITY
929	bool
930
931config NUMA_BALANCING
932	bool "Memory placement aware NUMA scheduler"
933	depends on ARCH_SUPPORTS_NUMA_BALANCING
934	depends on !ARCH_WANT_NUMA_VARIABLE_LOCALITY
935	depends on SMP && NUMA && MIGRATION && !PREEMPT_RT
936	help
937	  This option adds support for automatic NUMA aware memory/task placement.
938	  The mechanism is quite primitive and is based on migrating memory when
939	  it has references to the node the task is running on.
940
941	  This system will be inactive on UMA systems.
942
943config NUMA_BALANCING_DEFAULT_ENABLED
944	bool "Automatically enable NUMA aware memory/task placement"
945	default y
946	depends on NUMA_BALANCING
947	help
948	  If set, automatic NUMA balancing will be enabled if running on a NUMA
949	  machine.
950
951config SLAB_OBJ_EXT
952	bool
953
954menuconfig CGROUPS
955	bool "Control Group support"
956	select KERNFS
957	help
958	  This option adds support for grouping sets of processes together, for
959	  use with process control subsystems such as Cpusets, CFS, memory
960	  controls or device isolation.
961	  See
962		- Documentation/scheduler/sched-design-CFS.rst	(CFS)
963		- Documentation/admin-guide/cgroup-v1/ (features for grouping, isolation
964					  and resource control)
965
966	  Say N if unsure.
967
968if CGROUPS
969
970config PAGE_COUNTER
971	bool
972
973config CGROUP_FAVOR_DYNMODS
974        bool "Favor dynamic modification latency reduction by default"
975        help
976          This option enables the "favordynmods" mount option by default
977          which reduces the latencies of dynamic cgroup modifications such
978          as task migrations and controller on/offs at the cost of making
979          hot path operations such as forks and exits more expensive.
980
981          Say N if unsure.
982
983config MEMCG
984	bool "Memory controller"
985	select PAGE_COUNTER
986	select EVENTFD
987	select SLAB_OBJ_EXT
988	help
989	  Provides control over the memory footprint of tasks in a cgroup.
990
991config MEMCG_V1
992	bool "Legacy cgroup v1 memory controller"
993	depends on MEMCG
994	default n
995	help
996	  Legacy cgroup v1 memory controller which has been deprecated by
997	  cgroup v2 implementation. The v1 is there for legacy applications
998	  which haven't migrated to the new cgroup v2 interface yet. If you
999	  do not have any such application then you are completely fine leaving
1000	  this option disabled.
1001
1002	  Please note that feature set of the legacy memory controller is likely
1003	  going to shrink due to deprecation process. New deployments with v1
1004	  controller are highly discouraged.
1005
1006	  Say N if unsure.
1007
1008config BLK_CGROUP
1009	bool "IO controller"
1010	depends on BLOCK
1011	default n
1012	help
1013	Generic block IO controller cgroup interface. This is the common
1014	cgroup interface which should be used by various IO controlling
1015	policies.
1016
1017	Currently, CFQ IO scheduler uses it to recognize task groups and
1018	control disk bandwidth allocation (proportional time slice allocation)
1019	to such task groups. It is also used by bio throttling logic in
1020	block layer to implement upper limit in IO rates on a device.
1021
1022	This option only enables generic Block IO controller infrastructure.
1023	One needs to also enable actual IO controlling logic/policy. For
1024	enabling proportional weight division of disk bandwidth in CFQ, set
1025	CONFIG_BFQ_GROUP_IOSCHED=y; for enabling throttling policy, set
1026	CONFIG_BLK_DEV_THROTTLING=y.
1027
1028	See Documentation/admin-guide/cgroup-v1/blkio-controller.rst for more information.
1029
1030config CGROUP_WRITEBACK
1031	bool
1032	depends on MEMCG && BLK_CGROUP
1033	default y
1034
1035menuconfig CGROUP_SCHED
1036	bool "CPU controller"
1037	default n
1038	help
1039	  This feature lets CPU scheduler recognize task groups and control CPU
1040	  bandwidth allocation to such task groups. It uses cgroups to group
1041	  tasks.
1042
1043if CGROUP_SCHED
1044config GROUP_SCHED_WEIGHT
1045	def_bool n
1046
1047config FAIR_GROUP_SCHED
1048	bool "Group scheduling for SCHED_OTHER"
1049	depends on CGROUP_SCHED
1050	select GROUP_SCHED_WEIGHT
1051	default CGROUP_SCHED
1052
1053config CFS_BANDWIDTH
1054	bool "CPU bandwidth provisioning for FAIR_GROUP_SCHED"
1055	depends on FAIR_GROUP_SCHED
1056	default n
1057	help
1058	  This option allows users to define CPU bandwidth rates (limits) for
1059	  tasks running within the fair group scheduler.  Groups with no limit
1060	  set are considered to be unconstrained and will run with no
1061	  restriction.
1062	  See Documentation/scheduler/sched-bwc.rst for more information.
1063
1064config RT_GROUP_SCHED
1065	bool "Group scheduling for SCHED_RR/FIFO"
1066	depends on CGROUP_SCHED
1067	default n
1068	help
1069	  This feature lets you explicitly allocate real CPU bandwidth
1070	  to task groups. If enabled, it will also make it impossible to
1071	  schedule realtime tasks for non-root users until you allocate
1072	  realtime bandwidth for them.
1073	  See Documentation/scheduler/sched-rt-group.rst for more information.
1074
1075config EXT_GROUP_SCHED
1076	bool
1077	depends on SCHED_CLASS_EXT && CGROUP_SCHED
1078	select GROUP_SCHED_WEIGHT
1079	default y
1080
1081endif #CGROUP_SCHED
1082
1083config SCHED_MM_CID
1084	def_bool y
1085	depends on SMP && RSEQ
1086
1087config UCLAMP_TASK_GROUP
1088	bool "Utilization clamping per group of tasks"
1089	depends on CGROUP_SCHED
1090	depends on UCLAMP_TASK
1091	default n
1092	help
1093	  This feature enables the scheduler to track the clamped utilization
1094	  of each CPU based on RUNNABLE tasks currently scheduled on that CPU.
1095
1096	  When this option is enabled, the user can specify a min and max
1097	  CPU bandwidth which is allowed for each single task in a group.
1098	  The max bandwidth allows to clamp the maximum frequency a task
1099	  can use, while the min bandwidth allows to define a minimum
1100	  frequency a task will always use.
1101
1102	  When task group based utilization clamping is enabled, an eventually
1103	  specified task-specific clamp value is constrained by the cgroup
1104	  specified clamp value. Both minimum and maximum task clamping cannot
1105	  be bigger than the corresponding clamping defined at task group level.
1106
1107	  If in doubt, say N.
1108
1109config CGROUP_PIDS
1110	bool "PIDs controller"
1111	help
1112	  Provides enforcement of process number limits in the scope of a
1113	  cgroup. Any attempt to fork more processes than is allowed in the
1114	  cgroup will fail. PIDs are fundamentally a global resource because it
1115	  is fairly trivial to reach PID exhaustion before you reach even a
1116	  conservative kmemcg limit. As a result, it is possible to grind a
1117	  system to halt without being limited by other cgroup policies. The
1118	  PIDs controller is designed to stop this from happening.
1119
1120	  It should be noted that organisational operations (such as attaching
1121	  to a cgroup hierarchy) will *not* be blocked by the PIDs controller,
1122	  since the PIDs limit only affects a process's ability to fork, not to
1123	  attach to a cgroup.
1124
1125config CGROUP_RDMA
1126	bool "RDMA controller"
1127	help
1128	  Provides enforcement of RDMA resources defined by IB stack.
1129	  It is fairly easy for consumers to exhaust RDMA resources, which
1130	  can result into resource unavailability to other consumers.
1131	  RDMA controller is designed to stop this from happening.
1132	  Attaching processes with active RDMA resources to the cgroup
1133	  hierarchy is allowed even if can cross the hierarchy's limit.
1134
1135config CGROUP_FREEZER
1136	bool "Freezer controller"
1137	help
1138	  Provides a way to freeze and unfreeze all tasks in a
1139	  cgroup.
1140
1141	  This option affects the ORIGINAL cgroup interface. The cgroup2 memory
1142	  controller includes important in-kernel memory consumers per default.
1143
1144	  If you're using cgroup2, say N.
1145
1146config CGROUP_HUGETLB
1147	bool "HugeTLB controller"
1148	depends on HUGETLB_PAGE
1149	select PAGE_COUNTER
1150	default n
1151	help
1152	  Provides a cgroup controller for HugeTLB pages.
1153	  When you enable this, you can put a per cgroup limit on HugeTLB usage.
1154	  The limit is enforced during page fault. Since HugeTLB doesn't
1155	  support page reclaim, enforcing the limit at page fault time implies
1156	  that, the application will get SIGBUS signal if it tries to access
1157	  HugeTLB pages beyond its limit. This requires the application to know
1158	  beforehand how much HugeTLB pages it would require for its use. The
1159	  control group is tracked in the third page lru pointer. This means
1160	  that we cannot use the controller with huge page less than 3 pages.
1161
1162config CPUSETS
1163	bool "Cpuset controller"
1164	depends on SMP
1165	help
1166	  This option will let you create and manage CPUSETs which
1167	  allow dynamically partitioning a system into sets of CPUs and
1168	  Memory Nodes and assigning tasks to run only within those sets.
1169	  This is primarily useful on large SMP or NUMA systems.
1170
1171	  Say N if unsure.
1172
1173config CPUSETS_V1
1174	bool "Legacy cgroup v1 cpusets controller"
1175	depends on CPUSETS
1176	default n
1177	help
1178	  Legacy cgroup v1 cpusets controller which has been deprecated by
1179	  cgroup v2 implementation. The v1 is there for legacy applications
1180	  which haven't migrated to the new cgroup v2 interface yet. If you
1181	  do not have any such application then you are completely fine leaving
1182	  this option disabled.
1183
1184	  Say N if unsure.
1185
1186config PROC_PID_CPUSET
1187	bool "Include legacy /proc/<pid>/cpuset file"
1188	depends on CPUSETS
1189	default y
1190
1191config CGROUP_DEVICE
1192	bool "Device controller"
1193	help
1194	  Provides a cgroup controller implementing whitelists for
1195	  devices which a process in the cgroup can mknod or open.
1196
1197config CGROUP_CPUACCT
1198	bool "Simple CPU accounting controller"
1199	help
1200	  Provides a simple controller for monitoring the
1201	  total CPU consumed by the tasks in a cgroup.
1202
1203config CGROUP_PERF
1204	bool "Perf controller"
1205	depends on PERF_EVENTS
1206	help
1207	  This option extends the perf per-cpu mode to restrict monitoring
1208	  to threads which belong to the cgroup specified and run on the
1209	  designated cpu.  Or this can be used to have cgroup ID in samples
1210	  so that it can monitor performance events among cgroups.
1211
1212	  Say N if unsure.
1213
1214config CGROUP_BPF
1215	bool "Support for eBPF programs attached to cgroups"
1216	depends on BPF_SYSCALL
1217	select SOCK_CGROUP_DATA
1218	help
1219	  Allow attaching eBPF programs to a cgroup using the bpf(2)
1220	  syscall command BPF_PROG_ATTACH.
1221
1222	  In which context these programs are accessed depends on the type
1223	  of attachment. For instance, programs that are attached using
1224	  BPF_CGROUP_INET_INGRESS will be executed on the ingress path of
1225	  inet sockets.
1226
1227config CGROUP_MISC
1228	bool "Misc resource controller"
1229	default n
1230	help
1231	  Provides a controller for miscellaneous resources on a host.
1232
1233	  Miscellaneous scalar resources are the resources on the host system
1234	  which cannot be abstracted like the other cgroups. This controller
1235	  tracks and limits the miscellaneous resources used by a process
1236	  attached to a cgroup hierarchy.
1237
1238	  For more information, please check misc cgroup section in
1239	  /Documentation/admin-guide/cgroup-v2.rst.
1240
1241config CGROUP_DEBUG
1242	bool "Debug controller"
1243	default n
1244	depends on DEBUG_KERNEL
1245	help
1246	  This option enables a simple controller that exports
1247	  debugging information about the cgroups framework. This
1248	  controller is for control cgroup debugging only. Its
1249	  interfaces are not stable.
1250
1251	  Say N.
1252
1253config SOCK_CGROUP_DATA
1254	bool
1255	default n
1256
1257endif # CGROUPS
1258
1259menuconfig NAMESPACES
1260	bool "Namespaces support" if EXPERT
1261	depends on MULTIUSER
1262	default !EXPERT
1263	help
1264	  Provides the way to make tasks work with different objects using
1265	  the same id. For example same IPC id may refer to different objects
1266	  or same user id or pid may refer to different tasks when used in
1267	  different namespaces.
1268
1269if NAMESPACES
1270
1271config UTS_NS
1272	bool "UTS namespace"
1273	default y
1274	help
1275	  In this namespace tasks see different info provided with the
1276	  uname() system call
1277
1278config TIME_NS
1279	bool "TIME namespace"
1280	depends on GENERIC_VDSO_TIME_NS
1281	default y
1282	help
1283	  In this namespace boottime and monotonic clocks can be set.
1284	  The time will keep going with the same pace.
1285
1286config IPC_NS
1287	bool "IPC namespace"
1288	depends on (SYSVIPC || POSIX_MQUEUE)
1289	default y
1290	help
1291	  In this namespace tasks work with IPC ids which correspond to
1292	  different IPC objects in different namespaces.
1293
1294config USER_NS
1295	bool "User namespace"
1296	default n
1297	help
1298	  This allows containers, i.e. vservers, to use user namespaces
1299	  to provide different user info for different servers.
1300
1301	  When user namespaces are enabled in the kernel it is
1302	  recommended that the MEMCG option also be enabled and that
1303	  user-space use the memory control groups to limit the amount
1304	  of memory a memory unprivileged users can use.
1305
1306	  If unsure, say N.
1307
1308config PID_NS
1309	bool "PID Namespaces"
1310	default y
1311	help
1312	  Support process id namespaces.  This allows having multiple
1313	  processes with the same pid as long as they are in different
1314	  pid namespaces.  This is a building block of containers.
1315
1316config NET_NS
1317	bool "Network namespace"
1318	depends on NET
1319	default y
1320	help
1321	  Allow user space to create what appear to be multiple instances
1322	  of the network stack.
1323
1324endif # NAMESPACES
1325
1326config CHECKPOINT_RESTORE
1327	bool "Checkpoint/restore support"
1328	depends on PROC_FS
1329	select PROC_CHILDREN
1330	select KCMP
1331	default n
1332	help
1333	  Enables additional kernel features in a sake of checkpoint/restore.
1334	  In particular it adds auxiliary prctl codes to setup process text,
1335	  data and heap segment sizes, and a few additional /proc filesystem
1336	  entries.
1337
1338	  If unsure, say N here.
1339
1340config SCHED_AUTOGROUP
1341	bool "Automatic process group scheduling"
1342	select CGROUPS
1343	select CGROUP_SCHED
1344	select FAIR_GROUP_SCHED
1345	help
1346	  This option optimizes the scheduler for common desktop workloads by
1347	  automatically creating and populating task groups.  This separation
1348	  of workloads isolates aggressive CPU burners (like build jobs) from
1349	  desktop applications.  Task group autogeneration is currently based
1350	  upon task session.
1351
1352config RELAY
1353	bool "Kernel->user space relay support (formerly relayfs)"
1354	select IRQ_WORK
1355	help
1356	  This option enables support for relay interface support in
1357	  certain file systems (such as debugfs).
1358	  It is designed to provide an efficient mechanism for tools and
1359	  facilities to relay large amounts of data from kernel space to
1360	  user space.
1361
1362	  If unsure, say N.
1363
1364config BLK_DEV_INITRD
1365	bool "Initial RAM filesystem and RAM disk (initramfs/initrd) support"
1366	help
1367	  The initial RAM filesystem is a ramfs which is loaded by the
1368	  boot loader (loadlin or lilo) and that is mounted as root
1369	  before the normal boot procedure. It is typically used to
1370	  load modules needed to mount the "real" root file system,
1371	  etc. See <file:Documentation/admin-guide/initrd.rst> for details.
1372
1373	  If RAM disk support (BLK_DEV_RAM) is also included, this
1374	  also enables initial RAM disk (initrd) support and adds
1375	  15 Kbytes (more on some other architectures) to the kernel size.
1376
1377	  If unsure say Y.
1378
1379if BLK_DEV_INITRD
1380
1381source "usr/Kconfig"
1382
1383endif
1384
1385config BOOT_CONFIG
1386	bool "Boot config support"
1387	select BLK_DEV_INITRD if !BOOT_CONFIG_EMBED
1388	help
1389	  Extra boot config allows system admin to pass a config file as
1390	  complemental extension of kernel cmdline when booting.
1391	  The boot config file must be attached at the end of initramfs
1392	  with checksum, size and magic word.
1393	  See <file:Documentation/admin-guide/bootconfig.rst> for details.
1394
1395	  If unsure, say Y.
1396
1397config BOOT_CONFIG_FORCE
1398	bool "Force unconditional bootconfig processing"
1399	depends on BOOT_CONFIG
1400	default y if BOOT_CONFIG_EMBED
1401	help
1402	  With this Kconfig option set, BOOT_CONFIG processing is carried
1403	  out even when the "bootconfig" kernel-boot parameter is omitted.
1404	  In fact, with this Kconfig option set, there is no way to
1405	  make the kernel ignore the BOOT_CONFIG-supplied kernel-boot
1406	  parameters.
1407
1408	  If unsure, say N.
1409
1410config BOOT_CONFIG_EMBED
1411	bool "Embed bootconfig file in the kernel"
1412	depends on BOOT_CONFIG
1413	help
1414	  Embed a bootconfig file given by BOOT_CONFIG_EMBED_FILE in the
1415	  kernel. Usually, the bootconfig file is loaded with the initrd
1416	  image. But if the system doesn't support initrd, this option will
1417	  help you by embedding a bootconfig file while building the kernel.
1418
1419	  If unsure, say N.
1420
1421config BOOT_CONFIG_EMBED_FILE
1422	string "Embedded bootconfig file path"
1423	depends on BOOT_CONFIG_EMBED
1424	help
1425	  Specify a bootconfig file which will be embedded to the kernel.
1426	  This bootconfig will be used if there is no initrd or no other
1427	  bootconfig in the initrd.
1428
1429config INITRAMFS_PRESERVE_MTIME
1430	bool "Preserve cpio archive mtimes in initramfs"
1431	default y
1432	help
1433	  Each entry in an initramfs cpio archive carries an mtime value. When
1434	  enabled, extracted cpio items take this mtime, with directory mtime
1435	  setting deferred until after creation of any child entries.
1436
1437	  If unsure, say Y.
1438
1439choice
1440	prompt "Compiler optimization level"
1441	default CC_OPTIMIZE_FOR_PERFORMANCE
1442
1443config CC_OPTIMIZE_FOR_PERFORMANCE
1444	bool "Optimize for performance (-O2)"
1445	help
1446	  This is the default optimization level for the kernel, building
1447	  with the "-O2" compiler flag for best performance and most
1448	  helpful compile-time warnings.
1449
1450config CC_OPTIMIZE_FOR_SIZE
1451	bool "Optimize for size (-Os)"
1452	help
1453	  Choosing this option will pass "-Os" to your compiler resulting
1454	  in a smaller kernel.
1455
1456endchoice
1457
1458config HAVE_LD_DEAD_CODE_DATA_ELIMINATION
1459	bool
1460	help
1461	  This requires that the arch annotates or otherwise protects
1462	  its external entry points from being discarded. Linker scripts
1463	  must also merge .text.*, .data.*, and .bss.* correctly into
1464	  output sections. Care must be taken not to pull in unrelated
1465	  sections (e.g., '.text.init'). Typically '.' in section names
1466	  is used to distinguish them from label names / C identifiers.
1467
1468config LD_DEAD_CODE_DATA_ELIMINATION
1469	bool "Dead code and data elimination (EXPERIMENTAL)"
1470	depends on HAVE_LD_DEAD_CODE_DATA_ELIMINATION
1471	depends on EXPERT
1472	depends on $(cc-option,-ffunction-sections -fdata-sections)
1473	depends on $(ld-option,--gc-sections)
1474	help
1475	  Enable this if you want to do dead code and data elimination with
1476	  the linker by compiling with -ffunction-sections -fdata-sections,
1477	  and linking with --gc-sections.
1478
1479	  This can reduce on disk and in-memory size of the kernel
1480	  code and static data, particularly for small configs and
1481	  on small systems. This has the possibility of introducing
1482	  silently broken kernel if the required annotations are not
1483	  present. This option is not well tested yet, so use at your
1484	  own risk.
1485
1486config LD_ORPHAN_WARN
1487	def_bool y
1488	depends on ARCH_WANT_LD_ORPHAN_WARN
1489	depends on $(ld-option,--orphan-handling=warn)
1490	depends on $(ld-option,--orphan-handling=error)
1491
1492config LD_ORPHAN_WARN_LEVEL
1493        string
1494        depends on LD_ORPHAN_WARN
1495        default "error" if WERROR
1496        default "warn"
1497
1498config SYSCTL
1499	bool
1500
1501config HAVE_UID16
1502	bool
1503
1504config SYSCTL_EXCEPTION_TRACE
1505	bool
1506	help
1507	  Enable support for /proc/sys/debug/exception-trace.
1508
1509config SYSCTL_ARCH_UNALIGN_NO_WARN
1510	bool
1511	help
1512	  Enable support for /proc/sys/kernel/ignore-unaligned-usertrap
1513	  Allows arch to define/use @no_unaligned_warning to possibly warn
1514	  about unaligned access emulation going on under the hood.
1515
1516config SYSCTL_ARCH_UNALIGN_ALLOW
1517	bool
1518	help
1519	  Enable support for /proc/sys/kernel/unaligned-trap
1520	  Allows arches to define/use @unaligned_enabled to runtime toggle
1521	  the unaligned access emulation.
1522	  see arch/parisc/kernel/unaligned.c for reference
1523
1524config HAVE_PCSPKR_PLATFORM
1525	bool
1526
1527menuconfig EXPERT
1528	bool "Configure standard kernel features (expert users)"
1529	# Unhide debug options, to make the on-by-default options visible
1530	select DEBUG_KERNEL
1531	help
1532	  This option allows certain base kernel options and settings
1533	  to be disabled or tweaked. This is for specialized
1534	  environments which can tolerate a "non-standard" kernel.
1535	  Only use this if you really know what you are doing.
1536
1537config UID16
1538	bool "Enable 16-bit UID system calls" if EXPERT
1539	depends on HAVE_UID16 && MULTIUSER
1540	default y
1541	help
1542	  This enables the legacy 16-bit UID syscall wrappers.
1543
1544config MULTIUSER
1545	bool "Multiple users, groups and capabilities support" if EXPERT
1546	default y
1547	help
1548	  This option enables support for non-root users, groups and
1549	  capabilities.
1550
1551	  If you say N here, all processes will run with UID 0, GID 0, and all
1552	  possible capabilities.  Saying N here also compiles out support for
1553	  system calls related to UIDs, GIDs, and capabilities, such as setuid,
1554	  setgid, and capset.
1555
1556	  If unsure, say Y here.
1557
1558config SGETMASK_SYSCALL
1559	bool "sgetmask/ssetmask syscalls support" if EXPERT
1560	default PARISC || M68K || PPC || MIPS || X86 || SPARC || MICROBLAZE || SUPERH
1561	help
1562	  sys_sgetmask and sys_ssetmask are obsolete system calls
1563	  no longer supported in libc but still enabled by default in some
1564	  architectures.
1565
1566	  If unsure, leave the default option here.
1567
1568config SYSFS_SYSCALL
1569	bool "Sysfs syscall support" if EXPERT
1570	default y
1571	help
1572	  sys_sysfs is an obsolete system call no longer supported in libc.
1573	  Note that disabling this option is more secure but might break
1574	  compatibility with some systems.
1575
1576	  If unsure say Y here.
1577
1578config FHANDLE
1579	bool "open by fhandle syscalls" if EXPERT
1580	select EXPORTFS
1581	default y
1582	help
1583	  If you say Y here, a user level program will be able to map
1584	  file names to handle and then later use the handle for
1585	  different file system operations. This is useful in implementing
1586	  userspace file servers, which now track files using handles instead
1587	  of names. The handle would remain the same even if file names
1588	  get renamed. Enables open_by_handle_at(2) and name_to_handle_at(2)
1589	  syscalls.
1590
1591config POSIX_TIMERS
1592	bool "Posix Clocks & timers" if EXPERT
1593	default y
1594	help
1595	  This includes native support for POSIX timers to the kernel.
1596	  Some embedded systems have no use for them and therefore they
1597	  can be configured out to reduce the size of the kernel image.
1598
1599	  When this option is disabled, the following syscalls won't be
1600	  available: timer_create, timer_gettime: timer_getoverrun,
1601	  timer_settime, timer_delete, clock_adjtime, getitimer,
1602	  setitimer, alarm. Furthermore, the clock_settime, clock_gettime,
1603	  clock_getres and clock_nanosleep syscalls will be limited to
1604	  CLOCK_REALTIME, CLOCK_MONOTONIC and CLOCK_BOOTTIME only.
1605
1606	  If unsure say y.
1607
1608config PRINTK
1609	default y
1610	bool "Enable support for printk" if EXPERT
1611	select IRQ_WORK
1612	help
1613	  This option enables normal printk support. Removing it
1614	  eliminates most of the message strings from the kernel image
1615	  and makes the kernel more or less silent. As this makes it
1616	  very difficult to diagnose system problems, saying N here is
1617	  strongly discouraged.
1618
1619config BUG
1620	bool "BUG() support" if EXPERT
1621	default y
1622	help
1623	  Disabling this option eliminates support for BUG and WARN, reducing
1624	  the size of your kernel image and potentially quietly ignoring
1625	  numerous fatal conditions. You should only consider disabling this
1626	  option for embedded systems with no facilities for reporting errors.
1627	  Just say Y.
1628
1629config ELF_CORE
1630	depends on COREDUMP
1631	default y
1632	bool "Enable ELF core dumps" if EXPERT
1633	help
1634	  Enable support for generating core dumps. Disabling saves about 4k.
1635
1636
1637config PCSPKR_PLATFORM
1638	bool "Enable PC-Speaker support" if EXPERT
1639	depends on HAVE_PCSPKR_PLATFORM
1640	select I8253_LOCK
1641	default y
1642	help
1643	  This option allows to disable the internal PC-Speaker
1644	  support, saving some memory.
1645
1646config BASE_SMALL
1647	bool "Enable smaller-sized data structures for core" if EXPERT
1648	help
1649	  Enabling this option reduces the size of miscellaneous core
1650	  kernel data structures. This saves memory on small machines,
1651	  but may reduce performance.
1652
1653config FUTEX
1654	bool "Enable futex support" if EXPERT
1655	depends on !(SPARC32 && SMP)
1656	default y
1657	imply RT_MUTEXES
1658	help
1659	  Disabling this option will cause the kernel to be built without
1660	  support for "fast userspace mutexes".  The resulting kernel may not
1661	  run glibc-based applications correctly.
1662
1663config FUTEX_PI
1664	bool
1665	depends on FUTEX && RT_MUTEXES
1666	default y
1667
1668config EPOLL
1669	bool "Enable eventpoll support" if EXPERT
1670	default y
1671	help
1672	  Disabling this option will cause the kernel to be built without
1673	  support for epoll family of system calls.
1674
1675config SIGNALFD
1676	bool "Enable signalfd() system call" if EXPERT
1677	default y
1678	help
1679	  Enable the signalfd() system call that allows to receive signals
1680	  on a file descriptor.
1681
1682	  If unsure, say Y.
1683
1684config TIMERFD
1685	bool "Enable timerfd() system call" if EXPERT
1686	default y
1687	help
1688	  Enable the timerfd() system call that allows to receive timer
1689	  events on a file descriptor.
1690
1691	  If unsure, say Y.
1692
1693config EVENTFD
1694	bool "Enable eventfd() system call" if EXPERT
1695	default y
1696	help
1697	  Enable the eventfd() system call that allows to receive both
1698	  kernel notification (ie. KAIO) or userspace notifications.
1699
1700	  If unsure, say Y.
1701
1702config SHMEM
1703	bool "Use full shmem filesystem" if EXPERT
1704	default y
1705	depends on MMU
1706	help
1707	  The shmem is an internal filesystem used to manage shared memory.
1708	  It is backed by swap and manages resource limits. It is also exported
1709	  to userspace as tmpfs if TMPFS is enabled. Disabling this
1710	  option replaces shmem and tmpfs with the much simpler ramfs code,
1711	  which may be appropriate on small systems without swap.
1712
1713config AIO
1714	bool "Enable AIO support" if EXPERT
1715	default y
1716	help
1717	  This option enables POSIX asynchronous I/O which may by used
1718	  by some high performance threaded applications. Disabling
1719	  this option saves about 7k.
1720
1721config IO_URING
1722	bool "Enable IO uring support" if EXPERT
1723	select IO_WQ
1724	default y
1725	help
1726	  This option enables support for the io_uring interface, enabling
1727	  applications to submit and complete IO through submission and
1728	  completion rings that are shared between the kernel and application.
1729
1730config GCOV_PROFILE_URING
1731	bool "Enable GCOV profiling on the io_uring subsystem"
1732	depends on GCOV_KERNEL
1733	help
1734	  Enable GCOV profiling on the io_uring subsystem, to facilitate
1735	  code coverage testing.
1736
1737	  If unsure, say N.
1738
1739	  Note that this will have a negative impact on the performance of
1740	  the io_uring subsystem, hence this should only be enabled for
1741	  specific test purposes.
1742
1743config ADVISE_SYSCALLS
1744	bool "Enable madvise/fadvise syscalls" if EXPERT
1745	default y
1746	help
1747	  This option enables the madvise and fadvise syscalls, used by
1748	  applications to advise the kernel about their future memory or file
1749	  usage, improving performance. If building an embedded system where no
1750	  applications use these syscalls, you can disable this option to save
1751	  space.
1752
1753config MEMBARRIER
1754	bool "Enable membarrier() system call" if EXPERT
1755	default y
1756	help
1757	  Enable the membarrier() system call that allows issuing memory
1758	  barriers across all running threads, which can be used to distribute
1759	  the cost of user-space memory barriers asymmetrically by transforming
1760	  pairs of memory barriers into pairs consisting of membarrier() and a
1761	  compiler barrier.
1762
1763	  If unsure, say Y.
1764
1765config KCMP
1766	bool "Enable kcmp() system call" if EXPERT
1767	help
1768	  Enable the kernel resource comparison system call. It provides
1769	  user-space with the ability to compare two processes to see if they
1770	  share a common resource, such as a file descriptor or even virtual
1771	  memory space.
1772
1773	  If unsure, say N.
1774
1775config RSEQ
1776	bool "Enable rseq() system call" if EXPERT
1777	default y
1778	depends on HAVE_RSEQ
1779	select MEMBARRIER
1780	help
1781	  Enable the restartable sequences system call. It provides a
1782	  user-space cache for the current CPU number value, which
1783	  speeds up getting the current CPU number from user-space,
1784	  as well as an ABI to speed up user-space operations on
1785	  per-CPU data.
1786
1787	  If unsure, say Y.
1788
1789config DEBUG_RSEQ
1790	default n
1791	bool "Enable debugging of rseq() system call" if EXPERT
1792	depends on RSEQ && DEBUG_KERNEL
1793	help
1794	  Enable extra debugging checks for the rseq system call.
1795
1796	  If unsure, say N.
1797
1798config CACHESTAT_SYSCALL
1799	bool "Enable cachestat() system call" if EXPERT
1800	default y
1801	help
1802	  Enable the cachestat system call, which queries the page cache
1803	  statistics of a file (number of cached pages, dirty pages,
1804	  pages marked for writeback, (recently) evicted pages).
1805
1806	  If unsure say Y here.
1807
1808config PC104
1809	bool "PC/104 support" if EXPERT
1810	help
1811	  Expose PC/104 form factor device drivers and options available for
1812	  selection and configuration. Enable this option if your target
1813	  machine has a PC/104 bus.
1814
1815config KALLSYMS
1816	bool "Load all symbols for debugging/ksymoops" if EXPERT
1817	default y
1818	help
1819	  Say Y here to let the kernel print out symbolic crash information and
1820	  symbolic stack backtraces. This increases the size of the kernel
1821	  somewhat, as all symbols have to be loaded into the kernel image.
1822
1823config KALLSYMS_SELFTEST
1824	bool "Test the basic functions and performance of kallsyms"
1825	depends on KALLSYMS
1826	default n
1827	help
1828	  Test the basic functions and performance of some interfaces, such as
1829	  kallsyms_lookup_name. It also calculates the compression rate of the
1830	  kallsyms compression algorithm for the current symbol set.
1831
1832	  Start self-test automatically after system startup. Suggest executing
1833	  "dmesg | grep kallsyms_selftest" to collect test results. "finish" is
1834	  displayed in the last line, indicating that the test is complete.
1835
1836config KALLSYMS_ALL
1837	bool "Include all symbols in kallsyms"
1838	depends on DEBUG_KERNEL && KALLSYMS
1839	help
1840	  Normally kallsyms only contains the symbols of functions for nicer
1841	  OOPS messages and backtraces (i.e., symbols from the text and inittext
1842	  sections). This is sufficient for most cases. And only if you want to
1843	  enable kernel live patching, or other less common use cases (e.g.,
1844	  when a debugger is used) all symbols are required (i.e., names of
1845	  variables from the data sections, etc).
1846
1847	  This option makes sure that all symbols are loaded into the kernel
1848	  image (i.e., symbols from all sections) in cost of increased kernel
1849	  size (depending on the kernel configuration, it may be 300KiB or
1850	  something like this).
1851
1852	  Say N unless you really need all symbols, or kernel live patching.
1853
1854config KALLSYMS_ABSOLUTE_PERCPU
1855	bool
1856	depends on KALLSYMS
1857	default X86_64 && SMP
1858
1859# end of the "standard kernel features (expert users)" menu
1860
1861config ARCH_HAS_MEMBARRIER_CALLBACKS
1862	bool
1863
1864config ARCH_HAS_MEMBARRIER_SYNC_CORE
1865	bool
1866
1867config HAVE_PERF_EVENTS
1868	bool
1869	help
1870	  See tools/perf/design.txt for details.
1871
1872config GUEST_PERF_EVENTS
1873	bool
1874	depends on HAVE_PERF_EVENTS
1875
1876config PERF_USE_VMALLOC
1877	bool
1878	help
1879	  See tools/perf/design.txt for details
1880
1881menu "Kernel Performance Events And Counters"
1882
1883config PERF_EVENTS
1884	bool "Kernel performance events and counters"
1885	default y if PROFILING
1886	depends on HAVE_PERF_EVENTS
1887	select IRQ_WORK
1888	help
1889	  Enable kernel support for various performance events provided
1890	  by software and hardware.
1891
1892	  Software events are supported either built-in or via the
1893	  use of generic tracepoints.
1894
1895	  Most modern CPUs support performance events via performance
1896	  counter registers. These registers count the number of certain
1897	  types of hw events: such as instructions executed, cachemisses
1898	  suffered, or branches mis-predicted - without slowing down the
1899	  kernel or applications. These registers can also trigger interrupts
1900	  when a threshold number of events have passed - and can thus be
1901	  used to profile the code that runs on that CPU.
1902
1903	  The Linux Performance Event subsystem provides an abstraction of
1904	  these software and hardware event capabilities, available via a
1905	  system call and used by the "perf" utility in tools/perf/. It
1906	  provides per task and per CPU counters, and it provides event
1907	  capabilities on top of those.
1908
1909	  Say Y if unsure.
1910
1911config DEBUG_PERF_USE_VMALLOC
1912	default n
1913	bool "Debug: use vmalloc to back perf mmap() buffers"
1914	depends on PERF_EVENTS && DEBUG_KERNEL && !PPC
1915	select PERF_USE_VMALLOC
1916	help
1917	  Use vmalloc memory to back perf mmap() buffers.
1918
1919	  Mostly useful for debugging the vmalloc code on platforms
1920	  that don't require it.
1921
1922	  Say N if unsure.
1923
1924endmenu
1925
1926config SYSTEM_DATA_VERIFICATION
1927	def_bool n
1928	select SYSTEM_TRUSTED_KEYRING
1929	select KEYS
1930	select CRYPTO
1931	select CRYPTO_RSA
1932	select ASYMMETRIC_KEY_TYPE
1933	select ASYMMETRIC_PUBLIC_KEY_SUBTYPE
1934	select ASN1
1935	select OID_REGISTRY
1936	select X509_CERTIFICATE_PARSER
1937	select PKCS7_MESSAGE_PARSER
1938	help
1939	  Provide PKCS#7 message verification using the contents of the system
1940	  trusted keyring to provide public keys.  This then can be used for
1941	  module verification, kexec image verification and firmware blob
1942	  verification.
1943
1944config PROFILING
1945	bool "Profiling support"
1946	help
1947	  Say Y here to enable the extended profiling support mechanisms used
1948	  by profilers.
1949
1950config RUST
1951	bool "Rust support"
1952	depends on HAVE_RUST
1953	depends on RUST_IS_AVAILABLE
1954	depends on !MODVERSIONS
1955	depends on !GCC_PLUGIN_RANDSTRUCT
1956	depends on !RANDSTRUCT
1957	depends on !DEBUG_INFO_BTF || PAHOLE_HAS_LANG_EXCLUDE
1958	depends on !CFI_CLANG || RUSTC_VERSION >= 107900 && HAVE_CFI_ICALL_NORMALIZE_INTEGERS
1959	select CFI_ICALL_NORMALIZE_INTEGERS if CFI_CLANG
1960	depends on !CALL_PADDING || RUSTC_VERSION >= 108100
1961	depends on !KASAN_SW_TAGS
1962	depends on !(MITIGATION_RETHUNK && KASAN) || RUSTC_VERSION >= 108300
1963	help
1964	  Enables Rust support in the kernel.
1965
1966	  This allows other Rust-related options, like drivers written in Rust,
1967	  to be selected.
1968
1969	  It is also required to be able to load external kernel modules
1970	  written in Rust.
1971
1972	  See Documentation/rust/ for more information.
1973
1974	  If unsure, say N.
1975
1976config RUSTC_VERSION_TEXT
1977	string
1978	depends on RUST
1979	default "$(RUSTC_VERSION_TEXT)"
1980	help
1981	  See `CC_VERSION_TEXT`.
1982
1983config BINDGEN_VERSION_TEXT
1984	string
1985	depends on RUST
1986	# The dummy parameter `workaround-for-0.69.0` is required to support 0.69.0
1987	# (https://github.com/rust-lang/rust-bindgen/pull/2678). It can be removed when
1988	# the minimum version is upgraded past that (0.69.1 already fixed the issue).
1989	default "$(shell,$(BINDGEN) --version workaround-for-0.69.0 2>/dev/null)"
1990
1991#
1992# Place an empty function call at each tracepoint site. Can be
1993# dynamically changed for a probe function.
1994#
1995config TRACEPOINTS
1996	bool
1997
1998source "kernel/Kconfig.kexec"
1999
2000endmenu		# General setup
2001
2002source "arch/Kconfig"
2003
2004config RT_MUTEXES
2005	bool
2006	default y if PREEMPT_RT
2007
2008config MODULE_SIG_FORMAT
2009	def_bool n
2010	select SYSTEM_DATA_VERIFICATION
2011
2012source "kernel/module/Kconfig"
2013
2014config INIT_ALL_POSSIBLE
2015	bool
2016	help
2017	  Back when each arch used to define their own cpu_online_mask and
2018	  cpu_possible_mask, some of them chose to initialize cpu_possible_mask
2019	  with all 1s, and others with all 0s.  When they were centralised,
2020	  it was better to provide this option than to break all the archs
2021	  and have several arch maintainers pursuing me down dark alleys.
2022
2023source "block/Kconfig"
2024
2025config PREEMPT_NOTIFIERS
2026	bool
2027
2028config PADATA
2029	depends on SMP
2030	bool
2031
2032config ASN1
2033	tristate
2034	help
2035	  Build a simple ASN.1 grammar compiler that produces a bytecode output
2036	  that can be interpreted by the ASN.1 stream decoder and used to
2037	  inform it as to what tags are to be expected in a stream and what
2038	  functions to call on what tags.
2039
2040source "kernel/Kconfig.locks"
2041
2042config ARCH_HAS_NON_OVERLAPPING_ADDRESS_SPACE
2043	bool
2044
2045config ARCH_HAS_PREPARE_SYNC_CORE_CMD
2046	bool
2047
2048config ARCH_HAS_SYNC_CORE_BEFORE_USERMODE
2049	bool
2050
2051# It may be useful for an architecture to override the definitions of the
2052# SYSCALL_DEFINE() and __SYSCALL_DEFINEx() macros in <linux/syscalls.h>
2053# and the COMPAT_ variants in <linux/compat.h>, in particular to use a
2054# different calling convention for syscalls. They can also override the
2055# macros for not-implemented syscalls in kernel/sys_ni.c and
2056# kernel/time/posix-stubs.c. All these overrides need to be available in
2057# <asm/syscall_wrapper.h>.
2058config ARCH_HAS_SYSCALL_WRAPPER
2059	def_bool n
2060