Config-kernel.in 15 KB

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