Skip to content

Commit

Permalink
bpf/tests: Add exhaustive tests of ALU operand magnitudes
Browse files Browse the repository at this point in the history
This patch adds a set of tests for ALU64 and ALU32 arithmetic and bitwise
logical operations to verify correctness for all possible magnitudes of
the register and immediate operands. Mainly intended for JIT testing.

The patch introduces a pattern generator that can be used to drive
extensive tests of different kinds of operations. It is parameterized
to allow tuning of the operand combinations to test.

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-5-johan.almbladh@anyfinetworks.com
  • Loading branch information
Johan Almbladh authored and borkmann committed Sep 28, 2021
1 parent 68c956f commit 9298e63
Showing 1 changed file with 772 additions and 0 deletions.
Loading

0 comments on commit 9298e63

Please sign in to comment.