---
title: "Kprobes: attach almost anywhere"
---

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

# Kprobes: attach almost anywhere

[Kprobes](https://example.com/ebpf-field-guide/glossary/#kprobes) (and `kretprobes` on exit) attach dynamically to almost any exported kernel function by name—thousands of internal entry points with zero prior kernel instrumentation.

The catch: internal kernel function names, arguments, and compiler inlining change *without notice*. A kprobe working on Linux 6.6 can vanish on 6.8.

> **Watch out:** Prefer tracepoints or fentry over kprobes for production daemons. Keep kprobes as a last resort when no stable hook exists.

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