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)
commit4e5070b64b375a9c1f570893cfceeba108382bef
treeda4ddeafc7ce5681f1dfe3175edf5bfb0c8f7f68
parente6f2dd0f80674e9d5960337b3e9c2a242441b326
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]