January 2018
Intermediate to advanced
456 pages
12h 49m
English
You can get finer granularity in the functions being traced by using the dynamic tracer, which can be enabled with the CONFIG_DYNAMIC_FTRACE configuration variable. This is enabled with the tracing functionality by default. This adds two more files, set_ftrace_filter and set_ftrace_notrace. Adding functions to set_ftrace_filter will trace only those functions, and adding them to set_ftrace_notrace will not trace them, even if they are also added to set_ftrace_filter.
The set of available function names that can be filtered may be obtained by executing the following command:
$ cat /sys/kernel/debug/tracing/available_filter_functions
Functions can be added with the following command:
$ echo -n <function_name> >> ...
Read now
Unlock full access