Add a dynamic probe to a function

Add a kprobe that captures an argument and record it, so you can look inside the kernel without rebuilding it

perf probe --add 'tcp_sendmsg size' && perf record -e probe:tcp_sendmsg -a -- sleep 5

tool
perf17 commands
tags
perfkerneldebugobservability

More perf commands

all 17 perf commands