Kernel Tracing with ftrace & trace-cmd

Linux Kernel Debugging and Analysis · 3:02

Listen on 93

Lyrics

[Verse 1]
Deep within the kernel lies a treasure trove of sight
Function calls and system events flowing day and night
Built-in tracing infrastructure waiting for your call
Ftrace is the gateway to observe them all

[Chorus]
Trace command opens doors wide
Function flows you cannot hide
Mount debug f-s proc trace
See the kernel's inner space
Trace command trace command
Shows you where the functions land

[Verse 2]
Enable tracers with a simple echo to the file
Function tracer catches calls that execute with style
Set your filter narrow down the functions you need
Trace events reveal the kernel's every deed

[Chorus]
Trace command opens doors wide
Function flows you cannot hide
Mount debug f-s proc trace
See the kernel's inner space
Trace command trace command
Shows you where the functions land

[Bridge]
Buffer size controls the memory
Ring buffer keeps the history
Current tracer sets the mode
Tracing on starts the flow
Available tracers show the list
Not a single call you'll miss

[Verse 3]
Trace-cmd record captures traces to a file
Start and stop with precision keeps the data compiled
Report command reads the traces shows you what occurred
Function graph displays the call tree every word

[Chorus]
Trace command opens doors wide
Function flows you cannot hide
Mount debug f-s proc trace
See the kernel's inner space
Trace command trace command
Shows you where the functions land

[Outro]
From user space to kernel deep
Execution flows are yours to keep
Ftrace and trace-cmd combined
Illuminate the kernel's mind

← Kernel Module Debugging Techniques | Real-time Kernel Performance Analysis →