-
Notifications
You must be signed in to change notification settings - Fork 19
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
Counters incompatibilities? #2
Comments
Hi, Just to confirm that I can reproduce that.
Also perf seems to handle that fine:
Thanks |
Thanks for the bug report - sorry for the slow reply! If I remove other counters from that group, then I can add |
I am not seeing any error codes returned by the kernel. However, it does say that the period of time for which the group was enabled was zero, which suggests that we're running into multiplexing:
|
If you make the |
This is a kernel limitation, not a problem with the library. From the perf kernel documentation:
If I disable the NMI watchdog as suggested, then a group that contains the I'll make the documentation mention this. The Linux |
This may be covered by #5. |
Hello!
First of all, thank you very much for this crate, its exactly what i was looking for.
I was trying to use various counters and I noticed that some counters appear to be incompatible.
For example, I tried to add the
CPU_CYCLES
counter to https://github.com/jimblandy/perf-event/blob/master/examples/group.rs and suddenly all values are0
:Is this a known issue of this crate that can be fix? If so, I'd be happy to work on a PR with some guidance.
I believe, but i might be wrong, that
perf
itself supports it?Thank you again!
The text was updated successfully, but these errors were encountered: