cilium/ebpf Wrap SYS_BPF errors, user-provided uprobe offsets, support new map, program and flag types
release ·
Breaking changes
- None
Features
- Return friendly error when creating maps with
BPF_F_MMAPABLEorBPF_F_INNER_MAPand the kernel doesn’t support them. - Add support for StructOps, RingBuf, InodeStorage and TaskStorage map types.
- Support many new BPF program types added over the course of 2019/2020 in the assembler.
- Detect
fentry,fmod_retandfexitprograms by their ELF section names. - link: support user-provided offsets for uprobe locations by specifying
UprobeOptions. - link: support creating bpf_map_elem iterators
- Wrap and propagate all errors generated by SYS_BPF, allowing the caller to retrieve
Bug Fixes
- Fix flaky TestMapPin test on Go 1.17beta1
Deprecations
ebpf.ErrNotExistis now an alias toos.ErrNotExistand will be removed in a future release.
Examples
- Docstring fixup in kprobe example
Contributors
Chris Tarazi Lorenz Bauer Mattia Meleleo Mikko Ylinen Robin Gögge Tobias Klauser
Thank you for your work!