0b01 / tail2

https://tail2.com
2 stars 1 forks source link

tail2

Prerequisites

  1. Install a rust stable toolchain: rustup install stable
  2. Install a rust nightly toolchain: rustup install nightly
  3. Install rust src rustup component add rust-src --toolchain nightly-x86_64-unknown-linux-gnu
  4. 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

npm run watch

Flamegraph

flamegraph --root -- target/release/tail2

Troubleshooting

Error: "failed to create map" Solution: ulimit -l unlimited

print type sizes:

cargo rustc --features aarch64 -- -Zprint-type-sizes

License

TODO: