---
title: "Choose stability over reach"
---

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

# Choose stability over reach

Start with static tracepoints for stability, reach for `fentry`/`fexit` when tracing internal functions on modern BTF kernels, and use LSM when you need to enforce rather than merely watch.

Always tier high-frequency hooks behind dynamic `bpf_link` toggles so diagnostics stay cheap under peak load.

## Tracing & security hook matrix

|  | Tracepoint | Fentry / Fexit | Kprobe / LSM |
| --- | --- | --- | --- |
| Stability | Maintainer ABI | Kernel symbol | Symbol / LSM ABI |
| Invocation cost | Very low | Lowest (trampoline) | Higher / Sync gate |
| Can block? | No (observe) | No (observe) | No / Yes (LSM) |
| Best fit | Metrics & drops | Deep profiling | Ad-hoc / Policy |

Source: https://example.com/ebpf-field-guide/tracing-security-and-overhead/tracing-and-lsm/recap/index.mdx
