selftests: bpf: extend sub-register mode compilation to all bpf object files
authorJiong Wang <jiong.wang@netronome.com>
Mon, 11 Feb 2019 12:01:19 +0000 (12:01 +0000)
committerAlexei Starovoitov <ast@kernel.org>
Tue, 12 Feb 2019 04:31:38 +0000 (20:31 -0800)
commit4836b4637ef080c2764c44ee40ed354cdb991d79
tree7104c1ea04a4c900d1f2ade86b70f31717078f5a
parent1727a9dce6775a4ea77a611e9ea51cac1d093519
selftests: bpf: extend sub-register mode compilation to all bpf object files

At the moment, we only do extra sub-register mode compilation on bpf object
files used by "test_progs". These object files are really loaded and
executed.

This patch further extends sub-register mode compilation to all bpf object
files, even those without corresponding runtime tests. Because this could
help testing LLVM sub-register code-gen, kernel bpf selftest has much more
C testcases with reasonable size and complexity compared with LLVM
testsuite which only contains unit tests.

There were some file duplication inside BPF_OBJ_FILES_DUAL_COMPILE which
is removed now.

Reviewed-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: Jiong Wang <jiong.wang@netronome.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/Makefile