selftests/bpf: Test struct_ops map definition with type suffix
authorEduard Zingerman <eddyz87@gmail.com>
Wed, 6 Mar 2024 10:45:18 +0000 (12:45 +0200)
committerAndrii Nakryiko <andrii@kernel.org>
Wed, 6 Mar 2024 23:18:15 +0000 (15:18 -0800)
commit5bab7a277ca8d4ef377a50a6678577b5bd7f74d8
tree1548d99624590adc3fb77a35942e00b65577a1c1
parent8db052615a9780b45e26d6afabc7abefe1ba20ac
selftests/bpf: Test struct_ops map definition with type suffix

Extend struct_ops_module test case to check if it is possible to use
'___' suffixes for struct_ops type specification.

Signed-off-by: Eduard Zingerman <eddyz87@gmail.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Acked-by: David Vernet <void@manifault.com>
Link: https://lore.kernel.org/bpf/20240306104529.6453-5-eddyz87@gmail.com
tools/testing/selftests/bpf/bpf_testmod/bpf_testmod.c
tools/testing/selftests/bpf/prog_tests/test_struct_ops_module.c
tools/testing/selftests/bpf/progs/struct_ops_module.c