]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit89c9412a4cbcd44f1b71043ca163f6e32c3eaed4
tree15822f832ec4c0417071a5da8c8386af37237063
parent575a7cac3d03d40d4a9d10cc88da9a86e899f7a4
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