Kconfig 67 KB

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