libbpf-bootstrap
libbpf-bootstrap copied to clipboard
Scaffolding for BPF application development with libbpf and BPF CO-RE
In the utility CMake module [tools/cmake/FindBpfObject.cmake](tools/cmake/FindBpfObject.cmake), the step to compile BPF C source files to BPF object files is done by triggering clang with a custom command: https://github.com/libbpf/libbpf-bootstrap/blob/be15d32fec262e950fbdbb2887ae9a9b066a5cbf/tools/cmake/FindBpfObject.cmake#L163-L171 However, when...
can you please add a bpf_for() example?
https://github.com/libbpf/libbpf-bootstrap/blob/master/examples/c/Makefile#L27 is missing minimal_ns
Hi Team, I've modified profile.c in libbpf-bootstrap to listen to execve and print backtrace. While running it, I can see that kernel stack trace is getting dumped. But blazesym is...
Hi, I like to see the stacktrace using ebpf. I see some example code under profile.c file under libbpf-bootstrap/examples/c. But it's not included in the Makefile. What is the reason...
```sh $ make bootstrap make: 'bootstrap' is up to date. $ touch bootstrap.bpf.c $ make bootstrap BPF .output/bootstrap.bpf.o GEN-SKEL .output/bootstrap.skel.h CC .output/bootstrap.o BINARY bootstrap $ touch bootstrap.c $ make bootstrap...
Running `make` in the `examples/c` directory gets stuck at "Compiling gimli". After a long wait, it indicates that it cannot compile gimli. ` [root@xqjcool c]# make Compiling gimli v0.29.0 Building...
Ubuntu 22.04 LTS:6.8.0-40-generic **I've read the Readme** ``` apt install clang libelf1 libelf-dev zlib1g-dev git clone --recurse-submodules https://github.com/libbpf/libbpf-bootstrap git submodule update --init --recursive cd examples/c make ``` **OUTPUT:** MKDIR .output...
Demonstrate how, using dynptr APIs, it's possible to capture XDP packet data into ringbuf (all variable-sized and all).