Ftrace
Description
Ftrace is an internal tracer designed to help out developers and designers of systems to find what is going on inside the kernel. It can be used for debugging or analyzing latencies and performance issues that take place outside of user-space.
enable related config
From "make menuconfig", go to --> "Global Build Settings" then go to --> "Compile kernel with tracing support"
In the "Compile kernel with tracing support", enable the below options :-
Enable/disable function tracing dynamically
Trace process context switches and events
Function tracer
Once above changes are done, then from the "make kernel_menuconfig", go to --> "Kernel hacking" --> then enable the below options in "Tracers":-
Kernel Function Tracer
enable/disable function tracing dynamically
check enable status
enable ftrace on runtime
Last updated
Was this helpful?