Re: [PATCH v2 bpf-next 3/5] libbpf: Expose bpf_find_kernel_btf as a LIBBPF_API

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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(-)
>

[...]



[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux