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

tlbstat: duration isn't implemented for the default "all CPUs" mode #8

Open
martinvonwittich opened this issue May 15, 2021 · 0 comments

Comments

@martinvonwittich
Copy link

./tlbstat 1 10

I had expected tlbstat to stop after 10 seconds, but instead it runs forever. This is due to the fact that sleep $duration is only passed to perf if the -C or -p option is given:

pmc-cloud-tools/tlbstat

Lines 70 to 73 in 5d4df1e

target=-a
(( opt_cpu )) && target="-C $cpu sleep $duration"
(( opt_pid )) && target="-p $pid sleep $duration"
(( opt_cmd )) && target="$cmd"

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

No branches or pull requests

1 participant