OSDN Git Service

bpf, tests: Add word-order tests for load/store of double words
authorJohan Almbladh <johan.almbladh@anyfinetworks.com>
Mon, 9 Aug 2021 09:18:24 +0000 (11:18 +0200)
committerDaniel Borkmann <daniel@iogearbox.net>
Tue, 10 Aug 2021 09:33:18 +0000 (11:33 +0200)
commite5009b4636cb593c06243197fd0742ed2e6ac510
tree9df3bcc0e85d3306af2698be21436744c9c36758
parent84024a4e86d9b2085f3444190b30d5f88c76e07b
bpf, tests: Add word-order tests for load/store of double words

A double word (64-bit) load/store may be implemented as two successive
32-bit operations, one for each word. Check that the order of those
operations is consistent with the machine endianness.

Signed-off-by: Johan Almbladh <johan.almbladh@anyfinetworks.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Yonghong Song <yhs@fb.com>
Link: https://lore.kernel.org/bpf/20210809091829.810076-10-johan.almbladh@anyfinetworks.com
lib/test_bpf.c