Config-kernel.in 30 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055
  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_BUILD_USER
  7. string "Custom Kernel Build User Name"
  8. default "builder" if BUILDBOT
  9. default ""
  10. help
  11. Sets the Kernel build user string, which for example will be returned
  12. by 'uname -a' on running systems.
  13. If not set, uses system user at build time.
  14. config KERNEL_BUILD_DOMAIN
  15. string "Custom Kernel Build Domain Name"
  16. default "buildhost" if BUILDBOT
  17. default ""
  18. help
  19. Sets the Kernel build domain string, which for example will be
  20. returned by 'uname -a' on running systems.
  21. If not set, uses system hostname at build time.
  22. config KERNEL_PRINTK
  23. bool "Enable support for printk"
  24. default y
  25. config KERNEL_CRASHLOG
  26. bool "Crash logging"
  27. depends on !(arm || powerpc || sparc || TARGET_uml || i386 || x86_64)
  28. default y
  29. config KERNEL_SWAP
  30. bool "Support for paging of anonymous memory (swap)"
  31. default y if !SMALL_FLASH
  32. config KERNEL_DEBUG_FS
  33. bool "Compile the kernel with debug filesystem enabled"
  34. default y
  35. help
  36. debugfs is a virtual file system that kernel developers use to put
  37. debugging files into. Enable this option to be able to read and
  38. write to these files. Many common debugging facilities, such as
  39. ftrace, require the existence of debugfs.
  40. # remove KERNEL_MIPS_FPU_EMULATOR after kernel 4.14 and 4.14 are gone
  41. config KERNEL_MIPS_FPU_EMULATOR
  42. bool "Compile the kernel with MIPS FPU Emulator"
  43. default y if TARGET_pistachio
  44. depends on (mips || mipsel || mips64 || mips64el)
  45. config KERNEL_MIPS_FP_SUPPORT
  46. bool
  47. default y if KERNEL_MIPS_FPU_EMULATOR
  48. config KERNEL_ARM_PMU
  49. bool
  50. default n
  51. depends on (arm || aarch64)
  52. config KERNEL_X86_VSYSCALL_EMULATION
  53. bool "Enable vsyscall emulation"
  54. default n
  55. depends on x86_64
  56. help
  57. This enables emulation of the legacy vsyscall page. Disabling
  58. it is roughly equivalent to booting with vsyscall=none, except
  59. that it will also disable the helpful warning if a program
  60. tries to use a vsyscall. With this option set to N, offending
  61. programs will just segfault, citing addresses of the form
  62. 0xffffffffff600?00.
  63. This option is required by many programs built before 2013, and
  64. care should be used even with newer programs if set to N.
  65. Disabling this option saves about 7K of kernel size and
  66. possibly 4K of additional runtime pagetable memory.
  67. config KERNEL_PERF_EVENTS
  68. bool "Compile the kernel with performance events and counters"
  69. default n
  70. select KERNEL_ARM_PMU if (arm || aarch64)
  71. config KERNEL_PROFILING
  72. bool "Compile the kernel with profiling enabled"
  73. default n
  74. select KERNEL_PERF_EVENTS
  75. help
  76. Enable the extended profiling support mechanisms used by profilers such
  77. as OProfile.
  78. config KERNEL_UBSAN
  79. bool "Compile the kernel with undefined behaviour sanity checker"
  80. help
  81. This option enables undefined behaviour sanity checker
  82. Compile-time instrumentation is used to detect various undefined
  83. behaviours in runtime. Various types of checks may be enabled
  84. via boot parameter ubsan_handle
  85. (see: Documentation/dev-tools/ubsan.rst).
  86. config KERNEL_UBSAN_SANITIZE_ALL
  87. bool "Enable instrumentation for the entire kernel"
  88. depends on KERNEL_UBSAN
  89. default y
  90. help
  91. This option activates instrumentation for the entire kernel.
  92. If you don't enable this option, you have to explicitly specify
  93. UBSAN_SANITIZE := y for the files/directories you want to check for UB.
  94. Enabling this option will get kernel image size increased
  95. significantly.
  96. config KERNEL_UBSAN_ALIGNMENT
  97. bool "Enable checking of pointers alignment"
  98. depends on KERNEL_UBSAN
  99. help
  100. This option enables detection of unaligned memory accesses.
  101. Enabling this option on architectures that support unaligned
  102. accesses may produce a lot of false positives.
  103. config KERNEL_UBSAN_NULL
  104. bool "Enable checking of null pointers"
  105. depends on KERNEL_UBSAN
  106. help
  107. This option enables detection of memory accesses via a
  108. null pointer.
  109. config KERNEL_KASAN
  110. bool "Compile the kernel with KASan: runtime memory debugger"
  111. select KERNEL_SLUB_DEBUG
  112. depends on (x86_64 || aarch64)
  113. help
  114. Enables kernel address sanitizer - runtime memory debugger,
  115. designed to find out-of-bounds accesses and use-after-free bugs.
  116. This is strictly a debugging feature and it requires a gcc version
  117. of 4.9.2 or later. Detection of out of bounds accesses to stack or
  118. global variables requires gcc 5.0 or later.
  119. This feature consumes about 1/8 of available memory and brings about
  120. ~x3 performance slowdown.
  121. For better error detection enable CONFIG_STACKTRACE.
  122. Currently CONFIG_KASAN doesn't work with CONFIG_DEBUG_SLAB
  123. (the resulting kernel does not boot).
  124. config KERNEL_KASAN_EXTRA
  125. bool "KAsan: extra checks"
  126. depends on KERNEL_KASAN && KERNEL_DEBUG_KERNEL
  127. help
  128. This enables further checks in the kernel address sanitizer, for now
  129. it only includes the address-use-after-scope check that can lead
  130. to excessive kernel stack usage, frame size warnings and longer
  131. compile time.
  132. https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81715 has more
  133. choice
  134. prompt "Instrumentation type"
  135. depends on KERNEL_KASAN
  136. default KERNEL_KASAN_OUTLINE
  137. config KERNEL_KASAN_OUTLINE
  138. bool "Outline instrumentation"
  139. help
  140. Before every memory access compiler insert function call
  141. __asan_load*/__asan_store*. These functions performs check
  142. of shadow memory. This is slower than inline instrumentation,
  143. however it doesn't bloat size of kernel's .text section so
  144. much as inline does.
  145. config KERNEL_KASAN_INLINE
  146. bool "Inline instrumentation"
  147. help
  148. Compiler directly inserts code checking shadow memory before
  149. memory accesses. This is faster than outline (in some workloads
  150. it gives about x2 boost over outline instrumentation), but
  151. make kernel's .text size much bigger.
  152. This requires a gcc version of 5.0 or later.
  153. endchoice
  154. config KERNEL_KCOV
  155. bool "Compile the kernel with code coverage for fuzzing"
  156. select KERNEL_DEBUG_FS
  157. help
  158. KCOV exposes kernel code coverage information in a form suitable
  159. for coverage-guided fuzzing (randomized testing).
  160. If RANDOMIZE_BASE is enabled, PC values will not be stable across
  161. different machines and across reboots. If you need stable PC values,
  162. disable RANDOMIZE_BASE.
  163. For more details, see Documentation/kcov.txt.
  164. config KERNEL_KCOV_ENABLE_COMPARISONS
  165. bool "Enable comparison operands collection by KCOV"
  166. depends on KERNEL_KCOV
  167. help
  168. KCOV also exposes operands of every comparison in the instrumented
  169. code along with operand sizes and PCs of the comparison instructions.
  170. These operands can be used by fuzzing engines to improve the quality
  171. of fuzzing coverage.
  172. config KERNEL_KCOV_INSTRUMENT_ALL
  173. bool "Instrument all code by default"
  174. depends on KERNEL_KCOV
  175. default y if KERNEL_KCOV
  176. help
  177. If you are doing generic system call fuzzing (like e.g. syzkaller),
  178. then you will want to instrument the whole kernel and you should
  179. say y here. If you are doing more targeted fuzzing (like e.g.
  180. filesystem fuzzing with AFL) then you will want to enable coverage
  181. for more specific subsets of files, and should say n here.
  182. config KERNEL_TASKSTATS
  183. bool "Compile the kernel with task resource/io statistics and accounting"
  184. default n
  185. help
  186. Enable the collection and publishing of task/io statistics and
  187. accounting. Enable this option to enable i/o monitoring in system
  188. monitors.
  189. if KERNEL_TASKSTATS
  190. config KERNEL_TASK_DELAY_ACCT
  191. def_bool y
  192. config KERNEL_TASK_IO_ACCOUNTING
  193. def_bool y
  194. config KERNEL_TASK_XACCT
  195. def_bool y
  196. endif
  197. config KERNEL_KALLSYMS
  198. bool "Compile the kernel with symbol table information"
  199. default y if !SMALL_FLASH
  200. help
  201. This will give you more information in stack traces from kernel oopses.
  202. config KERNEL_FTRACE
  203. bool "Compile the kernel with tracing support"
  204. depends on !TARGET_uml
  205. default n
  206. config KERNEL_FTRACE_SYSCALLS
  207. bool "Trace system calls"
  208. depends on KERNEL_FTRACE
  209. default n
  210. config KERNEL_ENABLE_DEFAULT_TRACERS
  211. bool "Trace process context switches and events"
  212. depends on KERNEL_FTRACE
  213. default n
  214. config KERNEL_FUNCTION_TRACER
  215. bool "Function tracer"
  216. depends on KERNEL_FTRACE
  217. default n
  218. config KERNEL_FUNCTION_GRAPH_TRACER
  219. bool "Function graph tracer"
  220. depends on KERNEL_FUNCTION_TRACER
  221. default n
  222. config KERNEL_DYNAMIC_FTRACE
  223. bool "Enable/disable function tracing dynamically"
  224. depends on KERNEL_FUNCTION_TRACER
  225. default n
  226. config KERNEL_FUNCTION_PROFILER
  227. bool "Function profiler"
  228. depends on KERNEL_FUNCTION_TRACER
  229. default n
  230. config KERNEL_DEBUG_KERNEL
  231. bool
  232. default n
  233. config KERNEL_DEBUG_INFO
  234. bool "Compile the kernel with debug information"
  235. default y if !SMALL_FLASH
  236. select KERNEL_DEBUG_KERNEL
  237. help
  238. This will compile your kernel and modules with debug information.
  239. config KERNEL_DEBUG_LL_UART_NONE
  240. bool
  241. default n
  242. depends on arm
  243. config KERNEL_DEBUG_LL
  244. bool
  245. default n
  246. depends on arm
  247. select KERNEL_DEBUG_LL_UART_NONE
  248. help
  249. ARM low level debugging.
  250. config KERNEL_DYNAMIC_DEBUG
  251. bool "Compile the kernel with dynamic printk"
  252. select KERNEL_DEBUG_FS
  253. default n
  254. help
  255. Compiles debug level messages into the kernel, which would not
  256. otherwise be available at runtime. These messages can then be
  257. enabled/disabled based on various levels of scope - per source file,
  258. function, module, format string, and line number. This mechanism
  259. implicitly compiles in all pr_debug() and dev_dbg() calls, which
  260. enlarges the kernel text size by about 2%.
  261. config KERNEL_EARLY_PRINTK
  262. bool "Compile the kernel with early printk"
  263. default y if TARGET_bcm53xx
  264. default n
  265. depends on arm
  266. select KERNEL_DEBUG_KERNEL
  267. select KERNEL_DEBUG_LL if arm
  268. help
  269. Compile the kernel with early printk support. This is only useful for
  270. debugging purposes to send messages over the serial console in early boot.
  271. Enable this to debug early boot problems.
  272. config KERNEL_KPROBES
  273. bool "Compile the kernel with kprobes support"
  274. default n
  275. select KERNEL_FTRACE
  276. select KERNEL_PERF_EVENTS
  277. help
  278. Compiles the kernel with KPROBES support, which allows you to trap
  279. at almost any kernel address and execute a callback function.
  280. register_kprobe() establishes a probepoint and specifies the
  281. callback. Kprobes is useful for kernel debugging, non-intrusive
  282. instrumentation and testing.
  283. If in doubt, say "N".
  284. config KERNEL_KPROBE_EVENT
  285. bool
  286. default y if KERNEL_KPROBES
  287. config KERNEL_KPROBE_EVENTS
  288. bool
  289. default y if KERNEL_KPROBES
  290. config KERNEL_AIO
  291. bool "Compile the kernel with asynchronous IO support"
  292. default y if !SMALL_FLASH
  293. config KERNEL_FHANDLE
  294. bool "Compile the kernel with support for fhandle syscalls"
  295. default y if !SMALL_FLASH
  296. config KERNEL_FANOTIFY
  297. bool "Compile the kernel with modern file notification support"
  298. default y if !SMALL_FLASH
  299. config KERNEL_BLK_DEV_BSG
  300. bool "Compile the kernel with SCSI generic v4 support for any block device"
  301. default n
  302. config KERNEL_MAGIC_SYSRQ
  303. bool "Compile the kernel with SysRq support"
  304. default y
  305. config KERNEL_DEBUG_PINCTRL
  306. bool "Compile the kernel with pinctrl debugging"
  307. select KERNEL_DEBUG_KERNEL
  308. config KERNEL_DEBUG_GPIO
  309. bool "Compile the kernel with gpio debugging"
  310. select KERNEL_DEBUG_KERNEL
  311. config KERNEL_COREDUMP
  312. bool
  313. config KERNEL_ELF_CORE
  314. bool "Enable process core dump support"
  315. select KERNEL_COREDUMP
  316. default y if !SMALL_FLASH
  317. config KERNEL_PROVE_LOCKING
  318. bool "Enable kernel lock checking"
  319. select KERNEL_DEBUG_KERNEL
  320. default n
  321. config KERNEL_LOCKUP_DETECTOR
  322. bool "Compile the kernel with detect Hard and Soft Lockups"
  323. depends on KERNEL_DEBUG_KERNEL
  324. help
  325. Say Y here to enable the kernel to act as a watchdog to detect
  326. hard and soft lockups.
  327. Softlockups are bugs that cause the kernel to loop in kernel
  328. mode for more than 20 seconds, without giving other tasks a
  329. chance to run. The current stack trace is displayed upon
  330. detection and the system will stay locked up.
  331. Hardlockups are bugs that cause the CPU to loop in kernel mode
  332. for more than 10 seconds, without letting other interrupts have a
  333. chance to run. The current stack trace is displayed upon detection
  334. and the system will stay locked up.
  335. The overhead should be minimal. A periodic hrtimer runs to
  336. generate interrupts and kick the watchdog task every 4 seconds.
  337. An NMI is generated every 10 seconds or so to check for hardlockups.
  338. The frequency of hrtimer and NMI events and the soft and hard lockup
  339. thresholds can be controlled through the sysctl watchdog_thresh.
  340. config KERNEL_DETECT_HUNG_TASK
  341. bool "Compile the kernel with detect Hung Tasks"
  342. depends on KERNEL_DEBUG_KERNEL
  343. default KERNEL_LOCKUP_DETECTOR
  344. help
  345. Say Y here to enable the kernel to detect "hung tasks",
  346. which are bugs that cause the task to be stuck in
  347. uninterruptible "D" state indefinitely.
  348. When a hung task is detected, the kernel will print the
  349. current stack trace (which you should report), but the
  350. task will stay in uninterruptible state. If lockdep is
  351. enabled then all held locks will also be reported. This
  352. feature has negligible overhead.
  353. config KERNEL_WQ_WATCHDOG
  354. bool "Compile the kernel with detect Workqueue Stalls"
  355. depends on KERNEL_DEBUG_KERNEL
  356. help
  357. Say Y here to enable stall detection on workqueues. If a
  358. worker pool doesn't make forward progress on a pending work
  359. item for over a given amount of time, 30s by default, a
  360. warning message is printed along with dump of workqueue
  361. state. This can be configured through kernel parameter
  362. "workqueue.watchdog_thresh" and its sysfs counterpart.
  363. config KERNEL_DEBUG_ATOMIC_SLEEP
  364. bool "Compile the kernel with sleep inside atomic section checking"
  365. depends on KERNEL_DEBUG_KERNEL
  366. help
  367. If you say Y here, various routines which may sleep will become very
  368. noisy if they are called inside atomic sections: when a spinlock is
  369. held, inside an rcu read side critical section, inside preempt disabled
  370. sections, inside an interrupt, etc...
  371. config KERNEL_DEBUG_VM
  372. bool "Compile the kernel with debug VM"
  373. depends on KERNEL_DEBUG_KERNEL
  374. help
  375. Enable this to turn on extended checks in the virtual-memory system
  376. that may impact performance.
  377. If unsure, say N.
  378. config KERNEL_PRINTK_TIME
  379. bool "Enable printk timestamps"
  380. default y
  381. config KERNEL_SLUB_DEBUG
  382. bool
  383. config KERNEL_SLUB_DEBUG_ON
  384. bool
  385. config KERNEL_SLABINFO
  386. select KERNEL_SLUB_DEBUG
  387. select KERNEL_SLUB_DEBUG_ON
  388. bool "Enable /proc slab debug info"
  389. config KERNEL_PROC_PAGE_MONITOR
  390. bool "Enable /proc page monitoring"
  391. config KERNEL_RELAY
  392. bool
  393. config KERNEL_KEXEC
  394. bool "Enable kexec support"
  395. config KERNEL_PROC_VMCORE
  396. bool
  397. config KERNEL_CRASH_DUMP
  398. depends on i386 || x86_64 || arm || armeb
  399. select KERNEL_KEXEC
  400. select KERNEL_PROC_VMCORE
  401. bool "Enable support for kexec crashdump"
  402. default y
  403. config USE_RFKILL
  404. bool "Enable rfkill support"
  405. default RFKILL_SUPPORT
  406. config USE_SPARSE
  407. bool "Enable sparse check during kernel build"
  408. default n
  409. config KERNEL_DEVTMPFS
  410. bool "Compile the kernel with device tmpfs enabled"
  411. default n
  412. help
  413. devtmpfs is a simple, kernel-managed /dev filesystem. The kernel creates
  414. devices nodes for all registered devices to simplify boot, but leaves more
  415. complex tasks to userspace (e.g. udev).
  416. if KERNEL_DEVTMPFS
  417. config KERNEL_DEVTMPFS_MOUNT
  418. bool "Automatically mount devtmpfs after root filesystem is mounted"
  419. default n
  420. endif
  421. config KERNEL_KEYS
  422. bool "Enable kernel access key retention support"
  423. default n
  424. config KERNEL_PERSISTENT_KEYRINGS
  425. bool "Enable kernel persistent keyrings"
  426. depends on KERNEL_KEYS
  427. default n
  428. config KERNEL_BIG_KEYS
  429. bool "Enable large payload keys on kernel keyrings"
  430. depends on KERNEL_KEYS
  431. default n
  432. config KERNEL_ENCRYPTED_KEYS
  433. tristate "Enable keys with encrypted payloads on kernel keyrings"
  434. depends on KERNEL_KEYS
  435. default n
  436. #
  437. # CGROUP support symbols
  438. #
  439. config KERNEL_CGROUPS
  440. bool "Enable kernel cgroups"
  441. default y if !SMALL_FLASH
  442. if KERNEL_CGROUPS
  443. config KERNEL_CGROUP_DEBUG
  444. bool "Example debug cgroup subsystem"
  445. default n
  446. help
  447. This option enables a simple cgroup subsystem that
  448. exports useful debugging information about the cgroups
  449. framework.
  450. config KERNEL_FREEZER
  451. bool
  452. default y if KERNEL_CGROUP_FREEZER
  453. config KERNEL_CGROUP_FREEZER
  454. bool "Freezer cgroup subsystem"
  455. default y
  456. help
  457. Provides a way to freeze and unfreeze all tasks in a
  458. cgroup.
  459. config KERNEL_CGROUP_DEVICE
  460. bool "Device controller for cgroups"
  461. default y
  462. help
  463. Provides a cgroup implementing whitelists for devices which
  464. a process in the cgroup can mknod or open.
  465. config KERNEL_CGROUP_PIDS
  466. bool "PIDs cgroup subsystem"
  467. default y
  468. help
  469. Provides enforcement of process number limits in the scope of a
  470. cgroup.
  471. config KERNEL_CPUSETS
  472. bool "Cpuset support"
  473. default y if !SMALL_FLASH
  474. help
  475. This option will let you create and manage CPUSETs which
  476. allow dynamically partitioning a system into sets of CPUs and
  477. Memory Nodes and assigning tasks to run only within those sets.
  478. This is primarily useful on large SMP or NUMA systems.
  479. config KERNEL_PROC_PID_CPUSET
  480. bool "Include legacy /proc/<pid>/cpuset file"
  481. default n
  482. depends on KERNEL_CPUSETS
  483. config KERNEL_CGROUP_CPUACCT
  484. bool "Simple CPU accounting cgroup subsystem"
  485. default y if !SMALL_FLASH
  486. help
  487. Provides a simple Resource Controller for monitoring the
  488. total CPU consumed by the tasks in a cgroup.
  489. config KERNEL_RESOURCE_COUNTERS
  490. bool "Resource counters"
  491. default y if !SMALL_FLASH
  492. help
  493. This option enables controller independent resource accounting
  494. infrastructure that works with cgroups.
  495. config KERNEL_MM_OWNER
  496. bool
  497. default y if KERNEL_MEMCG
  498. config KERNEL_MEMCG
  499. bool "Memory Resource Controller for Control Groups"
  500. default y if !SMALL_FLASH
  501. depends on KERNEL_RESOURCE_COUNTERS || !LINUX_3_18
  502. help
  503. Provides a memory resource controller that manages both anonymous
  504. memory and page cache. (See Documentation/cgroups/memory.txt)
  505. Note that setting this option increases fixed memory overhead
  506. associated with each page of memory in the system. By this,
  507. 20(40)bytes/PAGE_SIZE on 32(64)bit system will be occupied by memory
  508. usage tracking struct at boot. Total amount of this is printed out
  509. at boot.
  510. Only enable when you're ok with these tradeoffs and really
  511. sure you need the memory resource controller. Even when you enable
  512. this, you can set "cgroup_disable=memory" at your boot option to
  513. disable memory resource controller and you can avoid overheads
  514. (but lose benefits of memory resource controller).
  515. This config option also selects MM_OWNER config option, which
  516. could in turn add some fork/exit overhead.
  517. config KERNEL_MEMCG_SWAP
  518. bool "Memory Resource Controller Swap Extension"
  519. default n
  520. depends on KERNEL_MEMCG
  521. help
  522. Add swap management feature to memory resource controller. When you
  523. enable this, you can limit mem+swap usage per cgroup. In other words,
  524. when you disable this, memory resource controller has no cares to
  525. usage of swap...a process can exhaust all of the swap. This extension
  526. is useful when you want to avoid exhaustion swap but this itself
  527. adds more overheads and consumes memory for remembering information.
  528. Especially if you use 32bit system or small memory system, please
  529. be careful about enabling this. When memory resource controller
  530. is disabled by boot option, this will be automatically disabled and
  531. there will be no overhead from this. Even when you set this config=y,
  532. if boot option "swapaccount=0" is set, swap will not be accounted.
  533. Now, memory usage of swap_cgroup is 2 bytes per entry. If swap page
  534. size is 4096bytes, 512k per 1Gbytes of swap.
  535. config KERNEL_MEMCG_SWAP_ENABLED
  536. bool "Memory Resource Controller Swap Extension enabled by default"
  537. default n
  538. depends on KERNEL_MEMCG_SWAP
  539. help
  540. Memory Resource Controller Swap Extension comes with its price in
  541. a bigger memory consumption. General purpose distribution kernels
  542. which want to enable the feature but keep it disabled by default
  543. and let the user enable it by swapaccount boot command line
  544. parameter should have this option unselected.
  545. Those who want to have the feature enabled by default should
  546. select this option (if, for some reason, they need to disable it,
  547. then swapaccount=0 does the trick).
  548. config KERNEL_MEMCG_KMEM
  549. bool "Memory Resource Controller Kernel Memory accounting (EXPERIMENTAL)"
  550. default y if !SMALL_FLASH
  551. depends on KERNEL_MEMCG
  552. help
  553. The Kernel Memory extension for Memory Resource Controller can limit
  554. the amount of memory used by kernel objects in the system. Those are
  555. fundamentally different from the entities handled by the standard
  556. Memory Controller, which are page-based, and can be swapped. Users of
  557. the kmem extension can use it to guarantee that no group of processes
  558. will ever exhaust kernel resources alone.
  559. config KERNEL_CGROUP_PERF
  560. bool "Enable perf_event per-cpu per-container group (cgroup) monitoring"
  561. select KERNEL_PERF_EVENTS
  562. default n
  563. help
  564. This option extends the per-cpu mode to restrict monitoring to
  565. threads which belong to the cgroup specified and run on the
  566. designated cpu.
  567. menuconfig KERNEL_CGROUP_SCHED
  568. bool "Group CPU scheduler"
  569. default y if !SMALL_FLASH
  570. help
  571. This feature lets CPU scheduler recognize task groups and control CPU
  572. bandwidth allocation to such task groups. It uses cgroups to group
  573. tasks.
  574. if KERNEL_CGROUP_SCHED
  575. config KERNEL_FAIR_GROUP_SCHED
  576. bool "Group scheduling for SCHED_OTHER"
  577. default y if !SMALL_FLASH
  578. config KERNEL_CFS_BANDWIDTH
  579. bool "CPU bandwidth provisioning for FAIR_GROUP_SCHED"
  580. default n
  581. depends on KERNEL_FAIR_GROUP_SCHED
  582. help
  583. This option allows users to define CPU bandwidth rates (limits) for
  584. tasks running within the fair group scheduler. Groups with no limit
  585. set are considered to be unconstrained and will run with no
  586. restriction.
  587. See tip/Documentation/scheduler/sched-bwc.txt for more information.
  588. config KERNEL_RT_GROUP_SCHED
  589. bool "Group scheduling for SCHED_RR/FIFO"
  590. default y if !SMALL_FLASH
  591. help
  592. This feature lets you explicitly allocate real CPU bandwidth
  593. to task groups. If enabled, it will also make it impossible to
  594. schedule realtime tasks for non-root users until you allocate
  595. realtime bandwidth for them.
  596. endif
  597. config KERNEL_BLK_CGROUP
  598. bool "Block IO controller"
  599. default y
  600. help
  601. Generic block IO controller cgroup interface. This is the common
  602. cgroup interface which should be used by various IO controlling
  603. policies.
  604. Currently, CFQ IO scheduler uses it to recognize task groups and
  605. control disk bandwidth allocation (proportional time slice allocation)
  606. to such task groups. It is also used by bio throttling logic in
  607. block layer to implement upper limit in IO rates on a device.
  608. This option only enables generic Block IO controller infrastructure.
  609. One needs to also enable actual IO controlling logic/policy. For
  610. enabling proportional weight division of disk bandwidth in CFQ, set
  611. CONFIG_CFQ_GROUP_IOSCHED=y; for enabling throttling policy, set
  612. CONFIG_BLK_DEV_THROTTLING=y.
  613. if KERNEL_BLK_CGROUP
  614. config KERNEL_CFQ_GROUP_IOSCHED
  615. bool "Proportional weight of disk bandwidth in CFQ"
  616. config KERNEL_BLK_DEV_THROTTLING
  617. bool "Enable throttling policy"
  618. default y if TARGET_bcm27xx
  619. config KERNEL_BLK_DEV_THROTTLING_LOW
  620. bool "Block throttling .low limit interface support (EXPERIMENTAL)"
  621. depends on KERNEL_BLK_DEV_THROTTLING
  622. endif
  623. config KERNEL_DEBUG_BLK_CGROUP
  624. bool "Enable Block IO controller debugging"
  625. default n
  626. depends on KERNEL_BLK_CGROUP
  627. help
  628. Enable some debugging help. Currently it exports additional stat
  629. files in a cgroup which can be useful for debugging.
  630. config KERNEL_NET_CLS_CGROUP
  631. bool "Control Group Classifier"
  632. default y
  633. config KERNEL_NETPRIO_CGROUP
  634. bool "Network priority cgroup"
  635. default y
  636. endif
  637. #
  638. # Namespace support symbols
  639. #
  640. config KERNEL_NAMESPACES
  641. bool "Enable kernel namespaces"
  642. default y if !SMALL_FLASH
  643. if KERNEL_NAMESPACES
  644. config KERNEL_UTS_NS
  645. bool "UTS namespace"
  646. default y
  647. help
  648. In this namespace, tasks see different info provided
  649. with the uname() system call.
  650. config KERNEL_IPC_NS
  651. bool "IPC namespace"
  652. default y
  653. help
  654. In this namespace, tasks work with IPC ids which correspond to
  655. different IPC objects in different namespaces.
  656. config KERNEL_USER_NS
  657. bool "User namespace (EXPERIMENTAL)"
  658. default y
  659. help
  660. This allows containers, i.e. vservers, to use user namespaces
  661. to provide different user info for different servers.
  662. config KERNEL_PID_NS
  663. bool "PID Namespaces"
  664. default y
  665. help
  666. Support process id namespaces. This allows having multiple
  667. processes with the same pid as long as they are in different
  668. pid namespaces. This is a building block of containers.
  669. config KERNEL_NET_NS
  670. bool "Network namespace"
  671. default y
  672. help
  673. Allow user space to create what appear to be multiple instances
  674. of the network stack.
  675. endif
  676. config KERNEL_DEVPTS_MULTIPLE_INSTANCES
  677. bool "Support multiple instances of devpts"
  678. default y if !SMALL_FLASH
  679. help
  680. Enable support for multiple instances of devpts filesystem.
  681. If you want to have isolated PTY namespaces (eg: in containers),
  682. say Y here. Otherwise, say N. If enabled, each mount of devpts
  683. filesystem with the '-o newinstance' option will create an
  684. independent PTY namespace.
  685. config KERNEL_POSIX_MQUEUE
  686. bool "POSIX Message Queues"
  687. default y if !SMALL_FLASH
  688. help
  689. POSIX variant of message queues is a part of IPC. In POSIX message
  690. queues every message has a priority which decides about succession
  691. of receiving it by a process. If you want to compile and run
  692. programs written e.g. for Solaris with use of its POSIX message
  693. queues (functions mq_*) say Y here.
  694. POSIX message queues are visible as a filesystem called 'mqueue'
  695. and can be mounted somewhere if you want to do filesystem
  696. operations on message queues.
  697. config KERNEL_SECCOMP_FILTER
  698. bool
  699. default y if !SMALL_FLASH
  700. config KERNEL_SECCOMP
  701. bool "Enable seccomp support"
  702. depends on !(TARGET_uml)
  703. select KERNEL_SECCOMP_FILTER
  704. default y if !SMALL_FLASH
  705. help
  706. Build kernel with support for seccomp.
  707. #
  708. # IPv4 configuration
  709. #
  710. config KERNEL_IP_MROUTE
  711. bool "Enable IPv4 multicast routing"
  712. default y
  713. help
  714. Multicast routing requires a multicast routing daemon in
  715. addition to kernel support.
  716. #
  717. # IPv6 configuration
  718. #
  719. config KERNEL_IPV6
  720. def_bool IPV6
  721. if KERNEL_IPV6
  722. config KERNEL_IPV6_MULTIPLE_TABLES
  723. def_bool y
  724. config KERNEL_IPV6_SUBTREES
  725. def_bool y
  726. config KERNEL_IPV6_MROUTE
  727. bool "Enable IPv6 multicast routing"
  728. default y
  729. help
  730. Multicast routing requires a multicast routing daemon in
  731. addition to kernel support.
  732. config KERNEL_IPV6_PIMSM_V2
  733. def_bool n
  734. endif
  735. #
  736. # NFS related symbols
  737. #
  738. config KERNEL_IP_PNP
  739. bool "Compile the kernel with rootfs on NFS"
  740. help
  741. If you want to make your kernel boot off a NFS server as root
  742. filesystem, select Y here.
  743. if KERNEL_IP_PNP
  744. config KERNEL_IP_PNP_DHCP
  745. def_bool y
  746. config KERNEL_IP_PNP_BOOTP
  747. def_bool n
  748. config KERNEL_IP_PNP_RARP
  749. def_bool n
  750. config KERNEL_NFS_FS
  751. def_bool y
  752. config KERNEL_NFS_V2
  753. def_bool y
  754. config KERNEL_NFS_V3
  755. def_bool y
  756. config KERNEL_ROOT_NFS
  757. def_bool y
  758. endif
  759. menu "Filesystem ACL and attr support options"
  760. config USE_FS_ACL_ATTR
  761. bool "Use filesystem ACL and attr support by default"
  762. default n
  763. help
  764. Make using ACLs (e.g. POSIX ACL, NFSv4 ACL) the default
  765. for kernel and packages, except tmpfs, flash filesystems,
  766. and old NFS. Also enable userspace extended attribute support
  767. by default. (OpenWrt already has an expection it will be
  768. present in the kernel).
  769. config KERNEL_FS_POSIX_ACL
  770. bool "Enable POSIX ACL support"
  771. default y if USE_FS_ACL_ATTR
  772. config KERNEL_BTRFS_FS_POSIX_ACL
  773. bool "Enable POSIX ACL for BtrFS Filesystems"
  774. select KERNEL_FS_POSIX_ACL
  775. default y if USE_FS_ACL_ATTR
  776. config KERNEL_EXT4_FS_POSIX_ACL
  777. bool "Enable POSIX ACL for Ext4 Filesystems"
  778. select KERNEL_FS_POSIX_ACL
  779. default y if USE_FS_ACL_ATTR
  780. config KERNEL_F2FS_FS_POSIX_ACL
  781. bool "Enable POSIX ACL for F2FS Filesystems"
  782. select KERNEL_FS_POSIX_ACL
  783. default n
  784. config KERNEL_JFFS2_FS_POSIX_ACL
  785. bool "Enable POSIX ACL for JFFS2 Filesystems"
  786. select KERNEL_FS_POSIX_ACL
  787. default n
  788. config KERNEL_TMPFS_POSIX_ACL
  789. bool "Enable POSIX ACL for TMPFS Filesystems"
  790. select KERNEL_FS_POSIX_ACL
  791. default n
  792. config KERNEL_CIFS_ACL
  793. bool "Enable CIFS ACLs"
  794. select KERNEL_FS_POSIX_ACL
  795. default y if USE_FS_ACL_ATTR
  796. config KERNEL_HFS_FS_POSIX_ACL
  797. bool "Enable POSIX ACL for HFS Filesystems"
  798. select KERNEL_FS_POSIX_ACL
  799. default y if USE_FS_ACL_ATTR
  800. config KERNEL_HFSPLUS_FS_POSIX_ACL
  801. bool "Enable POSIX ACL for HFS+ Filesystems"
  802. select KERNEL_FS_POSIX_ACL
  803. default y if USE_FS_ACL_ATTR
  804. config KERNEL_NFS_ACL_SUPPORT
  805. bool "Enable ACLs for NFS"
  806. default y if USE_FS_ACL_ATTR
  807. config KERNEL_NFS_V3_ACL_SUPPORT
  808. bool "Enable ACLs for NFSv3"
  809. default n
  810. config KERNEL_NFSD_V2_ACL_SUPPORT
  811. bool "Enable ACLs for NFSDv2"
  812. default n
  813. config KERNEL_NFSD_V3_ACL_SUPPORT
  814. bool "Enable ACLs for NFSDv3"
  815. default n
  816. config KERNEL_REISER_FS_POSIX_ACL
  817. bool "Enable POSIX ACLs for ReiserFS"
  818. select KERNEL_FS_POSIX_ACL
  819. default y if USE_FS_ACL_ATTR
  820. config KERNEL_XFS_POSIX_ACL
  821. bool "Enable POSIX ACLs for XFS"
  822. select KERNEL_FS_POSIX_ACL
  823. default y if USE_FS_ACL_ATTR
  824. config KERNEL_JFS_POSIX_ACL
  825. bool "Enable POSIX ACLs for JFS"
  826. select KERNEL_FS_POSIX_ACL
  827. default y if USE_FS_ACL_ATTR
  828. endmenu
  829. config KERNEL_DEVMEM
  830. bool "/dev/mem virtual device support"
  831. help
  832. Say Y here if you want to support the /dev/mem device.
  833. The /dev/mem device is used to access areas of physical
  834. memory.
  835. config KERNEL_DEVKMEM
  836. bool "/dev/kmem virtual device support"
  837. help
  838. Say Y here if you want to support the /dev/kmem device. The
  839. /dev/kmem device is rarely used, but can be used for certain
  840. kind of kernel debugging operations.
  841. config KERNEL_SQUASHFS_FRAGMENT_CACHE_SIZE
  842. int "Number of squashfs fragments cached"
  843. default 2 if (SMALL_FLASH && !LOW_MEMORY_FOOTPRINT)
  844. default 3
  845. #
  846. # compile optimiziation setting
  847. #
  848. choice
  849. prompt "Compiler optimization level"
  850. default KERNEL_CC_OPTIMIZE_FOR_SIZE if SMALL_FLASH
  851. config KERNEL_CC_OPTIMIZE_FOR_PERFORMANCE
  852. bool "Optimize for performance"
  853. help
  854. This is the default optimization level for the kernel, building
  855. with the "-O2" compiler flag for best performance and most
  856. helpful compile-time warnings.
  857. config KERNEL_CC_OPTIMIZE_FOR_SIZE
  858. bool "Optimize for size"
  859. help
  860. Enabling this option will pass "-Os" instead of "-O2" to
  861. your compiler resulting in a smaller kernel.
  862. endchoice