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

fix: panic when perf counter could not be initialized #16

Merged
merged 1 commit into from
May 9, 2023

Conversation

brayniac
Copy link
Contributor

@brayniac brayniac commented 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.

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 brayniac merged commit ddc1390 into iopsystems:main May 9, 2023
@brayniac brayniac deleted the fix-14 branch May 9, 2023 19:42
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.

1 participant