Getting started with libbpf-bootstrap
-
1 min read
Download the source from the github repository using following command:
git clone --recurse-submodules https://github.com/libbpf/libbpf-bootstrap.git
Install pre-requisites:
apt install binutils-dev llvm clang libcap-dev libelf-dev
Compile the first example:
cd examples/c make minimal -j 4
Run as superuser:
sudo ./minimal sudo cat /sys/kernel/debug/tracing/trace_pipe