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 uprobe multi probe with target wildcard #2851

Merged
merged 1 commit into from
Nov 29, 2023

Conversation

jordalgo
Copy link
Contributor

@jordalgo jordalgo commented Nov 24, 2023

When using uprobe multi probes if the target has a wildcard then we need to create one probe for each expanded target path similar to how non-multi uprobe probes work.

Found this bug because the runtime test:
"attach to multiple probes by pid with only wildcard" was failing when using multi probe.

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

@jordalgo jordalgo marked this pull request as ready for review November 24, 2023 15:38
When using uprobe multi probes if the target has a wildcard
then we need to create one probe for each expanded target path
similar to how non-multi uprobe probes work.

Found this bug because the runtime test:
"attach to multiple probes by pid with only wildcard" was
failing when using multi probe.
@danobi danobi merged commit 996182f into bpftrace:master Nov 29, 2023
18 checks passed
@jordalgo jordalgo deleted the multi-probe-fix branch December 18, 2023 15:24
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.

3 participants