v0.9.1
版本发布时间: 2022-07-19 18:27:06
cilium/ebpf最新发布版本:v0.16.0(2024-07-24 17:40:43)
This is mainly a bugfix release, but a few long-deprecated pieces of API were finally removed after cutting v0.9.0.
These should be trivial to fix up, since they were simply moved or replaced by similar interfaces.
Enjoy!
Breaking Changes
- Deprecations:
-
ebpf.ErrNotExist
was removed, as it was an alias toos.ErrNotExist
-
Map.ID()
in favor ofMap.Info().ID()
-
Program.ID()
in favor ofProgram.Info().ID()
-
Program.Attach()
and.Detach()
in favor oflink.RawAttachProgram()
andlink.RawDetachProgram()
respectively -
link.LoadPinned{Cgroup,Iter,RawLink,NetNs,Freplace}
in favor of a singlelink.LoadPinnedLink()
-
link.RawLinkInfo
was removed, as it was an alias tolink.Info
-
-
UprobeOptions.Offset
is now a relative field, with the new.Address
being an absolute offset.
What's Changed
- Remove API deprecated in v0.8.0 by @lmb in https://github.com/cilium/ebpf/pull/684
- program: Add TestWithOptions() API by @danobi in https://github.com/cilium/ebpf/pull/647
- prog: Avoid allocating for ctx if ctx not provided by @danobi in https://github.com/cilium/ebpf/pull/687
- btf: add Array.Index by @lmb in https://github.com/cilium/ebpf/pull/689
- btf: add btfInt by @lmb in https://github.com/cilium/ebpf/pull/690
- Add
RelativeOffset
field toUprobeOptions
struct by @mertyildiran in https://github.com/cilium/ebpf/pull/682 - program: remove references from ProgramSpec by @lmb in https://github.com/cilium/ebpf/pull/679
- map: suggest incorrect MaxEntries on EINVAL by @markpash in https://github.com/cilium/ebpf/pull/697
- internal/sys: regenerate types by @florianl in https://github.com/cilium/ebpf/pull/700
- link: close tracefs event if perf event cannot be opened by @nashuiliang in https://github.com/cilium/ebpf/pull/699
- Revert ".semaphore - workaround to update ca-certificates before apt-get update" by @lmb in https://github.com/cilium/ebpf/pull/703
- run-tests: fix shebang to find bash more reliably by @markpash in https://github.com/cilium/ebpf/pull/702
- examples: add map in map example by @markpash in https://github.com/cilium/ebpf/pull/696
- btf: fix NewHandleFromID and add test by @lmb in https://github.com/cilium/ebpf/pull/704
- sycall should be syscall. by @shepf in https://github.com/cilium/ebpf/pull/707
- CI: load bpf_testmod in VM by @lmb in https://github.com/cilium/ebpf/pull/709
- internal: make VerifierError more succinct by @lmb in https://github.com/cilium/ebpf/pull/688
- examples: add example for XDP by @wedaly in https://github.com/cilium/ebpf/pull/706
- btf: simplify loadRawSpec by @lmb in https://github.com/cilium/ebpf/pull/708
- Remove 4.4 from CI by @lmb in https://github.com/cilium/ebpf/pull/710
- map: Do not chec maxEntries for PerfEventArray map by @olsajiri in https://github.com/cilium/ebpf/pull/714
- link/kprobe: skip offset test on kernel version > 5.15 by @mmat11 in https://github.com/cilium/ebpf/pull/719
- Avoid leaking fds in test suite and
NewMapWithOptions()
by @ti-mo in https://github.com/cilium/ebpf/pull/725 - btf: Add support for loading split BTF by @brb in https://github.com/cilium/ebpf/pull/691
- prog: Allow empty data for prog.Test and prog.Run by @danobi in https://github.com/cilium/ebpf/pull/685
- internal: avoid sign extension of Statfs_t.Type on 32 bit arches by @lmb in https://github.com/cilium/ebpf/pull/727
- link: unify KprobeOptions.Offset and UprobeOptions.Offset by @lmb in https://github.com/cilium/ebpf/pull/694
- collection: close all unassigned resources before returning from LoadAndAssign by @ti-mo in https://github.com/cilium/ebpf/pull/724
- btf: add Enum.Size by @lmb in https://github.com/cilium/ebpf/pull/735
- btf: use ci-kernels to source kernel BTF by @lmb in https://github.com/cilium/ebpf/pull/731
- asm: update BPF built-in functions by @rgo3 in https://github.com/cilium/ebpf/pull/734
- program: add getter for btf.Handle by @lmb in https://github.com/cilium/ebpf/pull/730
- btf: fix NewHandleFromID for kernel modules by @lmb in https://github.com/cilium/ebpf/pull/729
- internal: include previous line on BPF context access error by @lmb in https://github.com/cilium/ebpf/pull/733
New Contributors
- @danobi made their first contribution in https://github.com/cilium/ebpf/pull/647
- @mertyildiran made their first contribution in https://github.com/cilium/ebpf/pull/682
- @nashuiliang made their first contribution in https://github.com/cilium/ebpf/pull/699
- @shepf made their first contribution in https://github.com/cilium/ebpf/pull/707
- @wedaly made their first contribution in https://github.com/cilium/ebpf/pull/706
- @olsajiri made their first contribution in https://github.com/cilium/ebpf/pull/714
Full Changelog: https://github.com/cilium/ebpf/compare/v0.9.0...v0.9.1