aya-test-bpf
Just playing around with aya.
Prerequisites
- Install a rust stable toolchain:
rustup install stable
- Install a rust nightly toolchain:
rustup install nightly
- Install bpf-linker:
cargo install bpf-linker
Build eBPF
cargo xtask build-ebpf
To perform a release build you can use the --release
flag.
You may also change the target architecture with the --target
flag
Build Userspace
cargo build
Run
RUSTFLAGS="-C force-frame-pointers=yes" cargo build --release && cargo xtask build-ebpf --release && sudo ./target/release/aya-test-bpf ./target/bpfel-unknown-none/release/aya-test-bpf