diff options
author | Eduard Zingerman <eddyz87@gmail.com> | 2024-03-06 12:45:20 +0200 |
---|---|---|
committer | Andrii Nakryiko <andrii@kernel.org> | 2024-03-06 15:18:15 -0800 |
commit | c1b93c07b3ac3204c6a42a7f7b6217e36f44df4f (patch) | |
tree | bc5013bfc1d6b5f26f1a7cf9796c0f11b7639022 /tools/testing/selftests/bpf/prog_tests/struct_ops_autocreate.c | |
parent | c8617e8bcf8d1ef357fadf5c96bd86b9952fb93f (diff) | |
download | lwn-c1b93c07b3ac3204c6a42a7f7b6217e36f44df4f.tar.gz lwn-c1b93c07b3ac3204c6a42a7f7b6217e36f44df4f.zip |
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
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/struct_ops_autocreate.c')
0 files changed, 0 insertions, 0 deletions