Config-kernel.in 32 KB

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