Home
last modified time | relevance | path

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

/tools/build/feature/
Dtest-pthread-attr-setaffinity-np.c8 pthread_attr_t thread_attr; in main() local
11 pthread_attr_init(&thread_attr); in main()
14 ret = pthread_attr_setaffinity_np(&thread_attr, sizeof(cs), &cs); in main()
/tools/perf/bench/
Dfutex-wake-parallel.c79 static void wakeup_threads(struct thread_data *td, pthread_attr_t thread_attr) in wakeup_threads() argument
83 pthread_attr_setdetachstate(&thread_attr, PTHREAD_CREATE_JOINABLE); in wakeup_threads()
92 if (pthread_create(&td[i].worker, &thread_attr, in wakeup_threads()
120 static void block_threads(pthread_t *w, pthread_attr_t thread_attr) in block_threads() argument
132 if (pthread_attr_setaffinity_np(&thread_attr, sizeof(cpu_set_t), &cpu)) in block_threads()
135 if (pthread_create(&w[i], &thread_attr, blocked_workerfn, NULL)) in block_threads()
205 pthread_attr_t thread_attr; in bench_futex_wake_parallel() local
250 pthread_attr_init(&thread_attr); in bench_futex_wake_parallel()
261 block_threads(blocked_worker, thread_attr); in bench_futex_wake_parallel()
273 wakeup_threads(waking_worker, thread_attr); in bench_futex_wake_parallel()
[all …]
Dfutex-wake.c90 pthread_attr_t thread_attr) in block_threads() argument
102 if (pthread_attr_setaffinity_np(&thread_attr, sizeof(cpu_set_t), &cpu)) in block_threads()
105 if (pthread_create(&w[i], &thread_attr, workerfn, NULL)) in block_threads()
123 pthread_attr_t thread_attr; in bench_futex_wake() local
153 pthread_attr_init(&thread_attr); in bench_futex_wake()
163 block_threads(worker, thread_attr); in bench_futex_wake()
201 pthread_attr_destroy(&thread_attr); in bench_futex_wake()
Dfutex-requeue.c84 pthread_attr_t thread_attr) in block_threads() argument
96 if (pthread_attr_setaffinity_np(&thread_attr, sizeof(cpu_set_t), &cpu)) in block_threads()
99 if (pthread_create(&w[i], &thread_attr, workerfn, NULL)) in block_threads()
117 pthread_attr_t thread_attr; in bench_futex_requeue() local
148 pthread_attr_init(&thread_attr); in bench_futex_requeue()
158 block_threads(worker, thread_attr); in bench_futex_requeue()
207 pthread_attr_destroy(&thread_attr); in bench_futex_requeue()
Dfutex-lock-pi.c112 static void create_threads(struct worker *w, pthread_attr_t thread_attr) in create_threads() argument
132 if (pthread_attr_setaffinity_np(&thread_attr, sizeof(cpu_set_t), &cpu)) in create_threads()
135 if (pthread_create(&w[i].thread, &thread_attr, workerfn, &worker[i])) in create_threads()
146 pthread_attr_t thread_attr; in bench_futex_lock_pi() local
177 pthread_attr_init(&thread_attr); in bench_futex_lock_pi()
180 create_threads(worker, thread_attr); in bench_futex_lock_pi()
181 pthread_attr_destroy(&thread_attr); in bench_futex_lock_pi()
Dfutex-hash.c121 pthread_attr_t thread_attr; in bench_futex_hash() local
155 pthread_attr_init(&thread_attr); in bench_futex_hash()
166 ret = pthread_attr_setaffinity_np(&thread_attr, sizeof(cpu_set_t), &cpu); in bench_futex_hash()
170 ret = pthread_create(&worker[i].thread, &thread_attr, workerfn, in bench_futex_hash()
176 pthread_attr_destroy(&thread_attr); in bench_futex_hash()
/tools/testing/selftests/mqueue/
Dmq_perf_tests.c714 pthread_attr_t thread_attr; in main() local
726 pthread_attr_init(&thread_attr); in main()
727 pthread_attr_setaffinity_np(&thread_attr, cpu_set_size, in main()
729 if (pthread_create(&cpu_threads[i], &thread_attr, thread_func, in main()
732 pthread_attr_destroy(&thread_attr); in main()