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