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()
respectivelylink.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 #684
- program: Add TestWithOptions() API by @danobi in #647
- prog: Avoid allocating for ctx if ctx not provided by @danobi in #687
- btf: add Array.Index by @lmb in #689
- btf: add btfInt by @lmb in #690
- Add
RelativeOffset
field toUprobeOptions
struct by @mertyildiran in #682 - program: remove references from ProgramSpec by @lmb in #679
- map: suggest incorrect MaxEntries on EINVAL by @markpash in #697
- internal/sys: regenerate types by @florianl in #700
- link: close tracefs event if perf event cannot be opened by @nashuiliang in #699
- Revert ".semaphore - workaround to update ca-certificates before apt-get update" by @lmb in #703
- run-tests: fix shebang to find bash more reliably by @markpash in #702
- examples: add map in map example by @markpash in #696
- btf: fix NewHandleFromID and add test by @lmb in #704
- sycall should be syscall. by @shepf in #707
- CI: load bpf_testmod in VM by @lmb in #709
- internal: make VerifierError more succinct by @lmb in #688
- examples: add example for XDP by @wedaly in #706
- btf: simplify loadRawSpec by @lmb in #708
- Remove 4.4 from CI by @lmb in #710
- map: Do not chec maxEntries for PerfEventArray map by @olsajiri in #714
- link/kprobe: skip offset test on kernel version > 5.15 by @mmat11 in #719
- Avoid leaking fds in test suite and
NewMapWithOptions()
by @ti-mo in #725 - btf: Add support for loading split BTF by @brb in #691
- prog: Allow empty data for prog.Test and prog.Run by @danobi in #685
- internal: avoid sign extension of Statfs_t.Type on 32 bit arches by @lmb in #727
- link: unify KprobeOptions.Offset and UprobeOptions.Offset by @lmb in #694
- collection: close all unassigned resources before returning from LoadAndAssign by @ti-mo in #724
- btf: add Enum.Size by @lmb in #735
- btf: use ci-kernels to source kernel BTF by @lmb in #731
- asm: update BPF built-in functions by @rgo3 in #734
- program: add getter for btf.Handle by @lmb in #730
- btf: fix NewHandleFromID for kernel modules by @lmb in #729
- internal: include previous line on BPF context access error by @lmb in #733
New Contributors
- @danobi made their first contribution in #647
- @mertyildiran made their first contribution in #682
- @nashuiliang made their first contribution in #699
- @shepf made their first contribution in #707
- @wedaly made their first contribution in #706
- @olsajiri made their first contribution in #714
Full Changelog: v0.9.0...v0.9.1