Re: [PATCH bpf-next v2 05/18] libbpf: Add enum64 parsing and new enum64 public API

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

 



On Fri, May 13, 2022 at 8:13 PM Yonghong Song <yhs@xxxxxx> wrote:
>
> Add enum64 parsing support and two new enum64 public APIs:
>   btf__add_enum64
>   btf__add_enum64_value
>
> Also add support of signedness for BTF_KIND_ENUM. The
> BTF_KIND_ENUM API signatures are not changed. The signedness
> will be changed from unsigned to signed if btf__add_enum_value()
> finds any negative values.
>
> Signed-off-by: Yonghong Song <yhs@xxxxxx>
> ---

Looks good, but new APIs will have to go into 1.0 in libbpf.map

Acked-by: Andrii Nakryiko <andrii@xxxxxxxxxx>

>  tools/lib/bpf/btf.c      | 103 +++++++++++++++++++++++++++++++++++++++
>  tools/lib/bpf/btf.h      |  12 +++++
>  tools/lib/bpf/libbpf.map |   2 +
>  3 files changed, 117 insertions(+)
>

[...]



[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