selftests/bpf: Test autocreate behavior for struct_ops maps
authorEduard Zingerman <eddyz87@gmail.com>
Wed, 6 Mar 2024 10:45:21 +0000 (12:45 +0200)
committerAndrii Nakryiko <andrii@kernel.org>
Wed, 6 Mar 2024 23:18:15 +0000 (15:18 -0800)
commit1863acccdf936c6917398165ca97e252d02fa6dd
tree38f5eee7c613edbace508dea7f294c3357faf3d2
parentc1b93c07b3ac3204c6a42a7f7b6217e36f44df4f
selftests/bpf: Test autocreate behavior for struct_ops maps

Check that bpf_map__set_autocreate() can be used to disable automatic
creation for struct_ops maps.

Signed-off-by: Eduard Zingerman <eddyz87@gmail.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20240306104529.6453-8-eddyz87@gmail.com
tools/testing/selftests/bpf/prog_tests/struct_ops_autocreate.c [new file with mode: 0644]
tools/testing/selftests/bpf/progs/struct_ops_autocreate.c [new file with mode: 0644]