1. 追蹤Kernel function (以schedule()示範)
先至
1 |
/sys/kernel/debug/tracing# cat available_tracers |
確定有無 函式追蹤器(function)
blk
mmiotrace function_graph wakeup_rt wakeup function nop
很開心有的,接著
1
2
3 |
echo schedule > set_ftrace_filter echo functuin > current_tracer |
看結果
1 |
head trace |
原文:http://www.cnblogs.com/bittorrent/p/3729882.html