Config-kernel.in 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483
  1. # Copyright (C) 2006-2014 OpenWrt.org
  2. #
  3. # This is free software, licensed under the GNU General Public License v2.
  4. # See /LICENSE for more information.
  5. #
  6. config KERNEL_PRINTK
  7. bool "Enable support for printk"
  8. default y
  9. config KERNEL_CRASHLOG
  10. bool "Crash logging"
  11. depends on !(arm || powerpc || sparc || TARGET_uml)
  12. default y
  13. config KERNEL_SWAP
  14. bool "Support for paging of anonymous memory (swap)"
  15. default y
  16. config KERNEL_DEBUG_FS
  17. bool "Compile the kernel with debug filesystem enabled"
  18. default y
  19. help
  20. debugfs is a virtual file system that kernel developers use to put
  21. debugging files into. Enable this option to be able to read and
  22. write to these files. Many common debugging facilities, such as
  23. ftrace, require the existence of debugfs.
  24. config KERNEL_PERF_EVENTS
  25. bool
  26. default n
  27. config KERNEL_PROFILING
  28. bool "Compile the kernel with profiling enabled"
  29. default n
  30. select KERNEL_PERF_EVENTS
  31. help
  32. Enable the extended profiling support mechanisms used by profilers such
  33. as OProfile.
  34. config KERNEL_KALLSYMS
  35. bool "Compile the kernel with symbol table information"
  36. default y
  37. help
  38. This will give you more information in stack traces from kernel oopses.
  39. config KERNEL_FTRACE
  40. bool "Compile the kernel with tracing support"
  41. depends on !TARGET_uml
  42. default n
  43. config KERNEL_FTRACE_SYSCALLS
  44. bool "Trace system calls"
  45. depends on KERNEL_FTRACE
  46. default n
  47. config KERNEL_ENABLE_DEFAULT_TRACERS
  48. bool "Trace process context switches and events"
  49. depends on KERNEL_FTRACE
  50. default n
  51. config KERNEL_DEBUG_KERNEL
  52. bool
  53. default n
  54. config KERNEL_DEBUG_INFO
  55. bool "Compile the kernel with debug information"
  56. default y
  57. select KERNEL_DEBUG_KERNEL
  58. help
  59. This will compile your kernel and modules with debug information.
  60. config KERNEL_DEBUG_LL_UART_NONE
  61. bool
  62. default n
  63. depends on arm
  64. config KERNEL_DEBUG_LL
  65. bool
  66. default n
  67. depends on arm
  68. select KERNEL_DEBUG_LL_UART_NONE
  69. help
  70. ARM low level debugging.
  71. config KERNEL_DYNAMIC_DEBUG
  72. bool "Compile the kernel with dynamic printk"
  73. select KERNEL_DEBUG_FS
  74. default n
  75. help
  76. Compiles debug level messages into the kernel, which would not
  77. otherwise be available at runtime. These messages can then be
  78. enabled/disabled based on various levels of scope - per source file,
  79. function, module, format string, and line number. This mechanism
  80. implicitly compiles in all pr_debug() and dev_dbg() calls, which
  81. enlarges the kernel text size by about 2%.
  82. config KERNEL_EARLY_PRINTK
  83. bool "Compile the kernel with early printk"
  84. default y if TARGET_bcm53xx
  85. default n
  86. depends on arm
  87. select KERNEL_DEBUG_KERNEL
  88. select KERNEL_DEBUG_LL if arm
  89. help
  90. Compile the kernel with early printk support. This is only useful for
  91. debugging purposes to send messages over the serial console in early boot.
  92. Enable this to debug early boot problems.
  93. config KERNEL_AIO
  94. bool "Compile the kernel with asynchronous IO support"
  95. default n
  96. config KERNEL_DIRECT_IO
  97. bool "Compile the kernel with direct IO support"
  98. default n
  99. config KERNEL_MAGIC_SYSRQ
  100. bool "Compile the kernel with SysRq support"
  101. default y
  102. config KERNEL_COREDUMP
  103. bool
  104. config KERNEL_ELF_CORE
  105. bool "Enable process core dump support"
  106. select KERNEL_COREDUMP
  107. default y
  108. config KERNEL_PROVE_LOCKING
  109. bool "Enable kernel lock checking"
  110. select KERNEL_DEBUG_KERNEL
  111. default n
  112. config KERNEL_PRINTK_TIME
  113. bool "Enable printk timestamps"
  114. default y
  115. config KERNEL_SLUB_DEBUG
  116. bool
  117. config KERNEL_SLUB_DEBUG_ON
  118. bool
  119. config KERNEL_SLABINFO
  120. select KERNEL_SLUB_DEBUG
  121. select KERNEL_SLUB_DEBUG_ON
  122. bool "Enable /proc slab debug info"
  123. config KERNEL_PROC_PAGE_MONITOR
  124. bool "Enable /proc page monitoring"
  125. config KERNEL_RELAY
  126. bool
  127. config KERNEL_KEXEC
  128. bool "Enable kexec support"
  129. config USE_RFKILL
  130. bool "Enable rfkill support"
  131. default RFKILL_SUPPORT
  132. config USE_SPARSE
  133. bool "Enable sparse check during kernel build"
  134. default n
  135. #
  136. # CGROUP support symbols
  137. #
  138. config KERNEL_CGROUPS
  139. bool "Enable kernel cgroups"
  140. default n
  141. if KERNEL_CGROUPS
  142. config KERNEL_CGROUP_DEBUG
  143. bool "Example debug cgroup subsystem"
  144. default n
  145. help
  146. This option enables a simple cgroup subsystem that
  147. exports useful debugging information about the cgroups
  148. framework.
  149. config KERNEL_FREEZER
  150. bool
  151. default y if KERNEL_CGROUP_FREEZER
  152. config KERNEL_CGROUP_FREEZER
  153. bool "Freezer cgroup subsystem"
  154. default y
  155. help
  156. Provides a way to freeze and unfreeze all tasks in a
  157. cgroup.
  158. config KERNEL_CGROUP_DEVICE
  159. bool "Device controller for cgroups"
  160. default y
  161. help
  162. Provides a cgroup implementing whitelists for devices which
  163. a process in the cgroup can mknod or open.
  164. config KERNEL_CPUSETS
  165. bool "Cpuset support"
  166. default n
  167. help
  168. This option will let you create and manage CPUSETs which
  169. allow dynamically partitioning a system into sets of CPUs and
  170. Memory Nodes and assigning tasks to run only within those sets.
  171. This is primarily useful on large SMP or NUMA systems.
  172. config KERNEL_PROC_PID_CPUSET
  173. bool "Include legacy /proc/<pid>/cpuset file"
  174. default n
  175. depends on KERNEL_CPUSETS
  176. config KERNEL_CGROUP_CPUACCT
  177. bool "Simple CPU accounting cgroup subsystem"
  178. default n
  179. help
  180. Provides a simple Resource Controller for monitoring the
  181. total CPU consumed by the tasks in a cgroup.
  182. config KERNEL_RESOURCE_COUNTERS
  183. bool "Resource counters"
  184. default n
  185. help
  186. This option enables controller independent resource accounting
  187. infrastructure that works with cgroups.
  188. config KERNEL_MM_OWNER
  189. bool
  190. default y if KERNEL_MEMCG
  191. config KERNEL_MEMCG
  192. bool "Memory Resource Controller for Control Groups"
  193. default n
  194. depends on KERNEL_RESOURCE_COUNTERS
  195. help
  196. Provides a memory resource controller that manages both anonymous
  197. memory and page cache. (See Documentation/cgroups/memory.txt)
  198. Note that setting this option increases fixed memory overhead
  199. associated with each page of memory in the system. By this,
  200. 20(40)bytes/PAGE_SIZE on 32(64)bit system will be occupied by memory
  201. usage tracking struct at boot. Total amount of this is printed out
  202. at boot.
  203. Only enable when you're ok with these tradeoffs and really
  204. sure you need the memory resource controller. Even when you enable
  205. this, you can set "cgroup_disable=memory" at your boot option to
  206. disable memory resource controller and you can avoid overheads
  207. (but lose benefits of memory resource controller).
  208. This config option also selects MM_OWNER config option, which
  209. could in turn add some fork/exit overhead.
  210. config KERNEL_MEMCG_SWAP
  211. bool "Memory Resource Controller Swap Extension"
  212. default n
  213. depends on KERNEL_MEMCG
  214. help
  215. Add swap management feature to memory resource controller. When you
  216. enable this, you can limit mem+swap usage per cgroup. In other words,
  217. when you disable this, memory resource controller has no cares to
  218. usage of swap...a process can exhaust all of the swap. This extension
  219. is useful when you want to avoid exhaustion swap but this itself
  220. adds more overheads and consumes memory for remembering information.
  221. Especially if you use 32bit system or small memory system, please
  222. be careful about enabling this. When memory resource controller
  223. is disabled by boot option, this will be automatically disabled and
  224. there will be no overhead from this. Even when you set this config=y,
  225. if boot option "swapaccount=0" is set, swap will not be accounted.
  226. Now, memory usage of swap_cgroup is 2 bytes per entry. If swap page
  227. size is 4096bytes, 512k per 1Gbytes of swap.
  228. config KERNEL_MEMCG_SWAP_ENABLED
  229. bool "Memory Resource Controller Swap Extension enabled by default"
  230. default n
  231. depends on KERNEL_MEMCG_SWAP
  232. help
  233. Memory Resource Controller Swap Extension comes with its price in
  234. a bigger memory consumption. General purpose distribution kernels
  235. which want to enable the feature but keep it disabled by default
  236. and let the user enable it by swapaccount boot command line
  237. parameter should have this option unselected.
  238. Those who want to have the feature enabled by default should
  239. select this option (if, for some reason, they need to disable it,
  240. then swapaccount=0 does the trick).
  241. config KERNEL_MEMCG_KMEM
  242. bool "Memory Resource Controller Kernel Memory accounting (EXPERIMENTAL)"
  243. default n
  244. depends on KERNEL_MEMCG
  245. help
  246. The Kernel Memory extension for Memory Resource Controller can limit
  247. the amount of memory used by kernel objects in the system. Those are
  248. fundamentally different from the entities handled by the standard
  249. Memory Controller, which are page-based, and can be swapped. Users of
  250. the kmem extension can use it to guarantee that no group of processes
  251. will ever exhaust kernel resources alone.
  252. config KERNEL_CGROUP_PERF
  253. bool "Enable perf_event per-cpu per-container group (cgroup) monitoring"
  254. select KERNEL_PERF_EVENTS
  255. default n
  256. help
  257. This option extends the per-cpu mode to restrict monitoring to
  258. threads which belong to the cgroup specified and run on the
  259. designated cpu.
  260. menuconfig KERNEL_CGROUP_SCHED
  261. bool "Group CPU scheduler"
  262. default n
  263. help
  264. This feature lets CPU scheduler recognize task groups and control CPU
  265. bandwidth allocation to such task groups. It uses cgroups to group
  266. tasks.
  267. if KERNEL_CGROUP_SCHED
  268. config KERNEL_FAIR_GROUP_SCHED
  269. bool "Group scheduling for SCHED_OTHER"
  270. default n
  271. config KERNEL_CFS_BANDWIDTH
  272. bool "CPU bandwidth provisioning for FAIR_GROUP_SCHED"
  273. default n
  274. depends on KERNEL_FAIR_GROUP_SCHED
  275. help
  276. This option allows users to define CPU bandwidth rates (limits) for
  277. tasks running within the fair group scheduler. Groups with no limit
  278. set are considered to be unconstrained and will run with no
  279. restriction.
  280. See tip/Documentation/scheduler/sched-bwc.txt for more information.
  281. config KERNEL_RT_GROUP_SCHED
  282. bool "Group scheduling for SCHED_RR/FIFO"
  283. default n
  284. help
  285. This feature lets you explicitly allocate real CPU bandwidth
  286. to task groups. If enabled, it will also make it impossible to
  287. schedule realtime tasks for non-root users until you allocate
  288. realtime bandwidth for them.
  289. endif
  290. config KERNEL_BLK_CGROUP
  291. bool "Block IO controller"
  292. default y
  293. help
  294. Generic block IO controller cgroup interface. This is the common
  295. cgroup interface which should be used by various IO controlling
  296. policies.
  297. Currently, CFQ IO scheduler uses it to recognize task groups and
  298. control disk bandwidth allocation (proportional time slice allocation)
  299. to such task groups. It is also used by bio throttling logic in
  300. block layer to implement upper limit in IO rates on a device.
  301. This option only enables generic Block IO controller infrastructure.
  302. One needs to also enable actual IO controlling logic/policy. For
  303. enabling proportional weight division of disk bandwidth in CFQ, set
  304. CONFIG_CFQ_GROUP_IOSCHED=y; for enabling throttling policy, set
  305. CONFIG_BLK_DEV_THROTTLING=y.
  306. config KERNEL_DEBUG_BLK_CGROUP
  307. bool "Enable Block IO controller debugging"
  308. default n
  309. depends on KERNEL_BLK_CGROUP
  310. help
  311. Enable some debugging help. Currently it exports additional stat
  312. files in a cgroup which can be useful for debugging.
  313. config KERNEL_NET_CLS_CGROUP
  314. bool "Control Group Classifier"
  315. default y
  316. config KERNEL_NETPRIO_CGROUP
  317. bool "Network priority cgroup"
  318. default y
  319. endif
  320. #
  321. # Namespace support symbols
  322. #
  323. config KERNEL_NAMESPACES
  324. bool "Enable kernel namespaces"
  325. default n
  326. if KERNEL_NAMESPACES
  327. config KERNEL_UTS_NS
  328. bool "UTS namespace"
  329. default y
  330. help
  331. In this namespace, tasks see different info provided
  332. with the uname() system call.
  333. config KERNEL_IPC_NS
  334. bool "IPC namespace"
  335. default y
  336. help
  337. In this namespace, tasks work with IPC ids which correspond to
  338. different IPC objects in different namespaces.
  339. config KERNEL_USER_NS
  340. bool "User namespace (EXPERIMENTAL)"
  341. default y
  342. help
  343. This allows containers, i.e. vservers, to use user namespaces
  344. to provide different user info for different servers.
  345. config KERNEL_PID_NS
  346. bool "PID Namespaces"
  347. default y
  348. help
  349. Support process id namespaces. This allows having multiple
  350. processes with the same pid as long as they are in different
  351. pid namespaces. This is a building block of containers.
  352. config KERNEL_NET_NS
  353. bool "Network namespace"
  354. default y
  355. help
  356. Allow user space to create what appear to be multiple instances
  357. of the network stack.
  358. endif
  359. #
  360. # LXC related symbols
  361. #
  362. config KERNEL_LXC_MISC
  363. bool "Enable miscellaneous LXC related options"
  364. default n
  365. if KERNEL_LXC_MISC
  366. config KERNEL_DEVPTS_MULTIPLE_INSTANCES
  367. bool "Support multiple instances of devpts"
  368. default y
  369. help
  370. Enable support for multiple instances of devpts filesystem.
  371. If you want to have isolated PTY namespaces (eg: in containers),
  372. say Y here. Otherwise, say N. If enabled, each mount of devpts
  373. filesystem with the '-o newinstance' option will create an
  374. independent PTY namespace.
  375. config KERNEL_POSIX_MQUEUE
  376. bool "POSIX Message Queues"
  377. default y
  378. help
  379. POSIX variant of message queues is a part of IPC. In POSIX message
  380. queues every message has a priority which decides about succession
  381. of receiving it by a process. If you want to compile and run
  382. programs written e.g. for Solaris with use of its POSIX message
  383. queues (functions mq_*) say Y here.
  384. POSIX message queues are visible as a filesystem called 'mqueue'
  385. and can be mounted somewhere if you want to do filesystem
  386. operations on message queues.
  387. endif
  388. config KERNEL_SECCOMP
  389. bool "Enable seccomp support"
  390. depends on !(TARGET_uml || TARGET_avr32)
  391. default n
  392. help
  393. Build kernel with support for seccomp.
  394. config KERNEL_SECCOMP_FILTER
  395. bool "Enable seccomp filter support"
  396. depends on KERNEL_SECCOMP
  397. default n
  398. help
  399. Build kernel with support for seccomp BPF programs.