/usr/share/doc/bpfcc-tools/examples/tracing
NameSizeModeActions
biolatpcts.py33120755editdlrm
biolatpcts_example.txt6500644editdlrm
bitehist.py13970755editdlrm
bitehist_example.txt12080644editdlrm
CMakeLists.txt2760644editdlrm
dddos.py38180755editdlrm
dddos_example.txt21120644editdlrm
disksnoop.py19470755editdlrm
disksnoop_example.txt15870644editdlrm
hello_fields.py6790755editdlrm
hello_perf_output.py12700755editdlrm
hello_perf_output_using_ns.py18430755editdlrm
kvm_hypercall.py15200755editdlrm
kvm_hypercall.txt17820644editdlrm
mallocstacks.py19420755editdlrm
mysqld_query.py17010755editdlrm
mysqld_query_example.txt4990644editdlrm
nflatency.py62140755editdlrm
nodejs_http_server.py13760755editdlrm
nodejs_http_server_example.txt2760644editdlrm
stacksnoop.py32520755editdlrm
stacksnoop_example.txt28710644editdlrm
stack_buildid_example.py31060755editdlrm
strlen_count.py13310755editdlrm
strlen_hist.py18560755editdlrm
strlen_hist_ifunc.py38000755editdlrm
strlen_snoop.py13840755editdlrm
sync_timing.py13900755editdlrm
task_switch.c4990644editdlrm
task_switch.py4860755editdlrm
tcpv4connect.py24130755editdlrm
tcpv4connect_example.txt10630644editdlrm
trace_fields.py5890755editdlrm
trace_perf_output.py16000755editdlrm
undump.py36020755editdlrm
undump_example.txt8860644editdlrm
urandomread-explicit.py15110755editdlrm
urandomread.py10320755editdlrm
urandomread_example.txt6750644editdlrm
vfsreadlat.c8960644editdlrm
vfsreadlat.py13360755editdlrm
vfsreadlat_example.txt36190644editdlrm
Edit: /usr/share/doc/bpfcc-tools/examples/tracing/disksnoop_example.txt (1587B)
Demonstrations of disksnoop.py, the Linux eBPF/bcc version. This traces block I/O, a prints a line to summarize each I/O completed: # ./disksnoop.py TIME(s) T BYTES LAT(ms) 16458043.435457 W 4096 2.73 16458043.435981 W 4096 3.24 16458043.436012 W 4096 3.13 16458043.437326 W 4096 4.44 16458044.126545 R 4096 42.82 16458044.129872 R 4096 3.24 16458044.130705 R 4096 0.73 16458044.142813 R 4096 12.01 16458044.147302 R 4096 4.33 16458044.148117 R 4096 0.71 16458044.148950 R 4096 0.70 16458044.164332 R 4096 15.29 16458044.168003 R 4096 3.58 16458044.171676 R 4096 3.59 16458044.172453 R 4096 0.72 16458044.173213 R 4096 0.71 16458044.173989 R 4096 0.72 16458044.174739 R 4096 0.70 16458044.190334 R 4096 15.52 16458044.196608 R 4096 6.17 16458044.203091 R 4096 6.35 The output includes a basic timestamp (in seconds), the type of I/O (W == write, R == read, M == metadata), the size of the I/O in bytes, and the latency (or duration) of the I/O in milliseconds. The latency is measured from I/O request to the device, to the device completion. This excludes latency spent queued in the OS. Most of the I/O in this example were 0.7 and 4 milliseconds in duration. There was an outlier of 42.82 milliseconds, a read which followed many writes (the high latency may have been caused by the writes still being serviced on the storage device).