]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/bpf: Add arm target register definitions
authorAdrian Ratiu <adrian.ratiu@collabora.com>
Wed, 20 Mar 2019 10:10:54 +0000 (12:10 +0200)
committerAlexei Starovoitov <ast@kernel.org>
Thu, 21 Mar 2019 03:28:58 +0000 (20:28 -0700)
commitd109218782c8e832490fc29d89c753c0f36e79a1
treedd1f8f59a0fe42d9668658268870a4e4e47d9a2b
parentbe4c8d7a3fab19b93f2298a4c62ba1a152b8ef84
selftests/bpf: Add arm target register definitions

eBPF "restricted C" code can be compiled with LLVM/clang using target
triplets like armv7l-unknown-linux-gnueabihf and loaded/run with small
cross-compiled gobpf/elf [1] programs without requiring a full BCC
port which is also undesirable on small embedded systems due to its
size footprint. The only missing pieces are these helper macros which
otherwise have to be redefined by each eBPF arm program.

[1] https://github.com/iovisor/gobpf/tree/master/elf

Signed-off-by: Adrian Ratiu <adrian.ratiu@collabora.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/bpf_helpers.h