Home
last modified time | relevance | path

Searched refs:thread_attr (Results 1 – 9 of 9) sorted by relevance

/linux-6.6.21/tools/perf/bench/
Dfutex-wake-parallel.c101 pthread_attr_t thread_attr; in wakeup_threads() local
103 pthread_attr_init(&thread_attr); in wakeup_threads()
104 pthread_attr_setdetachstate(&thread_attr, PTHREAD_CREATE_JOINABLE); in wakeup_threads()
115 if (pthread_create(&td[i].worker, &thread_attr, in wakeup_threads()
127 pthread_attr_destroy(&thread_attr); in wakeup_threads()
163 pthread_attr_t thread_attr; in block_threads() local
165 pthread_attr_init(&thread_attr); in block_threads()
169 if (pthread_attr_setaffinity_np(&thread_attr, size, cpuset)) { in block_threads()
174 if (pthread_create(&w[i], &thread_attr, blocked_workerfn, NULL)) { in block_threads()
178 pthread_attr_destroy(&thread_attr); in block_threads()
Dfutex-wake.c112 pthread_attr_t thread_attr; in block_threads() local
114 pthread_attr_init(&thread_attr); in block_threads()
118 if (pthread_attr_setaffinity_np(&thread_attr, size, cpuset)) { in block_threads()
123 if (pthread_create(&w[i], &thread_attr, workerfn, NULL)) { in block_threads()
127 pthread_attr_destroy(&thread_attr); in block_threads()
Dfutex-lock-pi.c135 pthread_attr_t thread_attr; in create_threads() local
137 pthread_attr_init(&thread_attr); in create_threads()
150 if (pthread_attr_setaffinity_np(&thread_attr, size, cpuset)) { in create_threads()
155 if (pthread_create(&w[i].thread, &thread_attr, workerfn, &worker[i])) { in create_threads()
159 pthread_attr_destroy(&thread_attr); in create_threads()
Dfutex-hash.c129 pthread_attr_t thread_attr; in bench_futex_hash() local
174 pthread_attr_init(&thread_attr); in bench_futex_hash()
191 ret = pthread_attr_setaffinity_np(&thread_attr, size, cpuset); in bench_futex_hash()
196 ret = pthread_create(&worker[i].thread, &thread_attr, workerfn, in bench_futex_hash()
205 pthread_attr_destroy(&thread_attr); in bench_futex_hash()
Dfutex-requeue.c139 pthread_attr_t thread_attr; in block_threads() local
141 pthread_attr_init(&thread_attr); in block_threads()
145 if (pthread_attr_setaffinity_np(&thread_attr, size, cpuset)) { in block_threads()
150 if (pthread_create(&w[i], &thread_attr, workerfn, NULL)) { in block_threads()
154 pthread_attr_destroy(&thread_attr); in block_threads()
Depoll-ctl.c225 pthread_attr_t thread_attr, *attrp = NULL; in do_threads() local
233 pthread_attr_init(&thread_attr); in do_threads()
267 ret = pthread_attr_setaffinity_np(&thread_attr, size, cpuset); in do_threads()
273 attrp = &thread_attr; in do_threads()
286 pthread_attr_destroy(&thread_attr); in do_threads()
Depoll-wait.c294 pthread_attr_t thread_attr, *attrp = NULL; in do_threads() local
310 pthread_attr_init(&thread_attr); in do_threads()
356 ret = pthread_attr_setaffinity_np(&thread_attr, size, cpuset); in do_threads()
362 attrp = &thread_attr; in do_threads()
375 pthread_attr_destroy(&thread_attr); in do_threads()
/linux-6.6.21/tools/build/feature/
Dtest-pthread-attr-setaffinity-np.c9 pthread_attr_t thread_attr; in main() local
12 pthread_attr_init(&thread_attr); in main()
15 ret = pthread_attr_setaffinity_np(&thread_attr, sizeof(cs), &cs); in main()
/linux-6.6.21/tools/testing/selftests/mqueue/
Dmq_perf_tests.c718 pthread_attr_t thread_attr; in main() local
730 pthread_attr_init(&thread_attr); in main()
731 pthread_attr_setaffinity_np(&thread_attr, cpu_set_size, in main()
733 if (pthread_create(&cpu_threads[i], &thread_attr, thread_func, in main()
736 pthread_attr_destroy(&thread_attr); in main()