History log of /linux-master/tools/testing/selftests/bpf/progs/struct_ops_forgotten_cb.c
Revision Date Author Comments
# 41df0733 06-May-2024 Andrii Nakryiko <andrii@kernel.org>

selftests/bpf: validate struct_ops early failure detection logic

Add a simple test that validates that libbpf will reject isolated
struct_ops program early with helpful warning message.

Also validate that explicit use of such BPF program through BPF skeleton
after BPF object is open won't trigger any warnings.

Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/r/20240507001335.1445325-7-andrii@kernel.org
Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>