Go to file
Michal Rostecki 9f69ee52b2 aya: Switch (again) from crates.io to git
This time we need to switch to git again, because of this unreleased
change:

aya-rs/aya@d1f2215193

Signed-off-by: Michal Rostecki <vadorovsky@gmail.com>
.cargo Add xtask for building ebpf programs
.github/workflows Fix sock_filter to socket_filter
.vim lsp: use project-name instead of crate_name to generate Cargo.toml path
.vscode lsp: use project-name instead of crate_name to generate Cargo.toml path
xtask xtask: Use clap instead of structopt
{{project-name}} aya: Switch (again) from crates.io to git
{{project-name}}-common aya: Switch (again) from crates.io to git
{{project-name}}-ebpf Merge pull request from nak3/add-socket-filter
.gitignore Initial Commit
Cargo.toml aya: Switch (again) from crates.io to git
README.md userspace: use include_bytes_aligned! instead of --path flag
cargo-generate.toml Merge pull request from nak3/add-socket-filter
test.sh fentry/fexit: Add template for fentry/fexit programs

README.md

{{project-name}}

Prerequisites

  1. Install a rust stable toolchain: rustup install stable
  2. Install a rust nightly toolchain: rustup install nightly
  3. 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

cargo xtask run