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(-) > [...]