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
More perf commands
-
perf record -g ./my_appRecord performance data with call graphs
-
perf reportBrowse the recorded perf data interactively
-
perf listList all perf events that this system supports
-
perf stat ls -laShow hardware counters for one command
-
perf record -e cache-misses ./my_appRecord only cache-miss events