Kconfig 32 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034
  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. menu "General setup"
  17. config EXPERIMENTAL
  18. bool "Prompt for development and/or incomplete code/drivers"
  19. ---help---
  20. Some of the various things that Linux supports (such as network
  21. drivers, file systems, network protocols, etc.) can be in a state
  22. of development where the functionality, stability, or the level of
  23. testing is not yet high enough for general use. This is usually
  24. known as the "alpha-test" phase among developers. If a feature is
  25. currently in alpha-test, then the developers usually discourage
  26. uninformed widespread use of this feature by the general public to
  27. avoid "Why doesn't this work?" type mail messages. However, active
  28. testing and use of these systems is welcomed. Just be aware that it
  29. may not meet the normal level of reliability or it may fail to work
  30. in some special cases. Detailed bug reports from people familiar
  31. with the kernel internals are usually welcomed by the developers
  32. (before submitting bug reports, please read the documents
  33. <file:README>, <file:MAINTAINERS>, <file:REPORTING-BUGS>,
  34. <file:Documentation/BUG-HUNTING>, and
  35. <file:Documentation/oops-tracing.txt> in the kernel source).
  36. This option will also make obsoleted drivers available. These are
  37. drivers that have been replaced by something else, and/or are
  38. scheduled to be removed in a future kernel release.
  39. Unless you intend to help test and develop a feature or driver that
  40. falls into this category, or you have a situation that requires
  41. using these features, you should probably say N here, which will
  42. cause the configurator to present you with fewer choices. If
  43. you say Y here, you will be offered the choice of using features or
  44. drivers that are currently considered to be in the alpha-test phase.
  45. config BROKEN
  46. bool
  47. config BROKEN_ON_SMP
  48. bool
  49. depends on BROKEN || !SMP
  50. default y
  51. config LOCK_KERNEL
  52. bool
  53. depends on SMP || PREEMPT
  54. default y
  55. config INIT_ENV_ARG_LIMIT
  56. int
  57. default 32 if !UML
  58. default 128 if UML
  59. help
  60. Maximum of each of the number of arguments and environment
  61. variables passed to init from the kernel command line.
  62. config LOCALVERSION
  63. string "Local version - append to kernel release"
  64. help
  65. Append an extra string to the end of your kernel version.
  66. This will show up when you type uname, for example.
  67. The string you set here will be appended after the contents of
  68. any files with a filename matching localversion* in your
  69. object and source tree, in that order. Your total string can
  70. be a maximum of 64 characters.
  71. config LOCALVERSION_AUTO
  72. bool "Automatically append version information to the version string"
  73. default y
  74. help
  75. This will try to automatically determine if the current tree is a
  76. release tree by looking for git tags that belong to the current
  77. top of tree revision.
  78. A string of the format -gxxxxxxxx will be added to the localversion
  79. if a git-based tree is found. The string generated by this will be
  80. appended after any matching localversion* files, and after the value
  81. set in CONFIG_LOCALVERSION.
  82. (The actual string used here is the first eight characters produced
  83. by running the command:
  84. $ git rev-parse --verify HEAD
  85. which is done within the script "scripts/setlocalversion".)
  86. config SWAP
  87. bool "Support for paging of anonymous memory (swap)"
  88. depends on MMU && BLOCK
  89. default y
  90. help
  91. This option allows you to choose whether you want to have support
  92. for so called swap devices or swap files in your kernel that are
  93. used to provide more virtual memory than the actual RAM present
  94. in your computer. If unsure say Y.
  95. config SYSVIPC
  96. bool "System V IPC"
  97. ---help---
  98. Inter Process Communication is a suite of library functions and
  99. system calls which let processes (running programs) synchronize and
  100. exchange information. It is generally considered to be a good thing,
  101. and some programs won't run unless you say Y here. In particular, if
  102. you want to run the DOS emulator dosemu under Linux (read the
  103. DOSEMU-HOWTO, available from <http://www.tldp.org/docs.html#howto>),
  104. you'll need to say Y here.
  105. You can find documentation about IPC with "info ipc" and also in
  106. section 6.4 of the Linux Programmer's Guide, available from
  107. <http://www.tldp.org/guides.html>.
  108. config SYSVIPC_SYSCTL
  109. bool
  110. depends on SYSVIPC
  111. depends on SYSCTL
  112. default y
  113. config POSIX_MQUEUE
  114. bool "POSIX Message Queues"
  115. depends on NET && EXPERIMENTAL
  116. ---help---
  117. POSIX variant of message queues is a part of IPC. In POSIX message
  118. queues every message has a priority which decides about succession
  119. of receiving it by a process. If you want to compile and run
  120. programs written e.g. for Solaris with use of its POSIX message
  121. queues (functions mq_*) say Y here.
  122. POSIX message queues are visible as a filesystem called 'mqueue'
  123. and can be mounted somewhere if you want to do filesystem
  124. operations on message queues.
  125. If unsure, say Y.
  126. config BSD_PROCESS_ACCT
  127. bool "BSD Process Accounting"
  128. help
  129. If you say Y here, a user level program will be able to instruct the
  130. kernel (via a special system call) to write process accounting
  131. information to a file: whenever a process exits, information about
  132. that process will be appended to the file by the kernel. The
  133. information includes things such as creation time, owning user,
  134. command name, memory usage, controlling terminal etc. (the complete
  135. list is in the struct acct in <file:include/linux/acct.h>). It is
  136. up to the user level program to do useful things with this
  137. information. This is generally a good idea, so say Y.
  138. config BSD_PROCESS_ACCT_V3
  139. bool "BSD Process Accounting version 3 file format"
  140. depends on BSD_PROCESS_ACCT
  141. default n
  142. help
  143. If you say Y here, the process accounting information is written
  144. in a new file format that also logs the process IDs of each
  145. process and it's parent. Note that this file format is incompatible
  146. with previous v0/v1/v2 file formats, so you will need updated tools
  147. for processing it. A preliminary version of these tools is available
  148. at <http://www.gnu.org/software/acct/>.
  149. config TASKSTATS
  150. bool "Export task/process statistics through netlink (EXPERIMENTAL)"
  151. depends on NET
  152. default n
  153. help
  154. Export selected statistics for tasks/processes through the
  155. generic netlink interface. Unlike BSD process accounting, the
  156. statistics are available during the lifetime of tasks/processes as
  157. responses to commands. Like BSD accounting, they are sent to user
  158. space on task exit.
  159. Say N if unsure.
  160. config TASK_DELAY_ACCT
  161. bool "Enable per-task delay accounting (EXPERIMENTAL)"
  162. depends on TASKSTATS
  163. help
  164. Collect information on time spent by a task waiting for system
  165. resources like cpu, synchronous block I/O completion and swapping
  166. in pages. Such statistics can help in setting a task's priorities
  167. relative to other tasks for cpu, io, rss limits etc.
  168. Say N if unsure.
  169. config TASK_XACCT
  170. bool "Enable extended accounting over taskstats (EXPERIMENTAL)"
  171. depends on TASKSTATS
  172. help
  173. Collect extended task accounting data and send the data
  174. to userland for processing over the taskstats interface.
  175. Say N if unsure.
  176. config TASK_IO_ACCOUNTING
  177. bool "Enable per-task storage I/O accounting (EXPERIMENTAL)"
  178. depends on TASK_XACCT
  179. help
  180. Collect information on the number of bytes of storage I/O which this
  181. task has caused.
  182. Say N if unsure.
  183. config AUDIT
  184. bool "Auditing support"
  185. depends on NET
  186. help
  187. Enable auditing infrastructure that can be used with another
  188. kernel subsystem, such as SELinux (which requires this for
  189. logging of avc messages output). Does not do system-call
  190. auditing without CONFIG_AUDITSYSCALL.
  191. config AUDITSYSCALL
  192. bool "Enable system-call auditing support"
  193. depends on AUDIT && (X86 || PPC || PPC64 || S390 || IA64 || UML || SPARC64|| SUPERH)
  194. default y if SECURITY_SELINUX
  195. help
  196. Enable low-overhead system-call auditing infrastructure that
  197. can be used independently or with another kernel subsystem,
  198. such as SELinux. To use audit's filesystem watch feature, please
  199. ensure that INOTIFY is configured.
  200. config AUDIT_TREE
  201. def_bool y
  202. depends on AUDITSYSCALL && INOTIFY
  203. config IKCONFIG
  204. tristate "Kernel .config support"
  205. ---help---
  206. This option enables the complete Linux kernel ".config" file
  207. contents to be saved in the kernel. It provides documentation
  208. of which kernel options are used in a running kernel or in an
  209. on-disk kernel. This information can be extracted from the kernel
  210. image file with the script scripts/extract-ikconfig and used as
  211. input to rebuild the current kernel or to build another kernel.
  212. It can also be extracted from a running kernel by reading
  213. /proc/config.gz if enabled (below).
  214. config IKCONFIG_PROC
  215. bool "Enable access to .config through /proc/config.gz"
  216. depends on IKCONFIG && PROC_FS
  217. ---help---
  218. This option enables access to the kernel configuration file
  219. through /proc/config.gz.
  220. config LOG_BUF_SHIFT
  221. int "Kernel log buffer size (16 => 64KB, 17 => 128KB)"
  222. range 12 21
  223. default 17
  224. help
  225. Select kernel log buffer size as a power of 2.
  226. Examples:
  227. 17 => 128 KB
  228. 16 => 64 KB
  229. 15 => 32 KB
  230. 14 => 16 KB
  231. 13 => 8 KB
  232. 12 => 4 KB
  233. config CGROUPS
  234. bool "Control Group support"
  235. help
  236. This option will let you use process cgroup subsystems
  237. such as Cpusets
  238. Say N if unsure.
  239. config CGROUP_DEBUG
  240. bool "Example debug cgroup subsystem"
  241. depends on CGROUPS
  242. default n
  243. help
  244. This option enables a simple cgroup subsystem that
  245. exports useful debugging information about the cgroups
  246. framework
  247. Say N if unsure
  248. config CGROUP_NS
  249. bool "Namespace cgroup subsystem"
  250. depends on CGROUPS
  251. help
  252. Provides a simple namespace cgroup subsystem to
  253. provide hierarchical naming of sets of namespaces,
  254. for instance virtual servers and checkpoint/restart
  255. jobs.
  256. config CGROUP_FREEZER
  257. bool "control group freezer subsystem"
  258. depends on CGROUPS
  259. help
  260. Provides a way to freeze and unfreeze all tasks in a
  261. cgroup.
  262. config CGROUP_DEVICE
  263. bool "Device controller for cgroups"
  264. depends on CGROUPS && EXPERIMENTAL
  265. help
  266. Provides a cgroup implementing whitelists for devices which
  267. a process in the cgroup can mknod or open.
  268. config CPUSETS
  269. bool "Cpuset support"
  270. depends on SMP && CGROUPS
  271. help
  272. This option will let you create and manage CPUSETs which
  273. allow dynamically partitioning a system into sets of CPUs and
  274. Memory Nodes and assigning tasks to run only within those sets.
  275. This is primarily useful on large SMP or NUMA systems.
  276. Say N if unsure.
  277. #
  278. # Architectures with an unreliable sched_clock() should select this:
  279. #
  280. config HAVE_UNSTABLE_SCHED_CLOCK
  281. bool
  282. config GROUP_SCHED
  283. bool "Group CPU scheduler"
  284. depends on EXPERIMENTAL
  285. default n
  286. help
  287. This feature lets CPU scheduler recognize task groups and control CPU
  288. bandwidth allocation to such task groups.
  289. config FAIR_GROUP_SCHED
  290. bool "Group scheduling for SCHED_OTHER"
  291. depends on GROUP_SCHED
  292. default GROUP_SCHED
  293. config RT_GROUP_SCHED
  294. bool "Group scheduling for SCHED_RR/FIFO"
  295. depends on EXPERIMENTAL
  296. depends on GROUP_SCHED
  297. default n
  298. help
  299. This feature lets you explicitly allocate real CPU bandwidth
  300. to users or control groups (depending on the "Basis for grouping tasks"
  301. setting below. If enabled, it will also make it impossible to
  302. schedule realtime tasks for non-root users until you allocate
  303. realtime bandwidth for them.
  304. See Documentation/scheduler/sched-rt-group.txt for more information.
  305. choice
  306. depends on GROUP_SCHED
  307. prompt "Basis for grouping tasks"
  308. default USER_SCHED
  309. config USER_SCHED
  310. bool "user id"
  311. help
  312. This option will choose userid as the basis for grouping
  313. tasks, thus providing equal CPU bandwidth to each user.
  314. config CGROUP_SCHED
  315. bool "Control groups"
  316. depends on CGROUPS
  317. help
  318. This option allows you to create arbitrary task groups
  319. using the "cgroup" pseudo filesystem and control
  320. the cpu bandwidth allocated to each such task group.
  321. Refer to Documentation/cgroups.txt for more information
  322. on "cgroup" pseudo filesystem.
  323. endchoice
  324. config CGROUP_CPUACCT
  325. bool "Simple CPU accounting cgroup subsystem"
  326. depends on CGROUPS
  327. help
  328. Provides a simple Resource Controller for monitoring the
  329. total CPU consumed by the tasks in a cgroup
  330. config RESOURCE_COUNTERS
  331. bool "Resource counters"
  332. help
  333. This option enables controller independent resource accounting
  334. infrastructure that works with cgroups
  335. depends on CGROUPS
  336. config MM_OWNER
  337. bool
  338. config CGROUP_MEM_RES_CTLR
  339. bool "Memory Resource Controller for Control Groups"
  340. depends on CGROUPS && RESOURCE_COUNTERS
  341. select MM_OWNER
  342. help
  343. Provides a memory resource controller that manages both anonymous
  344. memory and page cache. (See Documentation/controllers/memory.txt)
  345. Note that setting this option increases fixed memory overhead
  346. associated with each page of memory in the system. By this,
  347. 20(40)bytes/PAGE_SIZE on 32(64)bit system will be occupied by memory
  348. usage tracking struct at boot. Total amount of this is printed out
  349. at boot.
  350. Only enable when you're ok with these trade offs and really
  351. sure you need the memory resource controller. Even when you enable
  352. this, you can set "cgroup_disable=memory" at your boot option to
  353. disable memory resource controller and you can avoid overheads.
  354. (and lose benefits of memory resource contoller)
  355. This config option also selects MM_OWNER config option, which
  356. could in turn add some fork/exit overhead.
  357. config SYSFS_DEPRECATED
  358. bool
  359. config SYSFS_DEPRECATED_V2
  360. bool "Create deprecated sysfs layout for older userspace tools"
  361. depends on SYSFS
  362. default y
  363. select SYSFS_DEPRECATED
  364. help
  365. This option switches the layout of sysfs to the deprecated
  366. version.
  367. The current sysfs layout features a unified device tree at
  368. /sys/devices/, which is able to express a hierarchy between
  369. class devices. If the deprecated option is set to Y, the
  370. unified device tree is split into a bus device tree at
  371. /sys/devices/ and several individual class device trees at
  372. /sys/class/. The class and bus devices will be connected by
  373. "<subsystem>:<name>" and the "device" links. The "block"
  374. class devices, will not show up in /sys/class/block/. Some
  375. subsystems will suppress the creation of some devices which
  376. depend on the unified device tree.
  377. This option is not a pure compatibility option that can
  378. be safely enabled on newer distributions. It will change the
  379. layout of sysfs to the non-extensible deprecated version,
  380. and disable some features, which can not be exported without
  381. confusing older userspace tools. Since 2007/2008 all major
  382. distributions do not enable this option, and ship no tools which
  383. depend on the deprecated layout or this option.
  384. If you are using a new kernel on an older distribution, or use
  385. older userspace tools, you might need to say Y here. Do not say Y,
  386. if the original kernel, that came with your distribution, has
  387. this option set to N.
  388. config PROC_PID_CPUSET
  389. bool "Include legacy /proc/<pid>/cpuset file"
  390. depends on CPUSETS
  391. default y
  392. config RELAY
  393. bool "Kernel->user space relay support (formerly relayfs)"
  394. help
  395. This option enables support for relay interface support in
  396. certain file systems (such as debugfs).
  397. It is designed to provide an efficient mechanism for tools and
  398. facilities to relay large amounts of data from kernel space to
  399. user space.
  400. If unsure, say N.
  401. config NAMESPACES
  402. bool "Namespaces support" if EMBEDDED
  403. default !EMBEDDED
  404. help
  405. Provides the way to make tasks work with different objects using
  406. the same id. For example same IPC id may refer to different objects
  407. or same user id or pid may refer to different tasks when used in
  408. different namespaces.
  409. config UTS_NS
  410. bool "UTS namespace"
  411. depends on NAMESPACES
  412. help
  413. In this namespace tasks see different info provided with the
  414. uname() system call
  415. config IPC_NS
  416. bool "IPC namespace"
  417. depends on NAMESPACES && SYSVIPC
  418. help
  419. In this namespace tasks work with IPC ids which correspond to
  420. different IPC objects in different namespaces
  421. config USER_NS
  422. bool "User namespace (EXPERIMENTAL)"
  423. depends on NAMESPACES && EXPERIMENTAL
  424. help
  425. This allows containers, i.e. vservers, to use user namespaces
  426. to provide different user info for different servers.
  427. If unsure, say N.
  428. config PID_NS
  429. bool "PID Namespaces (EXPERIMENTAL)"
  430. default n
  431. depends on NAMESPACES && EXPERIMENTAL
  432. help
  433. Support process id namespaces. This allows having multiple
  434. process with the same pid as long as they are in different
  435. pid namespaces. This is a building block of containers.
  436. Unless you want to work with an experimental feature
  437. say N here.
  438. config BLK_DEV_INITRD
  439. bool "Initial RAM filesystem and RAM disk (initramfs/initrd) support"
  440. depends on BROKEN || !FRV
  441. help
  442. The initial RAM filesystem is a ramfs which is loaded by the
  443. boot loader (loadlin or lilo) and that is mounted as root
  444. before the normal boot procedure. It is typically used to
  445. load modules needed to mount the "real" root file system,
  446. etc. See <file:Documentation/initrd.txt> for details.
  447. If RAM disk support (BLK_DEV_RAM) is also included, this
  448. also enables initial RAM disk (initrd) support and adds
  449. 15 Kbytes (more on some other architectures) to the kernel size.
  450. If unsure say Y.
  451. if BLK_DEV_INITRD
  452. source "usr/Kconfig"
  453. endif
  454. config CC_OPTIMIZE_FOR_SIZE
  455. bool "Optimize for size"
  456. default y
  457. help
  458. Enabling this option will pass "-Os" instead of "-O2" to gcc
  459. resulting in a smaller kernel.
  460. If unsure, say Y.
  461. config SYSCTL
  462. bool
  463. menuconfig EMBEDDED
  464. bool "Configure standard kernel features (for small systems)"
  465. help
  466. This option allows certain base kernel options and settings
  467. to be disabled or tweaked. This is for specialized
  468. environments which can tolerate a "non-standard" kernel.
  469. Only use this if you really know what you are doing.
  470. config UID16
  471. bool "Enable 16-bit UID system calls" if EMBEDDED
  472. depends on ARM || BLACKFIN || CRIS || FRV || H8300 || X86_32 || M68K || (S390 && !64BIT) || SUPERH || SPARC32 || (SPARC64 && COMPAT) || UML || (X86_64 && IA32_EMULATION)
  473. default y
  474. help
  475. This enables the legacy 16-bit UID syscall wrappers.
  476. config SYSCTL_SYSCALL
  477. bool "Sysctl syscall support" if EMBEDDED
  478. default y
  479. select SYSCTL
  480. ---help---
  481. sys_sysctl uses binary paths that have been found challenging
  482. to properly maintain and use. The interface in /proc/sys
  483. using paths with ascii names is now the primary path to this
  484. information.
  485. Almost nothing using the binary sysctl interface so if you are
  486. trying to save some space it is probably safe to disable this,
  487. making your kernel marginally smaller.
  488. If unsure say Y here.
  489. config KALLSYMS
  490. bool "Load all symbols for debugging/ksymoops" if EMBEDDED
  491. default y
  492. help
  493. Say Y here to let the kernel print out symbolic crash information and
  494. symbolic stack backtraces. This increases the size of the kernel
  495. somewhat, as all symbols have to be loaded into the kernel image.
  496. config KALLSYMS_ALL
  497. bool "Include all symbols in kallsyms"
  498. depends on DEBUG_KERNEL && KALLSYMS
  499. help
  500. Normally kallsyms only contains the symbols of functions, for nicer
  501. OOPS messages. Some debuggers can use kallsyms for other
  502. symbols too: say Y here to include all symbols, if you need them
  503. and you don't care about adding 300k to the size of your kernel.
  504. Say N.
  505. config KALLSYMS_STRIP_GENERATED
  506. bool "Strip machine generated symbols from kallsyms"
  507. depends on KALLSYMS_ALL
  508. default y
  509. help
  510. Say N if you want kallsyms to retain even machine generated symbols.
  511. config KALLSYMS_EXTRA_PASS
  512. bool "Do an extra kallsyms pass"
  513. depends on KALLSYMS
  514. help
  515. If kallsyms is not working correctly, the build will fail with
  516. inconsistent kallsyms data. If that occurs, log a bug report and
  517. turn on KALLSYMS_EXTRA_PASS which should result in a stable build.
  518. Always say N here unless you find a bug in kallsyms, which must be
  519. reported. KALLSYMS_EXTRA_PASS is only a temporary workaround while
  520. you wait for kallsyms to be fixed.
  521. config HOTPLUG
  522. bool "Support for hot-pluggable devices" if EMBEDDED
  523. default y
  524. help
  525. This option is provided for the case where no hotplug or uevent
  526. capabilities is wanted by the kernel. You should only consider
  527. disabling this option for embedded systems that do not use modules, a
  528. dynamic /dev tree, or dynamic device discovery. Just say Y.
  529. config PRINTK
  530. default y
  531. bool "Enable support for printk" if EMBEDDED
  532. help
  533. This option enables normal printk support. Removing it
  534. eliminates most of the message strings from the kernel image
  535. and makes the kernel more or less silent. As this makes it
  536. very difficult to diagnose system problems, saying N here is
  537. strongly discouraged.
  538. config BUG
  539. bool "BUG() support" if EMBEDDED
  540. default y
  541. help
  542. Disabling this option eliminates support for BUG and WARN, reducing
  543. the size of your kernel image and potentially quietly ignoring
  544. numerous fatal conditions. You should only consider disabling this
  545. option for embedded systems with no facilities for reporting errors.
  546. Just say Y.
  547. config ELF_CORE
  548. default y
  549. bool "Enable ELF core dumps" if EMBEDDED
  550. help
  551. Enable support for generating core dumps. Disabling saves about 4k.
  552. config PCSPKR_PLATFORM
  553. bool "Enable PC-Speaker support" if EMBEDDED
  554. depends on ALPHA || X86 || MIPS || PPC_PREP || PPC_CHRP || PPC_PSERIES
  555. default y
  556. help
  557. This option allows to disable the internal PC-Speaker
  558. support, saving some memory.
  559. config COMPAT_BRK
  560. bool "Disable heap randomization"
  561. default y
  562. help
  563. Randomizing heap placement makes heap exploits harder, but it
  564. also breaks ancient binaries (including anything libc5 based).
  565. This option changes the bootup default to heap randomization
  566. disabled, and can be overriden runtime by setting
  567. /proc/sys/kernel/randomize_va_space to 2.
  568. On non-ancient distros (post-2000 ones) N is usually a safe choice.
  569. config BASE_FULL
  570. default y
  571. bool "Enable full-sized data structures for core" if EMBEDDED
  572. help
  573. Disabling this option reduces the size of miscellaneous core
  574. kernel data structures. This saves memory on small machines,
  575. but may reduce performance.
  576. config FUTEX
  577. bool "Enable futex support" if EMBEDDED
  578. default y
  579. select RT_MUTEXES
  580. help
  581. Disabling this option will cause the kernel to be built without
  582. support for "fast userspace mutexes". The resulting kernel may not
  583. run glibc-based applications correctly.
  584. config ANON_INODES
  585. bool
  586. config EPOLL
  587. bool "Enable eventpoll support" if EMBEDDED
  588. default y
  589. select ANON_INODES
  590. help
  591. Disabling this option will cause the kernel to be built without
  592. support for epoll family of system calls.
  593. config SIGNALFD
  594. bool "Enable signalfd() system call" if EMBEDDED
  595. select ANON_INODES
  596. default y
  597. help
  598. Enable the signalfd() system call that allows to receive signals
  599. on a file descriptor.
  600. If unsure, say Y.
  601. config TIMERFD
  602. bool "Enable timerfd() system call" if EMBEDDED
  603. select ANON_INODES
  604. default y
  605. help
  606. Enable the timerfd() system call that allows to receive timer
  607. events on a file descriptor.
  608. If unsure, say Y.
  609. config EVENTFD
  610. bool "Enable eventfd() system call" if EMBEDDED
  611. select ANON_INODES
  612. default y
  613. help
  614. Enable the eventfd() system call that allows to receive both
  615. kernel notification (ie. KAIO) or userspace notifications.
  616. If unsure, say Y.
  617. config SHMEM
  618. bool "Use full shmem filesystem" if EMBEDDED
  619. default y
  620. depends on MMU
  621. help
  622. The shmem is an internal filesystem used to manage shared memory.
  623. It is backed by swap and manages resource limits. It is also exported
  624. to userspace as tmpfs if TMPFS is enabled. Disabling this
  625. option replaces shmem and tmpfs with the much simpler ramfs code,
  626. which may be appropriate on small systems without swap.
  627. config AIO
  628. bool "Enable AIO support" if EMBEDDED
  629. default y
  630. help
  631. This option enables POSIX asynchronous I/O which may by used
  632. by some high performance threaded applications. Disabling
  633. this option saves about 7k.
  634. config VM_EVENT_COUNTERS
  635. default y
  636. bool "Enable VM event counters for /proc/vmstat" if EMBEDDED
  637. help
  638. VM event counters are needed for event counts to be shown.
  639. This option allows the disabling of the VM event counters
  640. on EMBEDDED systems. /proc/vmstat will only show page counts
  641. if VM event counters are disabled.
  642. config PCI_QUIRKS
  643. default y
  644. bool "Enable PCI quirk workarounds" if EMBEDDED
  645. depends on PCI
  646. help
  647. This enables workarounds for various PCI chipset
  648. bugs/quirks. Disable this only if your target machine is
  649. unaffected by PCI quirks.
  650. config SLUB_DEBUG
  651. default y
  652. bool "Enable SLUB debugging support" if EMBEDDED
  653. depends on SLUB && SYSFS
  654. help
  655. SLUB has extensive debug support features. Disabling these can
  656. result in significant savings in code size. This also disables
  657. SLUB sysfs support. /sys/slab will not exist and there will be
  658. no support for cache validation etc.
  659. choice
  660. prompt "Choose SLAB allocator"
  661. default SLUB
  662. help
  663. This option allows to select a slab allocator.
  664. config SLAB
  665. bool "SLAB"
  666. help
  667. The regular slab allocator that is established and known to work
  668. well in all environments. It organizes cache hot objects in
  669. per cpu and per node queues.
  670. config SLUB
  671. bool "SLUB (Unqueued Allocator)"
  672. help
  673. SLUB is a slab allocator that minimizes cache line usage
  674. instead of managing queues of cached objects (SLAB approach).
  675. Per cpu caching is realized using slabs of objects instead
  676. of queues of objects. SLUB can use memory efficiently
  677. and has enhanced diagnostics. SLUB is the default choice for
  678. a slab allocator.
  679. config SLOB
  680. depends on EMBEDDED
  681. bool "SLOB (Simple Allocator)"
  682. help
  683. SLOB replaces the stock allocator with a drastically simpler
  684. allocator. SLOB is generally more space efficient but
  685. does not perform as well on large systems.
  686. endchoice
  687. config PROFILING
  688. bool "Profiling support (EXPERIMENTAL)"
  689. help
  690. Say Y here to enable the extended profiling support mechanisms used
  691. by profilers such as OProfile.
  692. #
  693. # Place an empty function call at each tracepoint site. Can be
  694. # dynamically changed for a probe function.
  695. #
  696. config TRACEPOINTS
  697. bool
  698. config MARKERS
  699. bool "Activate markers"
  700. depends on TRACEPOINTS
  701. help
  702. Place an empty function call at each marker site. Can be
  703. dynamically changed for a probe function.
  704. source "arch/Kconfig"
  705. endmenu # General setup
  706. config HAVE_GENERIC_DMA_COHERENT
  707. bool
  708. default n
  709. config SLABINFO
  710. bool
  711. depends on PROC_FS
  712. depends on SLAB || SLUB_DEBUG
  713. default y
  714. config RT_MUTEXES
  715. boolean
  716. select PLIST
  717. config BASE_SMALL
  718. int
  719. default 0 if BASE_FULL
  720. default 1 if !BASE_FULL
  721. menuconfig MODULES
  722. bool "Enable loadable module support"
  723. help
  724. Kernel modules are small pieces of compiled code which can
  725. be inserted in the running kernel, rather than being
  726. permanently built into the kernel. You use the "modprobe"
  727. tool to add (and sometimes remove) them. If you say Y here,
  728. many parts of the kernel can be built as modules (by
  729. answering M instead of Y where indicated): this is most
  730. useful for infrequently used options which are not required
  731. for booting. For more information, see the man pages for
  732. modprobe, lsmod, modinfo, insmod and rmmod.
  733. If you say Y here, you will need to run "make
  734. modules_install" to put the modules under /lib/modules/
  735. where modprobe can find them (you may need to be root to do
  736. this).
  737. If unsure, say Y.
  738. if MODULES
  739. config MODULE_FORCE_LOAD
  740. bool "Forced module loading"
  741. default n
  742. help
  743. Allow loading of modules without version information (ie. modprobe
  744. --force). Forced module loading sets the 'F' (forced) taint flag and
  745. is usually a really bad idea.
  746. config MODULE_UNLOAD
  747. bool "Module unloading"
  748. help
  749. Without this option you will not be able to unload any
  750. modules (note that some modules may not be unloadable
  751. anyway), which makes your kernel smaller, faster
  752. and simpler. If unsure, say Y.
  753. config MODULE_FORCE_UNLOAD
  754. bool "Forced module unloading"
  755. depends on MODULE_UNLOAD && EXPERIMENTAL
  756. help
  757. This option allows you to force a module to unload, even if the
  758. kernel believes it is unsafe: the kernel will remove the module
  759. without waiting for anyone to stop using it (using the -f option to
  760. rmmod). This is mainly for kernel developers and desperate users.
  761. If unsure, say N.
  762. config MODVERSIONS
  763. bool "Module versioning support"
  764. help
  765. Usually, you have to use modules compiled with your kernel.
  766. Saying Y here makes it sometimes possible to use modules
  767. compiled for different kernels, by adding enough information
  768. to the modules to (hopefully) spot any changes which would
  769. make them incompatible with the kernel you are running. If
  770. unsure, say N.
  771. config MODULE_SRCVERSION_ALL
  772. bool "Source checksum for all modules"
  773. help
  774. Modules which contain a MODULE_VERSION get an extra "srcversion"
  775. field inserted into their modinfo section, which contains a
  776. sum of the source files which made it. This helps maintainers
  777. see exactly which source was used to build a module (since
  778. others sometimes change the module source without updating
  779. the version). With this option, such a "srcversion" field
  780. will be created for all modules. If unsure, say N.
  781. endif # MODULES
  782. config INIT_ALL_POSSIBLE
  783. bool
  784. help
  785. Back when each arch used to define their own cpu_online_map and
  786. cpu_possible_map, some of them chose to initialize cpu_possible_map
  787. with all 1s, and others with all 0s. When they were centralised,
  788. it was better to provide this option than to break all the archs
  789. and have several arch maintainers persuing me down dark alleys.
  790. config STOP_MACHINE
  791. bool
  792. default y
  793. depends on (SMP && MODULE_UNLOAD) || HOTPLUG_CPU
  794. help
  795. Need stop_machine() primitive.
  796. source "block/Kconfig"
  797. config PREEMPT_NOTIFIERS
  798. bool
  799. choice
  800. prompt "RCU Implementation"
  801. default CLASSIC_RCU
  802. config CLASSIC_RCU
  803. bool "Classic RCU"
  804. help
  805. This option selects the classic RCU implementation that is
  806. designed for best read-side performance on non-realtime
  807. systems.
  808. Select this option if you are unsure.
  809. config TREE_RCU
  810. bool "Tree-based hierarchical RCU"
  811. help
  812. This option selects the RCU implementation that is
  813. designed for very large SMP system with hundreds or
  814. thousands of CPUs.
  815. config PREEMPT_RCU
  816. bool "Preemptible RCU"
  817. depends on PREEMPT
  818. help
  819. This option reduces the latency of the kernel by making certain
  820. RCU sections preemptible. Normally RCU code is non-preemptible, if
  821. this option is selected then read-only RCU sections become
  822. preemptible. This helps latency, but may expose bugs due to
  823. now-naive assumptions about each RCU read-side critical section
  824. remaining on a given CPU through its execution.
  825. endchoice
  826. config RCU_TRACE
  827. bool "Enable tracing for RCU"
  828. depends on TREE_RCU || PREEMPT_RCU
  829. help
  830. This option provides tracing in RCU which presents stats
  831. in debugfs for debugging RCU implementation.
  832. Say Y here if you want to enable RCU tracing
  833. Say N if you are unsure.
  834. config RCU_FANOUT
  835. int "Tree-based hierarchical RCU fanout value"
  836. range 2 64 if 64BIT
  837. range 2 32 if !64BIT
  838. depends on TREE_RCU
  839. default 64 if 64BIT
  840. default 32 if !64BIT
  841. help
  842. This option controls the fanout of hierarchical implementations
  843. of RCU, allowing RCU to work efficiently on machines with
  844. large numbers of CPUs. This value must be at least the cube
  845. root of NR_CPUS, which allows NR_CPUS up to 32,768 for 32-bit
  846. systems and up to 262,144 for 64-bit systems.
  847. Select a specific number if testing RCU itself.
  848. Take the default if unsure.
  849. config RCU_FANOUT_EXACT
  850. bool "Disable tree-based hierarchical RCU auto-balancing"
  851. depends on TREE_RCU
  852. default n
  853. help
  854. This option forces use of the exact RCU_FANOUT value specified,
  855. regardless of imbalances in the hierarchy. This is useful for
  856. testing RCU itself, and might one day be useful on systems with
  857. strong NUMA behavior.
  858. Without RCU_FANOUT_EXACT, the code will balance the hierarchy.
  859. Say N if unsure.
  860. config TREE_RCU_TRACE
  861. def_bool RCU_TRACE && TREE_RCU
  862. select DEBUG_FS
  863. help
  864. This option provides tracing for the TREE_RCU implementation,
  865. permitting Makefile to trivially select kernel/rcutree_trace.c.
  866. config PREEMPT_RCU_TRACE
  867. def_bool RCU_TRACE && PREEMPT_RCU
  868. select DEBUG_FS
  869. help
  870. This option provides tracing for the PREEMPT_RCU implementation,
  871. permitting Makefile to trivially select kernel/rcupreempt_trace.c.