Kconfig 67 KB

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