ebpf icon indicating copy to clipboard operation
ebpf copied to clipboard

ebpf-go is a pure-Go library to read, modify and load eBPF programs and attach them to various hooks in the Linux kernel.

Results 142 ebpf issues
Sort by recently updated
recently updated
newest added

Currently `ProgramSpec` exposes the `SectionName` of each prog, but the `MapSpec` does not do the same. We are using the map section name and would like to expose it in...

`HaveMapFlag(flag uint32) error` would allow a user to probe running kernel for support for map flags. The main target of this would be to probe for availability of mmapable array...

In some case we want to missed as little as possible and it is helpful to have this configuration option.

With the recent addition of verifier error summaries, there are fewer reasons for disabling verifier output altogether. The existing behaviour is somewhat underspecified and underdocumented. Logging behaviour hinges on both...

Was getting strange results re-running prog loads with progressively larger buffers to fit verifier logs of large Cilium programs. The verifier always writes a NUL byte to the last byte...

Leaving as draft until CI supports 5.18. Also, support for pattern matching and addresses array (which libbpf already supports) is to be evaluated Edit: I've added support for addresses array,...

btf: add limited support for BTF_KIND_DECL_TAG and BTF_KIND_TYPE_TAG Parse decl and type tags from BTF so that we can read BTF on new kernels. The new types are not exported...

With https://github.com/cilium/ebpf/pull/321, an API for probing available map types in the kernel was added. However, a StructOps map requires a valid BTF blob to be specified in order to make...

enhancement

Linux 5.18 added a two new BTF kinds [DECL_TAG and TYPE_TAG](https://github.com/torvalds/linux/blob/169e77764adc041b1dacba84ea90516a895d43b2/Documentation/bpf/btf.rst#2217-btf_kind_decl_tag). TYPE_TAG seems fine, the encoding for DECL_TAG looks like a headache. Most relevant Linux commit: https://github.com/torvalds/linux/commit/7472d5a642c94a0ee1882ff3038de72ffe803a01 `pahole` only generates...

enhancement

**Describe the bug** With `cilium/ebpf`, it is not possible reference kconfig variables like `LINUX_KERNEL_VERSION`. **To Reproduce** Steps to reproduce the behavior. Please include: ```sh # Try to bpf2go a file...

enhancement