- SAFETY
- verified
- SPEED
- JIT native
- DEPLOYMENT
- live attach
- COMPLEXITY
- bounded
- syscall / bpf() load
- verified native exec
- kernel event / hook
eBPF hits the sweet spot between slow user-space polling and fragile kernel modules. You get native kernel visibility with load-time safety proofs and clean process-scoped cleanup.
Use eBPF when you need high-frequency filtering, packet verdicts, or kernel attribution. Keep heavy parsing, storage, and correlation in user space.
Kernel extension approaches
| Userspace | Kernel Module | eBPF | |
|---|---|---|---|
| Crash risk | App only | Kernel panic | Blocked at load |
| Boundary cost | Copy per event | Zero copy | Zero copy |
| Kernel upgrade | Stable ABI | Often breaks | CO-RE portable |
| Expressiveness | Unrestricted | Unrestricted | Verifier bounded |