aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/bpf/progs/loop4.c (follow)
AgeCommit message (Collapse)AuthorFilesLines
2019-08-06selftests/bpf: add loop test 4Alexei Starovoitov1-0/+18
Add a test that returns a 'random' number between [0, 2^20) If state pruning is not working correctly for loop body the number of processed insns will be 2^20 * num_of_insns_in_loop_body and the program will be rejected. Signed-off-by: Alexei Starovoitov <ast@kernel.org> Acked-by: Andrii Nakryiko <andriin@fb.com> Acked-by: Yonghong Song <yhs@fb.com>