Searched refs:thread_attr (Results 1 – 7 of 7) sorted by relevance
/tools/build/feature/ |
D | test-pthread-attr-setaffinity-np.c | 9 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()
|
/tools/perf/bench/ |
D | futex-wake-parallel.c | 81 static void wakeup_threads(struct thread_data *td, pthread_attr_t thread_attr) in wakeup_threads() argument 85 pthread_attr_setdetachstate(&thread_attr, PTHREAD_CREATE_JOINABLE); in wakeup_threads() 94 if (pthread_create(&td[i].worker, &thread_attr, in wakeup_threads() 122 static void block_threads(pthread_t *w, pthread_attr_t thread_attr) in block_threads() argument 134 if (pthread_attr_setaffinity_np(&thread_attr, sizeof(cpu_set_t), &cpu)) in block_threads() 137 if (pthread_create(&w[i], &thread_attr, blocked_workerfn, NULL)) in block_threads() 206 pthread_attr_t thread_attr; in bench_futex_wake_parallel() local 251 pthread_attr_init(&thread_attr); in bench_futex_wake_parallel() 262 block_threads(blocked_worker, thread_attr); in bench_futex_wake_parallel() 274 wakeup_threads(waking_worker, thread_attr); in bench_futex_wake_parallel() [all …]
|
D | futex-wake.c | 92 pthread_attr_t thread_attr) in block_threads() argument 104 if (pthread_attr_setaffinity_np(&thread_attr, sizeof(cpu_set_t), &cpu)) in block_threads() 107 if (pthread_create(&w[i], &thread_attr, workerfn, NULL)) in block_threads() 124 pthread_attr_t thread_attr; in bench_futex_wake() local 154 pthread_attr_init(&thread_attr); in bench_futex_wake() 164 block_threads(worker, thread_attr); in bench_futex_wake() 202 pthread_attr_destroy(&thread_attr); in bench_futex_wake()
|
D | futex-requeue.c | 86 pthread_attr_t thread_attr) in block_threads() argument 98 if (pthread_attr_setaffinity_np(&thread_attr, sizeof(cpu_set_t), &cpu)) in block_threads() 101 if (pthread_create(&w[i], &thread_attr, workerfn, NULL)) in block_threads() 118 pthread_attr_t thread_attr; in bench_futex_requeue() local 149 pthread_attr_init(&thread_attr); in bench_futex_requeue() 159 block_threads(worker, thread_attr); in bench_futex_requeue() 208 pthread_attr_destroy(&thread_attr); in bench_futex_requeue()
|
D | futex-lock-pi.c | 116 static void create_threads(struct worker *w, pthread_attr_t thread_attr) in create_threads() argument 136 if (pthread_attr_setaffinity_np(&thread_attr, sizeof(cpu_set_t), &cpu)) in create_threads() 139 if (pthread_create(&w[i].thread, &thread_attr, workerfn, &worker[i])) in create_threads() 149 pthread_attr_t thread_attr; in bench_futex_lock_pi() local 180 pthread_attr_init(&thread_attr); in bench_futex_lock_pi() 183 create_threads(worker, thread_attr); in bench_futex_lock_pi() 184 pthread_attr_destroy(&thread_attr); in bench_futex_lock_pi()
|
D | futex-hash.c | 124 pthread_attr_t thread_attr; in bench_futex_hash() local 158 pthread_attr_init(&thread_attr); in bench_futex_hash() 169 ret = pthread_attr_setaffinity_np(&thread_attr, sizeof(cpu_set_t), &cpu); in bench_futex_hash() 173 ret = pthread_create(&worker[i].thread, &thread_attr, workerfn, in bench_futex_hash() 179 pthread_attr_destroy(&thread_attr); in bench_futex_hash()
|
/tools/testing/selftests/mqueue/ |
D | mq_perf_tests.c | 714 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()
|