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

vfscount.py: add args time #2344

Merged
merged 4 commits into from
May 10, 2019
Merged

vfscount.py: add args time #2344

merged 4 commits into from
May 10, 2019

Conversation

201341
Copy link
Contributor

@201341 201341 commented May 9, 2019

Just like vfsstat.py. I think the args time is good for us to analysis.If we need to know the number of vfs call during a period of time, the previous implement can't tell the details.

@yonghong-song
Copy link
Collaborator

[buildbot, test this please]

Copy link
Collaborator

@yonghong-song yonghong-song left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. could you also update example file and man page?

@201341
Copy link
Contributor Author

201341 commented May 10, 2019

I have updated them. @yonghong-song

@yonghong-song
Copy link
Collaborator

[buildbot, test this please]

@yonghong-song yonghong-song merged commit a2e71a9 into iovisor:master May 10, 2019
brendangregg pushed a commit to brendangregg/bcc that referenced this pull request May 23, 2019
add args time for vfscount.py
palexster pushed a commit to palexster/bcc that referenced this pull request Jul 7, 2019
add args time for vfscount.py
jeromemarchand added a commit to jeromemarchand/bcc that referenced this pull request Aug 5, 2019
Since commit a2e71a9 ("vfscount.py: add args time (iovisor#2344)"),
vfscount does not show any output when it is interrupted by a key
press, which is the only way out when no time limit is specified. I
assume the exit() that has been added in the keyboard interrupt
handler is there so that no output is displayed when the program has
been interrupted early when a time limit has been specified. But since
the tool still invite the user to use Ctrl-C to end the tracing in
that case, it seems more consistent to show an output in that case
too.

This patch removes the exit() and the tools always show a result at
the end. It also adds the duration argument to the synopsis and the
option section in the man page.
yonghong-song pushed a commit that referenced this pull request Aug 5, 2019
Since commit a2e71a9 ("vfscount.py: add args time (#2344)"),
vfscount does not show any output when it is interrupted by a key
press, which is the only way out when no time limit is specified. I
assume the exit() that has been added in the keyboard interrupt
handler is there so that no output is displayed when the program has
been interrupted early when a time limit has been specified. But since
the tool still invite the user to use Ctrl-C to end the tracing in
that case, it seems more consistent to show an output in that case
too.

This patch removes the exit() and the tools always show a result at
the end. It also adds the duration argument to the synopsis and the
option section in the man page.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants