Skip to content

Instantly share code, notes, and snippets.

@jagannath-sahoo
Last active May 24, 2019 03:24
Show Gist options
  • Save jagannath-sahoo/66744e4b9d91452ef8d98ae3d27ac932 to your computer and use it in GitHub Desktop.
Save jagannath-sahoo/66744e4b9d91452ef8d98ae3d27ac932 to your computer and use it in GitHub Desktop.
Ftrace from Google
************function_graph******************
********************************************
echo 0 > /sys/kernel/debug/tracing/tracing_on
trace-cmd start -p function_graph -g ip_rcv
trace-cmd stop
cat /sys/kernel/debug/tracing/trace
********************************************
cat tracing_on
echo 1 > tracing_on
echo function > current_tracer
echo nop > current_tracer
cat trace
echo function > current_tracer
cat trace
cat trace > /home/jagannath/Desktop/trace.txt
echo function > current_tracer
echo 0 > tracing_on
cat trace
echo nop > current_tracer
echo 'Hello world!' > trace_marker
echo 'Hello world' > trace_marker
echo "Hello world" > trace_marker
echo 1 > tracing_on
echo 'hello world!' > trace_marker
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment