hello-ebpf: Writing eBPF Programs Directly in Java
summary
hello-ebpf Java library lets eBPF programs be written in Java by compiling a restricted Java subset to C with a Maven compiler plugin (~4–5k lines), using Panama FFI and libbpf to load bytecode, auto-generating 13,000 generated classes from BTF, and modeling maps, pointers and unsigned ints via annotations. The demo shows a working packet filter and FIFO scheduler running in-kernel at native speed, artifacts on Maven Central, and practical limits (some compilation steps can need >16 GB RAM).
AI-written summary · about
chapters (5)
- 0:00Introduction
- 4:59Why Java for eBPF
- 12:11Hello eBPF library design
- 28:48Live demo and scalers
- 39:32Q&A and closing
related talks
52mBuilding a Lightning Fast Firewall with Java & eBPF
20mGentle Introduction to EBPF
31meBPF 101
01h 18mTutorial: Getting Started with eBPF
35mAn Introduction to eBPF - Superpowers for Networking, Observability & Security
48mInto the hive of eBPF!
50mIntroduction to eBPF
32meBPF: BPF kernel infrastructure
