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.
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.
the rule
the rule
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."
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:
| probe | kernel ns | bpftime ns |
|---|---|---|
| uprobe 10× | 3224 | 315 |
| uretprobe 10× | 3997 | 381 |
| syscall trace honest row | 152 | 233 |
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?