linux/tools/testing/selftests/bpf/prog_tests
Alexei Starovoitov e5e7a8f2d8 selftests/bpf: add few verifier scale tests
Add 3 basic tests that stress verifier scalability.

test_verif_scale1.c calls non-inlined jhash() function 90 times on
different position in the packet.
This test simulates network packet parsing.
jhash function is ~140 instructions and main program is ~1200 insns.

test_verif_scale2.c force inlines jhash() function 90 times.
This program is ~15k instructions long.

test_verif_scale3.c calls non-inlined jhash() function 90 times on
But this time jhash has to process 32-bytes from the packet
instead of 14-bytes in tests 1 and 2.
jhash function is ~230 insns and main program is ~1200 insns.

$ test_progs -s
can be used to see verifier stats.

Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
2019-04-04 01:27:38 +02:00
..
.gitignore
bpf_obj_id.c selftests: bpf: fix -Wformat-invalid-specifier for bpf_obj_id.c 2019-04-02 23:17:18 +02:00
bpf_verif_scale.c selftests/bpf: add few verifier scale tests 2019-04-04 01:27:38 +02:00
flow_dissector.c selftests: bpf: break up test_progs - misc 2019-03-02 11:10:40 -08:00
get_stack_raw_tp.c selftests: bpf: break up test_progs - tracepoint 2019-03-02 11:10:40 -08:00
l4lb_all.c selftests: bpf: break up test_progs - misc 2019-03-02 11:10:40 -08:00
map_lock.c selftests/bpf: fix segfault of test_progs when prog loading failed 2019-03-12 21:55:54 +01:00
obj_name.c selftests: bpf: break up test_progs - misc 2019-03-02 11:10:40 -08:00
pkt_access.c
pkt_md_access.c
prog_run_xattr.c selftests: bpf: break up test_progs - misc 2019-03-02 11:10:40 -08:00
queue_stack_map.c selftests: bpf: break up test_progs - misc 2019-03-02 11:10:40 -08:00
reference_tracking.c selftests: bpf: break up test_progs - misc 2019-03-02 11:10:40 -08:00
signal_pending.c selftests: bpf: test_progs: initialize duration in singal_pending test 2019-03-07 10:46:25 +01:00
spinlock.c selftests/bpf: fix segfault of test_progs when prog loading failed 2019-03-12 21:55:54 +01:00
stacktrace_build_id.c selftests: bpf: break up test_progs - stackmap 2019-03-02 11:10:40 -08:00
stacktrace_build_id_nmi.c selftests: bpf: don't depend on hardcoded perf sample_freq 2019-03-26 12:47:41 -07:00
stacktrace_map.c selftests: bpf: break up test_progs - stackmap 2019-03-02 11:10:40 -08:00
stacktrace_map_raw_tp.c selftests: bpf: break up test_progs - stackmap 2019-03-02 11:10:40 -08:00
task_fd_query_rawtp.c selftests: bpf: break up test_progs - tracepoint 2019-03-02 11:10:40 -08:00
task_fd_query_tp.c selftests: bpf: break up test_progs - tracepoint 2019-03-02 11:10:40 -08:00
tcp_estats.c selftests: bpf: break up test_progs - misc 2019-03-02 11:10:40 -08:00
tp_attach_query.c selftests: bpf: break up test_progs - tracepoint 2019-03-02 11:10:40 -08:00
xdp.c selftests: bpf: break up test_progs - xdp 2019-03-02 11:10:40 -08:00
xdp_adjust_tail.c selftests: bpf: break up test_progs - xdp 2019-03-02 11:10:40 -08:00
xdp_noinline.c selftests: bpf: break up test_progs - xdp 2019-03-02 11:10:40 -08:00