Created
August 16, 2016 14:13
-
-
Save brb/28dac40cbc712402718188ade947d198 to your computer and use it in GitHub Desktop.
ftrace example for kernel call graphs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo 0 > /sys/kernel/debug/tracing/tracing_on | |
echo > /sys/kernel/debug/tracing/trace | |
echo function_graph > /sys/kernel/debug/tracing/current_tracer | |
echo $KERNEL_FUNCTION > /sys/kernel/debug/tracing/set_graph_function | |
echo 1 > /sys/kernel/debug/tracing/tracing_on | |
$DO_STUFF | |
echo 0 > /sys/kernel/debug/tracing/tracing_on | |
echo > /sys/kernel/debug/tracing/set_graph_function | |
cat /sys/kernel/debug/tracing/trace |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment