fs/proc: Show STACKLEAK metrics in the /proc file system
Introduce CONFIG_STACKLEAK_METRICS providing STACKLEAK information about tasks via the /proc file system. In particular, /proc/<pid>/stack_depth shows the maximum kernel stack consumption for the current and previous syscalls. Although this information is not precise, it can be useful for estimating the STACKLEAK performance impact for your workloads. Suggested-by:Ingo Molnar <mingo@kernel.org> Signed-off-by:
Alexander Popov <alex.popov@linux.com> Tested-by:
Laura Abbott <labbott@redhat.com> Signed-off-by:
Kees Cook <keescook@chromium.org>
Showing
- fs/proc/base.c 18 additions, 0 deletionsfs/proc/base.c
- include/linux/sched.h 1 addition, 0 deletionsinclude/linux/sched.h
- include/linux/stackleak.h 3 additions, 0 deletionsinclude/linux/stackleak.h
- kernel/stackleak.c 4 additions, 0 deletionskernel/stackleak.c
- scripts/gcc-plugins/Kconfig 12 additions, 0 deletionsscripts/gcc-plugins/Kconfig
Loading
Please register or sign in to comment