Go to file
Alessandro Decina 53906e4b13
Merge pull request from willfindlay/fix-rust-analyzer
lsp: fix rust-analyzer support on neovim and vscode
.cargo Add xtask for building ebpf programs
.github/workflows CI: fix cargo install command for cargo-generate
.vim lsp: fix rust-analyzer support on neovim and vscode
.vscode lsp: fix rust-analyzer support on neovim and vscode
xtask Add xtask for building ebpf programs
{{project-name}} Fix attach placeholder for kprobes
{{project-name}}-common Switch git urls to aya-rs
{{project-name}}-ebpf ebpf: Add rust-analyzer settings for coc.nvim
.gitignore Initial Commit
Cargo.toml Add xtask for building ebpf programs
README.md README: fix run command
cargo-generate.toml bump cargo-generate minimum version
test.sh Generate Skeleton Programs for all program types

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

sudo target/debug/{{project-name}} --path target/bpfel-unknown-none/debug/{{project-name}}