Quentin Monnet
Quentin Monnet
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...
> TL;DR: When cross-compiling, host little-endian bootstrap bpftool cannot open a big-endian ELF to generate a skeleton from it and build target big-endian bpftool. > > Long version: Currently, bpftool's...
When using bpftool to create new BPF objects (loaded programs, maps, etc.), it is not currently possible to retrieve a safe handle to the created objects. Users can set a...
From `man bpftool-btf`: ``` BTF_SRC := { id BTF_ID | prog PROG | map MAP [{key | value | kv | all}] | file FILE } ``` We could support...
`bpftool map event_pipe` dumps data from a perf ring. We don't have any equivalent yet for BPF ring buffers.
See discussion in https://github.com/libbpf/bpftool/issues/54. No need to display an empty maps for types for which we know we can't display anything - apparently the BPF ring buffer, likely the perf...
Attach types are using the legacy attach type names, but we switched to those used by libbpf in commit torvalds/linux@1ba5ad36e00f46e3f7676f5de6b87f5a2f57f1f1. (Legacy attach type names are only kept for compatibility but...
Some link types could be added here: https://github.com/libbpf/bpftool/blob/87e2cb7d3240265f68fe6f82633bbd7d33147ff1/src/link.c#L198 and processed to display more info. Side note: Are programs attached to XDP links displayed in `bpftool net`?
We have bash completion, but many users use Zsh nowadays. Some other shells are in use as well (fish, ...), and could be candidates, although I'm not familiar with other...
The command below can be used to dump the control flow graph on the program: ``` # bpftool prog dump xlated id visual ``` ([Example](https://qmonnet.github.io/whirl-offload/2021/09/23/bpftool-features-thread/#dumping-the-control-flow-graph)) But as far as I...