libbpf-tools: migrate xfsslower to fsslower
authorHengqi Chen <chenhengqi@outlook.com>
Sat, 5 Jun 2021 02:44:46 +0000 (10:44 +0800)
committeryonghong-song <ys114321@gmail.com>
Thu, 10 Jun 2021 16:29:27 +0000 (09:29 -0700)
commit9e38ee193b376fbada6ed68534329f6ed8848caf
tree2826f4d058f79203cafe7a4643f5f656aac510eb
parent1aeec1ffc5517ed47b249ba74a3e2870af36f865
libbpf-tools: migrate xfsslower to fsslower

This commit migrates xfsslower to a generic fsslower which supports
tracing multiple file systems. It works the same way as the original
tool except that the users are supposed to specify which file systems
to trace using -t option.

sudo ./fsslower -t ext4 -m 1
Tracing ext4 operations slower than 1 ms... Hit Ctrl-C to end.
TIME     COMM             PID     T BYTES   OFF_KB   LAT(ms) FILENAME
10:36:07 code             6896    F LL_MAX  0           2.40 state.vscdb-journal
10:36:07 code             6896    F LL_MAX  0           1.74 state.vscdb-journal
10:36:07 code             6896    F LL_MAX  0           1.78 state.vscdb

Signed-off-by: Hengqi Chen <chenhengqi@outlook.com>
libbpf-tools/.gitignore
libbpf-tools/Makefile
libbpf-tools/fsslower.bpf.c [new file with mode: 0644]
libbpf-tools/fsslower.c [new file with mode: 0644]
libbpf-tools/fsslower.h [new file with mode: 0644]
libbpf-tools/xfsslower.bpf.c [deleted file]
libbpf-tools/xfsslower.c [deleted file]
libbpf-tools/xfsslower.h [deleted file]