https://github.com/0b01/tail2
Last synced: 25 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/0b01/tail2
- Owner: 0b01
- Created: 2022-10-06T03:06:22.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2023-04-04T00:11:42.000Z (over 3 years ago)
- Last Synced: 2025-07-21T07:42:08.183Z (about 1 year ago)
- Language: Rust
- Homepage: https://tail2.com
- Size: 5.93 MB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# tail2
## Prerequisites
1. Install a rust stable toolchain: `rustup install stable`
1. Install a rust nightly toolchain: `rustup install nightly`
1. Install rust src `rustup component add rust-src --toolchain nightly-x86_64-unknown-linux-gnu`
1. Install bpf-linker: `cargo install bpf-linker`
## Build eBPF
```bash
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
```bash
cargo build
```
## Run
```bash
npm run watch
```
## Flamegraph
```bash
flamegraph --root -- target/release/tail2
```
## Troubleshooting
Error: `"failed to create map"`
Solution: ```ulimit -l unlimited```
print type sizes:
```bash
cargo rustc --features aarch64 -- -Zprint-type-sizes
```
## License
TODO: