eBPF on Hard Mode

A while back I was messing around with eBPF and I couldn&rsquo;t find any good materials on using BPF without libbpf/LLVM/GCC (i.e. rawdogging bytecode), so here&rsquo;s the resource I wished I had. I&rsquo;ll be using Linux version 6.18 in this post; eBPF moves pretty fast and the verifier gets smarter with every release, so the information in this post might be out of date when you read this. In…