-
Notifications
You must be signed in to change notification settings - Fork 10
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
bug: Panic when CPU hardware events are not available #14
Labels
bug
Something isn't working
Comments
brayniac
added a commit
to brayniac/rezolus
that referenced
this issue
May 9, 2023
As reported in iopsystems#14, the CPU CPI sampler will panic if the cycles or instructions perf counters cannot be initialized. This PR fixes the bug by returning a Nop sampler if there are exceptions during initialization.
brayniac
added a commit
to brayniac/rezolus
that referenced
this issue
May 9, 2023
As reported in iopsystems#14, the CPU CPI sampler will panic if the cycles or instructions perf counters cannot be initialized. This PR fixes the bug by returning a Nop sampler if there are exceptions during initialization.
brayniac
added a commit
to brayniac/rezolus
that referenced
this issue
May 9, 2023
As reported in iopsystems#14, the CPU CPI sampler will panic if the cycles or instructions perf counters cannot be initialized. This PR fixes the bug by returning a Nop sampler if there are exceptions during initialization.
brayniac
added a commit
that referenced
this issue
May 9, 2023
As reported in #14, the CPU CPI sampler will panic if the cycles or instructions perf counters cannot be initialized. This PR fixes the bug by returning a Nop sampler if there are exceptions during initialization.
Fixed in #16. Thanks for reporting this. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Program panics when hardware perf_event is not available.
Expected behavior
Actual behavior
Program panics at
expect()
.rezolus/src/samplers/cpu/cpi/mod.rs
Line 32 in 8634df2
Steps to reproduce the behavior
The text was updated successfully, but these errors were encountered: