Searched refs:thread_attr (Results 1 – 9 of 9) 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 | 101 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()
|
D | futex-wake.c | 112 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()
|
D | futex-lock-pi.c | 135 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()
|
D | futex-hash.c | 129 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()
|
D | futex-requeue.c | 139 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()
|
D | epoll-ctl.c | 225 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()
|
D | epoll-wait.c | 294 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()
|
/tools/testing/selftests/mqueue/ |
D | mq_perf_tests.c | 718 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()
|