selftests: bpf: makefile support sub-register code-gen test mode
authorJiong Wang <jiong.wang@netronome.com>
Sat, 26 Jan 2019 17:26:14 +0000 (12:26 -0500)
committerAlexei Starovoitov <ast@kernel.org>
Sat, 26 Jan 2019 21:33:02 +0000 (13:33 -0800)
commit3ef84346c56141c72a28efcad2ddf17809533832
treedae6534e7471ad23e7698aa60ef663fa753d0871
parent6ea848b5ced53cbfd5677ff176c2aca10fd61bf4
selftests: bpf: makefile support sub-register code-gen test mode

This patch enables testing some eBPF programs under sub-register
compilation mode.

Only enable this when there is BPF_JMP32 support on both LLVM and kernel.
This is because only after BPF_JMP32 added, code-gen for complex program
under sub-register mode will be clean enough to pass verification.

This patch splits TEST_GEN_FILES into BPF_OBJ_FILES and
BPF_OBJ_FILES_DUAL_COMPILE. The latter are those objects we would like to
compile for both default and sub-register mode. They are also objects used
by "test_progs".

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