| /xnu-12377.61.12/tests/sched/sched_test_harness/ |
| H A D | sched_harness_impl.h | 13 extern test_thread_t impl_create_thread(int th_sched_bucket, struct thread_group *tg, int p… 14 extern void impl_set_thread_sched_mode(test_thread_t thread, int mode); 15 extern bool impl_get_thread_is_realtime(test_thread_t thread); 16 extern void impl_set_thread_processor_bound(test_thread_t thread, int cpu_id); 17 extern void impl_cpu_set_thread_current(int cpu_id, test_thread_t thread); 18 extern test_thread_t impl_cpu_clear_thread_current(int cpu_id); 19 extern void impl_cpu_enqueue_thread(int cpu_id, test_thread_t thread); 20 extern test_thread_t impl_cpu_dequeue_thread(int cpu_id); 21 extern test_thread_t impl_cpu_dequeue_thread_compare_current(int cpu_id); 26 extern void impl_send_ipi(int cpu_id, test_thread_t thread, test_ipi_event_t event… [all …]
|
| H A D | sched_runqueue_harness.h | 10 typedef void *test_thread_t; typedef 44 extern test_thread_t create_thread(int th_sched_bucket, struct thread_group *tg, int pri); 45 extern void set_thread_sched_mode(test_thread_t thread, int mode); 46 extern void set_thread_processor_bound(test_thread_t thread, int cpu_id); 47 extern void cpu_set_thread_current(int cpu_id, test_thread_t thread); 48 extern test_thread_t cpu_clear_thread_current(int cpu_id); 50 extern void enqueue_thread(test_runq_target_t runq_target, test_thread_t thread); 52 … enqueue_threads_arr(test_runq_target_t runq_target, int num_threads, test_thread_t *threads); 54 …test_runq_target_t runq_target, unsigned int random_seed, int num_threads, test_thread_t *threads); 55 extern bool dequeue_thread_expect(test_runq_target_t runq_target, test_thread_t ex… [all …]
|
| H A D | sched_runqueue_harness.c | 136 test_thread_t 139 test_thread_t thread = impl_create_thread(th_sched_bucket, tg, pri); in create_thread() 146 set_thread_sched_mode(test_thread_t thread, int mode) in set_thread_sched_mode() 153 set_thread_processor_bound(test_thread_t thread, int cpu_id) in set_thread_processor_bound() 160 cpu_set_thread_current(int cpu_id, test_thread_t thread) in cpu_set_thread_current() 166 test_thread_t 204 cpu_enqueue_thread(int cpu_id, test_thread_t thread) in cpu_enqueue_thread() 231 enqueue_thread(test_runq_target_t runq_target, test_thread_t thread) in enqueue_thread() 243 test_thread_t thread = va_arg(args, test_thread_t); in enqueue_threads() 250 enqueue_threads_arr(test_runq_target_t runq_target, int num_threads, test_thread_t *threads) in enqueue_threads_arr() [all …]
|
| H A D | sched_clutch_harness.c | 28 test_thread_t 35 impl_set_thread_processor_bound(test_thread_t thread, int cpu_id) in impl_set_thread_processor_bound() 41 impl_cpu_set_thread_current(int cpu_id, test_thread_t thread) in impl_cpu_set_thread_current() 46 test_thread_t 53 impl_cpu_enqueue_thread(int cpu_id, test_thread_t thread) in impl_cpu_enqueue_thread() 62 test_thread_t 65 test_thread_t chosen_thread = sched_rt_choose_thread(cpus[cpu_id]); in impl_cpu_dequeue_thread() 73 test_thread_t
|
| H A D | sched_migration_harness.h | 44 extern void set_thread_cluster_bound(test_thread_t thread, int cluster_id); 45 extern int choose_pset_for_thread(test_thread_t thread); 46 extern bool choose_pset_for_thread_expect(test_thread_t thread, int expected_cluster_id); 47 extern test_thread_t cpu_steal_thread(int cpu_id); 49 extern bool thread_avoid_processor_expect(test_thread_t thread, int cpu_id, bool quantum_expir… 70 extern void cpu_send_ipi_for_thread(int cpu_id, test_thread_t thread, test_ipi_event_t event);
|
| H A D | sched_clutch_harness.h | 27 extern test_thread_t clutch_impl_create_thread(int root_bucket, struct thread_group *tg, int pri); 28 extern void clutch_impl_set_thread_sched_mode(test_thread_t thread, int mode); 29 extern void clutch_impl_set_thread_processor_bound(test_thread_t thread, int cpu_id); 30 extern void clutch_impl_cpu_set_thread_current(int cpu_id, test_thread_t thread); 31 extern test_thread_t clutch_impl_cpu_clear_thread_current(int cpu_id);
|
| H A D | sched_edge_harness.c | 228 test_thread_t 235 impl_set_thread_processor_bound(test_thread_t thread, int cpu_id) in impl_set_thread_processor_bound() 242 impl_set_thread_cluster_bound(test_thread_t thread, int cluster_id) in impl_set_thread_cluster_bound() 265 impl_cpu_set_thread_current(int cpu_id, test_thread_t thread) in impl_cpu_set_thread_current() 290 test_thread_t 294 test_thread_t thread = clutch_impl_cpu_clear_thread_current(cpu_id); in impl_cpu_clear_thread_current() 302 impl_cpu_enqueue_thread(int cpu_id, test_thread_t thread) in impl_cpu_enqueue_thread() 312 test_thread_t 316 test_thread_t chosen_thread = sched_rt_choose_thread(cpus[cpu_id]); in impl_cpu_dequeue_thread() 324 test_thread_t [all …]
|
| H A D | sched_migration_harness.c | 33 set_thread_cluster_bound(test_thread_t thread, int cluster_id) in set_thread_cluster_bound() 40 choose_pset_for_thread(test_thread_t thread) in choose_pset_for_thread() 48 choose_pset_for_thread_expect(test_thread_t thread, int expected_cluster_id) in choose_pset_for_thread_expect() 57 thread_avoid_processor_expect(test_thread_t thread, int cpu_id, bool quantum_expiry, bool avoid_exp… in thread_avoid_processor_expect() 72 test_thread_t 75 test_thread_t stolen_thread = impl_steal_thread(cpu_id); in cpu_steal_thread() 138 cpu_send_ipi_for_thread(int cpu_id, test_thread_t thread, test_ipi_event_t event) in cpu_send_ipi_for_thread()
|
| H A D | sched_clutch_harness_impl.c | 227 test_thread_t 262 impl_set_thread_sched_mode(test_thread_t thread, int mode) in impl_set_thread_sched_mode() 268 impl_get_thread_is_realtime(test_thread_t thread) in impl_get_thread_is_realtime() 274 clutch_impl_set_thread_processor_bound(test_thread_t thread, int cpu_id) in clutch_impl_set_thread_processor_bound() 280 clutch_impl_cpu_set_thread_current(int cpu_id, test_thread_t thread) in clutch_impl_cpu_set_thread_current() 298 test_thread_t 301 test_thread_t thread = cpus[cpu_id]->active_thread; in clutch_impl_cpu_clear_thread_current() 361 static test_thread_t 370 impl_set_thread_realtime(test_thread_t thread, uint32_t period, uint32_t computation, uint32_t cons… in impl_set_thread_realtime()
|
| H A D | sched_edge_harness.h | 12 extern void edge_set_thread_shared_rsrc(test_thread_t thread, bool native_first);
|
| /xnu-12377.61.12/tests/sched/ |
| H A D | clutch_runqueue.c | 26 …test_thread_t lowest_bound = create_thread(TH_BUCKET_SHARE_BG, low_tg, root_bucket_to_highest_pri[… 28 …test_thread_t highest_bound = create_thread(TH_BUCKET_SHARE_IN, high_tg, root_bucket_to_highest_pr… 30 …test_thread_t lowest_unbound = create_thread(TH_BUCKET_SHARE_BG, low_tg, root_bucket_to_highest_pr… 31 …test_thread_t highest_unbound = create_thread(TH_BUCKET_SHARE_IN, high_tg, root_bucket_to_highest_… 41 …test_thread_t bound = create_thread(TH_BUCKET_SHARE_DF, low_tg, root_bucket_to_highest_pri[TH_BUCK… 43 …test_thread_t higherpri_unbound = create_thread(TH_BUCKET_SHARE_DF, low_tg, root_bucket_to_highest… 44 …test_thread_t interactive_higherpri_unbound = create_thread(TH_BUCKET_SHARE_DF, high_tg, root_buck… 45 …test_thread_t interactive_lowerpri_unbound = create_thread(TH_BUCKET_SHARE_DF, high_tg, root_bucke… 62 …test_thread_t aboveui = create_thread(TH_BUCKET_FIXPRI, same_tg, root_bucket_to_highest_pri[TH_BUC… 64 …test_thread_t low_fg = create_thread(TH_BUCKET_SHARE_FG, same_tg, root_bucket_to_highest_pri[TH_BU… [all …]
|
| H A D | edge_runqueue.c | 41 …test_thread_t unbound_aboveui = create_thread(TH_BUCKET_FIXPRI, same_tg, root_bucket_to_highest_pr… 43 …test_thread_t bound_aboveui = create_thread(TH_BUCKET_FIXPRI, same_tg, root_bucket_to_highest_pri[… 46 …test_thread_t unbound_timeshare_fg = create_thread(TH_BUCKET_SHARE_FG, same_tg, root_bucket_to_hig… 47 …test_thread_t bound_timeshare_fg = create_thread(TH_BUCKET_SHARE_FG, same_tg, root_bucket_to_highe… 71 test_thread_t threads[num_threads]; 92 test_thread_t tie_break_threads[num_tie_break_threads]; 116 …test_thread_t low_iscore_bound = create_thread(TH_BUCKET_SHARE_DF, low_iscore_tg, root_bucket_to_h… 118 …test_thread_t high_iscore_bound = create_thread(TH_BUCKET_SHARE_DF, high_iscore_tg, root_bucket_to…
|
| H A D | rt_migration.c | 37 test_thread_t threads[dual_die.num_psets]; 89 test_thread_t earlier_threads[topo.total_cpus] = {}; 97 test_thread_t later_thread = create_thread(TH_BUCKET_FIXPRI, tg, BASEPRI_RTQUEUES); 267 test_thread_t thread = create_thread( in create_realtime_thread_with_deadline() 304 test_thread_t later_deadline_thread = create_realtime_thread_with_deadline(later_deadline); 305 test_thread_t earlier_deadline_thread = create_realtime_thread_with_deadline(deadline); 308 test_thread_t stealable_thread = create_realtime_thread_with_deadline(deadline); 364 test_thread_t thread = create_realtime_thread_with_deadline(deadline); 375 test_thread_t saved_idle_thread = cpu_clear_thread_current(idle_cpu);
|
| H A D | edge_migration.c | 19 test_thread_t threads[dual_die.num_psets]; 67 …test_thread_t background = create_thread(TH_BUCKET_SHARE_BG, tg, root_bucket_to_highest_pri[TH_BUC… 68 …test_thread_t yielder = create_thread(TH_BUCKET_SHARE_DF, tg, root_bucket_to_highest_pri[TH_BUCKET… 98 …test_thread_t starts_p = create_thread(TH_BUCKET_SHARE_DF, tg, root_bucket_to_highest_pri[TH_BUCKE… 99 …test_thread_t starts_e = create_thread(TH_BUCKET_SHARE_DF, tg, root_bucket_to_highest_pri[TH_BUCKE… 123 …test_thread_t other_expired_thread = create_thread(TH_BUCKET_SHARE_DF, tg, root_bucket_to_highest_… 149 …test_thread_t other_p_thread = create_thread(TH_BUCKET_SHARE_DF, tg, root_bucket_to_highest_pri[TH… 374 test_thread_t load_threads[max_load_threads];
|