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