Detailed Stack Information Patch [2/3]
fs/proc/Makefile +1 -0
@@ -25,3 +25,4 @@ proc-$(CONFIG_PROC_DEVICETREE) += proc_devtree.o proc-$(CONFIG_PRINTK) += kmsg.o proc-$(CONFIG_PROC_PAGE_MONITOR) += page.o +proc-$(CONFIG_PROC_STACK_MONITOR) += stackmon.o
fs/proc/stackmon.c +254 -0
254 lines not on this page · raw message
init/Kconfig +10 -0
@@ -826,6 +826,16 @@ Disabling these interfaces will reduce the size of the kernel by approximately 1kb. +config PROC_STACK_MONITOR + default y + depends on PROC_STACK + bool "Enable /proc/stackmon detailed stack monitoring" + help + This enables detailed monitoring of process and thread stack + utilization via the /proc/stackmon interface. + Disabling these interfaces will reduce the size of the kernel by + approximately 2kb. + endmenu # General setup config HAVE_GENERIC_DMA_COHERENT