OSDN Git Service

bpf, tests: Add tests for ALU operations implemented with function calls
authorJohan Almbladh <johan.almbladh@anyfinetworks.com>
Mon, 9 Aug 2021 09:18:23 +0000 (11:18 +0200)
committerDaniel Borkmann <daniel@iogearbox.net>
Tue, 10 Aug 2021 09:33:15 +0000 (11:33 +0200)
commit84024a4e86d9b2085f3444190b30d5f88c76e07b
tree9779cf3e806bfb9bd5c7cb88da0a1e590a1f5805
parentfaa576253d5fe757f0c573ef7e183b3416c58dae
bpf, tests: Add tests for ALU operations implemented with function calls

32-bit JITs may implement complex ALU64 instructions using function calls.
The new tests check aspects related to this, such as register clobbering
and register argument re-ordering.

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