v0.15.0
版本发布时间: 2024-04-22 20:30:41
cilium/ebpf最新发布版本:v0.16.0(2024-07-24 17:40:43)
btf: bpf_core_type_matches
is now supported
Programs can now use bpf_core_type_matches()
for a stricter compatibility check. See https://github.com/cilium/ebpf/pull/1366.
program, btf: improve debuggability when CO-RE or kfunc fixup fails
The library now tries to return a more informative error when loading a program fails due to a failed CO-RE relocation or a missing kfunc. See https://github.com/cilium/ebpf/pull/1402.
btf: synthesise instruction comments into line info
asm.Comment
in an instruction's Source()
are now passed to the kernel in the form of BTF line info. See https://github.com/cilium/ebpf/pull/1417.
perf: add WakeupEvents support to Reader
A perf Reader can now be configured to be woken up after a specific number of events / samples have been submitted. See https://github.com/cilium/ebpf/pull/1404.
Bugfixes
-
program
: fix loading a program which targets a function in a kernel module whenCONFIG_DEBUG_INFO_BTF_MODULES
is disabled, see #1440.
Breaking changes
github.com/cilium/ebpf/btf
-
Copy
: thetransform
argument was removed. Use the newbtf.As
function instead. -
Transformer
: removed. See above.
What's Changed
- btf: use recursion by @lmb in https://github.com/cilium/ebpf/pull/1397
- gh: hopefully fix apidiff workflow by @lmb in https://github.com/cilium/ebpf/pull/1401
- gh: only cancel pull_request runs by @lmb in https://github.com/cilium/ebpf/pull/1403
- build(deps): bump pymdown-extensions from 10.7 to 10.7.1 in /docs by @dependabot in https://github.com/cilium/ebpf/pull/1410
- build(deps): bump mkdocs-git-authors-plugin from 0.7.2 to 0.8.0 in /docs by @dependabot in https://github.com/cilium/ebpf/pull/1411
- build(deps): bump mkdocs-material from 9.5.12 to 9.5.16 in /docs by @dependabot in https://github.com/cilium/ebpf/pull/1409
- program, btf: improve debuggability when CO-RE or kfunc fixup fails by @lmb in https://github.com/cilium/ebpf/pull/1402
- add WakeupEvents support to perf Reader by @brycekahle in https://github.com/cilium/ebpf/pull/1404
- Extend go test CI from 10 to 15 miniutes by @dylandreimerink in https://github.com/cilium/ebpf/pull/1418
- btf: synthesise instruction comments into line info by @MarcusWichelmann in https://github.com/cilium/ebpf/pull/1417
- Add support to retrieve missed counts from probes by @olsajiri in https://github.com/cilium/ebpf/pull/1295
- perf: fix TestPerfReaderWakeupEvents by @lmb in https://github.com/cilium/ebpf/pull/1423
- Don't mention inexistent outLen parameter in (*Program).Test godoc by @tklauser in https://github.com/cilium/ebpf/pull/1426
- btf: refuse reloTypeIDTarget for kmod types by @lmb in https://github.com/cilium/ebpf/pull/1422
- when ringbuffer map size is not a power-of-2 multiple of page size, prompt users in a user-friendly way by @hengyoush in https://github.com/cilium/ebpf/pull/1420
- btf: Add support for
bpf_core_type_matches()
by @dylandreimerink in https://github.com/cilium/ebpf/pull/1366 - Define LookupLock by means of BPF_F_LOCK by @tklauser in https://github.com/cilium/ebpf/pull/1428
- build(deps): bump idna from 3.6 to 3.7 in /docs by @dependabot in https://github.com/cilium/ebpf/pull/1431
- fix function name by @looklose in https://github.com/cilium/ebpf/pull/1427
- doc: rephrase supported kernel versions by @lmb in https://github.com/cilium/ebpf/pull/1439
- Use latest Go version for ARM64 and VM tests in CI by @tklauser in https://github.com/cilium/ebpf/pull/1430
- program: don't return error when kmod BTF is disabled by @orishuss in https://github.com/cilium/ebpf/pull/1440
New Contributors
- @hengyoush made their first contribution in https://github.com/cilium/ebpf/pull/1420
- @looklose made their first contribution in https://github.com/cilium/ebpf/pull/1427
- @orishuss made their first contribution in https://github.com/cilium/ebpf/pull/1440
Full Changelog: https://github.com/cilium/ebpf/compare/v0.14.0...v0.15.0