Kernel Function Graph Tracer

modulename: ftrace.ko

and/or

fgraph.ko

and/or

trace_functions_graph.ko

configname: CONFIG_FUNCTION_GRAPH_TRACER

Linux Kernel Configuration
└─>Tracers
└─>Kernel Function Graph Tracer
In linux kernel since version 2.6.29 (release Date: 2009-03-23)  
Enable the kernel to trace a function at both its return
and its entry.
Its first purpose is to trace the duration of functions and
draw a call graph for each thread with some information like
the return value. This is done by setting the current return
address on the current task structure into a stack of calls.

source code: