mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
maps4: make page monitoring /proc file optional
Make /proc/ page monitoring configurable This puts the following files under an embedded config option: /proc/pid/clear_refs /proc/pid/smaps /proc/pid/pagemap /proc/kpagecount /proc/kpageflags [[email protected]: Kconfig fix] Signed-off-by: Matt Mackall <[email protected]> Cc: Dave Hansen <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
304daa8132
commit
1e88328111
5 changed files with 20 additions and 3 deletions
10
init/Kconfig
10
init/Kconfig
|
|
@ -678,6 +678,16 @@ config MARKERS
|
|||
|
||||
source "arch/Kconfig"
|
||||
|
||||
config PROC_PAGE_MONITOR
|
||||
default y
|
||||
depends on PROC_FS && MMU
|
||||
bool "Enable /proc page monitoring" if EMBEDDED
|
||||
help
|
||||
Various /proc files exist to monitor process memory utilization:
|
||||
/proc/pid/smaps, /proc/pid/clear_refs, /proc/pid/pagemap,
|
||||
/proc/kpagecount, and /proc/kpageflags. Disabling these
|
||||
interfaces will reduce the size of the kernel by approximately 4kb.
|
||||
|
||||
endmenu # General setup
|
||||
|
||||
config SLABINFO
|
||||
|
|
|
|||
Loading…
Reference in a new issue