Releases: aquasecurity/libbpfgo
v0.7.0-libbpf-1.4
What's Changed
- fix: pin revive to e33fb87 by @geyslan in #398
- build(deps): bump golang.org/x/sys from 0.15.0 to 0.16.0 in /helpers by @dependabot in #397
- fix(helpers): kernel_symbols change and fix by @rafaeldtinoco in #399
- build(deps): bump golang.org/x/sys from 0.16.0 to 0.17.0 in /helpers by @dependabot in #402
- build(deps): bump github.com/stretchr/testify from 1.8.4 to 1.9.0 by @dependabot in #403
- build(deps): bump github.com/stretchr/testify from 1.8.4 to 1.9.0 in /helpers by @dependabot in #404
- build(deps): bump golang.org/x/sys from 0.17.0 to 0.18.0 in /helpers by @dependabot in #405
- Added parsing for fsnotify mask and object type by @oshaked1 in #408
- chore(prog): Add autoattach api by @chentao-kernel in #406
- Map batch API by @geyslan in #374
- feature: Add AttachProgs/DetachProgs api for bpf object by @chentao-kernel in #409
- Optionally enable kernel logging by @umanwizard in #412
- fix: ping localhost instead by @geyslan in #414
- libbpf: bump to v1.4.0 (20ea95b) by @geyslan in #415
- Bumping by @geyslan in #416
- chore(ci): bump setup-go action to v5 by @geyslan in #417
- build(deps): bump golang.org/x/sys from 0.18.0 to 0.19.0 in /helpers by @dependabot in #418
- Add new methods to Map API by @geyslan in #419
- chore(selftest): Add tc Query test case by @chentao-kernel in #422
New Contributors
- @oshaked1 made their first contribution in #408
- @chentao-kernel made their first contribution in #406
- @umanwizard made their first contribution in #412
Full Changelog: v0.6.0-libbpf-1.3...v0.7.0-libbpf-1.4
v0.6.0-libbpf-1.3
What's Changed
- feat(helpers): parse io_uring arguments by @roikol in #380
- build(deps): bump golang.org/x/sys from 0.12.0 to 0.13.0 in /helpers by @dependabot in #382
- Feature/parse gup and vm flags by @AlonZivony in #385
- Implement bpf_map__set_key_size, bpf_map__set_autocreate, bpf_map__autocreate by @sc07kvm in #386
- Simplify GetMapsIDsByName by @aymericDD in #384
- Split logic by @geyslan in #367
- Enum string API by @geyslan in #372
- build(deps): bump golang.org/x/sys from 0.13.0 to 0.14.0 in /helpers by @dependabot in #388
- feat(helpers): add argument parser for socketcall by @geyslan in #390
- feat(parse): envelope different OS GUP flags parsing by @AlonZivony in #389
- libbpf: bump to v1.3.0 by @mozillazg in #391
- build(deps): bump golang.org/x/sys from 0.14.0 to 0.15.0 in /helpers by @dependabot in #393
New Contributors
Full Changelog: v0.5.1-libbpf-1.2...v0.6.0-libbpf-1.3
v0.5.1-libbpf-1.2
What's Changed
Full Changelog: v0.5.0-libbpf-1.2...v0.5.1-libbpf-1.2
v0.5.0-libbpf-1.2
What's Changed
- revive: update revive rules by @rafaeldtinoco in #333
- Wrap
bpf_prog_attach
andbpf_prog_detach2
by @mozillazg in #335 - ci: running tests on multiple go versions by @mozillazg in #336
- libbpf: bump to v1.2.2 by @geyslan in #342
- fix: vagrant image install by @geyslan in #341
- Add SkipMemlockBump to NewModuleArgs by @bobrik in #337
- fix: trim quote characters in osinfo by @NDStrahilevitz in #344
- helpers: handle non numeric kernel versions by @NDStrahilevitz in #345
- osinfo: add support for rhel by @NDStrahilevitz in #347
- osinfo: support additional alma linux id by @NDStrahilevitz in #348
- chore: increase timeout for selftests by @geyslan in #349
- fix(selftest): handle arm64 function names by @geyslan in #350
- dependabot add by @gitworkflows in #351
- build(deps): bump github.com/stretchr/testify from 1.8.2 to 1.8.4 by @dependabot in #353
- build(deps): bump actions/checkout from 2 to 3 by @dependabot in #352
- chore: minor clang format and tidy adjustments by @geyslan in #358
- chore: add helpers to dependabot by @geyslan in #359
- build(deps): bump github.com/stretchr/testify from 1.8.0 to 1.8.4 in /helpers by @dependabot in #360
- build(deps): bump golang.org/x/sys from 0.1.0 to 0.11.0 in /helpers by @dependabot in #361
- fix(selftest): kern_version logic by @geyslan in #362
- fix(selftest): use channel for sync by @geyslan in #364
- Split BPFMap API into managed and unmanaged by @geyslan in #356
- fix(map): fix error wrap by @geyslan in #368
- fix(helpers): lint err regarding return statement by @geyslan in #369
- chore(github): add workflow test by @geyslan in #370
- fix:
GetMap()
comment by @geyslan in #371 - Map of maps by @geyslan in #366
- build(deps): bump golang.org/x/sys from 0.11.0 to 0.12.0 in /helpers by @dependabot in #375
- build(deps): bump actions/checkout from 3 to 4 by @dependabot in #376
New Contributors
- @bobrik made their first contribution in #337
- @gitworkflows made their first contribution in #351
- @dependabot made their first contribution in #353
Full Changelog: v0.4.9-libbpf-1.2.0...v0.5.0-libbpf-1.2
v0.4.9-libbpf-1.2.0
What's Changed
- Expose libbpf_num_possible_cpus by @javierhonduco in #331
- error: consider errno as a return value by @geyslan in #332
Full Changelog: v0.4.8.1-libbpf-1.2.0...v0.4.9-libbpf-1.2.0
v0.4.8.1-libbpf-1.2.0
What's Changed
- Fix double-free in
NewModuleFromBufferArgs
by @javierhonduco in #327
Full Changelog: v0.4.8-libbpf-1.2.0...v0.4.8.1-libbpf-1.2.0
v0.4.8-libbpf-1.2.0
What's Changed
This software release includes several changes and improvements. The most significant change is the bump to version 1.2.0 of the libbpf library. The changes in this release include:
- The libbpfgo library now calls bpf_object__open_mem directly from Go instead of doing so via a C wrapper, which creates two new helper functions in libbpfgo.h: bpf_object_open_opts_new() and bpf_object_open_opts_free(). This change was made by @geyslan.
- The logger now passes raw libbpf print output to the consumer, letting them decide how to format it, and the callback log level has been fixed. This logger improvement was made by @geyslan.
- Several build improvements were made, including fixing the compile_commands.json generation (#316), turning clang into the default compiler (#317), and removing gcc-multilib as a dependency (#321).
- Various linting chores and updates were made, including using clang-format-12 (#320), adding the revive linter (#320), and including all C and H files in the fmt command (#320).
- The selftests should be used also as samples (#320), and the selftests no longer depend on UAPI headers (#321).
- All package dependencies have been updated in the Go module (#323).
Full Changelog: v0.4.7-libbpf-1.1.0-41-gb2e29a1...v0.4.8-libbpf-1.2.0
v0.4.7-libbpf-1.1.0-41-gb2e29a1
What's Changed
- fix truncate output by @geyslan in #301
- Add
AttachIter
to wrapbpf_program__attach_iter
by @mozillazg in #254 - parse bpf helper funcs by @roikol in #302
- chore: call bpf_program__attach_iter from go by @geyslan in #304
- libbpf: bump to b2e29a1 by @geyslan in #306
- Fix typo by @mozillazg in #307
Full Changelog: https://github.com/aquasecurity/libbpfgo/compare/v0.4.6-libbpf-1.1.0..v0.4.7-libbpf-1.1.0-41-gb2e29a1
v0.4.6-libbpf-1.1.0
We are pleased to announce the release of libbpfgo version 0.4.6 with the version of libbpf bumped to 1.1.0 - #280.
This version also includes bug fixes and improvements, including an output behaviour change related to the introduced logger callbacks - #284, #294.
Now, with the use of a minimal vmlinux.h, bpftools
is no longer a requirement - #288.
What's Changed
- Fix/kernel symbol memory by @NDStrahilevitz in #281
- Lazy kernel symbols by @NDStrahilevitz in #282
- lazy ksymbols: fix address search by @NDStrahilevitz in #283
- fix: va_end() va_list copy rather than copied by @geyslan in #286
- fix hardcoded flag values by @NDStrahilevitz in #287
- Upgrade libbpf to 1.1.0 by @mozillazg in #280
- build: add minimum vmlinux.h and uapi headers by @geyslan in #288
- logger callbacks by @geyslan in #284
- logger_cb: remove default callbacks by @geyslan in #294
Full Changelog: v0.4.5-libbpf-1.0.1...v0.4.6-libbpf-1.1.0
Users are encouraged to upgrade to this new version for improved stability and performance. As always, feedback and contributions are welcome.
v0.4.5-libbpf-1.0.1
Fixes and tests included:
5df6c4f selftest: poc for multiple BPF objects that share a ringbuffer
89f37dd makefile: rename targets in selftests common
55b5ac3 Fix building on ppc64
688787f Fix builds on non-AMD64 architectures
74fa9b2 osinfo: add unit tests for helpers/osinfo.go
d0e93b7 makefile: turn libbpfgo-static into default (#277)
66a9ab6 selftests: fix spinlocks selftest
1161940 libbpf: mitigate libbpf_print_fn issues for tracee
aa91d8b libbpf: fix access violation in libbpf_print_fn.
6950f38 selftests: add spinlock selftest (#155)
6070c0d Add parsing function for mmap flags argument (#267)