ftrace 使用方法

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_filter

echo function > current_tracer

看結果 

head trace
原文地址:https://www.cnblogs.com/bittorrent/p/3729882.html