Skip to content

Commit

Permalink
bpf/tests: Add exhaustive tests of BPF_ATOMIC magnitudes
Browse files Browse the repository at this point in the history
This patch adds a series of test to verify the operation of BPF_ATOMIC
with BPF_DW and BPF_W sizes, for all power-of-two magnitudes of the
register value operand.

Also fixes a confusing typo in the comment for a related test.

Signed-off-by: Johan Almbladh <johan.almbladh@anyfinetworks.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20211001130348.3670534-4-johan.almbladh@anyfinetworks.com
  • Loading branch information
Johan Almbladh authored and Daniel Borkmann committed Oct 1, 2021
1 parent 89b6346 commit f68e8ef
Showing 1 changed file with 503 additions and 1 deletion.
Loading

0 comments on commit f68e8ef

Please sign in to comment.