]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/bpf: Use cpu_number only on arches that have it
authorIlya Leoshkevich <iii@linux.ibm.com>
Wed, 13 Oct 2021 16:08:59 +0000 (18:08 +0200)
committerAndrii Nakryiko <andrii@kernel.org>
Wed, 20 Oct 2021 18:40:01 +0000 (11:40 -0700)
commit894df552fc453a7d29b4524d29ccd533e3fec9f4
treed2554f370313521bfa3386d6b1ef713ec991c6c4
parent6cf2b2683da3270aeb474745d3d487555aebc032
selftests/bpf: Use cpu_number only on arches that have it

cpu_number exists only on Intel and aarch64, so skip the test involing
it on other arches. An alternative would be to replace it with an
exported non-ifdefed primitive-typed percpu variable from the common
code, but there appears to be none.

Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20211013160902.428340-2-iii@linux.ibm.com
tools/testing/selftests/bpf/prog_tests/btf_dump.c