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

ustd: better handling of empty namespaces #1486

Merged
merged 1 commit into from
Aug 31, 2020

Conversation

viktormalik
Copy link
Contributor

@viktormalik viktormalik commented Aug 26, 2020

If an empty namespace is given, it is deduced automatically. We assume that a single probe with the given name exists. If multiple probes having the same name but different namespaces are matched, no probes are attached to and the user is told to use an explicit wildcard for the namespace.

This solves dicrepancy between the tests (which treat an empty namespace as a wildcard) and the reference guide (which says that an empty namespace is replaced by the binary name).

Resolves #1469 and fixes #1466.

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

If an empty namespace is given, it is deduced automatically. We assume
that a single probe with the given name exists. If multiple probes
having the same name but different namespaces are matched, no probes are
attached to and the user is told to use an explicit wildcard for the
namespace.

Specifying a wildcard in the probe name will allow multiple probes to be
matched even if the namespace is empty.

This solves dicrepancy between the tests (which treat an empty namespace
as a wildcard) and the reference guide (which says that an empty
namespace is replaced by the binary name).

The tests and the reference guide are updated accordingly to the new
behavior.
@fbs fbs merged commit e375083 into bpftrace:master Aug 31, 2020
@fbs
Copy link
Contributor

fbs commented Aug 31, 2020

nice

@viktormalik viktormalik deleted the usdt-ns-fix branch September 1, 2020 10:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants