Home
last modified time | relevance | path

Searched refs:thread_attr (Results 1 – 9 of 9) sorted by relevance

/linux-5.19.10/tools/perf/bench/
Dfutex-wake-parallel.c97 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 …]
Dfutex-wake.c98 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()
Dfutex-lock-pi.c120 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()
Dfutex-requeue.c124 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()
Dfutex-hash.c128 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()
Depoll-ctl.c224 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()
Depoll-wait.c293 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/
Dtest-pthread-attr-setaffinity-np.c9 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/
Dmq_perf_tests.c718 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()