parent
f3ee525588
commit
b6f7d7cdda
28
README.md~
28
README.md~
|
@ -1,28 +0,0 @@
|
|||
# aya-playground
|
||||
|
||||
## Prerequisites
|
||||
|
||||
1. Install bpf-linker: `cargo install bpf-linker`
|
||||
|
||||
## Build eBPF
|
||||
|
||||
```bash
|
||||
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
|
||||
|
||||
```bash
|
||||
cargo build
|
||||
```
|
||||
|
||||
## Run
|
||||
|
||||
```bash
|
||||
RUST_LOG=info cargo xtask run
|
||||
```
|
||||
cargo xtask build-ebpf
|
||||
RUST_LOG=info cargo xtask run -- --iface wlp2s0
|
|
@ -1,32 +0,0 @@
|
|||
[package]
|
||||
name = "aya-playground-ebpf"
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
aya-bpf = { git = "https://github.com/aya-rs/aya" }
|
||||
aya-log-ebpf = { git = "https://github.com/aya-rs/aya" }
|
||||
aya-playground-common = { path = "../aya-playground-common" }
|
||||
|
||||
[[bin]]
|
||||
name = "aya-playground"
|
||||
path = "src/main.rs"
|
||||
|
||||
[profile.dev]
|
||||
opt-level = 3
|
||||
debug = false
|
||||
debug-assertions = false
|
||||
overflow-checks = false
|
||||
lto = true
|
||||
panic = "abort"
|
||||
incremental = false
|
||||
codegen-units = 1
|
||||
rpath = false
|
||||
|
||||
[profile.release]
|
||||
lto = true
|
||||
panic = "abort"
|
||||
codegen-units = 1
|
||||
|
||||
[workspace]
|
||||
members = []
|
Loading…
Reference in New Issue