Commit Graph

5 Commits (d102383d3122b002e9131122c6200d8f9b1aa704)

Author SHA1 Message Date
Michal Rostecki d102383d31 feat(aya-ebpf): BTF maps
Before this change, Aya supported only legacy BPF map definitions, which
are instances of the `bpf_map_def` struct and end up in the `maps` ELF
section. This change introduces BTF maps, with custom structs indicating
the metadata of the map, which end up in the `.maps` section.

Legacy maps are not supported by libbpf anymore and not even by the
kernel for newer types of maps like inode/task storage.

Add support of BTF maps in aya-ebpf under the `btf-maps` feature flag.

Usage of this feature requires emitting debug info for the eBPF crate
and passing the `--btf` flag to bpf-linker.
1 month ago
Tamir Duberstein 3d8cb08b7f aya-build: add explicit irrefutable pattern
This is required in Rust 1.80 at least.
2 months ago
Tamir Duberstein 015c0df0f4 aya-build: enable anyhow/std
This is needed before Rust 1.81.
2 months ago
Tamir Duberstein 6970353b58 aya-build: add description 2 months ago
Tamir Duberstein 2b2af44915 Extract aya-build for building eBPF crates
We'll use this in the template and book to avoid duplicating all the
code.
2 months ago