selftests/bpf: Test case for SEC("?.struct_ops")
authorEduard Zingerman <eddyz87@gmail.com>
Wed, 6 Mar 2024 10:45:27 +0000 (12:45 +0200)
committerAndrii Nakryiko <andrii@kernel.org>
Wed, 6 Mar 2024 23:18:16 +0000 (15:18 -0800)
commit733e5e875444fc5afc9b72714f0ecaca629ccf8a
tree2024cbc2e714c16921db1db347d02f151bcd2ca4
parent6ebaa3fb88bbe4c33a0e01ce27007e1dd4fd133c
selftests/bpf: Test case for SEC("?.struct_ops")

Check that "?.struct_ops" and "?.struct_ops.link" section names define
struct_ops maps with autocreate == false after open.

Signed-off-by: Eduard Zingerman <eddyz87@gmail.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20240306104529.6453-14-eddyz87@gmail.com
tools/testing/selftests/bpf/prog_tests/struct_ops_autocreate.c
tools/testing/selftests/bpf/progs/struct_ops_autocreate.c