• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1Examples 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.
21