]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc400743aafd532e366f7bc6670b70c3bbb587282
tree9779cf3e806bfb9bd5c7cb88da0a1e590a1f5805
parent40d3898e9e78b69a1dc32ab982d739f0b439ee86
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