On Wed, Jan 15, 2020 at 2:26 PM Martin KaFai Lau <kafai@xxxxxx> wrote: > > This patch exposes bpf_find_kernel_btf() as a LIBBPF_API. > It will be used in 'bpftool map dump' in a following patch > to dump a map with btf_vmlinux_value_type_id set. > > bpf_find_kernel_btf() is renamed to libbpf_find_kernel_btf() > and moved to btf.c. As <linux/kernel.h> is included, > some of the max/min type casting needs to be fixed. > > Signed-off-by: Martin KaFai Lau <kafai@xxxxxx> > --- Thanks! Acked-by: Andrii Nakryiko <andriin@xxxxxx> > tools/lib/bpf/btf.c | 102 ++++++++++++++++++++++++++++++++++++--- > tools/lib/bpf/btf.h | 2 + > tools/lib/bpf/libbpf.c | 93 ++--------------------------------- > tools/lib/bpf/libbpf.map | 1 + > 4 files changed, 102 insertions(+), 96 deletions(-) > [...]