Kconfig 61 KB

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