Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tools: fix vfscount output when no duration is specified #2483

Merged
merged 1 commit into from
Aug 5, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion man/man8/vfscount.8
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
.SH NAME
vfscount \- Count VFS calls ("vfs_*"). Uses Linux eBPF/bcc.
.SH SYNOPSIS
.B vfscount
.B vfscount [duration]
.SH DESCRIPTION
This counts VFS calls. This can be useful for general workload
characterization of these operations.
Expand All @@ -14,6 +14,10 @@ Edit the script to customize which functions to trace.
Since this uses BPF, only the root user can use this tool.
.SH REQUIREMENTS
CONFIG_BPF and bcc.
.SH OPTIONS
.TP
duration
duration of the trace in seconds.
.SH EXAMPLES
.TP
Count some VFS calls until Ctrl-C is hit:
Expand Down
1 change: 0 additions & 1 deletion tools/vfscount.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ def usage():
sleep(interval)
except KeyboardInterrupt:
pass
exit()

print("\n%-16s %-26s %8s" % ("ADDR", "FUNC", "COUNT"))
counts = b.get_table("counts")
Expand Down