summaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/powerpc (follow)
Commit message (Collapse)AuthorAgeFilesLines
* selftests/powerpc: Import Anton's memcpy / copy_tofrom_user testsMichael Ellerman2014-03-0710-1/+222
| | | | | | | | | | | | | | | | 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>
* selftests: Add test of PMU instruction counting on powerpcMichael Ellerman2013-08-146-1/+349
| | | | | | | | | | This commit adds a test of instruction counting using the PMU on powerpc. Although the bulk of the code is architecture agnostic, the code needs to run a precisely sized loop which is implemented in assembler. Signed-off-by: Michael Ellerman <michael@ellerman.id.au> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
* selftests: Add support files for powerpc testsMichael Ellerman2013-08-143-0/+186
| | | | | | | This commit adds support code used by upcoming powerpc tests. Signed-off-by: Michael Ellerman <michael@ellerman.id.au> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
* selftests: Add infrastructure for powerpc selftestsMichael Ellerman2013-08-141-0/+39
This commit adds a powerpc subdirectory to tools/testing/selftests, for tests that are powerpc specific. On other architectures nothing is built. The makefile supports cross compilation if the user sets ARCH and CROSS_COMPILE. Signed-off-by: Michael Ellerman <michael@ellerman.id.au> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>