/linux-5.19.10/tools/perf/bench/ |
D | futex-wake-parallel.c | 97 static void wakeup_threads(struct thread_data *td, pthread_attr_t thread_attr) in wakeup_threads() argument 101 pthread_attr_setdetachstate(&thread_attr, PTHREAD_CREATE_JOINABLE); in wakeup_threads() 112 if (pthread_create(&td[i].worker, &thread_attr, in wakeup_threads() 144 static void block_threads(pthread_t *w, pthread_attr_t thread_attr, in block_threads() argument 163 if (pthread_attr_setaffinity_np(&thread_attr, size, cpuset)) { in block_threads() 168 if (pthread_create(&w[i], &thread_attr, blocked_workerfn, NULL)) { in block_threads() 240 pthread_attr_t thread_attr; in bench_futex_wake_parallel() local 296 pthread_attr_init(&thread_attr); in bench_futex_wake_parallel() 307 block_threads(blocked_worker, thread_attr, cpu); in bench_futex_wake_parallel() 319 wakeup_threads(waking_worker, thread_attr); in bench_futex_wake_parallel() [all …]
|
D | futex-wake.c | 98 pthread_attr_t thread_attr, struct perf_cpu_map *cpu) in block_threads() argument 115 if (pthread_attr_setaffinity_np(&thread_attr, size, cpuset)) { in block_threads() 120 if (pthread_create(&w[i], &thread_attr, workerfn, NULL)) { in block_threads() 140 pthread_attr_t thread_attr; in bench_futex_wake() local 180 pthread_attr_init(&thread_attr); in bench_futex_wake() 190 block_threads(worker, thread_attr, cpu); in bench_futex_wake() 230 pthread_attr_destroy(&thread_attr); in bench_futex_wake()
|
D | futex-lock-pi.c | 120 static void create_threads(struct worker *w, pthread_attr_t thread_attr, in create_threads() argument 147 if (pthread_attr_setaffinity_np(&thread_attr, size, cpuset)) { in create_threads() 152 if (pthread_create(&w[i].thread, &thread_attr, workerfn, &worker[i])) { in create_threads() 165 pthread_attr_t thread_attr; in bench_futex_lock_pi() local 205 pthread_attr_init(&thread_attr); in bench_futex_lock_pi() 208 create_threads(worker, thread_attr, cpu); in bench_futex_lock_pi() 209 pthread_attr_destroy(&thread_attr); in bench_futex_lock_pi()
|
D | futex-requeue.c | 124 pthread_attr_t thread_attr, struct perf_cpu_map *cpu) in block_threads() argument 142 if (pthread_attr_setaffinity_np(&thread_attr, size, cpuset)) { in block_threads() 147 if (pthread_create(&w[i], &thread_attr, workerfn, NULL)) { in block_threads() 167 pthread_attr_t thread_attr; in bench_futex_requeue() local 211 pthread_attr_init(&thread_attr); in bench_futex_requeue() 221 block_threads(worker, thread_attr, cpu); in bench_futex_requeue() 303 pthread_attr_destroy(&thread_attr); in bench_futex_requeue()
|
D | futex-hash.c | 128 pthread_attr_t thread_attr; in bench_futex_hash() local 173 pthread_attr_init(&thread_attr); in bench_futex_hash() 190 ret = pthread_attr_setaffinity_np(&thread_attr, size, cpuset); in bench_futex_hash() 195 ret = pthread_create(&worker[i].thread, &thread_attr, workerfn, in bench_futex_hash() 204 pthread_attr_destroy(&thread_attr); in bench_futex_hash()
|
D | epoll-ctl.c | 224 pthread_attr_t thread_attr, *attrp = NULL; in do_threads() local 232 pthread_attr_init(&thread_attr); in do_threads() 266 ret = pthread_attr_setaffinity_np(&thread_attr, size, cpuset); in do_threads() 272 attrp = &thread_attr; in do_threads() 285 pthread_attr_destroy(&thread_attr); in do_threads()
|
D | epoll-wait.c | 293 pthread_attr_t thread_attr, *attrp = NULL; in do_threads() local 309 pthread_attr_init(&thread_attr); in do_threads() 355 ret = pthread_attr_setaffinity_np(&thread_attr, size, cpuset); in do_threads() 361 attrp = &thread_attr; in do_threads() 374 pthread_attr_destroy(&thread_attr); in do_threads()
|
/linux-5.19.10/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-5.19.10/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()
|