Update module github.com/cilium/ebpf to v0.20.0 #169
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.
This PR contains the following updates:
v0.19.0->v0.20.0Release Notes
cilium/ebpf (github.com/cilium/ebpf)
v0.20.0Compare Source
Performance Improvements
New Features
LoadSplitSpecfunction for easier use of split-BTF filesDetach()method for explicitly detaching linksmap_extrafield in MapSpec (enables bloom filter configuration)ExtraRelocationTargetsccache clang)ErrRestrictedKernelwhen reading zero addresses due tokernel.kptr_restrictErrRestrictedKernelwhen program info is restricted by kernel security settingsErrRestrictedKernelduring ksym resolution unless ksyms are requiredBugfixes
*Memoryinstead of**Memoryto fix resource leakWindows Support Improvements
Breaking Changes
ProgramOptions.KernelModuleTypes removed
The
KernelModuleTypesfield inProgramOptionshas been removed. In 99% of cases this field should not be necessary anymore. Module BTF should be merged into the vmlinux BTF, as tools like btfhub do.For advanced use cases that still require passing additional BTF specs for CO-RE relocations, use the new
ExtraRelocationTargetsfield:Before:
After:
btf.Cache fields unexported
The
KernelTypes,ModuleTypes, andLoadedModulesfields inbtf.Cachehave been unexported. These fields were internal implementation details and should not have been accessed directly. Users should continue usingbtf.NewCache()to create cache instances - no code changes are needed if you weren't directly accessing these fields.What's Changed
LoadSplitSpecfunction by @tdaudi in #1819BPF2GO_CCby @jrife in #1829go toolinstead ofgo runingo:generatestatements by @ti-mo in #1875ErrRestrictedKernelwhen kernel pointers are restricted using sysctls by @dylandreimerink in #1858New Contributors
Full Changelog: cilium/ebpf@v0.19.0...v0.20.0
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.