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

Improve handling empty attach points #2179

Merged
merged 1 commit into from
Apr 5, 2022

Conversation

viktormalik
Copy link
Contributor

@viktormalik viktormalik commented Apr 1, 2022

If there are empty attach points for a probe, ignore them unless there
are no other non-empty attach points. In such a case, emit error.

This allows usage of trailing commas:

kprobe:function1,
kprobe:function2,
{...}

Fixes #2120.

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

If there are empty attach points for a probe, ignore them unless there
are no other non-empty attach points. In such a case, emit error.

This allows usage of trailing commas:
    kprobe:function1,
    kprobe:function2,
    {...}
@viktormalik viktormalik merged commit a97c0eb into bpftrace:master Apr 5, 2022
@viktormalik viktormalik deleted the empty-aps branch May 3, 2022 04:43
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.

trailing comma treated as empty probe
2 participants