selftests/bpf: Add CO-RE relos into linked_funcs selftests
authorAndrii Nakryiko <andrii@kernel.org>
Fri, 8 Apr 2022 18:14:25 +0000 (11:14 -0700)
committerDaniel Borkmann <daniel@iogearbox.net>
Fri, 8 Apr 2022 20:24:15 +0000 (22:24 +0200)
commit8555defe48610a7efe9f2d72689e2d4f006898d7
tree0fcad94523c311582497439fe44222019b7d7fb3
parent2fa5b0f290e19bb34393e1983be511aab18b683e
selftests/bpf: Add CO-RE relos into linked_funcs selftests

Add CO-RE relocations into __weak subprogs for multi-file linked_funcs
selftest to make sure libbpf handles such combination well.

Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20220408181425.2287230-4-andrii@kernel.org
tools/testing/selftests/bpf/progs/linked_funcs1.c
tools/testing/selftests/bpf/progs/linked_funcs2.c