]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit45c3ca54c22b561c17b17d64aa3f966ebb5479f5
treef235898edcb89a9fe9dbf2f9f76b79f78596b16e
parent0b7bb776a8e14cc9ab24fdd0fcb03eb6d54677df
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