Searched refs:thread_attr (Results 1 – 4 of 4) sorted by relevance
/tools/perf/bench/ |
D | futex-wake.c | 81 pthread_attr_t thread_attr) in block_threads() argument 93 if (pthread_attr_setaffinity_np(&thread_attr, sizeof(cpu_set_t), &cpu)) in block_threads() 96 if (pthread_create(&w[i], &thread_attr, workerfn, NULL)) in block_threads() 114 pthread_attr_t thread_attr; in bench_futex_wake() local 144 pthread_attr_init(&thread_attr); in bench_futex_wake() 154 block_threads(worker, thread_attr); in bench_futex_wake() 192 pthread_attr_destroy(&thread_attr); in bench_futex_wake()
|
D | futex-requeue.c | 80 pthread_attr_t thread_attr) in block_threads() argument 92 if (pthread_attr_setaffinity_np(&thread_attr, sizeof(cpu_set_t), &cpu)) in block_threads() 95 if (pthread_create(&w[i], &thread_attr, workerfn, NULL)) in block_threads() 113 pthread_attr_t thread_attr; in bench_futex_requeue() local 141 pthread_attr_init(&thread_attr); in bench_futex_requeue() 151 block_threads(worker, thread_attr); in bench_futex_requeue() 202 pthread_attr_destroy(&thread_attr); in bench_futex_requeue()
|
D | futex-hash.c | 116 pthread_attr_t thread_attr; in bench_futex_hash() local 150 pthread_attr_init(&thread_attr); in bench_futex_hash() 161 ret = pthread_attr_setaffinity_np(&thread_attr, sizeof(cpu_set_t), &cpu); in bench_futex_hash() 165 ret = pthread_create(&worker[i].thread, &thread_attr, workerfn, in bench_futex_hash() 171 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()
|