/linux-6.1.9/tools/perf/bench/ |
D | futex-wake-parallel.c | 98 static void wakeup_threads(struct thread_data *td, pthread_attr_t thread_attr) in wakeup_threads() argument 102 pthread_attr_setdetachstate(&thread_attr, PTHREAD_CREATE_JOINABLE); in wakeup_threads() 113 if (pthread_create(&td[i].worker, &thread_attr, in wakeup_threads() 145 static void block_threads(pthread_t *w, pthread_attr_t thread_attr, in block_threads() argument 164 if (pthread_attr_setaffinity_np(&thread_attr, size, cpuset)) { in block_threads() 169 if (pthread_create(&w[i], &thread_attr, blocked_workerfn, NULL)) { in block_threads() 241 pthread_attr_t thread_attr; in bench_futex_wake_parallel() local 297 pthread_attr_init(&thread_attr); in bench_futex_wake_parallel() 308 block_threads(blocked_worker, thread_attr, cpu); in bench_futex_wake_parallel() 320 wakeup_threads(waking_worker, thread_attr); in bench_futex_wake_parallel() [all …]
|
D | futex-wake.c | 99 pthread_attr_t thread_attr, struct perf_cpu_map *cpu) in block_threads() argument 116 if (pthread_attr_setaffinity_np(&thread_attr, size, cpuset)) { in block_threads() 121 if (pthread_create(&w[i], &thread_attr, workerfn, NULL)) { in block_threads() 141 pthread_attr_t thread_attr; in bench_futex_wake() local 181 pthread_attr_init(&thread_attr); in bench_futex_wake() 191 block_threads(worker, thread_attr, cpu); in bench_futex_wake() 231 pthread_attr_destroy(&thread_attr); in bench_futex_wake()
|
D | futex-lock-pi.c | 121 static void create_threads(struct worker *w, pthread_attr_t thread_attr, in create_threads() argument 148 if (pthread_attr_setaffinity_np(&thread_attr, size, cpuset)) { in create_threads() 153 if (pthread_create(&w[i].thread, &thread_attr, workerfn, &worker[i])) { in create_threads() 166 pthread_attr_t thread_attr; in bench_futex_lock_pi() local 206 pthread_attr_init(&thread_attr); in bench_futex_lock_pi() 209 create_threads(worker, thread_attr, cpu); in bench_futex_lock_pi() 210 pthread_attr_destroy(&thread_attr); in bench_futex_lock_pi()
|
D | futex-requeue.c | 125 pthread_attr_t thread_attr, struct perf_cpu_map *cpu) in block_threads() argument 143 if (pthread_attr_setaffinity_np(&thread_attr, size, cpuset)) { in block_threads() 148 if (pthread_create(&w[i], &thread_attr, workerfn, NULL)) { in block_threads() 168 pthread_attr_t thread_attr; in bench_futex_requeue() local 212 pthread_attr_init(&thread_attr); in bench_futex_requeue() 222 block_threads(worker, thread_attr, cpu); in bench_futex_requeue() 304 pthread_attr_destroy(&thread_attr); in bench_futex_requeue()
|
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 | 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()
|
/linux-6.1.9/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()
|
/linux-6.1.9/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()
|