selftests/powerpc: Import Anton's memcpy / copy_tofrom_user tests
authorMichael Ellerman <mpe@ellerman.id.au>
Tue, 21 Jan 2014 04:22:17 +0000 (15:22 +1100)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Fri, 7 Mar 2014 04:53:12 +0000 (15:53 +1100)
commit22d651dcef536c75f75537290bf3da5038e68b6b
treef235898edcb89a9fe9dbf2f9f76b79f78596b16e
parent55672ecfa21f23616541c50e0e687f14f9ecf165
selftests/powerpc: Import Anton's memcpy / copy_tofrom_user tests

Turn Anton's memcpy / copy_tofrom_user test into something that can
live in tools/testing/selftests.

It requires one turd in arch/powerpc/lib/memcpy_64.S, but it's pretty
harmless IMHO.

We are sailing very close to the wind with the feature macros. We define
them to nothing, which currently means we get a few extra nops and
include the unaligned calls.

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/lib/memcpy_64.S
tools/testing/selftests/powerpc/Makefile
tools/testing/selftests/powerpc/copyloops/Makefile [new file with mode: 0644]
tools/testing/selftests/powerpc/copyloops/asm/ppc_asm.h [new file with mode: 0644]
tools/testing/selftests/powerpc/copyloops/asm/processor.h [new file with mode: 0644]
tools/testing/selftests/powerpc/copyloops/copyuser_64.S [new symlink]
tools/testing/selftests/powerpc/copyloops/copyuser_power7.S [new symlink]
tools/testing/selftests/powerpc/copyloops/memcpy_64.S [new symlink]
tools/testing/selftests/powerpc/copyloops/memcpy_power7.S [new symlink]
tools/testing/selftests/powerpc/copyloops/validate.c [new file with mode: 0644]
tools/testing/selftests/powerpc/utils.h