Config-kernel.in 31 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104
  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_TRANSPARENT_HUGEPAGE
  303. bool
  304. choice
  305. prompt "Transparent Hugepage Support sysfs defaults"
  306. depends on KERNEL_TRANSPARENT_HUGEPAGE
  307. default KERNEL_TRANSPARENT_HUGEPAGE_ALWAYS
  308. config KERNEL_TRANSPARENT_HUGEPAGE_ALWAYS
  309. bool "always"
  310. config KERNEL_TRANSPARENT_HUGEPAGE_MADVISE
  311. bool "madvise"
  312. endchoice
  313. config KERNEL_HUGETLBFS
  314. bool
  315. config KERNEL_HUGETLB_PAGE
  316. bool "Compile the kernel with HugeTLB support"
  317. select KERNEL_TRANSPARENT_HUGEPAGE
  318. select KERNEL_HUGETLBFS
  319. default n
  320. config KERNEL_MAGIC_SYSRQ
  321. bool "Compile the kernel with SysRq support"
  322. default y
  323. config KERNEL_DEBUG_PINCTRL
  324. bool "Compile the kernel with pinctrl debugging"
  325. select KERNEL_DEBUG_KERNEL
  326. config KERNEL_DEBUG_GPIO
  327. bool "Compile the kernel with gpio debugging"
  328. select KERNEL_DEBUG_KERNEL
  329. config KERNEL_COREDUMP
  330. bool
  331. config KERNEL_ELF_CORE
  332. bool "Enable process core dump support"
  333. select KERNEL_COREDUMP
  334. default y if !SMALL_FLASH
  335. config KERNEL_PROVE_LOCKING
  336. bool "Enable kernel lock checking"
  337. select KERNEL_DEBUG_KERNEL
  338. default n
  339. config KERNEL_LOCKUP_DETECTOR
  340. bool "Compile the kernel with detect Hard and Soft Lockups"
  341. depends on KERNEL_DEBUG_KERNEL
  342. help
  343. Say Y here to enable the kernel to act as a watchdog to detect
  344. hard and soft lockups.
  345. Softlockups are bugs that cause the kernel to loop in kernel
  346. mode for more than 20 seconds, without giving other tasks a
  347. chance to run. The current stack trace is displayed upon
  348. detection and the system will stay locked up.
  349. Hardlockups are bugs that cause the CPU to loop in kernel mode
  350. for more than 10 seconds, without letting other interrupts have a
  351. chance to run. The current stack trace is displayed upon detection
  352. and the system will stay locked up.
  353. The overhead should be minimal. A periodic hrtimer runs to
  354. generate interrupts and kick the watchdog task every 4 seconds.
  355. An NMI is generated every 10 seconds or so to check for hardlockups.
  356. The frequency of hrtimer and NMI events and the soft and hard lockup
  357. thresholds can be controlled through the sysctl watchdog_thresh.
  358. config KERNEL_DETECT_HUNG_TASK
  359. bool "Compile the kernel with detect Hung Tasks"
  360. depends on KERNEL_DEBUG_KERNEL
  361. default KERNEL_LOCKUP_DETECTOR
  362. help
  363. Say Y here to enable the kernel to detect "hung tasks",
  364. which are bugs that cause the task to be stuck in
  365. uninterruptible "D" state indefinitely.
  366. When a hung task is detected, the kernel will print the
  367. current stack trace (which you should report), but the
  368. task will stay in uninterruptible state. If lockdep is
  369. enabled then all held locks will also be reported. This
  370. feature has negligible overhead.
  371. config KERNEL_WQ_WATCHDOG
  372. bool "Compile the kernel with detect Workqueue Stalls"
  373. depends on KERNEL_DEBUG_KERNEL
  374. help
  375. Say Y here to enable stall detection on workqueues. If a
  376. worker pool doesn't make forward progress on a pending work
  377. item for over a given amount of time, 30s by default, a
  378. warning message is printed along with dump of workqueue
  379. state. This can be configured through kernel parameter
  380. "workqueue.watchdog_thresh" and its sysfs counterpart.
  381. config KERNEL_DEBUG_ATOMIC_SLEEP
  382. bool "Compile the kernel with sleep inside atomic section checking"
  383. depends on KERNEL_DEBUG_KERNEL
  384. help
  385. If you say Y here, various routines which may sleep will become very
  386. noisy if they are called inside atomic sections: when a spinlock is
  387. held, inside an rcu read side critical section, inside preempt disabled
  388. sections, inside an interrupt, etc...
  389. config KERNEL_DEBUG_VM
  390. bool "Compile the kernel with debug VM"
  391. depends on KERNEL_DEBUG_KERNEL
  392. help
  393. Enable this to turn on extended checks in the virtual-memory system
  394. that may impact performance.
  395. If unsure, say N.
  396. config KERNEL_PRINTK_TIME
  397. bool "Enable printk timestamps"
  398. default y
  399. config KERNEL_SLUB_DEBUG
  400. bool
  401. config KERNEL_SLUB_DEBUG_ON
  402. bool
  403. config KERNEL_SLABINFO
  404. select KERNEL_SLUB_DEBUG
  405. select KERNEL_SLUB_DEBUG_ON
  406. bool "Enable /proc slab debug info"
  407. config KERNEL_PROC_PAGE_MONITOR
  408. bool "Enable /proc page monitoring"
  409. config KERNEL_RELAY
  410. bool
  411. config KERNEL_KEXEC
  412. bool "Enable kexec support"
  413. config KERNEL_PROC_VMCORE
  414. bool
  415. config KERNEL_PROC_KCORE
  416. bool
  417. config KERNEL_CRASH_DUMP
  418. depends on i386 || x86_64 || arm || armeb
  419. select KERNEL_KEXEC
  420. select KERNEL_PROC_VMCORE
  421. select KERNEL_PROC_KCORE
  422. bool "Enable support for kexec crashdump"
  423. default y
  424. config USE_RFKILL
  425. bool "Enable rfkill support"
  426. default RFKILL_SUPPORT
  427. config USE_SPARSE
  428. bool "Enable sparse check during kernel build"
  429. default n
  430. config KERNEL_DEVTMPFS
  431. bool "Compile the kernel with device tmpfs enabled"
  432. default n
  433. help
  434. devtmpfs is a simple, kernel-managed /dev filesystem. The kernel creates
  435. devices nodes for all registered devices to simplify boot, but leaves more
  436. complex tasks to userspace (e.g. udev).
  437. if KERNEL_DEVTMPFS
  438. config KERNEL_DEVTMPFS_MOUNT
  439. bool "Automatically mount devtmpfs after root filesystem is mounted"
  440. default n
  441. endif
  442. config KERNEL_KEYS
  443. bool "Enable kernel access key retention support"
  444. default n
  445. config KERNEL_PERSISTENT_KEYRINGS
  446. bool "Enable kernel persistent keyrings"
  447. depends on KERNEL_KEYS
  448. default n
  449. config KERNEL_BIG_KEYS
  450. bool "Enable large payload keys on kernel keyrings"
  451. depends on KERNEL_KEYS
  452. default n
  453. config KERNEL_ENCRYPTED_KEYS
  454. tristate "Enable keys with encrypted payloads on kernel keyrings"
  455. depends on KERNEL_KEYS
  456. default n
  457. #
  458. # CGROUP support symbols
  459. #
  460. config KERNEL_CGROUPS
  461. bool "Enable kernel cgroups"
  462. default y if !SMALL_FLASH
  463. if KERNEL_CGROUPS
  464. config KERNEL_CGROUP_DEBUG
  465. bool "Example debug cgroup subsystem"
  466. default n
  467. help
  468. This option enables a simple cgroup subsystem that
  469. exports useful debugging information about the cgroups
  470. framework.
  471. config KERNEL_FREEZER
  472. bool
  473. config KERNEL_CGROUP_FREEZER
  474. bool "legacy Freezer cgroup subsystem"
  475. default n
  476. select KERNEL_FREEZER
  477. help
  478. Provides a way to freeze and unfreeze all tasks in a
  479. cgroup.
  480. (legacy cgroup1-only controller, in cgroup2 freezer
  481. is integrated in the Memory controller)
  482. config KERNEL_CGROUP_DEVICE
  483. bool "legacy Device controller for cgroups"
  484. default n
  485. help
  486. Provides a cgroup implementing whitelists for devices which
  487. a process in the cgroup can mknod or open.
  488. (legacy cgroup1-only controller)
  489. config KERNEL_CGROUP_HUGETLB
  490. bool "HugeTLB controller"
  491. default y if KERNEL_HUGETLB_PAGE
  492. depends on KERNEL_HUGETLB_PAGE
  493. config KERNEL_CGROUP_PIDS
  494. bool "PIDs cgroup subsystem"
  495. default y
  496. help
  497. Provides enforcement of process number limits in the scope of a
  498. cgroup.
  499. config KERNEL_CGROUP_RDMA
  500. bool "RDMA controller for cgroups"
  501. default y
  502. config KERNEL_CGROUP_BPF
  503. bool "Support for eBPF programs attached to cgroups"
  504. default y
  505. config KERNEL_CPUSETS
  506. bool "Cpuset support"
  507. default y
  508. help
  509. This option will let you create and manage CPUSETs which
  510. allow dynamically partitioning a system into sets of CPUs and
  511. Memory Nodes and assigning tasks to run only within those sets.
  512. This is primarily useful on large SMP or NUMA systems.
  513. config KERNEL_PROC_PID_CPUSET
  514. bool "Include legacy /proc/<pid>/cpuset file"
  515. default n
  516. depends on KERNEL_CPUSETS
  517. config KERNEL_CGROUP_CPUACCT
  518. bool "Simple CPU accounting cgroup subsystem"
  519. default y
  520. help
  521. Provides a simple Resource Controller for monitoring the
  522. total CPU consumed by the tasks in a cgroup.
  523. config KERNEL_RESOURCE_COUNTERS
  524. bool "Resource counters"
  525. default y
  526. help
  527. This option enables controller independent resource accounting
  528. infrastructure that works with cgroups.
  529. config KERNEL_MM_OWNER
  530. bool
  531. default y if KERNEL_MEMCG
  532. config KERNEL_MEMCG
  533. bool "Memory Resource Controller for Control Groups"
  534. default y
  535. select KERNEL_FREEZER
  536. depends on KERNEL_RESOURCE_COUNTERS || !LINUX_3_18
  537. help
  538. Provides a memory resource controller that manages both anonymous
  539. memory and page cache. (See Documentation/cgroups/memory.txt)
  540. Note that setting this option increases fixed memory overhead
  541. associated with each page of memory in the system. By this,
  542. 20(40)bytes/PAGE_SIZE on 32(64)bit system will be occupied by memory
  543. usage tracking struct at boot. Total amount of this is printed out
  544. at boot.
  545. Only enable when you're ok with these tradeoffs and really
  546. sure you need the memory resource controller. Even when you enable
  547. this, you can set "cgroup_disable=memory" at your boot option to
  548. disable memory resource controller and you can avoid overheads
  549. (but lose benefits of memory resource controller).
  550. This config option also selects MM_OWNER config option, which
  551. could in turn add some fork/exit overhead.
  552. config KERNEL_MEMCG_SWAP
  553. bool "Memory Resource Controller Swap Extension"
  554. default y
  555. depends on KERNEL_MEMCG
  556. help
  557. Add swap management feature to memory resource controller. When you
  558. enable this, you can limit mem+swap usage per cgroup. In other words,
  559. when you disable this, memory resource controller has no cares to
  560. usage of swap...a process can exhaust all of the swap. This extension
  561. is useful when you want to avoid exhaustion swap but this itself
  562. adds more overheads and consumes memory for remembering information.
  563. Especially if you use 32bit system or small memory system, please
  564. be careful about enabling this. When memory resource controller
  565. is disabled by boot option, this will be automatically disabled and
  566. there will be no overhead from this. Even when you set this config=y,
  567. if boot option "swapaccount=0" is set, swap will not be accounted.
  568. Now, memory usage of swap_cgroup is 2 bytes per entry. If swap page
  569. size is 4096bytes, 512k per 1Gbytes of swap.
  570. config KERNEL_MEMCG_SWAP_ENABLED
  571. bool "Memory Resource Controller Swap Extension enabled by default"
  572. default n
  573. depends on KERNEL_MEMCG_SWAP
  574. help
  575. Memory Resource Controller Swap Extension comes with its price in
  576. a bigger memory consumption. General purpose distribution kernels
  577. which want to enable the feature but keep it disabled by default
  578. and let the user enable it by swapaccount boot command line
  579. parameter should have this option unselected.
  580. Those who want to have the feature enabled by default should
  581. select this option (if, for some reason, they need to disable it,
  582. then swapaccount=0 does the trick).
  583. config KERNEL_MEMCG_KMEM
  584. bool "Memory Resource Controller Kernel Memory accounting (EXPERIMENTAL)"
  585. default y
  586. depends on KERNEL_MEMCG
  587. help
  588. The Kernel Memory extension for Memory Resource Controller can limit
  589. the amount of memory used by kernel objects in the system. Those are
  590. fundamentally different from the entities handled by the standard
  591. Memory Controller, which are page-based, and can be swapped. Users of
  592. the kmem extension can use it to guarantee that no group of processes
  593. will ever exhaust kernel resources alone.
  594. config KERNEL_CGROUP_PERF
  595. bool "Enable perf_event per-cpu per-container group (cgroup) monitoring"
  596. select KERNEL_PERF_EVENTS
  597. default n
  598. help
  599. This option extends the per-cpu mode to restrict monitoring to
  600. threads which belong to the cgroup specified and run on the
  601. designated cpu.
  602. menuconfig KERNEL_CGROUP_SCHED
  603. bool "Group CPU scheduler"
  604. default y
  605. help
  606. This feature lets CPU scheduler recognize task groups and control CPU
  607. bandwidth allocation to such task groups. It uses cgroups to group
  608. tasks.
  609. if KERNEL_CGROUP_SCHED
  610. config KERNEL_FAIR_GROUP_SCHED
  611. bool "Group scheduling for SCHED_OTHER"
  612. default y
  613. config KERNEL_CFS_BANDWIDTH
  614. bool "CPU bandwidth provisioning for FAIR_GROUP_SCHED"
  615. default y
  616. depends on KERNEL_FAIR_GROUP_SCHED
  617. help
  618. This option allows users to define CPU bandwidth rates (limits) for
  619. tasks running within the fair group scheduler. Groups with no limit
  620. set are considered to be unconstrained and will run with no
  621. restriction.
  622. See tip/Documentation/scheduler/sched-bwc.txt for more information.
  623. config KERNEL_RT_GROUP_SCHED
  624. bool "Group scheduling for SCHED_RR/FIFO"
  625. default y
  626. help
  627. This feature lets you explicitly allocate real CPU bandwidth
  628. to task groups. If enabled, it will also make it impossible to
  629. schedule realtime tasks for non-root users until you allocate
  630. realtime bandwidth for them.
  631. endif
  632. config KERNEL_BLK_CGROUP
  633. bool "Block IO controller"
  634. default y
  635. help
  636. Generic block IO controller cgroup interface. This is the common
  637. cgroup interface which should be used by various IO controlling
  638. policies.
  639. Currently, CFQ IO scheduler uses it to recognize task groups and
  640. control disk bandwidth allocation (proportional time slice allocation)
  641. to such task groups. It is also used by bio throttling logic in
  642. block layer to implement upper limit in IO rates on a device.
  643. This option only enables generic Block IO controller infrastructure.
  644. One needs to also enable actual IO controlling logic/policy. For
  645. enabling proportional weight division of disk bandwidth in CFQ, set
  646. CONFIG_CFQ_GROUP_IOSCHED=y; for enabling throttling policy, set
  647. CONFIG_BLK_DEV_THROTTLING=y.
  648. if KERNEL_BLK_CGROUP
  649. config KERNEL_CFQ_GROUP_IOSCHED
  650. bool "Proportional weight of disk bandwidth in CFQ"
  651. config KERNEL_BLK_DEV_THROTTLING
  652. bool "Enable throttling policy"
  653. default y
  654. config KERNEL_BLK_DEV_THROTTLING_LOW
  655. bool "Block throttling .low limit interface support (EXPERIMENTAL)"
  656. depends on KERNEL_BLK_DEV_THROTTLING
  657. endif
  658. config KERNEL_DEBUG_BLK_CGROUP
  659. bool "Enable Block IO controller debugging"
  660. default n
  661. depends on KERNEL_BLK_CGROUP
  662. help
  663. Enable some debugging help. Currently it exports additional stat
  664. files in a cgroup which can be useful for debugging.
  665. config KERNEL_NET_CLS_CGROUP
  666. bool "legacy Control Group Classifier"
  667. default n
  668. config KERNEL_CGROUP_NET_CLASSID
  669. bool "legacy Network classid cgroup"
  670. default n
  671. config KERNEL_CGROUP_NET_PRIO
  672. bool "legacy Network priority cgroup"
  673. default n
  674. endif
  675. #
  676. # Namespace support symbols
  677. #
  678. config KERNEL_NAMESPACES
  679. bool "Enable kernel namespaces"
  680. default y if !SMALL_FLASH
  681. if KERNEL_NAMESPACES
  682. config KERNEL_UTS_NS
  683. bool "UTS namespace"
  684. default y
  685. help
  686. In this namespace, tasks see different info provided
  687. with the uname() system call.
  688. config KERNEL_IPC_NS
  689. bool "IPC namespace"
  690. default y
  691. help
  692. In this namespace, tasks work with IPC ids which correspond to
  693. different IPC objects in different namespaces.
  694. config KERNEL_USER_NS
  695. bool "User namespace (EXPERIMENTAL)"
  696. default y
  697. help
  698. This allows containers, i.e. vservers, to use user namespaces
  699. to provide different user info for different servers.
  700. config KERNEL_PID_NS
  701. bool "PID Namespaces"
  702. default y
  703. help
  704. Support process id namespaces. This allows having multiple
  705. processes with the same pid as long as they are in different
  706. pid namespaces. This is a building block of containers.
  707. config KERNEL_NET_NS
  708. bool "Network namespace"
  709. default y
  710. help
  711. Allow user space to create what appear to be multiple instances
  712. of the network stack.
  713. endif
  714. config KERNEL_DEVPTS_MULTIPLE_INSTANCES
  715. bool "Support multiple instances of devpts"
  716. default y if !SMALL_FLASH
  717. help
  718. Enable support for multiple instances of devpts filesystem.
  719. If you want to have isolated PTY namespaces (eg: in containers),
  720. say Y here. Otherwise, say N. If enabled, each mount of devpts
  721. filesystem with the '-o newinstance' option will create an
  722. independent PTY namespace.
  723. config KERNEL_POSIX_MQUEUE
  724. bool "POSIX Message Queues"
  725. default y if !SMALL_FLASH
  726. help
  727. POSIX variant of message queues is a part of IPC. In POSIX message
  728. queues every message has a priority which decides about succession
  729. of receiving it by a process. If you want to compile and run
  730. programs written e.g. for Solaris with use of its POSIX message
  731. queues (functions mq_*) say Y here.
  732. POSIX message queues are visible as a filesystem called 'mqueue'
  733. and can be mounted somewhere if you want to do filesystem
  734. operations on message queues.
  735. config KERNEL_SECCOMP_FILTER
  736. bool
  737. default y if !SMALL_FLASH
  738. config KERNEL_SECCOMP
  739. bool "Enable seccomp support"
  740. depends on !(TARGET_uml)
  741. select KERNEL_SECCOMP_FILTER
  742. default y if !SMALL_FLASH
  743. help
  744. Build kernel with support for seccomp.
  745. #
  746. # IPv4 configuration
  747. #
  748. config KERNEL_IP_MROUTE
  749. bool "Enable IPv4 multicast routing"
  750. default y
  751. help
  752. Multicast routing requires a multicast routing daemon in
  753. addition to kernel support.
  754. #
  755. # IPv6 configuration
  756. #
  757. config KERNEL_IPV6
  758. def_bool IPV6
  759. if KERNEL_IPV6
  760. config KERNEL_IPV6_MULTIPLE_TABLES
  761. def_bool y
  762. config KERNEL_IPV6_SUBTREES
  763. def_bool y
  764. config KERNEL_IPV6_MROUTE
  765. bool "Enable IPv6 multicast routing"
  766. default y
  767. help
  768. Multicast routing requires a multicast routing daemon in
  769. addition to kernel support.
  770. config KERNEL_IPV6_PIMSM_V2
  771. def_bool n
  772. endif
  773. #
  774. # NFS related symbols
  775. #
  776. config KERNEL_IP_PNP
  777. bool "Compile the kernel with rootfs on NFS"
  778. help
  779. If you want to make your kernel boot off a NFS server as root
  780. filesystem, select Y here.
  781. if KERNEL_IP_PNP
  782. config KERNEL_IP_PNP_DHCP
  783. def_bool y
  784. config KERNEL_IP_PNP_BOOTP
  785. def_bool n
  786. config KERNEL_IP_PNP_RARP
  787. def_bool n
  788. config KERNEL_NFS_FS
  789. def_bool y
  790. config KERNEL_NFS_V2
  791. def_bool y
  792. config KERNEL_NFS_V3
  793. def_bool y
  794. config KERNEL_ROOT_NFS
  795. def_bool y
  796. endif
  797. menu "Filesystem ACL and attr support options"
  798. config USE_FS_ACL_ATTR
  799. bool "Use filesystem ACL and attr support by default"
  800. default n
  801. help
  802. Make using ACLs (e.g. POSIX ACL, NFSv4 ACL) the default
  803. for kernel and packages, except tmpfs, flash filesystems,
  804. and old NFS. Also enable userspace extended attribute support
  805. by default. (OpenWrt already has an expection it will be
  806. present in the kernel).
  807. config KERNEL_FS_POSIX_ACL
  808. bool "Enable POSIX ACL support"
  809. default y if USE_FS_ACL_ATTR
  810. config KERNEL_BTRFS_FS_POSIX_ACL
  811. bool "Enable POSIX ACL for BtrFS Filesystems"
  812. select KERNEL_FS_POSIX_ACL
  813. default y if USE_FS_ACL_ATTR
  814. config KERNEL_EXT4_FS_POSIX_ACL
  815. bool "Enable POSIX ACL for Ext4 Filesystems"
  816. select KERNEL_FS_POSIX_ACL
  817. default y if USE_FS_ACL_ATTR
  818. config KERNEL_F2FS_FS_POSIX_ACL
  819. bool "Enable POSIX ACL for F2FS Filesystems"
  820. select KERNEL_FS_POSIX_ACL
  821. default n
  822. config KERNEL_JFFS2_FS_POSIX_ACL
  823. bool "Enable POSIX ACL for JFFS2 Filesystems"
  824. select KERNEL_FS_POSIX_ACL
  825. default n
  826. config KERNEL_TMPFS_POSIX_ACL
  827. bool "Enable POSIX ACL for TMPFS Filesystems"
  828. select KERNEL_FS_POSIX_ACL
  829. default n
  830. config KERNEL_CIFS_ACL
  831. bool "Enable CIFS ACLs"
  832. select KERNEL_FS_POSIX_ACL
  833. default y if USE_FS_ACL_ATTR
  834. config KERNEL_HFS_FS_POSIX_ACL
  835. bool "Enable POSIX ACL for HFS Filesystems"
  836. select KERNEL_FS_POSIX_ACL
  837. default y if USE_FS_ACL_ATTR
  838. config KERNEL_HFSPLUS_FS_POSIX_ACL
  839. bool "Enable POSIX ACL for HFS+ Filesystems"
  840. select KERNEL_FS_POSIX_ACL
  841. default y if USE_FS_ACL_ATTR
  842. config KERNEL_NFS_ACL_SUPPORT
  843. bool "Enable ACLs for NFS"
  844. default y if USE_FS_ACL_ATTR
  845. config KERNEL_NFS_V3_ACL_SUPPORT
  846. bool "Enable ACLs for NFSv3"
  847. default n
  848. config KERNEL_NFSD_V2_ACL_SUPPORT
  849. bool "Enable ACLs for NFSDv2"
  850. default n
  851. config KERNEL_NFSD_V3_ACL_SUPPORT
  852. bool "Enable ACLs for NFSDv3"
  853. default n
  854. config KERNEL_REISER_FS_POSIX_ACL
  855. bool "Enable POSIX ACLs for ReiserFS"
  856. select KERNEL_FS_POSIX_ACL
  857. default y if USE_FS_ACL_ATTR
  858. config KERNEL_XFS_POSIX_ACL
  859. bool "Enable POSIX ACLs for XFS"
  860. select KERNEL_FS_POSIX_ACL
  861. default y if USE_FS_ACL_ATTR
  862. config KERNEL_JFS_POSIX_ACL
  863. bool "Enable POSIX ACLs for JFS"
  864. select KERNEL_FS_POSIX_ACL
  865. default y if USE_FS_ACL_ATTR
  866. endmenu
  867. config KERNEL_DEVMEM
  868. bool "/dev/mem virtual device support"
  869. help
  870. Say Y here if you want to support the /dev/mem device.
  871. The /dev/mem device is used to access areas of physical
  872. memory.
  873. config KERNEL_DEVKMEM
  874. bool "/dev/kmem virtual device support"
  875. help
  876. Say Y here if you want to support the /dev/kmem device. The
  877. /dev/kmem device is rarely used, but can be used for certain
  878. kind of kernel debugging operations.
  879. config KERNEL_SQUASHFS_FRAGMENT_CACHE_SIZE
  880. int "Number of squashfs fragments cached"
  881. default 2 if (SMALL_FLASH && !LOW_MEMORY_FOOTPRINT)
  882. default 3
  883. #
  884. # compile optimiziation setting
  885. #
  886. choice
  887. prompt "Compiler optimization level"
  888. default KERNEL_CC_OPTIMIZE_FOR_SIZE if SMALL_FLASH
  889. config KERNEL_CC_OPTIMIZE_FOR_PERFORMANCE
  890. bool "Optimize for performance"
  891. help
  892. This is the default optimization level for the kernel, building
  893. with the "-O2" compiler flag for best performance and most
  894. helpful compile-time warnings.
  895. config KERNEL_CC_OPTIMIZE_FOR_SIZE
  896. bool "Optimize for size"
  897. help
  898. Enabling this option will pass "-Os" instead of "-O2" to
  899. your compiler resulting in a smaller kernel.
  900. endchoice