学习bcc已经有一段时间,稍微总结一下已知的一些内容。
1. 安装bcc
2. bcc参考资料
bcc/reference_guide.md at master · iovisor/bcc · GitHubBCC - Tools for BPF-based Linux IO analysis, networking, monitoring, and more - bcc/reference_guide.md at master · iovisor/bcchttps://github.com/iovisor/bcc/blob/master/docs/reference_guide.mdbcc/tutorial.md at master · iovisor/bcc · GitHubBCC - Tools for BPF-based Linux IO analysis, networking, monitoring, and more - bcc/tutorial.md at master · iovisor/bcchttps://github.com/iovisor/bcc/blob/master/docs/tutorial.mdbcc/tutorial_bcc_python_developer.md at master · iovisor/bcc · GitHubBCC - Tools for BPF-based Linux IO analysis, networking, monitoring, and more - bcc/tutorial_bcc_python_developer.md at master · iovisor/bcchttps://github.com/iovisor/bcc/blob/master/docs/tutorial_bcc_python_developer.md
3. 我写的bcc脚本
4. 一些总结
(1)bcc安装在/usr/share中,自己编写的脚本需要放在/usr/share/bcc/tools里,在其中运行
(2)通过下面的命令可以查看可以trace的函数
cat /sys/kernel/debug/tracing/available_filter_functions
因为是在逐渐学习,所以之后会慢慢补充。
如果觉得这篇文章有用的话,可以点赞、评论或者收藏,万分感谢,goodbye~