Coverage for eBPF programs
summary
Describes bpfcov, an open-source tool that instruments eBPF C programs using an out-of-tree LLVM pass targeting the BPF backend to collect source-level coverage (counters and counter expressions) for code executing in the Linux kernel’s eBPF VM. Explains how the LLVM BPF target is used to insert instrumentation so developers can see which branches and paths ran, addressing lack of coverage and testing tooling for eBPF programs (including limitations of BPF_PROG_TEST_RUN).
AI-written summary · about







