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.
This new subcommand provides a convenient way to run your aya application.
Features include:
- automatic compilation of userspace + bpf code
- support for user-defined runners, defaulting to `sudo -E` for convenience
- no need to run `sudo cargo run` (gross) or `sudo target/debug/myapp` (also gross),
it just works
- an optional `-p` flag which automatically supplies the correct --path flag to the
application
- support for trailing args after a final -- which are passed to the application,
cargo run-style
|
4 years ago | |
|---|---|---|
| .cargo | 4 years ago | |
| .github/workflows | 4 years ago | |
| .vim | 4 years ago | |
| .vscode | 4 years ago | |
| xtask | 4 years ago | |
| {{project-name}} | 4 years ago | |
| {{project-name}}-common | 4 years ago | |
| {{project-name}}-ebpf | 4 years ago | |
| .gitignore | 4 years ago | |
| Cargo.toml | 4 years ago | |
| README.md | 4 years ago | |
| cargo-generate.toml | 4 years ago | |
| test.sh | 4 years ago | |
README.md
{{project-name}}
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/{{project-name}} --path target/bpfel-unknown-none/debug/{{project-name}}