selftests/membarrier: Test MEMBARRIER_CMD_GET_REGISTRATIONS
authorMichal Clapinski <mclapinski@google.com>
Wed, 7 Dec 2022 16:43:38 +0000 (17:43 +0100)
committerIngo Molnar <mingo@kernel.org>
Sat, 7 Jan 2023 10:29:29 +0000 (11:29 +0100)
commitd74f87f37672e71457bfcc14eca5eeb1d61b6438
treedbd05bc0e9481467a5768ca35ce5e5f8f523a6aa
parent544a4f2ecd45f9d6ed78d207583f39130ad40349
selftests/membarrier: Test MEMBARRIER_CMD_GET_REGISTRATIONS

Keep track of previously issued registrations and compare the result
with MEMBARRIER_CMD_GET_REGISTRATIONS return value.

Signed-off-by: Michal Clapinski <mclapinski@google.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Acked-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Acked-by: Paul E. McKenney <paulmck@kernel.org>
Link: https://lore.kernel.org/r/20221207164338.1535591-3-mclapinski@google.com
tools/testing/selftests/membarrier/membarrier_test_impl.h
tools/testing/selftests/membarrier/membarrier_test_multi_thread.c
tools/testing/selftests/membarrier/membarrier_test_single_thread.c