1.获取某个函数在系统范围内的调用栈分布
./stackcount-bpfcc -f -D 10 -P ktime_get >out.stackcount01.txt
-f 表示生成火焰图格式
-D 表示duration
-P 表示按进程划分
git clone http://github.com/brendangregg/FlameGraph
cd FlameGraph/
./flamegraph.pl --hash --bgcolors=grey < /sbin/out.stackcount01.txt > out.stackcount01.svg
文档目录:
/usr/share/doc/bpfcc-tools/examples/doc
查看帮助文档方法
man 8 opensnoop-bpfcc