1 Star 0 Fork 0

wangcichen/bcc

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
urandomread_example.txt 675 Bytes
一键复制 编辑 原始数据 按行查看 历史
Jerome Marchand 提交于 2019-02-06 06:32 +08:00 . Fix misc file permissions (#2185)
Examples of urandomread.py, the Linux eBPF/bcc version.
To demonstrate this, the following workload was issued:
# dd if=/dev/urandom of=/dev/null bs=1k count=5
While urandomread.py was tracing in another session:
# ./urandomread.py
TIME(s) COMM PID GOTBITS
22592556.392825000 dd 14228 8192
22592556.392949000 dd 14228 8192
22592556.393068999 dd 14228 8192
22592556.393183999 dd 14228 8192
22592556.393298000 dd 14228 8192
The GOTBITS of 8192 matches the workload of 1 Kbyte (8 Kbit) reads.
This program was really written as a simple example of tracing a tracepoint.
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/wangcichen/bcc.git
git@gitee.com:wangcichen/bcc.git
wangcichen
bcc
bcc
master

搜索帮助