Skip to content

Glossary

The eBPF terms used across the guide, grouped by topic, each linked to the step that teaches it.

Core

eBPF

Extended Berkeley Packet Filter — an in-kernel sandboxed VM that runs verified, JIT-compiled bytecode on Linux events without modifying kernel source or apps.

Taught in: Sandboxed kernel programs

user space

Unprivileged memory domain where applications and daemons run; must cross into kernel space via syscalls to interact with hardware or kernel state.

Taught in: User space vs kernel space

kernel space

Privileged ring-0 execution space owning CPU scheduling, virtual memory, NIC drivers, and the networking stack.

Taught in: User space vs kernel space

loadable kernel module

Legacy C code loaded directly into Linux ring 0 (LKM). Fast, but unchecked pointers cause kernel panics and updates break across versions.

Taught in: Why kernel modules hurt

virtual machine

The eBPF register machine: eleven 64-bit registers (R0–R10), a strict 512-byte stack, and bounded helper/kfunc calls.

Taught in: Inside the eBPF machine

eBPF verifier

In-kernel static analyzer that walks every control-flow path at load time to prove termination, memory bounds, and pointer safety.

Taught in: Proven safe before running

JIT compiler

Translates verified eBPF bytecode into native x86-64, ARM64, or RISC-V machine code for nanosecond-scale execution.

Taught in: Compiled to native machine code

BPF helpers

Stable kernel-exposed functions callable by eBPF programs (e.g., bpf_ktime_get_ns, bpf_map_lookup_elem, bpf_get_current_cgroup_id).

Taught in: Inside the eBPF machine

kfuncs

Modern BTF-typed kernel functions exposed dynamically to eBPF programs without adding permanent UAPI helper IDs.

Taught in: Inside the eBPF machine

File-descriptor-backed abstraction binding an eBPF program to a hook; automatically detaches on process exit unless pinned in bpffs.

Taught in: Privileges and FD lifecycles

Maps

BPF maps

Kernel key-value and streaming data structures (HASH, ARRAY, PERCPU, RINGBUF, PROG_ARRAY) sharing state across hooks and user space.

Taught in: Programs forget on exit

PERCPU_ARRAY / LRU_PERCPU_HASH

Lock-free per-CPU map variants giving every core its own memory slot, eliminating atomic cache-line bouncing on 64–128 core NUMA hosts.

Taught in: Lock-free per-CPU maps

BPF RingBuf

Shared multi-producer, single-consumer circular buffer (Linux 5.8+) offering globally ordered, zero-extra-copy event streaming to user space.

Taught in: Streaming events with RingBuf

tail calls

Control transfer via PROG_ARRAY maps chaining up to 33 eBPF programs without growing the 512-byte stack.

Taught in: Tail calls, sockmaps & .rodata

Toolchain

BTF

BPF Type Format — compact, deduplicated kernel type metadata exposed at /sys/kernel/btf/vmlinux so binaries know exact struct layouts.

Taught in: BTF: the kernel describes itself

CO-RE

Compile Once – Run Everywhere: Clang emits .BTF.ext field relocations and libbpf patches offsets at load time without Clang on target hosts.

Taught in: Compile Once – Run Everywhere

BCC

BPF Compiler Collection — runtime-compilation framework shipping Clang/LLVM onto hosts. Great for debugging, heavy for production.

Taught in: Why compiling on hosts hurts

Aya

Pure-Rust eBPF library compiling both kernel and user space in Rust with native CO-RE support and no C toolchain dependency.

Taught in: C libbpf, Rust Aya & Go ebpf

Networking

sk_buff

Linux kernel socket buffer metadata struct allocated for each packet traversing the standard networking stack.

Taught in: The Linux packet pipeline

XDP

eXpress Data Path — ingress-only eBPF hook inside the NIC driver running before sk_buff allocation for 10M+ pps drops and redirects.

Taught in: XDP at the NIC driver

TC

Traffic Control (cls_bpf / tcx) — symmetric ingress and egress eBPF hook with full sk_buff context, ideal for pod veth interfaces.

Taught in: TC on ingress and egress

Cilium

eBPF-native Kubernetes CNI replacing O(n) iptables chains with O(1) BPF hash maps and identity-aware network policy.

Taught in: Cilium & replacing iptables

Hubble

Observability layer built on Cilium’s eBPF datapath exporting L3/L4/L7 flow metadata and drop reasons.

Taught in: Cilium & replacing iptables

DPDK

Data Plane Development Kit — user-space poll-mode NIC driver bypassing the Linux kernel entirely; invisible to kernel eBPF hooks.

Taught in: DPDK & SR-IOV bypass the kernel

SR-IOV

Single Root I/O Virtualization — hands hardware virtual functions straight to VMs or pods; when paired with DPDK, bypasses kernel networking.

Taught in: DPDK & SR-IOV bypass the kernel

Tracing

uprobe

User-space probe attaching an eBPF program to a function entry in an app or shared library (such as OpenSSL SSL_write) via a breakpoint trap.

Taught in: Hook the TLS boundary

uretprobe

Return probe firing when a user-space function returns (e.g., SSL_read exit to capture freshly decrypted inbound bytes).

Taught in: Hook the TLS boundary

Kprobes

Dynamic kernel probes attaching to almost any kernel symbol; maximum reach, but fragile across kernel updates.

Taught in: Kprobes: attach almost anywhere

Tracepoints

Static maintainer-defined hooks (softirq_entry, kfree_skb, mm_page_alloc) offering a stable ABI and zero cost when disabled.

Taught in: Tracepoints: stable kernel ABI

fentry

BTF-powered direct BPF trampoline (Linux 5.5+) that invokes eBPF on kernel function entry/exit much faster than kprobe traps.

Taught in: Fentry & Fexit trampolines

PMU

Hardware Performance Monitoring Unit exposed via perf_event_open to track CPU cycles, retired instructions (IPC), and L3 cache misses.

Taught in: Perf events & hardware PMU

Security

eBPF LSM

Linux Security Module hooks (Linux 5.7+) letting eBPF synchronously allow or deny (-EPERM) kernel actions without TOCTOU races.

Taught in: Synchronous security with LSM

Observability

softirq

Deferred Linux kernel interrupt handler (NET_RX, NET_TX, RCU, TIMER, SCHED) whose cycles are billed to whichever process was preempted on that core.

Taught in: The softirq accounting blind spot

BPF_ENABLE_STATS

FD-scoped bpf() command enabling exact per-program run_time_ns and run_cnt without leaving global sysctl stuck on after a crash.

Taught in: Scoped BPF_ENABLE_STATS accounting

Architecture

rolling buffer

Size-capped on-host memory ring holding the most recent control-plane traffic (e.g., 120s) so pre-trigger context survives round trips.

Taught in: Pre-trigger rolling buffer sizing

HOLD

Coordinator command pinning peer hosts’ rolling buffers before central evaluation finishes so root-cause evidence never ages out.

Taught in: Detect locally, HOLD then CUT

CUT

Coordinator command instructing each host agent to slice [t0 - before, t0 + after] as pcapng and upload it for correlated RCA.

Taught in: Detect locally, HOLD then CUT

TLA+

Formal specification language used with TLC to exhaustively verify all 37 incident-lifecycle states and 6 safety/liveness invariants.

Taught in: Model-checking the lifecycle

Type to search…

↑↓ navigate↵ selectEsc close