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

iter: Reuse BPFtrace::run() infrastructure #1882

Merged
merged 1 commit into from
Jun 29, 2021
Merged

Conversation

danobi
Copy link
Member

@danobi danobi commented Jun 18, 2021

Instead of iter probes having its own runtime codepath, this commit
integrations iter probes with other probe types. The only difference now
is that instead of polling indefinitely for perf buffer events, we read
the link FD until it's emptied and then proceed to exit.

This is advantageous b/c now features like -kk will work (b/c the perf
buffers are set up now). This also makes builtins like elapsed work as
expected.

Checklist
  • Language changes are updated in docs/reference_guide.md
  • User-visible and non-trivial changes updated in CHANGELOG.md
  • The new behaviour is covered by tests

@danobi danobi requested a review from olsajiri June 18, 2021 05:35
@fbs fbs added this to the 0.13.0 milestone Jun 19, 2021
Instead of `iter` probes having its own runtime codepath, this commit
integrations iter probes with other probe types. The only difference now
is that instead of polling indefinitely for perf buffer events, we read
the link FD until it's emptied and then proceed to exit.

This is advantageous b/c now features like `-kk` will work (b/c the perf
buffers are set up now). This also makes builtins like `elapsed` work as
expected.
@danobi danobi merged commit 7404e04 into bpftrace:master Jun 29, 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.

2 participants