diff options
| author | Andrii Nakryiko <[email protected]> | 2024-05-07 00:13:34 +0000 |
|---|---|---|
| committer | Martin KaFai Lau <[email protected]> | 2024-05-07 23:21:59 +0000 |
| commit | 41df0733ea414a49094258adab4d600db0420731 (patch) | |
| tree | aeec94caec6a45199bcc6668e4b00da233894564 /tools/testing/selftests/bpf/prog_tests/tcp_custom_syncookie.c | |
| parent | libbpf: improve early detection of doomed-to-fail BPF program loading (diff) | |
| download | kernel-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
