]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb782d6c737b8932742bf54e407ca1f5eb670db51
tree0febd11729744b0eb50eae2ba198d80f7a6d05ac
parentf7fcf337b0cdfb808bd617b6d541a4e038b075bd
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