aboutsummaryrefslogtreecommitdiffstats
path: root/tools/lib/bpf/bpf_core_read.h
diff options
context:
space:
mode:
authorAndrii Nakryiko <[email protected]>2020-06-19 23:16:59 +0000
committerAlexei Starovoitov <[email protected]>2020-06-23 00:01:48 +0000
commit16e9b187aba60f9014f11a7e95b878850b6c95e5 (patch)
treea1773c0e35574e10b5aa78869b6436f0e704ad65 /tools/lib/bpf/bpf_core_read.h
parenttools/bpftool: Move map/prog parsing logic into common (diff)
downloadkernel-16e9b187aba60f9014f11a7e95b878850b6c95e5.tar.gz
kernel-16e9b187aba60f9014f11a7e95b878850b6c95e5.zip
tools/bpftool: Minimize bootstrap bpftool
Build minimal "bootstrap mode" bpftool to enable skeleton (and, later, vmlinux.h generation), instead of building almost complete, but slightly different (w/o skeletons, etc) bpftool to bootstrap complete bpftool build. Current approach doesn't scale well (engineering-wise) when adding more BPF programs to bpftool and other complicated functionality, as it requires constant adjusting of the code to work in both bootstrapped mode and normal mode. So it's better to build only minimal bpftool version that supports only BPF skeleton code generation and BTF-to-C conversion. Thankfully, this is quite easy to accomplish due to internal modularity of bpftool commands. This will also allow to keep adding new functionality to bpftool in general, without the need to care about bootstrap mode for those new parts of bpftool. Signed-off-by: Andrii Nakryiko <[email protected]> Signed-off-by: Alexei Starovoitov <[email protected]> Reviewed-by: Quentin Monnet <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/lib/bpf/bpf_core_read.h')
0 files changed, 0 insertions, 0 deletions