Andrii Nakryiko
cbdb1461dc
selftests/bpf: Use explicit bpf_prog_test_load() calls everywhere
...
-Dbpf_prog_load_deprecated=bpf_prog_test_load trick is both ugly and
breaks when deprecation goes into effect due to macro magic. Convert all
the uses to explicit bpf_prog_test_load() calls which avoid deprecation
errors and makes everything less magical.
Signed-off-by: Andrii Nakryiko <andrii@kernel.org >
Signed-off-by: Alexei Starovoitov <ast@kernel.org >
Acked-by: Dave Marchevsky <davemarchevsky@fb.com >
Link: https://lore.kernel.org/bpf/20211103220845.2676888-12-andrii@kernel.org
2021-11-07 08:34:23 -08:00
Yucong Sun
d3f7b1664d
selfetest/bpf: Make some tests serial
...
Change tests that often fails in parallel execution mode to serial.
Signed-off-by: Yucong Sun <sunyucong@gmail.com >
Signed-off-by: Andrii Nakryiko <andrii@kernel.org >
Link: https://lore.kernel.org/bpf/20211006185619.364369-15-fallentree@fb.com
2021-10-08 15:17:00 -07:00
Lorenz Bauer
07b619919d
selftests: bpf: initialize bpf_object pointers where needed
...
There are a few tests which call bpf_object__close on uninitialized
bpf_object*, which may segfault. Explicitly zero-initialise these pointers
to avoid this.
Signed-off-by: Lorenz Bauer <lmb@cloudflare.com >
Acked-by: Martin KaFai Lau <kafai@fb.com >
Signed-off-by: Alexei Starovoitov <ast@kernel.org >
2019-05-09 15:53:56 -07:00
Stanislav Fomichev
20cb14ff9c
selftests: bpf: break up test_progs - tracepoint
...
Move tracepoint prog tests into separate files.
Signed-off-by: Stanislav Fomichev <sdf@google.com >
Signed-off-by: Alexei Starovoitov <ast@kernel.org >
2019-03-02 11:10:40 -08:00