- Install a rust stable toolchain:
rustup install stable
- Install a rust nightly toolchain:
rustup install nightly
- Install rust src
rustup component add rust-src --toolchain nightly-x86_64-unknown-linux-gnu
- Install bpf-linker:
cargo install bpf-linker
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
cargo build
npm run watch
flamegraph --root -- target/release/tail2
Error: "failed to create map"
Solution: ulimit -l unlimited
print type sizes:
cargo rustc --features aarch64 -- -Zprint-type-sizes
TODO: