Go to file
William Findlay 329731038b
readme: document new cargo xtask run helper
.cargo Add xtask for building ebpf programs
.github/workflows tp_btf: add template for tp_btf programs
.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/build_ebpf: document flags
{{project-name}} tp_btf: add template for tp_btf programs
{{project-name}}-common Switch git urls to aya-rs
{{project-name}}-ebpf tp_btf: add template for tp_btf programs
.gitignore Initial Commit
Cargo.toml Add xtask for building ebpf programs
README.md readme: document new cargo xtask run helper
cargo-generate.toml tp_btf: add template for tp_btf programs
test.sh tp_btf: add template for tp_btf 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 -p