linux-stable/tools/testing/selftests/bpf/bpf_testmod
Eduard Zingerman c1b93c07b3 selftests/bpf: Bad_struct_ops test
When loading struct_ops programs kernel requires BTF id of the
struct_ops type and member index for attachment point inside that
type. This makes impossible to use same BPF program in several
struct_ops maps that have different struct_ops type.
Check if libbpf rejects such BPF objects files.

Signed-off-by: Eduard Zingerman <eddyz87@gmail.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Acked-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20240306104529.6453-7-eddyz87@gmail.com
2024-03-06 15:18:15 -08:00
..
.gitignore
Makefile
bpf_testmod-events.h bpf/selftests: Add test for writable bare tracepoint 2021-10-08 13:22:57 -07:00
bpf_testmod.c selftests/bpf: Bad_struct_ops test 2024-03-06 15:18:15 -08:00
bpf_testmod.h selftests/bpf: Bad_struct_ops test 2024-03-06 15:18:15 -08:00
bpf_testmod_kfunc.h selftests/bpf: Add test for missed counts of perf event link kprobe 2023-09-25 16:37:44 -07:00