Lines Matching refs:synch_test_common

1024 struct synch_test_common {  struct
1032 init_synch_test_common(struct synch_test_common *info, unsigned int nthreads) in init_synch_test_common() argument
1044 destroy_synch_test_common(struct synch_test_common *info) in destroy_synch_test_common()
1050 start_threads(thread_continue_t func, struct synch_test_common *info, bool sleep_after_first) in start_threads()
1082 get_max_pri(struct synch_test_common * info) in get_max_pri()
1088 wait_all_thread(struct synch_test_common * info) in wait_all_thread()
1094 notify_waiter(struct synch_test_common * info) in notify_waiter()
1100 wait_for_waiters(struct synch_test_common *info) in wait_for_waiters()
1140 exclude_current_waiter(struct synch_test_common *info) in exclude_current_waiter()
1161 struct synch_test_common head;
1527 notify_waiter((struct synch_test_common *)info); in thread_inheritor_like_mutex()
1551 wait_for_waiters((struct synch_test_common *)info); in thread_just_inheritor_do_work()
1553 max_pri = get_max_pri((struct synch_test_common *) info); in thread_just_inheritor_do_work()
1567 notify_waiter((struct synch_test_common *)info); in thread_just_inheritor_do_work()
1585 exclude_current_waiter((struct synch_test_common *)info); in thread_steal_work()
1592 wait_for_waiters((struct synch_test_common *)info); in thread_steal_work()
1603 exclude_current_waiter((struct synch_test_common *)info); in thread_steal_work()
1610 wait_for_waiters((struct synch_test_common *)info); in thread_steal_work()
1622 exclude_current_waiter((struct synch_test_common *)info); in thread_steal_work()
1628 notify_waiter((struct synch_test_common *)info); in thread_steal_work()
1655 notify_waiter((struct synch_test_common *)info); in thread_no_inheritor_work()
1683 wait_for_waiters((struct synch_test_common *)info); in thread_mtx_work()
1684 max_pri = get_max_pri((struct synch_test_common *) info); in thread_mtx_work()
1729 wait_for_waiters((struct synch_test_common *)info); in thread_mtx_work()
1730 max_pri = get_max_pri((struct synch_test_common *) info); in thread_mtx_work()
1755 notify_waiter((struct synch_test_common *)info); in thread_mtx_work()
1789 wait_for_waiters((struct synch_test_common *)info); in thread_rw_work()
1790 max_pri = get_max_pri((struct synch_test_common *) info); in thread_rw_work()
1832 notify_waiter((struct synch_test_common *)info); in thread_rw_work()
2184 notify_waiter((struct synch_test_common *)info); in thread_use_cache()
2236 notify_waiter((struct synch_test_common *)info); in thread_refcount_reflock()
2277 notify_waiter((struct synch_test_common *)info); in thread_force_reflock()
2323 notify_waiter((struct synch_test_common *)info); in thread_lock_reflock()
2341 start_threads((thread_continue_t)thread_use_cache, (struct synch_test_common *)info, FALSE); in test_cache_reflock()
2342 wait_all_thread((struct synch_test_common *)info); in test_cache_reflock()
2356 start_threads((thread_continue_t)thread_refcount_reflock, (struct synch_test_common *)info, FALSE); in test_refcount_reflock()
2357 wait_all_thread((struct synch_test_common *)info); in test_refcount_reflock()
2372 start_threads((thread_continue_t)thread_force_reflock, (struct synch_test_common *)info, FALSE); in test_force_reflock()
2373 wait_all_thread((struct synch_test_common *)info); in test_force_reflock()
2386 start_threads((thread_continue_t)thread_lock_reflock, (struct synch_test_common *)info, FALSE); in test_lock_reflock()
2387 wait_all_thread((struct synch_test_common *)info); in test_lock_reflock()
2401 …start_threads((thread_continue_t)thread_just_inheritor_do_work, (struct synch_test_common *)info, … in test_sleep_with_wake_all()
2402 wait_all_thread((struct synch_test_common *)info); in test_sleep_with_wake_all()
2416 …start_threads((thread_continue_t)thread_inheritor_like_mutex, (struct synch_test_common *)info, FA… in test_sleep_with_wake_one()
2417 wait_all_thread((struct synch_test_common *)info); in test_sleep_with_wake_one()
2433 start_threads((thread_continue_t)thread_steal_work, (struct synch_test_common *)info, FALSE); in test_change_sleep_inheritor()
2434 wait_all_thread((struct synch_test_common *)info); in test_change_sleep_inheritor()
2447 …start_threads((thread_continue_t)thread_no_inheritor_work, (struct synch_test_common *)info, FALSE… in test_no_inheritor()
2448 wait_all_thread((struct synch_test_common *)info); in test_no_inheritor()
2459 start_threads((thread_continue_t)thread_rw_work, (struct synch_test_common *)info, FALSE); in test_rw_lock()
2460 wait_all_thread((struct synch_test_common *)info); in test_rw_lock()
2471 start_threads((thread_continue_t)thread_mtx_work, (struct synch_test_common *)info, FALSE); in test_mtx_lock()
2472 wait_all_thread((struct synch_test_common *)info); in test_mtx_lock()
2480 init_synch_test_common((struct synch_test_common *)&info, NUM_THREADS); in ts_kernel_sleep_inheritor_test()
2565 destroy_synch_test_common((struct synch_test_common *)&info); in ts_kernel_sleep_inheritor_test()
2591 exclude_current_waiter((struct synch_test_common *)info); in thread_gate_aggressive()
2596 wait_for_waiters((struct synch_test_common *)info); in thread_gate_aggressive()
2608 exclude_current_waiter((struct synch_test_common *)info); in thread_gate_aggressive()
2614 wait_for_waiters((struct synch_test_common *)info); in thread_gate_aggressive()
2625 exclude_current_waiter((struct synch_test_common *)info); in thread_gate_aggressive()
2631 notify_waiter((struct synch_test_common *)info); in thread_gate_aggressive()
2653 wait_for_waiters((struct synch_test_common *) info); in thread_gate_free()
2667 notify_waiter((struct synch_test_common *)info); in thread_gate_free()
2715 notify_waiter((struct synch_test_common *)info); in thread_gate_like_mutex()
2740 wait_for_waiters((struct synch_test_common *)info); in thread_just_one_do_work()
2741 max_pri = get_max_pri((struct synch_test_common *) info); in thread_just_one_do_work()
2758 notify_waiter((struct synch_test_common *)info); in thread_just_one_do_work()
2773 start_threads((thread_continue_t)thread_just_one_do_work, (struct synch_test_common *) info, TRUE); in test_gate_push()
2774 wait_all_thread((struct synch_test_common *)info); in test_gate_push()
2792 start_threads((thread_continue_t)thread_gate_like_mutex, (struct synch_test_common *)info, false); in test_gate_handoff()
2793 wait_all_thread((struct synch_test_common *)info); in test_gate_handoff()
2814 start_threads((thread_continue_t)thread_gate_aggressive, (struct synch_test_common *)info, FALSE); in test_gate_steal()
2815 wait_all_thread((struct synch_test_common *)info); in test_gate_steal()
2833 start_threads((thread_continue_t)thread_gate_free, (struct synch_test_common *)info, FALSE); in test_gate_alloc_free()
2834 wait_all_thread((struct synch_test_common *)info); in test_gate_alloc_free()
2847 init_synch_test_common((struct synch_test_common *)&info, NUM_THREADS); in ts_kernel_gate_test()
2896 destroy_synch_test_common((struct synch_test_common *)&info); in ts_kernel_gate_test()
2909 struct synch_test_common head;
2941 max_pri = get_max_pri((struct synch_test_common *) info); in thread_sleep_gate_chain_work()
2958 wait_for_waiters((struct synch_test_common *)info); in thread_sleep_gate_chain_work()
3008 notify_waiter((struct synch_test_common *)info); in thread_sleep_gate_chain_work()
3033 max_pri = get_max_pri((struct synch_test_common *) info); in thread_gate_chain_work()
3051 wait_for_waiters((struct synch_test_common *)info); in thread_gate_chain_work()
3071 notify_waiter((struct synch_test_common *)info); in thread_gate_chain_work()
3099 max_pri = get_max_pri((struct synch_test_common *) info); in thread_sleep_chain_work()
3104 wait_for_waiters((struct synch_test_common *)info); in thread_sleep_chain_work()
3149 notify_waiter((struct synch_test_common *)info); in thread_sleep_chain_work()
3160 start_threads((thread_continue_t)thread_sleep_chain_work, (struct synch_test_common *)info, FALSE); in test_sleep_chain()
3161 wait_all_thread((struct synch_test_common *)info); in test_sleep_chain()
3171 start_threads((thread_continue_t)thread_gate_chain_work, (struct synch_test_common *)info, FALSE); in test_gate_chain()
3172 wait_all_thread((struct synch_test_common *)info); in test_gate_chain()
3182 …start_threads((thread_continue_t)thread_sleep_gate_chain_work, (struct synch_test_common *)info, F… in test_sleep_gate_chain()
3183 wait_all_thread((struct synch_test_common *)info); in test_sleep_gate_chain()
3192 init_synch_test_common((struct synch_test_common *)&info, NUM_THREAD_CHAIN); in ts_kernel_turnstile_chain_test()
3211 destroy_synch_test_common((struct synch_test_common *)&info); in ts_kernel_turnstile_chain_test()