eBPF by example!
eBPF does to Linux what JavaScript does to HTML. (Sort of.)
So instead of a static HTML website, JavaScript lets you define mini programs that run on events like mouse clicks, which are run in a safe virtual machine in the browser. And with eBPF, instead of a fixed kernel, you can now write mini programs that run on events like disk I/O, which are run in a safe virtual machine in the kernel.
In reality, eBPF is more like the v8 virtual machine that runs JavaScript, rather than JavaScript itself. eBPF is part of the Linux kernel.
eBPF by Example is a hands-on introduction to eBPF using annotated example programs. Check out the first example or browse the full list below.