2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-15 16:53:54 +08:00
linux-next/tools/bpf/bpftool/Documentation
Andrii Nakryiko d80b2fcbe0 bpftool: Add gen object command to perform BPF static linking
Add `bpftool gen object <output-file> <input_file>...` command to statically
link multiple BPF ELF object files into a single output BPF ELF object file.

This patch also updates bash completions and man page. Man page gets a short
section on `gen object` command, but also updates the skeleton example to show
off workflow for BPF application with two .bpf.c files, compiled individually
with Clang, then resulting object files are linked together with `gen object`,
and then final object file is used to generate usable BPF skeleton. This
should help new users understand realistic workflow w.r.t. compiling
mutli-file BPF application.

Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Reviewed-by: Quentin Monnet <quentin@isovalent.com>
Link: https://lore.kernel.org/bpf/20210318194036.3521577-10-andrii@kernel.org
2021-03-18 16:14:23 -07:00
..
bpftool-btf.rst tools: bpftool: Automate generation for "SEE ALSO" sections in man pages 2020-09-10 20:10:45 -07:00
bpftool-cgroup.rst tools: bpftool: Automate generation for "SEE ALSO" sections in man pages 2020-09-10 20:10:45 -07:00
bpftool-feature.rst tools: bpftool: Automate generation for "SEE ALSO" sections in man pages 2020-09-10 20:10:45 -07:00
bpftool-gen.rst bpftool: Add gen object command to perform BPF static linking 2021-03-18 16:14:23 -07:00
bpftool-iter.rst tools: bpftool: Automate generation for "SEE ALSO" sections in man pages 2020-09-10 20:10:45 -07:00
bpftool-link.rst tools: bpftool: Automate generation for "SEE ALSO" sections in man pages 2020-09-10 20:10:45 -07:00
bpftool-map.rst bpftool: Add support for task local storage 2020-11-06 08:08:37 -08:00
bpftool-net.rst tools: bpftool: Automate generation for "SEE ALSO" sections in man pages 2020-09-10 20:10:45 -07:00
bpftool-perf.rst tools: bpftool: Automate generation for "SEE ALSO" sections in man pages 2020-09-10 20:10:45 -07:00
bpftool-prog.rst tools: bpftool: Automate generation for "SEE ALSO" sections in man pages 2020-09-10 20:10:45 -07:00
bpftool-struct_ops.rst tools: bpftool: Automate generation for "SEE ALSO" sections in man pages 2020-09-10 20:10:45 -07:00
bpftool.rst tools: bpftool: Automate generation for "SEE ALSO" sections in man pages 2020-09-10 20:10:45 -07:00
common_options.rst tools: bpftool: Include common options from separate file 2020-09-10 11:16:46 -07:00
Makefile tools/bpf: Remove bpf-helpers from bpftool docs 2021-03-04 18:39:45 -08:00