- COMPILE
- CI only
- FOOTPRINT
- tiny RSS
- PORTABLE
- 5.5+ fleet
- SAFE
- type-checked
- compile / emit relocs
- BTF offset patch
- load verified ELF
BTF + CO-RE ended the era of shipping Clang onto production servers. Compile once in CI, verify .BTF.ext, and let the loader adapt cleanly to each host’s kernel.
Pick the toolchain that matches your team’s runtime: libbpf for ultra-low-footprint C daemons, Aya for Rust data planes, and cilium/ebpf for Go Kubernetes agents.
eBPF toolchain comparison
| BCC | libbpf (C) | Aya / cilium-ebpf | |
|---|---|---|---|
| Prod compiler | Clang required | None | None |
| Daemon RSS | 150–300 MiB | ~3 MiB | 10–35 MiB |
| CO-RE support | Limited | Reference | Native |
| Best fit | Ad-hoc debug | Host profiler | Go/Rust agents |