1. 追蹤Kernel function (以schedule()示範)
先至
/sys/kernel/debug/tracing# cat available_tracers
確定有無 函式追蹤器(function)
blk mmiotrace function_graph wakeup_rt wakeup function nop
很開心有的,接著
echo schedule > set_ftrace_filterecho function > current_tracer
看結果
head trace