selftests/bpf: Test auto-load disabling logic for BPF programs
authorAndrii Nakryiko <andriin@fb.com>
Thu, 25 Jun 2020 23:26:29 +0000 (16:26 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Sun, 28 Jun 2020 17:06:53 +0000 (10:06 -0700)
commit5712174c5c9e3d684ad05d4aaed1e14acda4bb74
tree48ead881f127e3c36588a0b6e34297d38102bddf
parentd929758101fc0674008169dc1de963e3181c587b
selftests/bpf: Test auto-load disabling logic for BPF programs

Validate that BPF object with broken (in multiple ways) BPF program can still
be successfully loaded, if that broken BPF program is disabled.

Signed-off-by: Andrii Nakryiko <andriin@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20200625232629.3444003-3-andriin@fb.com
tools/testing/selftests/bpf/prog_tests/autoload.c [new file with mode: 0644]
tools/testing/selftests/bpf/progs/test_autoload.c [new file with mode: 0644]