selftests/bpf: Improve recursion selftest
authorAlexei Starovoitov <ast@kernel.org>
Wed, 10 Feb 2021 03:36:32 +0000 (19:36 -0800)
committerDaniel Borkmann <daniel@iogearbox.net>
Thu, 11 Feb 2021 15:19:24 +0000 (16:19 +0100)
commitdcf33b6f4de173818540e3a2a0668c80a1ebdc68
treefa59bfe32570d6ee5c13b496a9984b93c89ff744
parent9ed9e9ba2337205311398a312796c213737bac35
selftests/bpf: Improve recursion selftest

Since recursion_misses counter is available in bpf_prog_info
improve the selftest to make sure it's counting correctly.

Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20210210033634.62081-8-alexei.starovoitov@gmail.com
tools/testing/selftests/bpf/prog_tests/recursion.c