mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-04 00:06:36 +00:00
![]() 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> |
||
---|---|---|
.. | ||
.gitignore | ||
bpf_obj_id.c | ||
bpf_verif_scale.c | ||
flow_dissector.c | ||
get_stack_raw_tp.c | ||
l4lb_all.c | ||
map_lock.c | ||
obj_name.c | ||
pkt_access.c | ||
pkt_md_access.c | ||
prog_run_xattr.c | ||
queue_stack_map.c | ||
reference_tracking.c | ||
signal_pending.c | ||
spinlock.c | ||
stacktrace_build_id.c | ||
stacktrace_build_id_nmi.c | ||
stacktrace_map.c | ||
stacktrace_map_raw_tp.c | ||
task_fd_query_rawtp.c | ||
task_fd_query_tp.c | ||
tcp_estats.c | ||
tp_attach_query.c | ||
xdp.c | ||
xdp_adjust_tail.c | ||
xdp_noinline.c |