summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/membarrier/membarrier_test_single_thread.c
diff options
context:
space:
mode:
authorMichal Clapinski <mclapinski@google.com>2022-12-07 19:43:38 +0300
committerIngo Molnar <mingo@kernel.org>2023-01-07 13:29:29 +0300
commitd74f87f37672e71457bfcc14eca5eeb1d61b6438 (patch)
treedbd05bc0e9481467a5768ca35ce5e5f8f523a6aa /tools/testing/selftests/membarrier/membarrier_test_single_thread.c
parent544a4f2ecd45f9d6ed78d207583f39130ad40349 (diff)
downloadlinux-d74f87f37672e71457bfcc14eca5eeb1d61b6438.tar.xz
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
Diffstat (limited to 'tools/testing/selftests/membarrier/membarrier_test_single_thread.c')
-rw-r--r--tools/testing/selftests/membarrier/membarrier_test_single_thread.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/testing/selftests/membarrier/membarrier_test_single_thread.c b/tools/testing/selftests/membarrier/membarrier_test_single_thread.c
index c1c963902854..4cdc8b1d124c 100644
--- a/tools/testing/selftests/membarrier/membarrier_test_single_thread.c
+++ b/tools/testing/selftests/membarrier/membarrier_test_single_thread.c
@@ -12,7 +12,9 @@
int main(int argc, char **argv)
{
ksft_print_header();
- ksft_set_plan(13);
+ ksft_set_plan(18);
+
+ test_membarrier_get_registrations(/*cmd=*/0);
test_membarrier_query();
@@ -20,5 +22,7 @@ int main(int argc, char **argv)
test_membarrier_success();
+ test_membarrier_get_registrations(/*cmd=*/0);
+
return ksft_exit_pass();
}