linux/tools/testing/selftests/powerpc
Michael Ellerman 2679f63fe5 selftests/powerpc/64: Test exception cases in copy_tofrom_user
This adds a set of test cases to test the behaviour of
copy_tofrom_user when exceptions are encountered accessing the
source or destination.  Currently, copy_tofrom_user does not always
copy as many bytes as possible when an exception occurs on a store
to the destination, and that is reflected in failures in these tests.

Based on a test program from Anton Blanchard.

[paulus@ozlabs.org - test all three paths, wrote commit description,
 made EX_TABLE create an exception table.]

Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
2018-08-08 00:32:35 +10:00
..
alignment selftests/powerpc: Add more version checks to alignment_handler test 2018-08-08 00:32:28 +10:00
benchmarks selftests/powerpc: Give some tests longer to run 2018-08-07 21:49:26 +10:00
cache_shape License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
copyloops selftests/powerpc/64: Test exception cases in copy_tofrom_user 2018-08-08 00:32:35 +10:00
dscr selftests/powerpc: Fix typos 2018-07-02 23:59:44 +10:00
include selftests/powerpc: Add a helper for checking if we're on ppc64le 2018-08-07 21:49:25 +10:00
lib selftests/powerpc: Add ptrace tests for VSX, VMX registers 2016-11-17 17:11:51 +11:00
math License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
mm selftests/powerpc: Skip the subpage_prot tests if the syscall is unavailable 2018-03-02 11:37:04 +11:00
pmu selftests/powerpc: Give some tests longer to run 2018-08-07 21:49:26 +10:00
primitives powerpc: clean inclusions of asm/feature-fixups.h 2018-07-30 22:48:17 +10:00
ptrace selftests/powerpc: Fix ptrace-pkey for default execute permission change 2018-07-24 22:03:14 +10:00
scripts selftests/powerpc: Add script to test HMI functionality 2015-12-17 10:46:43 +11:00
signal License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
stringloops selftests/powerpc: Update strlen() test to test the new assembly function for PPC32 2018-08-07 21:49:31 +10:00
switch_endian License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
syscalls License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
tm selftests/powerpc: Only run some tests on ppc64le 2018-08-07 21:49:25 +10:00
vphn License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
harness.c selftest/powerpc: Fix false failures for skipped tests 2017-03-03 11:24:50 +11:00
Makefile selftests/powerpc: Remove redundant cp_abort test 2018-05-21 14:48:02 +10:00
utils.c selftests/powerpc: Add a helper for checking if we're on ppc64le 2018-08-07 21:49:25 +10:00