On Wed, Feb 9, 2022 at 2:27 PM Mauricio Vásquez <mauricio@xxxxxxxxxx> 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 <mauricio@xxxxxxxxxx> > Signed-off-by: Rafael David Tinoco <rafael.tinoco@xxxxxxxxxxx> > Signed-off-by: Lorenzo Fontana <lorenzo.fontana@xxxxxxxxxx> > Signed-off-by: Leonardo Di Donato <leonardo.didonato@xxxxxxxxxx> > --- LGTM. So much simpler interface. Acked-by: Andrii Nakryiko <andrii@xxxxxxxxxx> > tools/bpf/bpftool/bash-completion/bpftool | 6 +++- > tools/bpf/bpftool/gen.c | 42 +++++++++++++++++++++-- > 2 files changed, 44 insertions(+), 4 deletions(-) > [...]