OSDN Git Service

selftests/bpf: Switch existing selftests to using open_opts for custom BTF
authorShuyi Cheng <chengshuyi@linux.alibaba.com>
Tue, 13 Jul 2021 12:42:39 +0000 (20:42 +0800)
committerAndrii Nakryiko <andrii@kernel.org>
Fri, 16 Jul 2021 20:22:47 +0000 (13:22 -0700)
commitf0b7d119254247cc373d1695889e5216f13fddcd
tree15822f832ec4c0417071a5da8c8386af37237063
parent18353c87e0e0440d4c7c746ed740738bbc1b538e
selftests/bpf: Switch existing selftests to using open_opts for custom BTF

This patch mainly replaces the bpf_object_load_attr of
the core_autosize.c and core_reloc.c files with bpf_object_open_opts.

Signed-off-by: Shuyi Cheng <chengshuyi@linux.alibaba.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/1626180159-112996-4-git-send-email-chengshuyi@linux.alibaba.com
tools/testing/selftests/bpf/prog_tests/core_autosize.c
tools/testing/selftests/bpf/prog_tests/core_reloc.c