rseq/selftests: Test MEMBARRIER_CMD_PRIVATE_EXPEDITED_RSEQ
authorPeter Oskolkov <posk@google.com>
Wed, 23 Sep 2020 23:36:18 +0000 (16:36 -0700)
committerPeter Zijlstra <peterz@infradead.org>
Fri, 25 Sep 2020 12:23:27 +0000 (14:23 +0200)
commitf166b111e0491486fca0d105f09655ab718bd1c8
treec30774439d7e8ad90e7a14a4af9dd2563d887b04
parentea366dd79c05fcd4cf5e225d2de8a3a7c293160c
rseq/selftests: Test MEMBARRIER_CMD_PRIVATE_EXPEDITED_RSEQ

Based on Google-internal RSEQ work done by Paul Turner and Andrew
Hunter.

This patch adds a selftest for MEMBARRIER_CMD_PRIVATE_EXPEDITED_RSEQ.
The test quite often fails without the previous patch in this
patchset, but consistently passes with it.

Signed-off-by: Peter Oskolkov <posk@google.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Acked-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Link: https://lkml.kernel.org/r/20200923233618.2572849-3-posk@google.com
tools/testing/selftests/rseq/param_test.c
tools/testing/selftests/rseq/run_param_test.sh