Go to file
Dave Tucker 1b3c371772 Add experimental BTF support
Signed-off-by: Dave Tucker <dave@dtucker.co.uk>
.cargo Add xtask for building ebpf programs
.github/workflows Add experimental BTF support
.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 userspace: use include_bytes_aligned! instead of --path flag
{{project-name}} update to new api in aya main
{{project-name}}-common rename userspace feature to user
{{project-name}}-ebpf Add experimental BTF support
.gitignore Initial Commit
Cargo.toml Add xtask for building ebpf programs
README.md userspace: use include_bytes_aligned! instead of --path flag
cargo-generate.toml tp_btf: add template for tp_btf programs
test.sh ci: fix ci to work with include_bytes_aligned!

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