Home
last modified time | relevance | path

Searched refs:thread_args (Results 1 – 7 of 7) sorted by relevance

/tools/testing/selftests/futex/functional/
A Dfutex_numa_mpol.c28 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()
109 if (must_fail && thread_args[i].result != -1) { in __test_futex()
111 i, thread_args[i].result); in __test_futex()
114 if (!must_fail && thread_args[i].result != 0) { in __test_futex()
[all …]
A Dfutex_numa.c99 struct thread_args { struct
110 struct thread_args *args = _arg; in threadfn() argument
142 struct thread_args *args = _arg; in contendfn()
163 struct thread_args *tas[512], *cas[512]; in main()
194 struct thread_args *args = calloc(1, sizeof(*args)); in main()
215 struct thread_args *args = calloc(1, sizeof(*args)); in main()
240 struct thread_args *args = tas[t]; in main()
251 struct thread_args *args = cas[t]; in main()
/tools/testing/selftests/net/netfilter/
A Dudpclash.c27 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()
/tools/testing/selftests/drivers/ntsync/
A Dntsync.c752 struct wait_args thread_args; in TEST() local
777 thread_args.fd = fd; in TEST()
778 thread_args.args = &wait_args; in TEST()
794 EXPECT_EQ(0, thread_args.ret); in TEST()
826 EXPECT_EQ(0, thread_args.ret); in TEST()
945 struct wait_args thread_args; in TEST() local
977 thread_args.fd = fd; in TEST()
1069 struct wait_args thread_args; in TEST() local
1124 thread_args.fd = fd; in TEST()
1179 struct wait_args thread_args; in TEST() local
[all …]
/tools/testing/selftests/timens/
A Dvfork_exec.c22 struct thread_args { struct
29 struct thread_args *args = _args; in tcheck() argument
46 struct thread_args args = { in check_in_thread()
A Dclock_nanosleep.c25 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()
/tools/testing/selftests/rseq/
A Dparam_test.c1398 struct test_membarrier_thread_args thread_args; in test_membarrier() local
1408 thread_args.stop = 0; in test_membarrier()
1409 thread_args.percpu_list_ptr = 0; in test_membarrier()
1411 test_membarrier_manager_thread, &thread_args); in test_membarrier()
1420 test_membarrier_worker_thread, &thread_args); in test_membarrier()
1438 __atomic_store_n(&thread_args.stop, 1, __ATOMIC_RELEASE); in test_membarrier()

Completed in 15 milliseconds