- Install bpf-linker:
cargo install bpf-linker
cargo xtask build-ebpfTo perform a release build you can use the --release flag.
You may also change the target architecture with the --target flag.
cargo buildRUST_LOG=info cargo xtask runDependencies:
apt install -y bpftool libclang-dev
bpftool -h # If you don't have it, install from source
cargo install bindgen-cliGenerate:
cargo xtask codegen
Find struct to add:
bpftool btf dump file /sys/kernel/btf/vmlinux format raw | grep <trace point>