mirror of https://github.com/aya-rs/aya
516 B
516 B
myapp
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
sudo target/debug/myapp --path target/bpfel-unknown-none/debug/myapp