Config-kernel.in 15 KB

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