0
internals-for-interns.com · 17d · discuss
In the previous article we looked at cgroups. But with namespaces and cgroups, we were only turning knobs the kernel already had, and someone else had decided what those knobs were. This time we go one step further. Let me introduce you to eBPF, a way to hand the running kernel a small program. The kernel checks it, compiles it, and runs it every time a specific event happens, like a system call or a packet arriving. Your code, running inside the kernel, and the machine doesn’t fall over.