MyGit

v0.12.0

cilium/ebpf

版本发布时间: 2023-10-11 21:26:04

cilium/ebpf最新发布版本:v0.15.0(2024-04-22 20:30:41)

This release requires at least Go 1.20. It is mainly a bugfix release without any expected breaking changes. Map operations have also been made faster on the Go side.

Fixes

Correctly freeze .rodata maps

.rodata maps were frozen after programs referring to them were loaded, preventing the verifier from eliminating dead code based on the contents of the .rodata maps. Upgrade if you're running into odd verifier errors that don't occur on libbpf.

See https://github.com/cilium/ebpf/pull/1159.

Fix fd leak in error path of kfunc support

The library leaked file descriptors when trying to use non-existent kfuncs.

See https://github.com/cilium/ebpf/pull/1145.

Fix incorrect formatting of signed BTF enums with negative values

Signed enums with negative values were incorrectly formatted, leading to invalid output from bpf2go.

See https://github.com/cilium/ebpf/pull/1155.

Additions

Map operations using common types are much faster

Keys and values used in map operations were indiscriminately passed through the encoding/binary package. There is now a fast path which skips this step when the in-memory layout of a type is equivalent to the output produced by binary.Write. The result is less allocations and CPU usage.

The optimization doesn't apply to per-CPU maps.

See https://github.com/cilium/ebpf/pull/1062.

What's Changed

New Contributors

Full Changelog: https://github.com/cilium/ebpf/compare/v0.11.0...v0.12.0

相关地址:原始地址 下载(tar) 下载(zip)

查看:2023-10-11发行的版本