blob: dff317c6f4405aa349075a024fd89bfc85722fd3 [file] [log] [blame]
xjb04a4022021-11-25 15:01:52 +08001config DEFCONFIG_LIST
2 string
3 depends on !UML
4 option defconfig_list
5 default "/lib/modules/$(shell,uname -r)/.config"
6 default "/etc/kernel-config"
7 default "/boot/config-$(shell,uname -r)"
8 default ARCH_DEFCONFIG
9 default "arch/$(ARCH)/defconfig"
10
11config CC_IS_GCC
12 def_bool $(success,$(CC) --version | head -n 1 | grep -q gcc)
13
14config GCC_VERSION
15 int
16 default $(shell,$(srctree)/scripts/gcc-version.sh -p $(CC) | sed 's/^0*//') if CC_IS_GCC
17 default 0
18
19config CC_IS_CLANG
20 def_bool $(success,$(CC) --version | head -n 1 | grep -q clang)
21
22config LD_IS_LLD
23 def_bool $(success,$(LD) -v | head -n 1 | grep -q LLD)
24
25config CLANG_VERSION
26 int
27 default $(shell,$(srctree)/scripts/clang-version.sh $(CC))
28
29config CC_HAS_ASM_GOTO
30 def_bool $(success,$(srctree)/scripts/gcc-goto.sh $(CC))
31
32config TOOLS_SUPPORT_RELR
33 def_bool $(success,env "CC=$(CC)" "LD=$(LD)" "NM=$(NM)" "OBJCOPY=$(OBJCOPY)" $(srctree)/scripts/tools-support-relr.sh)
34
35config CONSTRUCTORS
36 bool
37 depends on !UML
38
39config IRQ_WORK
40 bool
41
42config BUILDTIME_EXTABLE_SORT
43 bool
44
45config THREAD_INFO_IN_TASK
46 bool
47 help
48 Select this to move thread_info off the stack into task_struct. To
49 make this work, an arch will need to remove all thread_info fields
50 except flags and fix any runtime bugs.
51
52 One subtle change that will be needed is to use try_get_task_stack()
53 and put_task_stack() in save_thread_stack_tsk() and get_wchan().
54
55menu "General setup"
56
57config BROKEN
58 bool
59
60config BROKEN_ON_SMP
61 bool
62 depends on BROKEN || !SMP
63 default y
64
65config INIT_ENV_ARG_LIMIT
66 int
67 default 32 if !UML
68 default 128 if UML
69 help
70 Maximum of each of the number of arguments and environment
71 variables passed to init from the kernel command line.
72
73config COMPILE_TEST
74 bool "Compile also drivers which will not load"
75 depends on !UML
76 default n
77 help
78 Some drivers can be compiled on a different platform than they are
79 intended to be run on. Despite they cannot be loaded there (or even
80 when they load they cannot be used due to missing HW support),
81 developers still, opposing to distributors, might want to build such
82 drivers to compile-test them.
83
84 If you are a developer and want to build everything available, say Y
85 here. If you are a user/distributor, say N here to exclude useless
86 drivers to be distributed.
87
88config LOCALVERSION
89 string "Local version - append to kernel release"
90 help
91 Append an extra string to the end of your kernel version.
92 This will show up when you type uname, for example.
93 The string you set here will be appended after the contents of
94 any files with a filename matching localversion* in your
95 object and source tree, in that order. Your total string can
96 be a maximum of 64 characters.
97
98config LOCALVERSION_AUTO
99 bool "Automatically append version information to the version string"
100 default y
101 depends on !COMPILE_TEST
102 help
103 This will try to automatically determine if the current tree is a
104 release tree by looking for git tags that belong to the current
105 top of tree revision.
106
107 A string of the format -gxxxxxxxx will be added to the localversion
108 if a git-based tree is found. The string generated by this will be
109 appended after any matching localversion* files, and after the value
110 set in CONFIG_LOCALVERSION.
111
112 (The actual string used here is the first eight characters produced
113 by running the command:
114
115 $ git rev-parse --verify HEAD
116
117 which is done within the script "scripts/setlocalversion".)
118
119config BUILD_SALT
120 string "Build ID Salt"
121 default ""
122 help
123 The build ID is used to link binaries and their debug info. Setting
124 this option will use the value in the calculation of the build id.
125 This is mostly useful for distributions which want to ensure the
126 build is unique between builds. It's safe to leave the default.
127
128config HAVE_KERNEL_GZIP
129 bool
130
131config HAVE_KERNEL_BZIP2
132 bool
133
134config HAVE_KERNEL_LZMA
135 bool
136
137config HAVE_KERNEL_XZ
138 bool
139
140config HAVE_KERNEL_LZO
141 bool
142
143config HAVE_KERNEL_LZ4
144 bool
145
146config HAVE_KERNEL_UNCOMPRESSED
147 bool
148
149choice
150 prompt "Kernel compression mode"
151 default KERNEL_GZIP
152 depends on HAVE_KERNEL_GZIP || HAVE_KERNEL_BZIP2 || HAVE_KERNEL_LZMA || HAVE_KERNEL_XZ || HAVE_KERNEL_LZO || HAVE_KERNEL_LZ4 || HAVE_KERNEL_UNCOMPRESSED
153 help
154 The linux kernel is a kind of self-extracting executable.
155 Several compression algorithms are available, which differ
156 in efficiency, compression and decompression speed.
157 Compression speed is only relevant when building a kernel.
158 Decompression speed is relevant at each boot.
159
160 If you have any problems with bzip2 or lzma compressed
161 kernels, mail me (Alain Knaff) <alain@knaff.lu>. (An older
162 version of this functionality (bzip2 only), for 2.4, was
163 supplied by Christian Ludwig)
164
165 High compression options are mostly useful for users, who
166 are low on disk space (embedded systems), but for whom ram
167 size matters less.
168
169 If in doubt, select 'gzip'
170
171config KERNEL_GZIP
172 bool "Gzip"
173 depends on HAVE_KERNEL_GZIP
174 help
175 The old and tried gzip compression. It provides a good balance
176 between compression ratio and decompression speed.
177
178config KERNEL_BZIP2
179 bool "Bzip2"
180 depends on HAVE_KERNEL_BZIP2
181 help
182 Its compression ratio and speed is intermediate.
183 Decompression speed is slowest among the choices. The kernel
184 size is about 10% smaller with bzip2, in comparison to gzip.
185 Bzip2 uses a large amount of memory. For modern kernels you
186 will need at least 8MB RAM or more for booting.
187
188config KERNEL_LZMA
189 bool "LZMA"
190 depends on HAVE_KERNEL_LZMA
191 help
192 This compression algorithm's ratio is best. Decompression speed
193 is between gzip and bzip2. Compression is slowest.
194 The kernel size is about 33% smaller with LZMA in comparison to gzip.
195
196config KERNEL_XZ
197 bool "XZ"
198 depends on HAVE_KERNEL_XZ
199 help
200 XZ uses the LZMA2 algorithm and instruction set specific
201 BCJ filters which can improve compression ratio of executable
202 code. The size of the kernel is about 30% smaller with XZ in
203 comparison to gzip. On architectures for which there is a BCJ
204 filter (i386, x86_64, ARM, IA-64, PowerPC, and SPARC), XZ
205 will create a few percent smaller kernel than plain LZMA.
206
207 The speed is about the same as with LZMA: The decompression
208 speed of XZ is better than that of bzip2 but worse than gzip
209 and LZO. Compression is slow.
210
211config KERNEL_LZO
212 bool "LZO"
213 depends on HAVE_KERNEL_LZO
214 help
215 Its compression ratio is the poorest among the choices. The kernel
216 size is about 10% bigger than gzip; however its speed
217 (both compression and decompression) is the fastest.
218
219config KERNEL_LZ4
220 bool "LZ4"
221 depends on HAVE_KERNEL_LZ4
222 help
223 LZ4 is an LZ77-type compressor with a fixed, byte-oriented encoding.
224 A preliminary version of LZ4 de/compression tool is available at
225 <https://code.google.com/p/lz4/>.
226
227 Its compression ratio is worse than LZO. The size of the kernel
228 is about 8% bigger than LZO. But the decompression speed is
229 faster than LZO.
230
231config KERNEL_UNCOMPRESSED
232 bool "None"
233 depends on HAVE_KERNEL_UNCOMPRESSED
234 help
235 Produce uncompressed kernel image. This option is usually not what
236 you want. It is useful for debugging the kernel in slow simulation
237 environments, where decompressing and moving the kernel is awfully
238 slow. This option allows early boot code to skip the decompressor
239 and jump right at uncompressed kernel image.
240
241endchoice
242
243config DEFAULT_HOSTNAME
244 string "Default hostname"
245 default "(none)"
246 help
247 This option determines the default system hostname before userspace
248 calls sethostname(2). The kernel traditionally uses "(none)" here,
249 but you may wish to use a different default here to make a minimal
250 system more usable with less configuration.
251
252#
253# For some reason microblaze and nios2 hard code SWAP=n. Hopefully we can
254# add proper SWAP support to them, in which case this can be remove.
255#
256config ARCH_NO_SWAP
257 bool
258
259config SWAP
260 bool "Support for paging of anonymous memory (swap)"
261 depends on MMU && BLOCK && !ARCH_NO_SWAP
262 default y
263 help
264 This option allows you to choose whether you want to have support
265 for so called swap devices or swap files in your kernel that are
266 used to provide more virtual memory than the actual RAM present
267 in your computer. If unsure say Y.
268
269config SYSVIPC
270 bool "System V IPC"
271 ---help---
272 Inter Process Communication is a suite of library functions and
273 system calls which let processes (running programs) synchronize and
274 exchange information. It is generally considered to be a good thing,
275 and some programs won't run unless you say Y here. In particular, if
276 you want to run the DOS emulator dosemu under Linux (read the
277 DOSEMU-HOWTO, available from <http://www.tldp.org/docs.html#howto>),
278 you'll need to say Y here.
279
280 You can find documentation about IPC with "info ipc" and also in
281 section 6.4 of the Linux Programmer's Guide, available from
282 <http://www.tldp.org/guides.html>.
283
284config SYSVIPC_SYSCTL
285 bool
286 depends on SYSVIPC
287 depends on SYSCTL
288 default y
289
290config POSIX_MQUEUE
291 bool "POSIX Message Queues"
292 depends on NET
293 ---help---
294 POSIX variant of message queues is a part of IPC. In POSIX message
295 queues every message has a priority which decides about succession
296 of receiving it by a process. If you want to compile and run
297 programs written e.g. for Solaris with use of its POSIX message
298 queues (functions mq_*) say Y here.
299
300 POSIX message queues are visible as a filesystem called 'mqueue'
301 and can be mounted somewhere if you want to do filesystem
302 operations on message queues.
303
304 If unsure, say Y.
305
306config POSIX_MQUEUE_SYSCTL
307 bool
308 depends on POSIX_MQUEUE
309 depends on SYSCTL
310 default y
311
312config CROSS_MEMORY_ATTACH
313 bool "Enable process_vm_readv/writev syscalls"
314 depends on MMU
315 default y
316 help
317 Enabling this option adds the system calls process_vm_readv and
318 process_vm_writev which allow a process with the correct privileges
319 to directly read from or write to another process' address space.
320 See the man page for more details.
321
322config USELIB
323 bool "uselib syscall"
324 def_bool ALPHA || M68K || SPARC || X86_32 || IA32_EMULATION
325 help
326 This option enables the uselib syscall, a system call used in the
327 dynamic linker from libc5 and earlier. glibc does not use this
328 system call. If you intend to run programs built on libc5 or
329 earlier, you may need to enable this syscall. Current systems
330 running glibc can safely disable this.
331
332config AUDIT
333 bool "Auditing support"
334 depends on NET
335 help
336 Enable auditing infrastructure that can be used with another
337 kernel subsystem, such as SELinux (which requires this for
338 logging of avc messages output). System call auditing is included
339 on architectures which support it.
340
341config HAVE_ARCH_AUDITSYSCALL
342 bool
343
344config AUDITSYSCALL
345 def_bool y
346 depends on AUDIT && HAVE_ARCH_AUDITSYSCALL
347
348config AUDIT_WATCH
349 def_bool y
350 depends on AUDITSYSCALL
351 select FSNOTIFY
352
353config AUDIT_TREE
354 def_bool y
355 depends on AUDITSYSCALL
356 select FSNOTIFY
357
358source "kernel/irq/Kconfig"
359source "kernel/time/Kconfig"
360source "kernel/Kconfig.preempt"
361
362menu "CPU/Task time and stats accounting"
363
364config VIRT_CPU_ACCOUNTING
365 bool
366
367choice
368 prompt "Cputime accounting"
369 default TICK_CPU_ACCOUNTING if !PPC64
370 default VIRT_CPU_ACCOUNTING_NATIVE if PPC64
371
372# Kind of a stub config for the pure tick based cputime accounting
373config TICK_CPU_ACCOUNTING
374 bool "Simple tick based cputime accounting"
375 depends on !S390 && !NO_HZ_FULL
376 help
377 This is the basic tick based cputime accounting that maintains
378 statistics about user, system and idle time spent on per jiffies
379 granularity.
380
381 If unsure, say Y.
382
383config VIRT_CPU_ACCOUNTING_NATIVE
384 bool "Deterministic task and CPU time accounting"
385 depends on HAVE_VIRT_CPU_ACCOUNTING && !NO_HZ_FULL
386 select VIRT_CPU_ACCOUNTING
387 help
388 Select this option to enable more accurate task and CPU time
389 accounting. This is done by reading a CPU counter on each
390 kernel entry and exit and on transitions within the kernel
391 between system, softirq and hardirq state, so there is a
392 small performance impact. In the case of s390 or IBM POWER > 5,
393 this also enables accounting of stolen time on logically-partitioned
394 systems.
395
396config VIRT_CPU_ACCOUNTING_GEN
397 bool "Full dynticks CPU time accounting"
398 depends on HAVE_CONTEXT_TRACKING
399 depends on HAVE_VIRT_CPU_ACCOUNTING_GEN
400 select VIRT_CPU_ACCOUNTING
401 select CONTEXT_TRACKING
402 help
403 Select this option to enable task and CPU time accounting on full
404 dynticks systems. This accounting is implemented by watching every
405 kernel-user boundaries using the context tracking subsystem.
406 The accounting is thus performed at the expense of some significant
407 overhead.
408
409 For now this is only useful if you are working on the full
410 dynticks subsystem development.
411
412 If unsure, say N.
413
414endchoice
415
416config IRQ_TIME_ACCOUNTING
417 bool "Fine granularity task level IRQ time accounting"
418 depends on HAVE_IRQ_TIME_ACCOUNTING && !VIRT_CPU_ACCOUNTING_NATIVE
419 help
420 Select this option to enable fine granularity task irq time
421 accounting. This is done by reading a timestamp on each
422 transitions between softirq and hardirq state, so there can be a
423 small performance impact.
424
425 If in doubt, say N here.
426
427config HAVE_SCHED_AVG_IRQ
428 def_bool y
429 depends on IRQ_TIME_ACCOUNTING || PARAVIRT_TIME_ACCOUNTING
430 depends on SMP
431
432config BSD_PROCESS_ACCT
433 bool "BSD Process Accounting"
434 depends on MULTIUSER
435 help
436 If you say Y here, a user level program will be able to instruct the
437 kernel (via a special system call) to write process accounting
438 information to a file: whenever a process exits, information about
439 that process will be appended to the file by the kernel. The
440 information includes things such as creation time, owning user,
441 command name, memory usage, controlling terminal etc. (the complete
442 list is in the struct acct in <file:include/linux/acct.h>). It is
443 up to the user level program to do useful things with this
444 information. This is generally a good idea, so say Y.
445
446config BSD_PROCESS_ACCT_V3
447 bool "BSD Process Accounting version 3 file format"
448 depends on BSD_PROCESS_ACCT
449 default n
450 help
451 If you say Y here, the process accounting information is written
452 in a new file format that also logs the process IDs of each
453 process and its parent. Note that this file format is incompatible
454 with previous v0/v1/v2 file formats, so you will need updated tools
455 for processing it. A preliminary version of these tools is available
456 at <http://www.gnu.org/software/acct/>.
457
458config TASKSTATS
459 bool "Export task/process statistics through netlink"
460 depends on NET
461 depends on MULTIUSER
462 default n
463 help
464 Export selected statistics for tasks/processes through the
465 generic netlink interface. Unlike BSD process accounting, the
466 statistics are available during the lifetime of tasks/processes as
467 responses to commands. Like BSD accounting, they are sent to user
468 space on task exit.
469
470 Say N if unsure.
471
472config TASK_DELAY_ACCT
473 bool "Enable per-task delay accounting"
474 depends on TASKSTATS
475 select SCHED_INFO
476 help
477 Collect information on time spent by a task waiting for system
478 resources like cpu, synchronous block I/O completion and swapping
479 in pages. Such statistics can help in setting a task's priorities
480 relative to other tasks for cpu, io, rss limits etc.
481
482 Say N if unsure.
483
484config TASK_XACCT
485 bool "Enable extended accounting over taskstats"
486 depends on TASKSTATS
487 help
488 Collect extended task accounting data and send the data
489 to userland for processing over the taskstats interface.
490
491 Say N if unsure.
492
493config TASK_IO_ACCOUNTING
494 bool "Enable per-task storage I/O accounting"
495 depends on TASK_XACCT
496 help
497 Collect information on the number of bytes of storage I/O which this
498 task has caused.
499
500 Say N if unsure.
501
502config PSI
503 bool "Pressure stall information tracking"
504 help
505 Collect metrics that indicate how overcommitted the CPU, memory,
506 and IO capacity are in the system.
507
508 If you say Y here, the kernel will create /proc/pressure/ with the
509 pressure statistics files cpu, memory, and io. These will indicate
510 the share of walltime in which some or all tasks in the system are
511 delayed due to contention of the respective resource.
512
513 In kernels with cgroup support, cgroups (cgroup2 only) will
514 have cpu.pressure, memory.pressure, and io.pressure files,
515 which aggregate pressure stalls for the grouped tasks only.
516
517 For more details see Documentation/accounting/psi.txt.
518
519 Say N if unsure.
520
521config PSI_DEFAULT_DISABLED
522 bool "Require boot parameter to enable pressure stall information tracking"
523 default n
524 depends on PSI
525 help
526 If set, pressure stall information tracking will be disabled
527 per default but can be enabled through passing psi=1 on the
528 kernel commandline during boot.
529
530 This feature adds some code to the task wakeup and sleep
531 paths of the scheduler. The overhead is too low to affect
532 common scheduling-intense workloads in practice (such as
533 webservers, memcache), but it does show up in artificial
534 scheduler stress tests, such as hackbench.
535
536 If you are paranoid and not sure what the kernel will be
537 used for, say Y.
538
539 Say N if unsure.
540
541endmenu # "CPU/Task time and stats accounting"
542
543config CPU_ISOLATION
544 bool "CPU isolation"
545 depends on SMP || COMPILE_TEST
546 default y
547 help
548 Make sure that CPUs running critical tasks are not disturbed by
549 any source of "noise" such as unbound workqueues, timers, kthreads...
550 Unbound jobs get offloaded to housekeeping CPUs. This is driven by
551 the "isolcpus=" boot parameter.
552
553 Say Y if unsure.
554
555source "kernel/rcu/Kconfig"
556
557config BUILD_BIN2C
558 bool
559 default n
560
561config IKCONFIG
562 tristate "Kernel .config support"
563 select BUILD_BIN2C
564 ---help---
565 This option enables the complete Linux kernel ".config" file
566 contents to be saved in the kernel. It provides documentation
567 of which kernel options are used in a running kernel or in an
568 on-disk kernel. This information can be extracted from the kernel
569 image file with the script scripts/extract-ikconfig and used as
570 input to rebuild the current kernel or to build another kernel.
571 It can also be extracted from a running kernel by reading
572 /proc/config.gz if enabled (below).
573
574config IKCONFIG_PROC
575 bool "Enable access to .config through /proc/config.gz"
576 depends on IKCONFIG && PROC_FS
577 ---help---
578 This option enables access to the kernel configuration file
579 through /proc/config.gz.
580
581config IKHEADERS
582 tristate "Enable kernel headers through /sys/kernel/kheaders.tar.xz"
583 depends on SYSFS
584 help
585 This option enables access to the in-kernel headers that are generated during
586 the build process. These can be used to build eBPF tracing programs,
587 or similar programs. If you build the headers as a module, a module called
588 kheaders.ko is built which can be loaded on-demand to get access to headers.
589
590config LOG_BUF_SHIFT
591 int "Kernel log buffer size (16 => 64KB, 17 => 128KB)"
592 range 12 25
593 default 17
594 depends on PRINTK
595 help
596 Select the minimal kernel log buffer size as a power of 2.
597 The final size is affected by LOG_CPU_MAX_BUF_SHIFT config
598 parameter, see below. Any higher size also might be forced
599 by "log_buf_len" boot parameter.
600
601 Examples:
602 17 => 128 KB
603 16 => 64 KB
604 15 => 32 KB
605 14 => 16 KB
606 13 => 8 KB
607 12 => 4 KB
608
609config LOG_CPU_MAX_BUF_SHIFT
610 int "CPU kernel log buffer size contribution (13 => 8 KB, 17 => 128KB)"
611 depends on SMP
612 range 0 21
613 default 12 if !BASE_SMALL
614 default 0 if BASE_SMALL
615 depends on PRINTK
616 help
617 This option allows to increase the default ring buffer size
618 according to the number of CPUs. The value defines the contribution
619 of each CPU as a power of 2. The used space is typically only few
620 lines however it might be much more when problems are reported,
621 e.g. backtraces.
622
623 The increased size means that a new buffer has to be allocated and
624 the original static one is unused. It makes sense only on systems
625 with more CPUs. Therefore this value is used only when the sum of
626 contributions is greater than the half of the default kernel ring
627 buffer as defined by LOG_BUF_SHIFT. The default values are set
628 so that more than 64 CPUs are needed to trigger the allocation.
629
630 Also this option is ignored when "log_buf_len" kernel parameter is
631 used as it forces an exact (power of two) size of the ring buffer.
632
633 The number of possible CPUs is used for this computation ignoring
634 hotplugging making the computation optimal for the worst case
635 scenario while allowing a simple algorithm to be used from bootup.
636
637 Examples shift values and their meaning:
638 17 => 128 KB for each CPU
639 16 => 64 KB for each CPU
640 15 => 32 KB for each CPU
641 14 => 16 KB for each CPU
642 13 => 8 KB for each CPU
643 12 => 4 KB for each CPU
644
645config PRINTK_SAFE_LOG_BUF_SHIFT
646 int "Temporary per-CPU printk log buffer size (12 => 4KB, 13 => 8KB)"
647 range 10 21
648 default 13
649 depends on PRINTK
650 help
651 Select the size of an alternate printk per-CPU buffer where messages
652 printed from usafe contexts are temporary stored. One example would
653 be NMI messages, another one - printk recursion. The messages are
654 copied to the main log buffer in a safe context to avoid a deadlock.
655 The value defines the size as a power of 2.
656
657 Those messages are rare and limited. The largest one is when
658 a backtrace is printed. It usually fits into 4KB. Select
659 8KB if you want to be on the safe side.
660
661 Examples:
662 17 => 128 KB for each CPU
663 16 => 64 KB for each CPU
664 15 => 32 KB for each CPU
665 14 => 16 KB for each CPU
666 13 => 8 KB for each CPU
667 12 => 4 KB for each CPU
668
669#
670# Architectures with an unreliable sched_clock() should select this:
671#
672config HAVE_UNSTABLE_SCHED_CLOCK
673 bool
674
675config GENERIC_SCHED_CLOCK
676 bool
677
678menu "Scheduler features"
679
680config UCLAMP_TASK
681 bool "Enable utilization clamping for RT/FAIR tasks"
682 depends on CPU_FREQ_GOV_SCHEDUTIL
683 help
684 This feature enables the scheduler to track the clamped utilization
685 of each CPU based on RUNNABLE tasks currently scheduled on that CPU.
686
687 When this option is enabled, the user can specify a min and max CPU
688 utilization which is allowed for RUNNABLE tasks.
689 The max utilization allows to request a maximum frequency a task should
690 use, while the min utilization allows to request a minimum frequency a
691 task should use.
692 Both min and max utilization clamp values are hints to the scheduler,
693 aiming at improving its frequency selection policy, but they do not
694 enforce or grant any specific bandwidth for tasks.
695
696 If in doubt, say N.
697
698config UCLAMP_GROUPS_COUNT
699 int "Number of different utilization clamp values supported"
700 range 0 32
701 default 5
702 depends on UCLAMP_TASK
703 help
704 This defines the maximum number of different utilization clamp
705 values which can be concurrently enforced for each utilization
706 clamp index (i.e. minimum and maximum utilization).
707
708 Only a limited number of clamp values are supported because:
709 1. there are usually only few classes of workloads for which it
710 makes sense to boost/cap for different frequencies,
711 e.g. background vs foreground, interactive vs low-priority.
712 2. it allows a simpler and more memory/time efficient tracking of
713 per-CPU clamp values.
714
715 If in doubt, use the default value.
716
717endmenu
718
719#
720# For architectures that want to enable the support for NUMA-affine scheduler
721# balancing logic:
722#
723config ARCH_SUPPORTS_NUMA_BALANCING
724 bool
725
726#
727# For architectures that prefer to flush all TLBs after a number of pages
728# are unmapped instead of sending one IPI per page to flush. The architecture
729# must provide guarantees on what happens if a clean TLB cache entry is
730# written after the unmap. Details are in mm/rmap.c near the check for
731# should_defer_flush. The architecture should also consider if the full flush
732# and the refill costs are offset by the savings of sending fewer IPIs.
733config ARCH_WANT_BATCHED_UNMAP_TLB_FLUSH
734 bool
735
736#
737# For architectures that know their GCC __int128 support is sound
738#
739config ARCH_SUPPORTS_INT128
740 bool
741
742# For architectures that (ab)use NUMA to represent different memory regions
743# all cpu-local but of different latencies, such as SuperH.
744#
745config ARCH_WANT_NUMA_VARIABLE_LOCALITY
746 bool
747
748config NUMA_BALANCING
749 bool "Memory placement aware NUMA scheduler"
750 depends on ARCH_SUPPORTS_NUMA_BALANCING
751 depends on !ARCH_WANT_NUMA_VARIABLE_LOCALITY
752 depends on SMP && NUMA && MIGRATION
753 help
754 This option adds support for automatic NUMA aware memory/task placement.
755 The mechanism is quite primitive and is based on migrating memory when
756 it has references to the node the task is running on.
757
758 This system will be inactive on UMA systems.
759
760config NUMA_BALANCING_DEFAULT_ENABLED
761 bool "Automatically enable NUMA aware memory/task placement"
762 default y
763 depends on NUMA_BALANCING
764 help
765 If set, automatic NUMA balancing will be enabled if running on a NUMA
766 machine.
767
768menuconfig CGROUPS
769 bool "Control Group support"
770 select KERNFS
771 help
772 This option adds support for grouping sets of processes together, for
773 use with process control subsystems such as Cpusets, CFS, memory
774 controls or device isolation.
775 See
776 - Documentation/scheduler/sched-design-CFS.txt (CFS)
777 - Documentation/cgroup-v1/ (features for grouping, isolation
778 and resource control)
779
780 Say N if unsure.
781
782if CGROUPS
783
784config PAGE_COUNTER
785 bool
786
787config MEMCG
788 bool "Memory controller"
789 select PAGE_COUNTER
790 select EVENTFD
791 help
792 Provides control over the memory footprint of tasks in a cgroup.
793
794config MEMCG_SWAP
795 bool "Swap controller"
796 depends on MEMCG && SWAP
797 help
798 Provides control over the swap space consumed by tasks in a cgroup.
799
800config MEMCG_SWAP_ENABLED
801 bool "Swap controller enabled by default"
802 depends on MEMCG_SWAP
803 default y
804 help
805 Memory Resource Controller Swap Extension comes with its price in
806 a bigger memory consumption. General purpose distribution kernels
807 which want to enable the feature but keep it disabled by default
808 and let the user enable it by swapaccount=1 boot command line
809 parameter should have this option unselected.
810 For those who want to have the feature enabled by default should
811 select this option (if, for some reason, they need to disable it
812 then swapaccount=0 does the trick).
813
814config MEMCG_KMEM
815 bool
816 depends on MEMCG && !SLOB
817 default y
818
819config BLK_CGROUP
820 bool "IO controller"
821 depends on BLOCK
822 default n
823 ---help---
824 Generic block IO controller cgroup interface. This is the common
825 cgroup interface which should be used by various IO controlling
826 policies.
827
828 Currently, CFQ IO scheduler uses it to recognize task groups and
829 control disk bandwidth allocation (proportional time slice allocation)
830 to such task groups. It is also used by bio throttling logic in
831 block layer to implement upper limit in IO rates on a device.
832
833 This option only enables generic Block IO controller infrastructure.
834 One needs to also enable actual IO controlling logic/policy. For
835 enabling proportional weight division of disk bandwidth in CFQ, set
836 CONFIG_CFQ_GROUP_IOSCHED=y; for enabling throttling policy, set
837 CONFIG_BLK_DEV_THROTTLING=y.
838
839 See Documentation/cgroup-v1/blkio-controller.txt for more information.
840
841config DEBUG_BLK_CGROUP
842 bool "IO controller debugging"
843 depends on BLK_CGROUP
844 default n
845 ---help---
846 Enable some debugging help. Currently it exports additional stat
847 files in a cgroup which can be useful for debugging.
848
849config CGROUP_WRITEBACK
850 bool
851 depends on MEMCG && BLK_CGROUP
852 default y
853
854menuconfig CGROUP_SCHED
855 bool "CPU controller"
856 default n
857 help
858 This feature lets CPU scheduler recognize task groups and control CPU
859 bandwidth allocation to such task groups. It uses cgroups to group
860 tasks.
861
862if CGROUP_SCHED
863config FAIR_GROUP_SCHED
864 bool "Group scheduling for SCHED_OTHER"
865 depends on CGROUP_SCHED
866 default CGROUP_SCHED
867
868config CFS_BANDWIDTH
869 bool "CPU bandwidth provisioning for FAIR_GROUP_SCHED"
870 depends on FAIR_GROUP_SCHED
871 default n
872 help
873 This option allows users to define CPU bandwidth rates (limits) for
874 tasks running within the fair group scheduler. Groups with no limit
875 set are considered to be unconstrained and will run with no
876 restriction.
877 See Documentation/scheduler/sched-bwc.txt for more information.
878
879config RT_GROUP_SCHED
880 bool "Group scheduling for SCHED_RR/FIFO"
881 depends on CGROUP_SCHED
882 default n
883 help
884 This feature lets you explicitly allocate real CPU bandwidth
885 to task groups. If enabled, it will also make it impossible to
886 schedule realtime tasks for non-root users until you allocate
887 realtime bandwidth for them.
888 See Documentation/scheduler/sched-rt-group.txt for more information.
889
890endif #CGROUP_SCHED
891
892config UCLAMP_TASK_GROUP
893 bool "Utilization clamping per group of tasks"
894 depends on CGROUP_SCHED
895 depends on UCLAMP_TASK
896 default n
897 help
898 This feature enables the scheduler to track the clamped utilization
899 of each CPU based on RUNNABLE tasks currently scheduled on that CPU.
900
901 When this option is enabled, the user can specify a min and max
902 CPU bandwidth which is allowed for each single task in a group.
903 The max bandwidth allows to clamp the maximum frequency a task
904 can use, while the min bandwidth allows to define a minimum
905 frequency a task will always use.
906
907 When task group based utilization clamping is enabled, an eventually
908 specified task-specific clamp value is constrained by the cgroup
909 specified clamp value. Both minimum and maximum task clamping cannot
910 be bigger than the corresponding clamping defined at task group level.
911
912 If in doubt, say N.
913
914config CGROUP_PIDS
915 bool "PIDs controller"
916 help
917 Provides enforcement of process number limits in the scope of a
918 cgroup. Any attempt to fork more processes than is allowed in the
919 cgroup will fail. PIDs are fundamentally a global resource because it
920 is fairly trivial to reach PID exhaustion before you reach even a
921 conservative kmemcg limit. As a result, it is possible to grind a
922 system to halt without being limited by other cgroup policies. The
923 PIDs controller is designed to stop this from happening.
924
925 It should be noted that organisational operations (such as attaching
926 to a cgroup hierarchy will *not* be blocked by the PIDs controller),
927 since the PIDs limit only affects a process's ability to fork, not to
928 attach to a cgroup.
929
930config CGROUP_RDMA
931 bool "RDMA controller"
932 help
933 Provides enforcement of RDMA resources defined by IB stack.
934 It is fairly easy for consumers to exhaust RDMA resources, which
935 can result into resource unavailability to other consumers.
936 RDMA controller is designed to stop this from happening.
937 Attaching processes with active RDMA resources to the cgroup
938 hierarchy is allowed even if can cross the hierarchy's limit.
939
940config CGROUP_FREEZER
941 bool "Freezer controller"
942 help
943 Provides a way to freeze and unfreeze all tasks in a
944 cgroup.
945
946 This option affects the ORIGINAL cgroup interface. The cgroup2 memory
947 controller includes important in-kernel memory consumers per default.
948
949 If you're using cgroup2, say N.
950
951config CGROUP_HUGETLB
952 bool "HugeTLB controller"
953 depends on HUGETLB_PAGE
954 select PAGE_COUNTER
955 default n
956 help
957 Provides a cgroup controller for HugeTLB pages.
958 When you enable this, you can put a per cgroup limit on HugeTLB usage.
959 The limit is enforced during page fault. Since HugeTLB doesn't
960 support page reclaim, enforcing the limit at page fault time implies
961 that, the application will get SIGBUS signal if it tries to access
962 HugeTLB pages beyond its limit. This requires the application to know
963 beforehand how much HugeTLB pages it would require for its use. The
964 control group is tracked in the third page lru pointer. This means
965 that we cannot use the controller with huge page less than 3 pages.
966
967config CPUSETS
968 bool "Cpuset controller"
969 depends on SMP
970 help
971 This option will let you create and manage CPUSETs which
972 allow dynamically partitioning a system into sets of CPUs and
973 Memory Nodes and assigning tasks to run only within those sets.
974 This is primarily useful on large SMP or NUMA systems.
975
976 Say N if unsure.
977
978config PROC_PID_CPUSET
979 bool "Include legacy /proc/<pid>/cpuset file"
980 depends on CPUSETS
981 default y
982
983config CGROUP_DEVICE
984 bool "Device controller"
985 help
986 Provides a cgroup controller implementing whitelists for
987 devices which a process in the cgroup can mknod or open.
988
989config CGROUP_CPUACCT
990 bool "Simple CPU accounting controller"
991 help
992 Provides a simple controller for monitoring the
993 total CPU consumed by the tasks in a cgroup.
994
995config CGROUP_PERF
996 bool "Perf controller"
997 depends on PERF_EVENTS
998 help
999 This option extends the perf per-cpu mode to restrict monitoring
1000 to threads which belong to the cgroup specified and run on the
1001 designated cpu.
1002
1003 Say N if unsure.
1004
1005config CGROUP_BPF
1006 bool "Support for eBPF programs attached to cgroups"
1007 depends on BPF_SYSCALL
1008 select SOCK_CGROUP_DATA
1009 help
1010 Allow attaching eBPF programs to a cgroup using the bpf(2)
1011 syscall command BPF_PROG_ATTACH.
1012
1013 In which context these programs are accessed depends on the type
1014 of attachment. For instance, programs that are attached using
1015 BPF_CGROUP_INET_INGRESS will be executed on the ingress path of
1016 inet sockets.
1017
1018config CGROUP_DEBUG
1019 bool "Debug controller"
1020 default n
1021 depends on DEBUG_KERNEL
1022 help
1023 This option enables a simple controller that exports
1024 debugging information about the cgroups framework. This
1025 controller is for control cgroup debugging only. Its
1026 interfaces are not stable.
1027
1028 Say N.
1029
1030config SOCK_CGROUP_DATA
1031 bool
1032 default n
1033
1034endif # CGROUPS
1035
1036menuconfig NAMESPACES
1037 bool "Namespaces support" if EXPERT
1038 depends on MULTIUSER
1039 default !EXPERT
1040 help
1041 Provides the way to make tasks work with different objects using
1042 the same id. For example same IPC id may refer to different objects
1043 or same user id or pid may refer to different tasks when used in
1044 different namespaces.
1045
1046if NAMESPACES
1047
1048config UTS_NS
1049 bool "UTS namespace"
1050 default y
1051 help
1052 In this namespace tasks see different info provided with the
1053 uname() system call
1054
1055config IPC_NS
1056 bool "IPC namespace"
1057 depends on (SYSVIPC || POSIX_MQUEUE)
1058 default y
1059 help
1060 In this namespace tasks work with IPC ids which correspond to
1061 different IPC objects in different namespaces.
1062
1063config USER_NS
1064 bool "User namespace"
1065 default n
1066 help
1067 This allows containers, i.e. vservers, to use user namespaces
1068 to provide different user info for different servers.
1069
1070 When user namespaces are enabled in the kernel it is
1071 recommended that the MEMCG option also be enabled and that
1072 user-space use the memory control groups to limit the amount
1073 of memory a memory unprivileged users can use.
1074
1075 If unsure, say N.
1076
1077config PID_NS
1078 bool "PID Namespaces"
1079 default y
1080 help
1081 Support process id namespaces. This allows having multiple
1082 processes with the same pid as long as they are in different
1083 pid namespaces. This is a building block of containers.
1084
1085config NET_NS
1086 bool "Network namespace"
1087 depends on NET
1088 default y
1089 help
1090 Allow user space to create what appear to be multiple instances
1091 of the network stack.
1092
1093endif # NAMESPACES
1094
1095config CHECKPOINT_RESTORE
1096 bool "Checkpoint/restore support"
1097 select PROC_CHILDREN
1098 default n
1099 help
1100 Enables additional kernel features in a sake of checkpoint/restore.
1101 In particular it adds auxiliary prctl codes to setup process text,
1102 data and heap segment sizes, and a few additional /proc filesystem
1103 entries.
1104
1105 If unsure, say N here.
1106
1107config SCHED_AUTOGROUP
1108 bool "Automatic process group scheduling"
1109 select CGROUPS
1110 select CGROUP_SCHED
1111 select FAIR_GROUP_SCHED
1112 help
1113 This option optimizes the scheduler for common desktop workloads by
1114 automatically creating and populating task groups. This separation
1115 of workloads isolates aggressive CPU burners (like build jobs) from
1116 desktop applications. Task group autogeneration is currently based
1117 upon task session.
1118
1119config SCHED_TUNE
1120 bool "Boosting for CFS tasks (EXPERIMENTAL)"
1121 depends on SMP
1122 help
1123 This option enables support for task classification using a new
1124 cgroup controller, schedtune. Schedtune allows tasks to be given
1125 a boost value and marked as latency-sensitive or not. This option
1126 provides the "schedtune" controller.
1127
1128 This new controller:
1129 1. allows only a two layers hierarchy, where the root defines the
1130 system-wide boost value and its direct childrens define each one a
1131 different "class of tasks" to be boosted with a different value
1132 2. supports up to 16 different task classes, each one which could be
1133 configured with a different boost value
1134
1135 Latency-sensitive tasks are not subject to energy-aware wakeup
1136 task placement. The boost value assigned to tasks is used to
1137 influence task placement and CPU frequency selection (if
1138 utilization-driven frequency selection is in use).
1139
1140 If unsure, say N.
1141
1142config SYSFS_DEPRECATED
1143 bool "Enable deprecated sysfs features to support old userspace tools"
1144 depends on SYSFS
1145 default n
1146 help
1147 This option adds code that switches the layout of the "block" class
1148 devices, to not show up in /sys/class/block/, but only in
1149 /sys/block/.
1150
1151 This switch is only active when the sysfs.deprecated=1 boot option is
1152 passed or the SYSFS_DEPRECATED_V2 option is set.
1153
1154 This option allows new kernels to run on old distributions and tools,
1155 which might get confused by /sys/class/block/. Since 2007/2008 all
1156 major distributions and tools handle this just fine.
1157
1158 Recent distributions and userspace tools after 2009/2010 depend on
1159 the existence of /sys/class/block/, and will not work with this
1160 option enabled.
1161
1162 Only if you are using a new kernel on an old distribution, you might
1163 need to say Y here.
1164
1165config SYSFS_DEPRECATED_V2
1166 bool "Enable deprecated sysfs features by default"
1167 default n
1168 depends on SYSFS
1169 depends on SYSFS_DEPRECATED
1170 help
1171 Enable deprecated sysfs by default.
1172
1173 See the CONFIG_SYSFS_DEPRECATED option for more details about this
1174 option.
1175
1176 Only if you are using a new kernel on an old distribution, you might
1177 need to say Y here. Even then, odds are you would not need it
1178 enabled, you can always pass the boot option if absolutely necessary.
1179
1180config RELAY
1181 bool "Kernel->user space relay support (formerly relayfs)"
1182 select IRQ_WORK
1183 help
1184 This option enables support for relay interface support in
1185 certain file systems (such as debugfs).
1186 It is designed to provide an efficient mechanism for tools and
1187 facilities to relay large amounts of data from kernel space to
1188 user space.
1189
1190 If unsure, say N.
1191
1192config BLK_DEV_INITRD
1193 bool "Initial RAM filesystem and RAM disk (initramfs/initrd) support"
1194 help
1195 The initial RAM filesystem is a ramfs which is loaded by the
1196 boot loader (loadlin or lilo) and that is mounted as root
1197 before the normal boot procedure. It is typically used to
1198 load modules needed to mount the "real" root file system,
1199 etc. See <file:Documentation/admin-guide/initrd.rst> for details.
1200
1201 If RAM disk support (BLK_DEV_RAM) is also included, this
1202 also enables initial RAM disk (initrd) support and adds
1203 15 Kbytes (more on some other architectures) to the kernel size.
1204
1205 If unsure say Y.
1206
1207if BLK_DEV_INITRD
1208
1209source "usr/Kconfig"
1210
1211endif
1212
1213choice
1214 prompt "Compiler optimization level"
1215 default CC_OPTIMIZE_FOR_PERFORMANCE
1216
1217config CC_OPTIMIZE_FOR_PERFORMANCE
1218 bool "Optimize for performance"
1219 help
1220 This is the default optimization level for the kernel, building
1221 with the "-O2" compiler flag for best performance and most
1222 helpful compile-time warnings.
1223
1224config CC_OPTIMIZE_FOR_SIZE
1225 bool "Optimize for size"
1226 help
1227 Enabling this option will pass "-Os" instead of "-O2" to
1228 your compiler resulting in a smaller kernel.
1229
1230 If unsure, say N.
1231
1232endchoice
1233
1234config HAVE_LD_DEAD_CODE_DATA_ELIMINATION
1235 bool
1236 help
1237 This requires that the arch annotates or otherwise protects
1238 its external entry points from being discarded. Linker scripts
1239 must also merge .text.*, .data.*, and .bss.* correctly into
1240 output sections. Care must be taken not to pull in unrelated
1241 sections (e.g., '.text.init'). Typically '.' in section names
1242 is used to distinguish them from label names / C identifiers.
1243
1244config LD_DEAD_CODE_DATA_ELIMINATION
1245 bool "Dead code and data elimination (EXPERIMENTAL)"
1246 depends on HAVE_LD_DEAD_CODE_DATA_ELIMINATION
1247 depends on EXPERT
1248 depends on !(FUNCTION_TRACER && CC_IS_GCC && GCC_VERSION < 40800)
1249 depends on $(cc-option,-ffunction-sections -fdata-sections)
1250 depends on $(ld-option,--gc-sections)
1251 help
1252 Enable this if you want to do dead code and data elimination with
1253 the linker by compiling with -ffunction-sections -fdata-sections,
1254 and linking with --gc-sections.
1255
1256 This can reduce on disk and in-memory size of the kernel
1257 code and static data, particularly for small configs and
1258 on small systems. This has the possibility of introducing
1259 silently broken kernel if the required annotations are not
1260 present. This option is not well tested yet, so use at your
1261 own risk.
1262
1263config SYSCTL
1264 bool
1265
1266config HAVE_UID16
1267 bool
1268
1269config SYSCTL_EXCEPTION_TRACE
1270 bool
1271 help
1272 Enable support for /proc/sys/debug/exception-trace.
1273
1274config SYSCTL_ARCH_UNALIGN_NO_WARN
1275 bool
1276 help
1277 Enable support for /proc/sys/kernel/ignore-unaligned-usertrap
1278 Allows arch to define/use @no_unaligned_warning to possibly warn
1279 about unaligned access emulation going on under the hood.
1280
1281config SYSCTL_ARCH_UNALIGN_ALLOW
1282 bool
1283 help
1284 Enable support for /proc/sys/kernel/unaligned-trap
1285 Allows arches to define/use @unaligned_enabled to runtime toggle
1286 the unaligned access emulation.
1287 see arch/parisc/kernel/unaligned.c for reference
1288
1289config KALLSYMS_UNCOMPRESSED
1290 bool "Keep kallsyms uncompressed"
1291 depends on KALLSYMS
1292 help
1293 Normally kallsyms contains compressed symbols (using a token table),
1294 reducing the uncompressed kernel image size. Keeping the symbol table
1295 uncompressed significantly improves the size of this part in compressed
1296 kernel images.
1297
1298 Say N unless you need compressed kernel images to be small.
1299
1300config HAVE_PCSPKR_PLATFORM
1301 bool
1302
1303# interpreter that classic socket filters depend on
1304config BPF
1305 bool
1306
1307menuconfig EXPERT
1308 bool "Configure standard kernel features (expert users)"
1309 # Unhide debug options, to make the on-by-default options visible
1310 select DEBUG_KERNEL
1311 help
1312 This option allows certain base kernel options and settings
1313 to be disabled or tweaked. This is for specialized
1314 environments which can tolerate a "non-standard" kernel.
1315 Only use this if you really know what you are doing.
1316
1317config UID16
1318 bool "Enable 16-bit UID system calls" if EXPERT
1319 depends on HAVE_UID16 && MULTIUSER
1320 default y
1321 help
1322 This enables the legacy 16-bit UID syscall wrappers.
1323
1324config MULTIUSER
1325 bool "Multiple users, groups and capabilities support" if EXPERT
1326 default y
1327 help
1328 This option enables support for non-root users, groups and
1329 capabilities.
1330
1331 If you say N here, all processes will run with UID 0, GID 0, and all
1332 possible capabilities. Saying N here also compiles out support for
1333 system calls related to UIDs, GIDs, and capabilities, such as setuid,
1334 setgid, and capset.
1335
1336 If unsure, say Y here.
1337
1338config SGETMASK_SYSCALL
1339 bool "sgetmask/ssetmask syscalls support" if EXPERT
1340 def_bool PARISC || M68K || PPC || MIPS || X86 || SPARC || MICROBLAZE || SUPERH
1341 ---help---
1342 sys_sgetmask and sys_ssetmask are obsolete system calls
1343 no longer supported in libc but still enabled by default in some
1344 architectures.
1345
1346 If unsure, leave the default option here.
1347
1348config SYSFS_SYSCALL
1349 bool "Sysfs syscall support" if EXPERT
1350 default y
1351 ---help---
1352 sys_sysfs is an obsolete system call no longer supported in libc.
1353 Note that disabling this option is more secure but might break
1354 compatibility with some systems.
1355
1356 If unsure say Y here.
1357
1358config SYSCTL_SYSCALL
1359 bool "Sysctl syscall support" if EXPERT
1360 depends on PROC_SYSCTL
1361 default n
1362 select SYSCTL
1363 ---help---
1364 sys_sysctl uses binary paths that have been found challenging
1365 to properly maintain and use. The interface in /proc/sys
1366 using paths with ascii names is now the primary path to this
1367 information.
1368
1369 Almost nothing using the binary sysctl interface so if you are
1370 trying to save some space it is probably safe to disable this,
1371 making your kernel marginally smaller.
1372
1373 If unsure say N here.
1374
1375config FHANDLE
1376 bool "open by fhandle syscalls" if EXPERT
1377 select EXPORTFS
1378 default y
1379 help
1380 If you say Y here, a user level program will be able to map
1381 file names to handle and then later use the handle for
1382 different file system operations. This is useful in implementing
1383 userspace file servers, which now track files using handles instead
1384 of names. The handle would remain the same even if file names
1385 get renamed. Enables open_by_handle_at(2) and name_to_handle_at(2)
1386 syscalls.
1387
1388config POSIX_TIMERS
1389 bool "Posix Clocks & timers" if EXPERT
1390 default y
1391 help
1392 This includes native support for POSIX timers to the kernel.
1393 Some embedded systems have no use for them and therefore they
1394 can be configured out to reduce the size of the kernel image.
1395
1396 When this option is disabled, the following syscalls won't be
1397 available: timer_create, timer_gettime: timer_getoverrun,
1398 timer_settime, timer_delete, clock_adjtime, getitimer,
1399 setitimer, alarm. Furthermore, the clock_settime, clock_gettime,
1400 clock_getres and clock_nanosleep syscalls will be limited to
1401 CLOCK_REALTIME, CLOCK_MONOTONIC and CLOCK_BOOTTIME only.
1402
1403 If unsure say y.
1404
1405config PRINTK
1406 default y
1407 bool "Enable support for printk" if EXPERT
1408 select IRQ_WORK
1409 help
1410 This option enables normal printk support. Removing it
1411 eliminates most of the message strings from the kernel image
1412 and makes the kernel more or less silent. As this makes it
1413 very difficult to diagnose system problems, saying N here is
1414 strongly discouraged.
1415
1416config PRINTK_NMI
1417 def_bool y
1418 depends on PRINTK
1419 depends on HAVE_NMI
1420
1421config BUG
1422 bool "BUG() support" if EXPERT
1423 default y
1424 help
1425 Disabling this option eliminates support for BUG and WARN, reducing
1426 the size of your kernel image and potentially quietly ignoring
1427 numerous fatal conditions. You should only consider disabling this
1428 option for embedded systems with no facilities for reporting errors.
1429 Just say Y.
1430
1431config ELF_CORE
1432 depends on COREDUMP
1433 default y
1434 bool "Enable ELF core dumps" if EXPERT
1435 help
1436 Enable support for generating core dumps. Disabling saves about 4k.
1437
1438
1439config PCSPKR_PLATFORM
1440 bool "Enable PC-Speaker support" if EXPERT
1441 depends on HAVE_PCSPKR_PLATFORM
1442 select I8253_LOCK
1443 default y
1444 help
1445 This option allows to disable the internal PC-Speaker
1446 support, saving some memory.
1447
1448config BASE_FULL
1449 default y
1450 bool "Enable full-sized data structures for core" if EXPERT
1451 help
1452 Disabling this option reduces the size of miscellaneous core
1453 kernel data structures. This saves memory on small machines,
1454 but may reduce performance.
1455
1456config FUTEX
1457 bool "Enable futex support" if EXPERT
1458 default y
1459 imply RT_MUTEXES
1460 help
1461 Disabling this option will cause the kernel to be built without
1462 support for "fast userspace mutexes". The resulting kernel may not
1463 run glibc-based applications correctly.
1464
1465config FUTEX_PI
1466 bool
1467 depends on FUTEX && RT_MUTEXES
1468 default y
1469
1470config HAVE_FUTEX_CMPXCHG
1471 bool
1472 depends on FUTEX
1473 help
1474 Architectures should select this if futex_atomic_cmpxchg_inatomic()
1475 is implemented and always working. This removes a couple of runtime
1476 checks.
1477
1478config EPOLL
1479 bool "Enable eventpoll support" if EXPERT
1480 default y
1481 help
1482 Disabling this option will cause the kernel to be built without
1483 support for epoll family of system calls.
1484
1485config SIGNALFD
1486 bool "Enable signalfd() system call" if EXPERT
1487 default y
1488 help
1489 Enable the signalfd() system call that allows to receive signals
1490 on a file descriptor.
1491
1492 If unsure, say Y.
1493
1494config TIMERFD
1495 bool "Enable timerfd() system call" if EXPERT
1496 default y
1497 help
1498 Enable the timerfd() system call that allows to receive timer
1499 events on a file descriptor.
1500
1501 If unsure, say Y.
1502
1503config EVENTFD
1504 bool "Enable eventfd() system call" if EXPERT
1505 default y
1506 help
1507 Enable the eventfd() system call that allows to receive both
1508 kernel notification (ie. KAIO) or userspace notifications.
1509
1510 If unsure, say Y.
1511
1512config SHMEM
1513 bool "Use full shmem filesystem" if EXPERT
1514 default y
1515 depends on MMU
1516 help
1517 The shmem is an internal filesystem used to manage shared memory.
1518 It is backed by swap and manages resource limits. It is also exported
1519 to userspace as tmpfs if TMPFS is enabled. Disabling this
1520 option replaces shmem and tmpfs with the much simpler ramfs code,
1521 which may be appropriate on small systems without swap.
1522
1523config AIO
1524 bool "Enable AIO support" if EXPERT
1525 default y
1526 help
1527 This option enables POSIX asynchronous I/O which may by used
1528 by some high performance threaded applications. Disabling
1529 this option saves about 7k.
1530
1531config ADVISE_SYSCALLS
1532 bool "Enable madvise/fadvise syscalls" if EXPERT
1533 default y
1534 help
1535 This option enables the madvise and fadvise syscalls, used by
1536 applications to advise the kernel about their future memory or file
1537 usage, improving performance. If building an embedded system where no
1538 applications use these syscalls, you can disable this option to save
1539 space.
1540
1541config MEMBARRIER
1542 bool "Enable membarrier() system call" if EXPERT
1543 default y
1544 help
1545 Enable the membarrier() system call that allows issuing memory
1546 barriers across all running threads, which can be used to distribute
1547 the cost of user-space memory barriers asymmetrically by transforming
1548 pairs of memory barriers into pairs consisting of membarrier() and a
1549 compiler barrier.
1550
1551 If unsure, say Y.
1552
1553config KALLSYMS
1554 bool "Load all symbols for debugging/ksymoops" if EXPERT
1555 default y
1556 help
1557 Say Y here to let the kernel print out symbolic crash information and
1558 symbolic stack backtraces. This increases the size of the kernel
1559 somewhat, as all symbols have to be loaded into the kernel image.
1560
1561config KALLSYMS_ALL
1562 bool "Include all symbols in kallsyms"
1563 depends on DEBUG_KERNEL && KALLSYMS
1564 help
1565 Normally kallsyms only contains the symbols of functions for nicer
1566 OOPS messages and backtraces (i.e., symbols from the text and inittext
1567 sections). This is sufficient for most cases. And only in very rare
1568 cases (e.g., when a debugger is used) all symbols are required (e.g.,
1569 names of variables from the data sections, etc).
1570
1571 This option makes sure that all symbols are loaded into the kernel
1572 image (i.e., symbols from all sections) in cost of increased kernel
1573 size (depending on the kernel configuration, it may be 300KiB or
1574 something like this).
1575
1576 Say N unless you really need all symbols.
1577
1578config KALLSYMS_ABSOLUTE_PERCPU
1579 bool
1580 depends on KALLSYMS
1581 default X86_64 && SMP
1582
1583config KALLSYMS_BASE_RELATIVE
1584 bool
1585 depends on KALLSYMS
1586 default !IA64
1587 help
1588 Instead of emitting them as absolute values in the native word size,
1589 emit the symbol references in the kallsyms table as 32-bit entries,
1590 each containing a relative value in the range [base, base + U32_MAX]
1591 or, when KALLSYMS_ABSOLUTE_PERCPU is in effect, each containing either
1592 an absolute value in the range [0, S32_MAX] or a relative value in the
1593 range [base, base + S32_MAX], where base is the lowest relative symbol
1594 address encountered in the image.
1595
1596 On 64-bit builds, this reduces the size of the address table by 50%,
1597 but more importantly, it results in entries whose values are build
1598 time constants, and no relocation pass is required at runtime to fix
1599 up the entries based on the runtime load address of the kernel.
1600
1601# end of the "standard kernel features (expert users)" menu
1602
1603# syscall, maps, verifier
1604config BPF_SYSCALL
1605 bool "Enable bpf() system call"
1606 select BPF
1607 select IRQ_WORK
1608 default n
1609 help
1610 Enable the bpf() system call that allows to manipulate eBPF
1611 programs and maps via file descriptors.
1612
1613config BPF_JIT_ALWAYS_ON
1614 bool "Permanently enable BPF JIT and remove BPF interpreter"
1615 depends on BPF_SYSCALL && HAVE_EBPF_JIT && BPF_JIT
1616 help
1617 Enables BPF JIT and removes BPF interpreter to avoid
1618 speculative execution of BPF instructions by the interpreter
1619
1620config USERFAULTFD
1621 bool "Enable userfaultfd() system call"
1622 depends on MMU
1623 help
1624 Enable the userfaultfd() system call that allows to intercept and
1625 handle page faults in userland.
1626
1627config ARCH_HAS_MEMBARRIER_CALLBACKS
1628 bool
1629
1630config ARCH_HAS_MEMBARRIER_SYNC_CORE
1631 bool
1632
1633config RSEQ
1634 bool "Enable rseq() system call" if EXPERT
1635 default y
1636 depends on HAVE_RSEQ
1637 select MEMBARRIER
1638 help
1639 Enable the restartable sequences system call. It provides a
1640 user-space cache for the current CPU number value, which
1641 speeds up getting the current CPU number from user-space,
1642 as well as an ABI to speed up user-space operations on
1643 per-CPU data.
1644
1645 If unsure, say Y.
1646
1647config DEBUG_RSEQ
1648 default n
1649 bool "Enabled debugging of rseq() system call" if EXPERT
1650 depends on RSEQ && DEBUG_KERNEL
1651 help
1652 Enable extra debugging checks for the rseq system call.
1653
1654 If unsure, say N.
1655
1656config EMBEDDED
1657 bool "Embedded system"
1658 option allnoconfig_y
1659 select EXPERT
1660 help
1661 This option should be enabled if compiling the kernel for
1662 an embedded system so certain expert options are available
1663 for configuration.
1664
1665config MANGLE_BOOTARGS
1666 bool "Rename offending bootargs"
1667 depends on EXPERT
1668 help
1669 Sometimes the bootloader passed bogus root= and rootfstype=
1670 parameters to the kernel, and while you want to ignore them,
1671 you need to know the values f.e. to support dual firmware
1672 layouts on the flash.
1673
1674config HAVE_PERF_EVENTS
1675 bool
1676 help
1677 See tools/perf/design.txt for details.
1678
1679config PERF_USE_VMALLOC
1680 bool
1681 help
1682 See tools/perf/design.txt for details
1683
1684config PC104
1685 bool "PC/104 support" if EXPERT
1686 help
1687 Expose PC/104 form factor device drivers and options available for
1688 selection and configuration. Enable this option if your target
1689 machine has a PC/104 bus.
1690
1691
1692menu "Extension scheduler feature"
1693source "kernel/sched/extension/Kconfig"
1694endmenu
1695
1696menu "Kernel Performance Events And Counters"
1697
1698config PERF_EVENTS
1699 bool "Kernel performance events and counters"
1700 default y if PROFILING
1701 depends on HAVE_PERF_EVENTS
1702 select IRQ_WORK
1703 select SRCU
1704 help
1705 Enable kernel support for various performance events provided
1706 by software and hardware.
1707
1708 Software events are supported either built-in or via the
1709 use of generic tracepoints.
1710
1711 Most modern CPUs support performance events via performance
1712 counter registers. These registers count the number of certain
1713 types of hw events: such as instructions executed, cachemisses
1714 suffered, or branches mis-predicted - without slowing down the
1715 kernel or applications. These registers can also trigger interrupts
1716 when a threshold number of events have passed - and can thus be
1717 used to profile the code that runs on that CPU.
1718
1719 The Linux Performance Event subsystem provides an abstraction of
1720 these software and hardware event capabilities, available via a
1721 system call and used by the "perf" utility in tools/perf/. It
1722 provides per task and per CPU counters, and it provides event
1723 capabilities on top of those.
1724
1725 Say Y if unsure.
1726
1727config DEBUG_PERF_USE_VMALLOC
1728 default n
1729 bool "Debug: use vmalloc to back perf mmap() buffers"
1730 depends on PERF_EVENTS && DEBUG_KERNEL && !PPC
1731 select PERF_USE_VMALLOC
1732 help
1733 Use vmalloc memory to back perf mmap() buffers.
1734
1735 Mostly useful for debugging the vmalloc code on platforms
1736 that don't require it.
1737
1738 Say N if unsure.
1739
1740endmenu
1741
1742config VM_EVENT_COUNTERS
1743 default y
1744 bool "Enable VM event counters for /proc/vmstat" if EXPERT
1745 help
1746 VM event counters are needed for event counts to be shown.
1747 This option allows the disabling of the VM event counters
1748 on EXPERT systems. /proc/vmstat will only show page counts
1749 if VM event counters are disabled.
1750
1751config SLUB_DEBUG
1752 default y
1753 bool "Enable SLUB debugging support" if EXPERT
1754 depends on SLUB && SYSFS
1755 help
1756 SLUB has extensive debug support features. Disabling these can
1757 result in significant savings in code size. This also disables
1758 SLUB sysfs support. /sys/slab will not exist and there will be
1759 no support for cache validation etc.
1760
1761config SLUB_MEMCG_SYSFS_ON
1762 default n
1763 bool "Enable memcg SLUB sysfs support by default" if EXPERT
1764 depends on SLUB && SYSFS && MEMCG
1765 help
1766 SLUB creates a directory under /sys/kernel/slab for each
1767 allocation cache to host info and debug files. If memory
1768 cgroup is enabled, each cache can have per memory cgroup
1769 caches. SLUB can create the same sysfs directories for these
1770 caches under /sys/kernel/slab/CACHE/cgroup but it can lead
1771 to a very high number of debug files being created. This is
1772 controlled by slub_memcg_sysfs boot parameter and this
1773 config option determines the parameter's default value.
1774
1775config COMPAT_BRK
1776 bool "Disable heap randomization"
1777 default y
1778 help
1779 Randomizing heap placement makes heap exploits harder, but it
1780 also breaks ancient binaries (including anything libc5 based).
1781 This option changes the bootup default to heap randomization
1782 disabled, and can be overridden at runtime by setting
1783 /proc/sys/kernel/randomize_va_space to 2.
1784
1785 On non-ancient distros (post-2000 ones) N is usually a safe choice.
1786
1787choice
1788 prompt "Choose SLAB allocator"
1789 default SLUB
1790 help
1791 This option allows to select a slab allocator.
1792
1793config SLAB
1794 bool "SLAB"
1795 select HAVE_HARDENED_USERCOPY_ALLOCATOR
1796 help
1797 The regular slab allocator that is established and known to work
1798 well in all environments. It organizes cache hot objects in
1799 per cpu and per node queues.
1800
1801config SLUB
1802 bool "SLUB (Unqueued Allocator)"
1803 select HAVE_HARDENED_USERCOPY_ALLOCATOR
1804 help
1805 SLUB is a slab allocator that minimizes cache line usage
1806 instead of managing queues of cached objects (SLAB approach).
1807 Per cpu caching is realized using slabs of objects instead
1808 of queues of objects. SLUB can use memory efficiently
1809 and has enhanced diagnostics. SLUB is the default choice for
1810 a slab allocator.
1811
1812config SLOB
1813 depends on EXPERT
1814 bool "SLOB (Simple Allocator)"
1815 help
1816 SLOB replaces the stock allocator with a drastically simpler
1817 allocator. SLOB is generally more space efficient but
1818 does not perform as well on large systems.
1819
1820endchoice
1821
1822config SLAB_MERGE_DEFAULT
1823 bool "Allow slab caches to be merged"
1824 default y
1825 help
1826 For reduced kernel memory fragmentation, slab caches can be
1827 merged when they share the same size and other characteristics.
1828 This carries a risk of kernel heap overflows being able to
1829 overwrite objects from merged caches (and more easily control
1830 cache layout), which makes such heap attacks easier to exploit
1831 by attackers. By keeping caches unmerged, these kinds of exploits
1832 can usually only damage objects in the same cache. To disable
1833 merging at runtime, "slab_nomerge" can be passed on the kernel
1834 command line.
1835
1836config SLAB_FREELIST_RANDOM
1837 default n
1838 depends on SLAB || SLUB
1839 bool "SLAB freelist randomization"
1840 help
1841 Randomizes the freelist order used on creating new pages. This
1842 security feature reduces the predictability of the kernel slab
1843 allocator against heap overflows.
1844
1845config SLAB_FREELIST_HARDENED
1846 bool "Harden slab freelist metadata"
1847 depends on SLUB
1848 help
1849 Many kernel heap attacks try to target slab cache metadata and
1850 other infrastructure. This options makes minor performance
1851 sacrifies to harden the kernel slab allocator against common
1852 freelist exploit methods.
1853
1854config SLUB_CPU_PARTIAL
1855 default y
1856 depends on SLUB && SMP
1857 bool "SLUB per cpu partial cache"
1858 help
1859 Per cpu partial caches accellerate objects allocation and freeing
1860 that is local to a processor at the price of more indeterminism
1861 in the latency of the free. On overflow these caches will be cleared
1862 which requires the taking of locks that may cause latency spikes.
1863 Typically one would choose no for a realtime system.
1864
1865config MMAP_ALLOW_UNINITIALIZED
1866 bool "Allow mmapped anonymous memory to be uninitialized"
1867 depends on EXPERT && !MMU
1868 default n
1869 help
1870 Normally, and according to the Linux spec, anonymous memory obtained
1871 from mmap() has its contents cleared before it is passed to
1872 userspace. Enabling this config option allows you to request that
1873 mmap() skip that if it is given an MAP_UNINITIALIZED flag, thus
1874 providing a huge performance boost. If this option is not enabled,
1875 then the flag will be ignored.
1876
1877 This is taken advantage of by uClibc's malloc(), and also by
1878 ELF-FDPIC binfmt's brk and stack allocator.
1879
1880 Because of the obvious security issues, this option should only be
1881 enabled on embedded devices where you control what is run in
1882 userspace. Since that isn't generally a problem on no-MMU systems,
1883 it is normally safe to say Y here.
1884
1885 See Documentation/nommu-mmap.txt for more information.
1886
1887config SYSTEM_DATA_VERIFICATION
1888 def_bool n
1889 select SYSTEM_TRUSTED_KEYRING
1890 select KEYS
1891 select CRYPTO
1892 select CRYPTO_RSA
1893 select ASYMMETRIC_KEY_TYPE
1894 select ASYMMETRIC_PUBLIC_KEY_SUBTYPE
1895 select ASN1
1896 select OID_REGISTRY
1897 select X509_CERTIFICATE_PARSER
1898 select PKCS7_MESSAGE_PARSER
1899 help
1900 Provide PKCS#7 message verification using the contents of the system
1901 trusted keyring to provide public keys. This then can be used for
1902 module verification, kexec image verification and firmware blob
1903 verification.
1904
1905config PROFILING
1906 bool "Profiling support"
1907 help
1908 Say Y here to enable the extended profiling support mechanisms used
1909 by profilers such as OProfile.
1910
1911#
1912# Place an empty function call at each tracepoint site. Can be
1913# dynamically changed for a probe function.
1914#
1915config TRACEPOINTS
1916 bool
1917
1918endmenu # General setup
1919
1920source "arch/Kconfig"
1921
1922config RT_MUTEXES
1923 bool
1924
1925config BASE_SMALL
1926 int
1927 default 0 if BASE_FULL
1928 default 1 if !BASE_FULL
1929
1930menuconfig MODULES
1931 bool "Enable loadable module support"
1932 option modules
1933 help
1934 Kernel modules are small pieces of compiled code which can
1935 be inserted in the running kernel, rather than being
1936 permanently built into the kernel. You use the "modprobe"
1937 tool to add (and sometimes remove) them. If you say Y here,
1938 many parts of the kernel can be built as modules (by
1939 answering M instead of Y where indicated): this is most
1940 useful for infrequently used options which are not required
1941 for booting. For more information, see the man pages for
1942 modprobe, lsmod, modinfo, insmod and rmmod.
1943
1944 If you say Y here, you will need to run "make
1945 modules_install" to put the modules under /lib/modules/
1946 where modprobe can find them (you may need to be root to do
1947 this).
1948
1949 If unsure, say Y.
1950
1951if MODULES
1952
1953config MODULE_FORCE_LOAD
1954 bool "Forced module loading"
1955 default n
1956 help
1957 Allow loading of modules without version information (ie. modprobe
1958 --force). Forced module loading sets the 'F' (forced) taint flag and
1959 is usually a really bad idea.
1960
1961config MODULE_UNLOAD
1962 bool "Module unloading"
1963 help
1964 Without this option you will not be able to unload any
1965 modules (note that some modules may not be unloadable
1966 anyway), which makes your kernel smaller, faster
1967 and simpler. If unsure, say Y.
1968
1969config MODULE_FORCE_UNLOAD
1970 bool "Forced module unloading"
1971 depends on MODULE_UNLOAD
1972 help
1973 This option allows you to force a module to unload, even if the
1974 kernel believes it is unsafe: the kernel will remove the module
1975 without waiting for anyone to stop using it (using the -f option to
1976 rmmod). This is mainly for kernel developers and desperate users.
1977 If unsure, say N.
1978
1979config MODVERSIONS
1980 bool "Module versioning support"
1981 help
1982 Usually, you have to use modules compiled with your kernel.
1983 Saying Y here makes it sometimes possible to use modules
1984 compiled for different kernels, by adding enough information
1985 to the modules to (hopefully) spot any changes which would
1986 make them incompatible with the kernel you are running. If
1987 unsure, say N.
1988
1989config MODULE_REL_CRCS
1990 bool
1991 depends on MODVERSIONS
1992
1993config MODULE_SRCVERSION_ALL
1994 bool "Source checksum for all modules"
1995 help
1996 Modules which contain a MODULE_VERSION get an extra "srcversion"
1997 field inserted into their modinfo section, which contains a
1998 sum of the source files which made it. This helps maintainers
1999 see exactly which source was used to build a module (since
2000 others sometimes change the module source without updating
2001 the version). With this option, such a "srcversion" field
2002 will be created for all modules. If unsure, say N.
2003
2004config MODULE_SIG
2005 bool "Module signature verification"
2006 depends on MODULES
2007 select SYSTEM_DATA_VERIFICATION
2008 help
2009 Check modules for valid signatures upon load: the signature
2010 is simply appended to the module. For more information see
2011 <file:Documentation/admin-guide/module-signing.rst>.
2012
2013 Note that this option adds the OpenSSL development packages as a
2014 kernel build dependency so that the signing tool can use its crypto
2015 library.
2016
2017 !!!WARNING!!! If you enable this option, you MUST make sure that the
2018 module DOES NOT get stripped after being signed. This includes the
2019 debuginfo strip done by some packagers (such as rpmbuild) and
2020 inclusion into an initramfs that wants the module size reduced.
2021
2022config MODULE_SIG_FORCE
2023 bool "Require modules to be validly signed"
2024 depends on MODULE_SIG
2025 help
2026 Reject unsigned modules or signed modules for which we don't have a
2027 key. Without this, such modules will simply taint the kernel.
2028
2029config MODULE_SIG_ALL
2030 bool "Automatically sign all modules"
2031 default y
2032 depends on MODULE_SIG
2033 help
2034 Sign all modules during make modules_install. Without this option,
2035 modules must be signed manually, using the scripts/sign-file tool.
2036
2037comment "Do not forget to sign required modules with scripts/sign-file"
2038 depends on MODULE_SIG_FORCE && !MODULE_SIG_ALL
2039
2040choice
2041 prompt "Which hash algorithm should modules be signed with?"
2042 depends on MODULE_SIG
2043 help
2044 This determines which sort of hashing algorithm will be used during
2045 signature generation. This algorithm _must_ be built into the kernel
2046 directly so that signature verification can take place. It is not
2047 possible to load a signed module containing the algorithm to check
2048 the signature on that module.
2049
2050config MODULE_SIG_SHA1
2051 bool "Sign modules with SHA-1"
2052 select CRYPTO_SHA1
2053
2054config MODULE_SIG_SHA224
2055 bool "Sign modules with SHA-224"
2056 select CRYPTO_SHA256
2057
2058config MODULE_SIG_SHA256
2059 bool "Sign modules with SHA-256"
2060 select CRYPTO_SHA256
2061
2062config MODULE_SIG_SHA384
2063 bool "Sign modules with SHA-384"
2064 select CRYPTO_SHA512
2065
2066config MODULE_SIG_SHA512
2067 bool "Sign modules with SHA-512"
2068 select CRYPTO_SHA512
2069
2070endchoice
2071
2072config MODULE_SIG_HASH
2073 string
2074 depends on MODULE_SIG
2075 default "sha1" if MODULE_SIG_SHA1
2076 default "sha224" if MODULE_SIG_SHA224
2077 default "sha256" if MODULE_SIG_SHA256
2078 default "sha384" if MODULE_SIG_SHA384
2079 default "sha512" if MODULE_SIG_SHA512
2080
2081config MODULE_COMPRESS
2082 bool "Compress modules on installation"
2083 depends on MODULES
2084 help
2085
2086 Compresses kernel modules when 'make modules_install' is run; gzip or
2087 xz depending on "Compression algorithm" below.
2088
2089 module-init-tools MAY support gzip, and kmod MAY support gzip and xz.
2090
2091 Out-of-tree kernel modules installed using Kbuild will also be
2092 compressed upon installation.
2093
2094 Note: for modules inside an initrd or initramfs, it's more efficient
2095 to compress the whole initrd or initramfs instead.
2096
2097 Note: This is fully compatible with signed modules.
2098
2099 If in doubt, say N.
2100
2101choice
2102 prompt "Compression algorithm"
2103 depends on MODULE_COMPRESS
2104 default MODULE_COMPRESS_GZIP
2105 help
2106 This determines which sort of compression will be used during
2107 'make modules_install'.
2108
2109 GZIP (default) and XZ are supported.
2110
2111config MODULE_COMPRESS_GZIP
2112 bool "GZIP"
2113
2114config MODULE_COMPRESS_XZ
2115 bool "XZ"
2116
2117endchoice
2118
2119config TRIM_UNUSED_KSYMS
2120 bool "Trim unused exported kernel symbols"
2121 depends on MODULES && !UNUSED_SYMBOLS
2122 help
2123 The kernel and some modules make many symbols available for
2124 other modules to use via EXPORT_SYMBOL() and variants. Depending
2125 on the set of modules being selected in your kernel configuration,
2126 many of those exported symbols might never be used.
2127
2128 This option allows for unused exported symbols to be dropped from
2129 the build. In turn, this provides the compiler more opportunities
2130 (especially when using LTO) for optimizing the code and reducing
2131 binary size. This might have some security advantages as well.
2132
2133 If unsure, or if you need to build out-of-tree modules, say N.
2134
2135config MODULE_STRIPPED
2136 bool "Reduce module size"
2137 depends on MODULES
2138 help
2139 Remove module parameter descriptions, author info, version, aliases,
2140 device tables, etc.
2141
2142endif # MODULES
2143
2144config MODULES_TREE_LOOKUP
2145 def_bool y
2146 depends on PERF_EVENTS || TRACING || CFI_CLANG
2147
2148config INIT_ALL_POSSIBLE
2149 bool
2150 help
2151 Back when each arch used to define their own cpu_online_mask and
2152 cpu_possible_mask, some of them chose to initialize cpu_possible_mask
2153 with all 1s, and others with all 0s. When they were centralised,
2154 it was better to provide this option than to break all the archs
2155 and have several arch maintainers pursuing me down dark alleys.
2156
2157source "block/Kconfig"
2158
2159config PREEMPT_NOTIFIERS
2160 bool
2161
2162config PADATA
2163 depends on SMP
2164 bool
2165
2166config ASN1
2167 tristate
2168 help
2169 Build a simple ASN.1 grammar compiler that produces a bytecode output
2170 that can be interpreted by the ASN.1 stream decoder and used to
2171 inform it as to what tags are to be expected in a stream and what
2172 functions to call on what tags.
2173
2174source "kernel/Kconfig.locks"
2175
2176config ARCH_HAS_SYNC_CORE_BEFORE_USERMODE
2177 bool
2178
2179# It may be useful for an architecture to override the definitions of the
2180# SYSCALL_DEFINE() and __SYSCALL_DEFINEx() macros in <linux/syscalls.h>
2181# and the COMPAT_ variants in <linux/compat.h>, in particular to use a
2182# different calling convention for syscalls. They can also override the
2183# macros for not-implemented syscalls in kernel/sys_ni.c and
2184# kernel/time/posix-stubs.c. All these overrides need to be available in
2185# <asm/syscall_wrapper.h>.
2186config ARCH_HAS_SYSCALL_WRAPPER
2187 def_bool n
2188
2189source "init/Kconfig.gki"