Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0
0002 #define _GNU_SOURCE
0003 #include <linux/membarrier.h>
0004 #include <syscall.h>
0005 #include <stdio.h>
0006 #include <errno.h>
0007 #include <string.h>
0008 #include <pthread.h>
0009 
0010 #include "membarrier_test_impl.h"
0011 
0012 int main(int argc, char **argv)
0013 {
0014     ksft_print_header();
0015     ksft_set_plan(13);
0016 
0017     test_membarrier_query();
0018 
0019     test_membarrier_fail();
0020 
0021     test_membarrier_success();
0022 
0023     return ksft_exit_pass();
0024 }