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