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

bugfix: interrupts sampler may fail to sample all interrupts #225

Merged
merged 1 commit into from
Jun 18, 2021

Conversation

brayniac
Copy link
Contributor

Reported in #224, the interrupts sampler can get tripped up by
lines which do not match the expected keywords. This is a result of
using a while loop with continue expression that bypass clearing
the line buffer.

This PR addresses this issue by reimplementing the loop so that we
can clear the line buffer at the start of the loop. This approach
allows us to ensure the line buffer is empty without requiring us
to remember to clear the buffer immediately before a continue.

Reported in twitter#224, the interrupts sampler can get tripped up by
lines which do not match the expected keywords. This is a result of
using a while loop with continue expression that bypass clearing
the line buffer.

This PR addresses this issue by reimplementing the loop so that we
can clear the line buffer at the start of the loop. This approach
allows us to ensure the line buffer is empty without requiring us
to remember to clear the buffer immediately before a continue.
@brayniac brayniac merged commit b5981ca into twitter:master Jun 18, 2021
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