mirror of https://github.com/aya-rs/aya
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Adding the source for the xdp example from the bookfor easier reference. Signed-off-by: Nitish Malhotra <nitish.malhotra@gmail.com> |
4 years ago | |
---|---|---|
.. | ||
myapp | 4 years ago | |
myapp-common | 4 years ago | |
myapp-ebpf | 4 years ago | |
xtask | 4 years ago | |
Cargo.toml | 4 years ago | |
README.md | 4 years ago |
README.md
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