]> git.baikalelectronics.ru Git - kernel.git/commit
bpf/tests: Add exhaustive tests of JMP operand magnitudes
authorJohan Almbladh <johan.almbladh@anyfinetworks.com>
Tue, 14 Sep 2021 09:18:33 +0000 (11:18 +0200)
committerDaniel Borkmann <daniel@iogearbox.net>
Tue, 28 Sep 2021 07:26:28 +0000 (09:26 +0200)
commitcc377978ba36b013fd6007e75934f1b9073f4610
tree9b963679cd2281b151affbfa4054a85ac59d9149
parentf1e4371c783f3525b999c062f32f029b1b989056
bpf/tests: Add exhaustive tests of JMP operand magnitudes

This patch adds a set of tests for conditional JMP and JMP32 operations to
verify correctness for all possible magnitudes of the immediate and
register operands. Mainly intended for JIT testing.

Signed-off-by: Johan Almbladh <johan.almbladh@anyfinetworks.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20210914091842.4186267-6-johan.almbladh@anyfinetworks.com
lib/test_bpf.c