January 2018
Intermediate to advanced
456 pages
12h 49m
English
The tracing code can create a backtrace for every function called. However, this is a dangerous feature and should only be used with a filtered selection of functions. Have a look at the following commands:
$ echo -n <function_name> > /sys/kernel/debug/tracing/set_ftrace_filter $ echo -n function > /sys/kernel/debug/tracing/current_tracer $ echo 1 > /sys/kernel/debug/tracing/options/func_stack_trace $ cat /sys/kernel/debug/tracing/trace $ echo 0 > /sys/kernel/debug/tracing/options/func_stack_trace $ echo > /sys/kernel/debug/tracing/set_ftrace_filter
Read now
Unlock full access