Trace max stack

modulename: trace_stack.ko

configname: CONFIG_STACK_TRACER

Linux Kernel Configuration
└─>Tracers
└─>Trace max stack
In linux kernel since version 2.6.28 (release Date: 2008-12-24)  
This special tracer records the maximum stack footprint of the
kernel and displays it in debugfs/tracing/stack_trace.

This tracer works by hooking into every function call that the
kernel executes, and keeping a maximum stack depth value and
stack-trace saved. Because this logic has to execute in every
kernel function, all the time, this option can slow down the
kernel measurably and is generally intended for kernel
developers only.

Say N if unsure.

source code: