]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/bpf: Add bpf_loop test
authorJoanne Koong <joannekoong@fb.com>
Tue, 30 Nov 2021 03:06:20 +0000 (19:06 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Tue, 30 Nov 2021 18:56:28 +0000 (10:56 -0800)
commitcaf20edc43b9b29240f06fb01cf378947f845bed
treeda4ddeafc7ce5681f1dfe3175edf5bfb0c8f7f68
parent1a36a77c451f83c8d16ea9bbbbe23a81dc3f26c1
selftests/bpf: Add bpf_loop test

Add test for bpf_loop testing a variety of cases:
various nr_loops, null callback ctx, invalid flags, nested callbacks.

Signed-off-by: Joanne Koong <joannekoong@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20211130030622.4131246-3-joannekoong@fb.com
tools/testing/selftests/bpf/prog_tests/bpf_loop.c [new file with mode: 0644]
tools/testing/selftests/bpf/progs/bpf_loop.c [new file with mode: 0644]