blob: 1012bffb4afce4f49d332983b080cfb70953c180 [file] [log] [blame]
Brendan Gregg48fbc3e2015-08-18 14:56:14 -07001Demonstrations of vfscount, the Linux eBPF/bcc version.
2
3
Brendan Gregg4cbdef72015-08-29 14:53:22 +10004This counts VFS calls, by tracing all kernel functions beginning with "vfs_":
Brendan Gregg48fbc3e2015-08-18 14:56:14 -07005
Alexei Starovoitovbdf07732016-01-14 10:09:20 -08006# ./vfscount
Brendan Gregg48fbc3e2015-08-18 14:56:14 -07007Tracing... Ctrl-C to end.
8^C
Brendan Gregg4cbdef72015-08-29 14:53:22 +10009ADDR FUNC COUNT
10ffffffff811f3c01 vfs_create 1
11ffffffff8120be71 vfs_getxattr 2
12ffffffff811f5f61 vfs_unlink 2
13ffffffff81236ca1 vfs_lock_file 6
14ffffffff81218fb1 vfs_fsync_range 6
15ffffffff811ecaf1 vfs_fstat 319
16ffffffff811e6f01 vfs_open 475
17ffffffff811ecb51 vfs_fstatat 488
18ffffffff811ecac1 vfs_getattr 704
19ffffffff811ec9f1 vfs_getattr_nosec 704
20ffffffff811e80a1 vfs_write 1764
21ffffffff811e7f71 vfs_read 2283
Brendan Gregg48fbc3e2015-08-18 14:56:14 -070022
23This can be useful for workload characterization, to see what types of
24operations are in use.
Brendan Gregg4cbdef72015-08-29 14:53:22 +100025
26You can edit the script to customize what kernel functions are matched.