Kernel Function Graph Tracer
modulename: trace_functions_graph.ko
and/orftrace.ko
configname: CONFIG_FUNCTION_GRAPH_TRACER
Linux Kernel Configuration
└─>Kernel hacking
└─>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.
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:
depends
CONFIG_FTRACECONFIG_FUNCTION_TRACER
CONFIG_HAVE_FUNCTION_GRAPH_TRACER
CONFIG_TRACING_SUPPORT
NOT CONFIG_CC_OPTIMIZE_FOR_SIZE or NOT CONFIG_X86_32