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

Allow probe builtin with aliased software/hardware probes #2711

Merged
merged 1 commit into from
Aug 9, 2023

Conversation

viktormalik
Copy link
Contributor

@viktormalik viktormalik commented Aug 8, 2023

Using probe builtin in software/hardware probes specified by alias name is not possible b/c ProbeMatcher cannot find the match:

# bpftrace -e 'software:cpu:1 { print(probe); exit() }'
No probes to attach

Fix this by adding the aliased name (if exists) to the search list.

Fixes #2700.

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

Using probe builtin in software/hardware probes specified by alias name
is not possible b/c ProbeMatcher cannot find the match:

    # bpftrace -e 'software:cpu:1 { print(probe); exit() }'
    No probes to attach

Fix this by adding the aliased name (if exists) to the search list.
@danobi danobi merged commit 32c7cae into bpftrace:master Aug 9, 2023
21 checks passed
@viktormalik viktormalik deleted the software-alias-probe-builtin branch August 31, 2023 11:12
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.

probe builtin doesn't work with software:cpu: probe
2 participants