---
title: "Safe speed inside Linux"
---

> Documentation Index
> Fetch the complete documentation index at: https://example.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Safe speed inside Linux

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 |

> **Key idea:** eBPF is not a replacement for user-space code—it is a programmable filter and sensor at the exact point where events happen.

Source: https://example.com/ebpf-field-guide/core-architecture/kernel-and-vm/recap/index.mdx
