bpf: add ld64 imm test cases
authorDaniel Borkmann <daniel@iogearbox.net>
Mon, 14 May 2018 21:22:34 +0000 (23:22 +0200)
committerAlexei Starovoitov <ast@kernel.org>
Tue, 15 May 2018 02:11:45 +0000 (19:11 -0700)
commita82d8cd398716b41f0fbe3882e3fe3f5ccf9f9cf
tree0febd11729744b0eb50eae2ba198d80f7a6d05ac
parent56ea6a8b4949c66d550d05e92da8ef4351b90027
bpf: add ld64 imm test cases

Add test cases where we combine semi-random imm values, mainly for testing
JITs when they have different encoding options for 64 bit immediates in
order to reduce resulting image size.

Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/bpf_rand.h [new file with mode: 0644]
tools/testing/selftests/bpf/test_verifier.c