bpftool
bpftool copied to clipboard
Automated upstream mirror for bpftool stand-alone build.
We could add an option to dump inner maps when dumping an outer map-of-map with bpftool.
Extract from `man bpftool-map`: ``` bpftool map create FILE type TYPE key KEY_SIZE value VALUE_SIZE entries MAX_ENTRIES name NAME [flags FLAGS] [inner_map MAP] [dev NAME] bpftool map dump MAP bpftool...
`bpftool iter` only support the `pin` subcommands. It begs for a `list` subcommands. Not sure if this is completely necessary though, given that we can already see the iterators from...
`bpftool net attach` can load only one XDP program to a network interface. We would make it work in a similar way to what [xdp-loader](https://github.com/xdp-project/xdp-tools/tree/master/xdp-loader) does.
Following [the discussion with Andrii on the BPF mailing list](https://lore.kernel.org/bpf/CAEf4BzZMJGrRhNeQeWB0fRsuRYUv01aZGhvDeFV2o5zdpRbR-w@mail.gmail.com/t/#u), we want to improve error messages by writing explicitly the name of the error returned from the kernel in addition...
> [...] bpftool expects llvm-strip (for no good reason, anymore), so make sure you have that tool available. > > [...] it would be nice to remove llvm-strip, `bpftool gen...
I actually wanted to ask how do I `unload` / `detach` a bpf prog. I had initially loaded and attached a bpf program using `sudo bpftool prog load inject_error_v2.o /sys/fs/bpf/inject_error_v2...
When building bpftool statically on Ubuntu 24.04 (note that it works fine on 22.04), `-lzstd` must be added to `LIBS` and `BOOTSTRAP_LIBS`. See my "live patch" https://github.com/cilium/tetragon/pull/2777/commits/8e994cf0bc2ad2ccd88ba9a490913052a1b9a825. Would it make...
## What I expected to happen `bpftool cgroup tree` shows all bpf programs on all cgroups ## What happened The program errored before listing all cgroups with ``` Error: can't...
``` Commit d510296d331a ("bpftool: Use syscall/loader program in "prog load" and "gen skeleton" command.") from May 13, 2021 (linux-next), leads to the following Smatch static checker warning: ./tools/bpf/bpftool/prog.c:1925 do_loader() warn:...