rseq/selftests: Implement MIPS support
authorPaul Burton <paul.burton@mips.com>
Thu, 14 Jun 2018 18:06:22 +0000 (11:06 -0700)
committerPaul Burton <paul.burton@mips.com>
Wed, 20 Jun 2018 04:14:19 +0000 (21:14 -0700)
commit744f4be542d705a39dac9810350e96f37474eda3
treec9bceb33f38f6efc40625aa075a21269a9d6e601
parente426b3754a2cb8bb45b71283fdac0cfc6d247db7
rseq/selftests: Implement MIPS support

Implement support for both MIPS32 & MIPS64 in the rseq selftests, in
order to sanity check the recently enabled rseq syscall.

The tests all pass on a MIPS Boston development board running either a
MIPS32r2 interAptiv CPU & a MIPS64r6 I6500 CPU, both of which were
configured with 2 cores each of which have 2 hardware threads (VP(E)s) -
ie. 4 CPUs.

Signed-off-by: Paul Burton <paul.burton@mips.com>
Reviewed-by: James Hogan <jhogan@kernel.org>
Patchwork: https://patchwork.linux-mips.org/patch/19524/
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Cc: Boqun Feng <boqun.feng@gmail.com>
Cc: linux-mips@linux-mips.org
Cc: linux-kernel@vger.kernel.org
tools/testing/selftests/rseq/param_test.c
tools/testing/selftests/rseq/rseq-mips.h [new file with mode: 0644]
tools/testing/selftests/rseq/rseq.h