Kconfig 67 KB

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