Config-kernel.in 14 KB

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