bpftool
bpftool copied to clipboard
Automated upstream mirror for bpftool stand-alone build.
Version: ``` bpftool --version bpftool v6.7.0 using libbpf v0.7 features: libbpf_strict ``` This happens only in a 32-bit environment and not 64-bit. I have a BPF array with value that...
```shell clang \ -I. \ -I/home/ubuntu/bpf/bpftool/include/uapi/ \ -I/home/ubuntu/bpf/bpftool/src/bootstrap/libbpf/include \ -g -O2 -Wall -target bpf -c skeleton/pid_iter.bpf.c -o pid_iter.bpf.o skeleton/pid_iter.bpf.c:47:14: error: incomplete definition of type 'struct bpf_perf_link' perf_link = container_of(link, struct...
https://lore.kernel.org/bpf/[email protected]/ ``` binutils changed the signature of init_disassemble_info(), which now causes perf and bpftool to fail to compile (e.g. on debian unstable). Relevant binutils commit: https://sourceware.org/git/?p=binutils-gdb.git;a=commitdiff;h=60a3da00bd5407f07d64dff82a4dae98230dfaac util/annotate.c: In function ‘symbol__disassemble_bpf’:...
Is there a plan to drop the libbpf submodule, and/or to allow building bpftool against the stand-alone libbpf? Right now this requires modifications to the Makefile, making life of people...
https://github.com/libbpf/bpftool/blob/43b5daa16a4b8afd71bba491950b54219fc35988/src/cgroup.c#L235-L245 `prog_attach_flags` is the latest field in uapi but not exist in older kernel https://github.com/torvalds/linux/blob/7d2a07b769330c34b4deabeed939325c77a7ec2f/include/uapi/linux/bpf.h#L1400-L1407 and in kernel it will ensure all fields after it's last field(`prog_cnt`) must be zero...
Typo to fix: `cgroup/sendmsg°unix` in `prog.c's` `do_help()` (should be `cgroup/sendmsg_unix` instead).
I'm pretty sure we're missing some type names, at least in the docs/usage strings/bash completion, related to the latest program, map, attach types merged into the kernel. We need to...
We should really have a more robust CI for bpftool. ## Current status ### Build - [GitHub CI builds](https://github.com/libbpf/bpftool/blob/master/.github/workflows/build.yaml): Building bpftool on Ubuntu, running on PRs and pushes on this...
Similarly to what we do for program types, map types, helpers, and a few other components, we could look into dumping supported `kfuncs` with `bpftool feature probe`. It is not...
For networking programs, we support attaching to XDP (`bpftool net attach`) but not to tc. This is because attaching to tc would require supporting the creating of tc qdiscs and...