Skip to content

v0.4.0-libbpf-1.0.0

Compare
Choose a tag to compare
@grantseltzer grantseltzer released this 01 Sep 13:34
· 197 commits to main since this release

v0.4.0-libbpf-1.0.0

This release of libbpfgo now provides official support for libbpf v1.0.0

Breaking Changes

  • CompareKernelRelease helper now has two returns (adding an error, using a typed return) #232
  • SocketOption Parsing has a few changes to its API. (#203)
    • The type SocketOptionArgument is now a struct (previous uint64), which affects all related constants
    • ParseSocketOption has been removed and replaced by ParseSetSocketOption and ParseGetSocketOption

Fixes to parsing of getsockopt/setsockopt options argument (#203)

New features

  • Accessor functions like BPFMap.GetFd(), BPFMap.GetName(), BPFMap.GetPinPath(),... are now aliases of functions without 'get' (#230)
  • Support for legacy cgroup attachment (#214)
  • Helpers and constants for parsing bpf program type (#209)
  • Added AttachNetns API to wrap bpf_program__atach_netns (#205 - Thanks @mozillazg!)

Improvements/Fixes

  • libbpfgo will not bump rlimit_memlock anymore, libbpf handles this automatically now
  • New selftests - attaching to cgroups and cgroup-legacy (#204, #214) - Thanks @mozillazg!
  • Makefile target for running unit tests in helpers #212
  • Fixes to parsing of getsockopt/setsockopt options argument (#203) - see breaking changes
  • RWArray helpers are now in their own package (#202)
  • Error handling fixes to Batch functions (#198, #199)