libbpf-bootstrap
libbpf-bootstrap copied to clipboard
Scaffolding for BPF application development with libbpf and BPF CO-RE
Bit of guide to how prepare Android devices or Emulators to run an eBPF programs compiled for them would be useful due to scarcity of resources on the subject.
While trying to build rust tracecon with LLVM 16, the build was failing. https://github.com/libbpf/libbpf-bootstrap/pull/112 was created to reproduce the issue with CI (like https://github.com/chantra/libbpf-bootstrap/actions/runs/3052027285/jobs/4920947176#step:5:187) The issue turns out to be...
This line of CMake code(https://github.com/libbpf/libbpf-bootstrap/blob/938651fcef787f3885b7c32792851f8423bf8421/tools/cmake/FindBpfObject.cmake#L144) need to be changed to ``` COMMAND sed -e "s/x86_64/x86/" -e "s/aarch64/arm64/" -e "s/ppc64le/powerpc/" -e "s/mips.*/mips/" ``` So that cmake can get correct ARCH (such...
I'm trying to have krobe for mmap: ``` SEC("kprobe/mmap") int BPF_KPROBE(kprobe_mmap, void *addr, unsigned long len, unsigned long prot, unsigned long flags, unsigned long fd, unsigned long offset) { return...
### Background I am currently trying to build an eBPF program to read the content of application data (of arbitrary length) transmitted through two processes. I tried intercepting packets with...
Hi, I'm using buildroot to cross compile bptfool and I get some error ``` 2022-11-29T12:30:29 2022-11-29T12:30:29 Auto-detecting system features: 2022-11-29T12:30:29 ... libbfd: [ on ] 2022-11-29T12:30:29 ... disassembler-four-args: [ on...
libbpf version: v1.1.0 bpftool:7.1.0 ARCH: Loongarch These examples are running well in x86 or arm64. This is new arch, Could you give me advice ? The log is below: [root@localhost...
``` ➜ 11:34:09 c git:(master) make MKDIR /local/home/user/libbpf-bootstrap/examples/c/output MKDIR libbpf LIB libbpf.a MKDIR /local/home/user/libbpf-bootstrap/examples/c/output//libbpf/staticobjs CC /local/home/user/libbpf-bootstrap/examples/c/output//libbpf/staticobjs/bpf.o CC /local/home/user/libbpf-bootstrap/examples/c/output//libbpf/staticobjs/btf.o CC /local/home/user/libbpf-bootstrap/examples/c/output//libbpf/staticobjs/libbpf.o CC /local/home/user/libbpf-bootstrap/examples/c/output//libbpf/staticobjs/libbpf_errno.o CC /local/home/user/libbpf-bootstrap/examples/c/output//libbpf/staticobjs/netlink.o CC /local/home/user/libbpf-bootstrap/examples/c/output//libbpf/staticobjs/nlattr.o CC /local/home/user/libbpf-bootstrap/examples/c/output//libbpf/staticobjs/str_error.o CC /local/home/user/libbpf-bootstrap/examples/c/output//libbpf/staticobjs/libbpf_probes.o...
I try build minimal by xmake. I git clone the last source code THen I delete other target except minimal in xmake.lua and run ``` xmake f --require-bpftool=y xmake ```...
I'm trying to cross-compile some of the programs built on top of libbpf-bootstrap, but I'm lacking expertise with C/C++ ecosystem. I see that support for cross-compilation was added in https://github.com/libbpf/libbpf-bootstrap/commit/7b60b4fd6c6da6af046dc6f618c771f763b6a472...