aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/bpf/prog_tests/global_data_init.c
diff options
context:
space:
mode:
authorAndrii Nakryiko <[email protected]>2020-09-03 20:35:42 +0000
committerAlexei Starovoitov <[email protected]>2020-09-04 00:14:40 +0000
commitee333df50bff22956ad37f3784cf120028f343a8 (patch)
treeb6954a3ab16ff31e04dde36a09213c587ad99a57 /tools/testing/selftests/bpf/prog_tests/global_data_init.c
parentselftests/bpf: Modernize xdp_noinline test w/ skeleton and __noinline (diff)
downloadkernel-ee333df50bff22956ad37f3784cf120028f343a8.tar.gz
kernel-ee333df50bff22956ad37f3784cf120028f343a8.zip
selftests/bpf: Add __noinline variant of cls_redirect selftest
As one of the most complicated and close-to-real-world programs, cls_redirect is a good candidate to exercise libbpf's logic of handling bpf2bpf calls. So add variant with using explicit __noinline for majority of functions except few most basic ones. If those few functions are inlined, verifier starts to complain about program instruction limit of 1mln instructions being exceeded, most probably due to instruction overhead of doing a sub-program call. Convert user-space part of selftest to have to sub-tests: with and without inlining. Signed-off-by: Andrii Nakryiko <[email protected]> Signed-off-by: Alexei Starovoitov <[email protected]> Cc: Lorenz Bauer <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/global_data_init.c')
0 files changed, 0 insertions, 0 deletions