Kconfig 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. # SPDX-License-Identifier: GPL-2.0-only
  2. config PROC_FS
  3. bool "/proc file system support" if EXPERT
  4. default y
  5. help
  6. This is a virtual file system providing information about the status
  7. of the system. "Virtual" means that it doesn't take up any space on
  8. your hard disk: the files are created on the fly by the kernel when
  9. you try to access them. Also, you cannot read the files with older
  10. version of the program less: you need to use more or cat.
  11. It's totally cool; for example, "cat /proc/interrupts" gives
  12. information about what the different IRQs are used for at the moment
  13. (there is a small number of Interrupt ReQuest lines in your computer
  14. that are used by the attached devices to gain the CPU's attention --
  15. often a source of trouble if two devices are mistakenly configured
  16. to use the same IRQ). The program procinfo to display some
  17. information about your system gathered from the /proc file system.
  18. Before you can use the /proc file system, it has to be mounted,
  19. meaning it has to be given a location in the directory hierarchy.
  20. That location should be /proc. A command such as "mount -t proc proc
  21. /proc" or the equivalent line in /etc/fstab does the job.
  22. The /proc file system is explained in the file
  23. <file:Documentation/filesystems/proc.rst> and on the proc(5) manpage
  24. ("man 5 proc").
  25. This option will enlarge your kernel by about 67 KB. Several
  26. programs depend on this, so everyone should say Y here.
  27. config PROC_KCORE
  28. bool "/proc/kcore support" if !ARM
  29. depends on PROC_FS && MMU
  30. select VMCORE_INFO
  31. help
  32. Provides a virtual ELF core file of the live kernel. This can
  33. be read with gdb and other ELF tools. No modifications can be
  34. made using this mechanism.
  35. config PROC_VMCORE
  36. bool "/proc/vmcore support"
  37. depends on PROC_FS && CRASH_DUMP
  38. default y
  39. help
  40. Exports the dump image of crashed kernel in ELF format.
  41. config PROC_VMCORE_DEVICE_DUMP
  42. bool "Device Hardware/Firmware Log Collection"
  43. depends on PROC_VMCORE
  44. default n
  45. help
  46. After kernel panic, device drivers can collect the device
  47. specific snapshot of their hardware or firmware before the
  48. underlying devices are initialized in crash recovery kernel.
  49. Note that the device driver must be present in the crash
  50. recovery kernel's initramfs to collect its underlying device
  51. snapshot.
  52. If you say Y here, the collected device dumps will be added
  53. as ELF notes to /proc/vmcore. You can still disable device
  54. dump using the kernel command line option 'novmcoredd'.
  55. config NEED_PROC_VMCORE_DEVICE_RAM
  56. bool
  57. config PROC_VMCORE_DEVICE_RAM
  58. def_bool y
  59. depends on PROC_VMCORE && NEED_PROC_VMCORE_DEVICE_RAM
  60. depends on VIRTIO_MEM
  61. help
  62. If the elfcore hdr is allocated and prepared by the dump kernel
  63. ("2nd kernel") instead of the crashed kernel, RAM provided by memory
  64. devices such as virtio-mem will not be included in the dump
  65. image, because only the device driver can properly detect them.
  66. With this config enabled, these RAM ranges will be queried from the
  67. device drivers once the device gets probed, so they can be included
  68. in the crash dump.
  69. Relevant architectures should select NEED_PROC_VMCORE_DEVICE_RAM.
  70. config PROC_SYSCTL
  71. bool "Sysctl support (/proc/sys)" if EXPERT
  72. depends on PROC_FS
  73. select SYSCTL
  74. default y
  75. help
  76. The sysctl interface provides a means of dynamically changing
  77. certain kernel parameters and variables on the fly without requiring
  78. a recompile of the kernel or reboot of the system. The primary
  79. interface is through /proc/sys. If you say Y here a tree of
  80. modifiable sysctl entries will be generated beneath the
  81. /proc/sys directory. They are explained in the files
  82. in <file:Documentation/admin-guide/sysctl/>. Note that enabling this
  83. option will enlarge the kernel by at least 8 KB.
  84. As it is generally a good thing, you should say Y here unless
  85. building a kernel for install/rescue disks or your system is very
  86. limited in memory.
  87. config PROC_PAGE_MONITOR
  88. default y
  89. depends on PROC_FS && MMU
  90. bool "Enable /proc page monitoring" if EXPERT
  91. help
  92. Various /proc files exist to monitor process memory utilization:
  93. /proc/pid/smaps, /proc/pid/clear_refs, /proc/pid/pagemap,
  94. /proc/kpagecount, and /proc/kpageflags. Disabling these
  95. interfaces will reduce the size of the kernel by approximately 4kb.
  96. config PROC_CHILDREN
  97. bool "Include /proc/<pid>/task/<tid>/children file"
  98. depends on PROC_FS
  99. default n
  100. help
  101. Provides a fast way to retrieve first level children pids of a task. See
  102. <file:Documentation/filesystems/proc.rst> for more information.
  103. Say Y if you are running any user-space software which takes benefit from
  104. this interface. For example, rkt is such a piece of software.
  105. config PROC_PID_ARCH_STATUS
  106. def_bool n
  107. depends on PROC_FS
  108. config PROC_CPU_RESCTRL
  109. def_bool n
  110. depends on PROC_FS