On Wed, Feb 9, 2022 at 2:27 PM Mauricio Vásquez [off-list ref] wrote:
This command is implemented under the "gen" command in bpftool and the
syntax is the following:
$ bpftool gen min_core_btf INPUT OUTPUT OBJECT [OBJECT...]
INPUT is the file that contains all the BTF types for a kernel and
OUTPUT is the path of the minimize BTF file that will be created with
only the types needed by the objects.
Signed-off-by: Mauricio Vásquez <redacted>
Signed-off-by: Rafael David Tinoco <redacted>
Signed-off-by: Lorenzo Fontana <redacted>
Signed-off-by: Leonardo Di Donato <redacted>
---
LGTM. So much simpler interface.
Acked-by: Andrii Nakryiko <andrii@kernel.org>
tools/bpf/bpftool/bash-completion/bpftool | 6 +++-
tools/bpf/bpftool/gen.c | 42 +++++++++++++++++++++--
2 files changed, 44 insertions(+), 4 deletions(-)
[...]