mrsn0.3.0
auth
live

eBPF grew up — on the user-space side

sk_lookup in mainline Linux, kernel retransmits showing up as OpenTelemetry spans, and uprobes 10× cheaper via bpftime — the user-space half of eBPF is now production infrastructure.

2026-11-212 min readebpflinuxobservability
the user-space halfin production — cloudflare · eunomia · mainline linux

the kernel still executes.
the features now serve the apps.

one pattern, three features: the socket lookup handed to a program, kernel retransmits wearing OpenTelemetry span IDs, uprobes ten times cheaper without leaving the process. eBPF grown up on the side you live in.

ACT I — sk_lookup: the socket lookup, programmable

Spectrum wanted every port — all 65,536 of them — on every anycast IP, and 1.1.1.1 with authoritative DNS wanted the same port on different addresses. bind() claims a port; it cannot arbitrate. The packets were lost. Since Linux 5.9 the sk_lookup program type hands TCP delivery to BPF: the kernel offers the packet, bpf_sk_assign names the winning socket, and cloudflare's tubular glues the rules to the sockets by string label — 13 months of upstreaming, open-sourced.

before · the bind() era
one port, one address, no arbitration — millions of anycast IPs each holding a single port.
after · the sk_lookup era
delivery decided in-program — bindings and sockets matched by label, managed from Go.
the mechanism is two precedence rules. feel the first — overlapping ranges: who wins the packet?
the rule
the longer mask wins — the specific claim beats the broad one.
and the second — one binding holds every port, one holds 80. who gets port 80?
the rule
the explicit port wins — the named claim beats the catch-all.

ACT II — the kernel learns to trace

nginx's USDT probes hand OpenTelemetry trace and span IDs to a BPF program, which parks them in a hash map keyed by socket pointer. every kernel event on that socket — retransmits, throttling, run-queue waits — inherits the context and ships as a span your tracer already understands.

"If we see a trace for a request and there's an unexplained gap, there could be a kernel span telling us about a retransmit that explains it."
— cloudflare, on ebpf_exporter in production

ACT III — bpftime: the runtime moves in-process

bpftime runs eBPF inside the traced process — no kernel round-trip, no recompile, no restart. injection rides ptrace or LD_PRELOAD, at startup or onto processes already running; it can even rewrite return values and execution flow. the uprobe wins are an order of magnitude:

nanoseconds per probe — lower is better
probekernel nsbpftime ns
uprobe 10×3224315
uretprobe 10×3997381
syscall trace honest row152233
the toast confirms — and the honest row stays: syscall tracing still wins in-kernel; bpftime's edge is uprobe-shaped. the numbers that survive honesty are the ones that convince.

one pattern, three features

the kernel keeps executing; the wins ship to user space. sk_lookup puts delivery in a program. ebpf_exporter puts kernel events in your tracer. bpftime puts the runtime in the process.

your verdict on the honest row — the one where the kernel wins?

sources — read the whole trail
0appreciations — anonymous, one per reader
your message opens the chat panel on the right — the thread remembers, sources ride inline
the feedanswersthe agentsdocsaboutauthschema.jsonopenapi.jsonllms.txt