OSDN Git Service

selftests/powerpc: Add a helper for checking if we're on ppc64le
authorMichael Ellerman <mpe@ellerman.id.au>
Thu, 26 Jul 2018 12:24:57 +0000 (22:24 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 7 Aug 2018 11:49:25 +0000 (21:49 +1000)
commit95f9b3af401f5b4daeb908a2c658e820e969f4e3
tree625d0c9d15d97876d0d243409249cf9b5edf3080
parent7cd129b4b5370030a5c0b8031a54b2d1d92fa546
selftests/powerpc: Add a helper for checking if we're on ppc64le

Some of our selftests have only been tested on ppc64le and crash or
behave weirdly on ppc64/ppc32. So add a helper for checking the UTS
machine.

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
tools/testing/selftests/powerpc/include/utils.h
tools/testing/selftests/powerpc/utils.c