Searched refs:thread_args (Results 1 – 7 of 7) sorted by relevance
| /linux/tools/testing/selftests/vfio/ |
| H A D | vfio_pci_device_init_perf_test.c | 17 struct thread_args { struct 28 struct thread_args *thread_args; in FIXTURE() local 49 self->thread_args = calloc(nr_devices, sizeof(self->thread_args[0])); in FIXTURE_SETUP() 54 self->thread_args[i].iommu = self->iommu; in FIXTURE_SETUP() 55 self->thread_args[i].barrier = &self->barrier; in FIXTURE_SETUP() 56 self->thread_args[i].device_index = i; in FIXTURE_SETUP() 64 free(self->thread_args); in FIXTURE_TEARDOWN() 99 struct thread_args *args = __args; in thread_main() 126 &self->thread_args[i]); in TEST_F() 130 struct thread_args *args = &self->thread_args[i]; in TEST_F()
|
| /linux/tools/testing/selftests/futex/functional/ |
| H A D | futex_numa_mpol.c | 28 struct thread_args { struct 34 static struct thread_args thread_args[MAX_THREADS]; variable 46 struct thread_args *args = arg; in thread_lock_fn() 60 thread_args[i].futex_ptr = futex_ptr; in create_max_threads() 61 thread_args[i].flags = FUTEX2_SIZE_U32 | FUTEX_PRIVATE_FLAG | FUTEX2_NUMA; in create_max_threads() 62 thread_args[i].result = 0; in create_max_threads() 63 ret = pthread_create(&threads[i], NULL, thread_lock_fn, &thread_args[i]); in create_max_threads() 115 if (err_value && thread_args[i].result != -1) { in __test_futex() 117 i, thread_args[i].result); in __test_futex() 120 if (!err_value && thread_args[i].result != 0) { in __test_futex() [all …]
|
| H A D | futex_numa.c | 100 struct thread_args { struct 111 struct thread_args *args = _arg; in threadfn() argument 143 struct thread_args *args = _arg; in contendfn() 164 struct thread_args *tas[512], *cas[512]; in main() 195 struct thread_args *args = calloc(1, sizeof(*args)); in main() 216 struct thread_args *args = calloc(1, sizeof(*args)); in main() 241 struct thread_args *args = tas[t]; in main() 252 struct thread_args *args = cas[t]; in main()
|
| /linux/tools/testing/selftests/drivers/ntsync/ |
| H A D | ntsync.c | 752 struct wait_args thread_args; in TEST() local 777 thread_args.fd = fd; in TEST() 778 thread_args.args = &wait_args; in TEST() 779 thread_args.request = NTSYNC_IOC_WAIT_ANY; in TEST() 780 ret = pthread_create(&thread, NULL, wait_thread, &thread_args); in TEST() 794 EXPECT_EQ(0, thread_args.ret); in TEST() 806 ret = pthread_create(&thread, NULL, wait_thread, &thread_args); in TEST() 826 EXPECT_EQ(0, thread_args.ret); in TEST() 839 ret = pthread_create(&thread, NULL, wait_thread, &thread_args); in TEST() 852 EXPECT_EQ(0, thread_args.ret); in TEST() [all …]
|
| /linux/tools/testing/selftests/net/netfilter/ |
| H A D | udpclash.c | 27 struct thread_args { struct 37 const struct thread_args *args = varg; in thread_main() argument 54 struct thread_args thread_args = { in run_test() local 68 int err = pthread_create(&tid[i], NULL, &thread_main, &thread_args); in run_test()
|
| /linux/tools/testing/selftests/timens/ |
| H A D | vfork_exec.c | 22 struct thread_args { struct 29 struct thread_args *args = _args; in tcheck() argument 46 struct thread_args args = { in check_in_thread()
|
| H A D | clock_nanosleep.c | 25 struct thread_args { struct 34 struct thread_args *args = _args; in call_nanosleep() argument 44 struct thread_args args = { .now = &now, .rem = &rem, .clockid = clockid}; in run_test()
|