pkg/proc/internal/ebpf: Fix uprobe address #3894
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The update of gilium/ebpf introduced a beaking change in it's API: The
offsetin the UprobeOptions is now relative to the added optionaddress. Sinceaddresswas only default initalized, the library did not useaddressandoffsetas address for the uprobe, but tried to calculate the offset itself based on the given symbol. Since we set the path of the executable as symbol, the library errored when trying to resolve it.Fixes #3491
How to test this PR: Run
sudo -E go run _scripts/make.go test -v --test-set cmd/dlv --test-run='^.*EBPF.*$'on the main branch, notice how it fails and re-run on this branch.