]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/bpf: Add a test for a large global function
authorAlexei Starovoitov <ast@kernel.org>
Fri, 10 Jan 2020 06:41:22 +0000 (22:41 -0800)
committerDaniel Borkmann <daniel@iogearbox.net>
Fri, 10 Jan 2020 16:20:07 +0000 (17:20 +0100)
commit6e2bd7d8e7945ecfaac2d91f2e3bc891d5ca4816
tree4cdd4b38078ed60f308ebe16787f36cfd7dfd4e4
parent70de141cc501c6d231a31a3b57f255798c51804c
selftests/bpf: Add a test for a large global function

test results:
pyperf50 with always_inlined the same function five times: processed 46378 insns
pyperf50 with global function: processed 6102 insns

Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Song Liu <songliubraving@fb.com>
Link: https://lore.kernel.org/bpf/20200110064124.1760511-5-ast@kernel.org
tools/testing/selftests/bpf/prog_tests/bpf_verif_scale.c
tools/testing/selftests/bpf/progs/pyperf.h
tools/testing/selftests/bpf/progs/pyperf_global.c [new file with mode: 0644]