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.

  1. From "make menuconfig", go to --> "Global Build Settings" then go to --> "Compile kernel with tracing support"

  2. In the "Compile kernel with tracing support", enable the below options :-

    • Enable/disable function tracing dynamically

    • Trace process context switches and events

    • Function tracer

  3. 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

ls /sys/kernel/debug/tracing/

enable ftrace on runtime

Last updated

Was this helpful?