mstange / aya-test-bpf

An experiment for getting profiles with on- and off-cpu samples with the help of BPF and aya.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

aya-test-bpf

Just playing around with aya.

Prerequisites

  1. Install a rust stable toolchain: rustup install stable
  2. Install a rust nightly toolchain: rustup install nightly
  3. 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

RUSTFLAGS="-C force-frame-pointers=yes" cargo build --release && cargo xtask build-ebpf --release && sudo ./target/release/aya-test-bpf ./target/bpfel-unknown-none/release/aya-test-bpf

About

An experiment for getting profiles with on- and off-cpu samples with the help of BPF and aya.


Languages

Language:Rust 100.0%