selftests: bpf: functional and min/max reasoning unit tests for JMP32
authorJiong Wang <[email protected]>
Sat, 26 Jan 2019 17:26:13 +0000 (12:26 -0500)
committerAlexei Starovoitov <[email protected]>
Sat, 26 Jan 2019 21:33:02 +0000 (13:33 -0800)
commit6ea848b5ced53cbfd5677ff176c2aca10fd61bf4
treeb362dbebfb60ce4b7a9ba03bc10ea7f8f7ed26fb
parent461448398ac104b014530680dbac09e577cd2695
selftests: bpf: functional and min/max reasoning unit tests for JMP32

This patch adds unit tests for new JMP32 instructions.

This patch also added the new BPF_JMP32_REG and BPF_JMP32_IMM macros to
samples/bpf/bpf_insn.h so that JMP32 insn builders are available to tests
under 'samples' directory.

Reviewed-by: Jakub Kicinski <[email protected]>
Signed-off-by: Jiong Wang <[email protected]>
Signed-off-by: Alexei Starovoitov <[email protected]>
samples/bpf/bpf_insn.h
tools/testing/selftests/bpf/test_verifier.c