aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/bpf/prog_tests/tcp_custom_syncookie.c
diff options
context:
space:
mode:
authorAndrii Nakryiko <[email protected]>2024-05-07 00:13:34 +0000
committerMartin KaFai Lau <[email protected]>2024-05-07 23:21:59 +0000
commit41df0733ea414a49094258adab4d600db0420731 (patch)
treeaeec94caec6a45199bcc6668e4b00da233894564 /tools/testing/selftests/bpf/prog_tests/tcp_custom_syncookie.c
parentlibbpf: improve early detection of doomed-to-fail BPF program loading (diff)
downloadkernel-41df0733ea414a49094258adab4d600db0420731.tar.gz
kernel-41df0733ea414a49094258adab4d600db0420731.zip
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Martin KaFai Lau <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/tcp_custom_syncookie.c')
0 files changed, 0 insertions, 0 deletions