https://github.com/zperf/hawkeye
Find out slow call
https://github.com/zperf/hawkeye
Last synced: 5 months ago
JSON representation
Find out slow call
- Host: GitHub
- URL: https://github.com/zperf/hawkeye
- Owner: zperf
- Created: 2024-07-03T11:14:27.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-07-10T06:45:32.000Z (almost 2 years ago)
- Last Synced: 2024-07-10T11:00:32.708Z (almost 2 years ago)
- Language: Rust
- Homepage:
- Size: 43 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# hawkeye
Hawkeye is a tracing tool, like [funclatency][1] but with eBPF CO-RE based on [aya][2],
where a single self-contained binary can be deployed on many Linux distributions and kernel versions.
[1]: https://github.com/iovisor/bcc/blob/master/tools/funclatency.py
[2]: https://github.com/aya-rs/aya
## How to use
```bash
Usage: hawkeye [OPTIONS] --hostname
Options:
-p, --pid Process to be traced
-f, --fn-name Function name [default: fdatasync]
-w, --webhook WxWork bot webhook [default: ""]
--hostname Hostname
-h, --help Print help
```
## How to build
Install bpf-linker
```bash
cargo install bpf-linker
```
Add musl target
```bash
rustup target add x86_64-unknown-linux-musl
```
Build
```bash
# dev build
cargo xtask build
# release build
cargo xtask build --release
# build eBPF only
cargo xtask build-ebpf
# run
export RUST_LOG=info
cargo xtask run
```