Learn how to write a BPF program in Rust from scratch without using macros, frameworks, or hidden helpers. The post explains how to set up the Rust build toolchain, write a minimal BPF program that hooks into a tracepoint, and use the 'yeet' CLI and its daemon 'yeetd' to load and manage the BPF program. A step-by-step guide is provided to create, build, and run the BPF program, ensuring it integrates seamlessly with the Linux kernel and prints live output to the trace pipe.

9m read timeFrom yeet.cx
Post cover image
Table of contents
Setting up the Rust build toolchainWriting the world’s tiniest BPF program (in Rust)🔥 The Interesting BitsConclusion

Sort: