Kconfig 67 KB

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