Kconfig 67 KB

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