-
- Downloads
selftests/bpf: Add test for freplace program with expected_attach_type
This adds a new selftest that tests the ability to attach an freplace program to a program type that relies on the expected_attach_type of the target program to pass verification. Signed-off-by:Toke Høiland-Jørgensen <toke@redhat.com> Signed-off-by:
Alexei Starovoitov <ast@kernel.org> Link: https://lore.kernel.org/bpf/158773526831.293902.16011743438619684815.stgit@toke.dk
Showing
- tools/testing/selftests/bpf/prog_tests/fexit_bpf2bpf.c 24 additions, 6 deletionstools/testing/selftests/bpf/prog_tests/fexit_bpf2bpf.c
- tools/testing/selftests/bpf/progs/connect4_prog.c 16 additions, 12 deletionstools/testing/selftests/bpf/progs/connect4_prog.c
- tools/testing/selftests/bpf/progs/freplace_connect4.c 18 additions, 0 deletionstools/testing/selftests/bpf/progs/freplace_connect4.c
Please register or sign in to comment