Re: [PATCH bpf-next v2 6/9] libbpf: Honor TYPE_MATCH relocation

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

 



On Thu, Jun 23, 2022 at 2:22 PM Daniel Müller <deso@xxxxxxxxxx> wrote:
>
> This patch finalizes support for the proposed type match relation in
> libbpf by hooking it up to the TYPE_MATCH relocation. For this
> relocation to be handled correctly by LLVM we have D126838
> (https://reviews.llvm.org/D126838).

I think we are getting pretty close, is it time to land LLVM diff?
Yonghong, WDYT?

> The main functionality is present behind the newly introduced
> bpf_core_type_matches macro (similar to bpf_core_type_exists). This
> macro can be used to check whether a local type has a "match" in a
> target BTF.
>
> Signed-off-by: Daniel Müller <deso@xxxxxxxxxx>
> ---
>  tools/lib/bpf/bpf_core_read.h | 10 ++++++++++
>  tools/lib/bpf/libbpf.c        |  6 ++++++
>  tools/lib/bpf/relo_core.c     | 16 ++++++++++++----
>  tools/lib/bpf/relo_core.h     |  2 ++
>  4 files changed, 30 insertions(+), 4 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