Kconfig 64 KB

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