Skip to content

test(bpf): integration-test eBPF load and event flow in a privileged container #148

Description

@btwshivam

loading the six bpf programs and seeing events flow is only checked by the sudo-gated cmd/bpf-verify harness, never in CI, so a CO-RE regression or a struct-layout drift (see #116) wouldn't be caught automatically.

propose: an integration test (build tag integration, real ebpf build) that runs the kerno image in a privileged testcontainer with /sys/kernel/btf and /sys/kernel/debug mounted, generates synthetic activity (syscalls, a localhost tcp connection), and asserts the collectors actually receive events. github's ubuntu runners ship BTF, so this is feasible there. gate it so it skips cleanly when the host kernel lacks BTF or the container can't get privileged.

depends on the harness issue, and pairs with #42 (run it across the kernel matrix). label area/bpf.

Metadata

Metadata

Assignees

Labels

area/bpfeBPF programs and loadersclaimedSomeone is actively working on this (auto-released after 10d inactivity)testingTests and test coverage

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions