Go to file
Dave Tucker 31a7d0edb4
Merge pull request from dmitris/skb-mode
for xdp, retry load with SKB_MODE flags
.cargo Add xtask for building ebpf programs
.github/workflows fentry/fexit: Add template for fentry/fexit 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/run: fix clippy lint
{{project-name}} xdp - suggest SKB_MODE on attach failure
{{project-name}}-common rename userspace feature to user
{{project-name}}-ebpf fentry/fexit: Add template for fentry/fexit programs
.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 fentry/fexit: Add template for fentry/fexit programs
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