blob: 43d962b425fcbc40390742d560d9db50e9727185 [file] [log] [blame]
Brendan Gregge422f5e2016-07-01 18:38:30 -07001Examples of urandomread.py, the Linux eBPF/bcc version.
2
3
4To demonstrate this, the following workload was issued:
5
6# dd if=/dev/urandom of=/dev/null bs=1k count=5
7
8While urandomread.py was tracing in another session:
9
10# ./urandomread.py
11TIME(s) COMM PID GOTBITS
1222592556.392825000 dd 14228 8192
1322592556.392949000 dd 14228 8192
1422592556.393068999 dd 14228 8192
1522592556.393183999 dd 14228 8192
1622592556.393298000 dd 14228 8192
17
18The GOTBITS of 8192 matches the workload of 1 Kbyte (8 Kbit) reads.
19
20This program was really written as a simple example of tracing a tracepoint.