An open API service indexing awesome lists of open source software.

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

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
```