Searched refs:spin (Results 1 – 11 of 11) sorted by relevance
| /xnu-12377.1.9/tests/ |
| H A D | manual_wq_cooperative.c | 181 spin(uint64_t spin_duration_nsecs) in spin() function 200 spin(get_rand_spin_duration_nsecs()); in worker_cb_stress() 205 spin(get_rand_spin_duration_nsecs()); in worker_cb_stress() 210 spin(get_rand_spin_duration_nsecs()); in worker_cb_stress()
|
| H A D | stackshot_accuracy.m | 40 child_recurse(int r, int spin, void (^cb)(void)) 43 child_recurse(r - 1, spin, cb); 49 if (spin == 0) { 51 } else if (spin == 2) { 305 parent_helper_singleproc(int spin) 315 child_recurse(RECURSIONS, spin, ^{
|
| H A D | stackshot_idle_25570396.m | 146 * shared semaphore. This should spin up plenty of threads! */ 177 /* Dispatch NUMENQUEUES jobs to a concurrent queue that spin in a tight loop.
|
| /xnu-12377.1.9/osfmk/kern/ |
| H A D | lock_stat.h | 202 lck_mtx_acquire_probe(bool spin, bool try_lock) in lck_mtx_acquire_probe() argument 204 if (spin) { in lck_mtx_acquire_probe() 404 #define LCK_MTX_ACQUIRED(mtx, grp, spin, profile) \ argument 405 lck_mtx_prof_probe(lck_mtx_acquire_probe(spin, false), mtx, grp, profile) 407 #define LCK_MTX_TRY_ACQUIRED(mtx, grp, spin, profile) \ argument 408 lck_mtx_prof_probe(lck_mtx_acquire_probe(spin, true), mtx, grp, profile)
|
| H A D | lock_mtx.c | 1079 bool spin) in lck_mtx_try_lock_slow_inline() argument 1089 spin, odata & LCK_MTX_PROFILE); in lck_mtx_try_lock_slow_inline() 1097 if (spin) { in lck_mtx_try_lock_slow_inline()
|
| /xnu-12377.1.9/tests/ktrace/ |
| H A D | kperf_backtracing_tests.c | 468 static volatile bool spin = true; variable 478 while (spin); in recurse_spin()
|
| /xnu-12377.1.9/tests/cpu_counters/ |
| H A D | kpc_tests.c | 193 spin(void *arg) in spin() function 314 pthread_t *threads = start_threads(&mch, spin, &until); 582 (void)start_threads(&mch, spin, &stop);
|
| /xnu-12377.1.9/tests/recount/ |
| H A D | recount_tests.c | 51 volatile int *spin = arg; in spin_thread() local 52 while (*spin); in spin_thread()
|
| /xnu-12377.1.9/tests/sched/ |
| H A D | setitimer.c | 700 bool *spin = arg; in cpu_thread_main() local 701 while (*spin) { in cpu_thread_main()
|
| /xnu-12377.1.9/doc/observability/ |
| H A D | mt_stackshot.md | 150 notices it is set, it will spin in place. Before the initiating CPU spins in
|
| /xnu-12377.1.9/bsd/net/ |
| H A D | route.c | 3898 rt_lock(struct rtentry *rt, boolean_t spin) in rt_lock() argument 3901 if (spin) { in rt_lock()
|