| /xnu-11215/osfmk/kern/ |
| H A D | thread.h | 430 * level (clutch_bucket defines a unique thread group and scheduling bucket pair). The argument 472 * may be examined by this thread argument 630 #define WORKQ_QUANTUM_HISTORY_WRITE_ENTRY(thread, ...) ({\ argument 659 void (*sched_call)(int type, thread_t thread); argument 681 …timer_data_t runnable_timer; /* time the thread is runnable (including running)… argument 764 struct thread_test_context *th_test_ctx; /* thread-specific data for kernel tests */ argument 788 ipc_active:1, /* IPC with the thread ports is allowed */ argument 835 #define T_KPERF_AST_CALLSTACK 0x1 /* dump a callstack on thread's next AST */ argument 894 io_stat_info_t thread_io_stats; /* per-thread I/O statistics */ argument 919 /* The preadopt thread group is set on the thread argument [all …]
|
| H A D | thread_act.c | 197 thread_t thread, in thread_start_in_assert_wait() 378 thread_hold(thread_t thread) in thread_hold() 400 thread_release(thread_t thread) in thread_release() 421 thread_suspend(thread_t thread) in thread_suspend() 449 thread_resume(thread_t thread) in thread_resume() 512 thread_t thread) in act_abort() 532 thread_t thread) in thread_abort() 1227 thread_t thread, in thread_raise_exception() 1266 thread_t thread) in thread_debug_return_to_user_ast() 1366 thread_t thread, in act_set_ast() [all …]
|
| H A D | priority.c | 101 thread_t thread = p1; in thread_quantum_expire() local 467 lightweight_update_priority(thread_t thread) in lightweight_update_priority() 632 thread_t thread) in can_update_priority() 650 thread_t thread) in update_priority() 794 sched_run_incr(thread_t thread) in sched_run_incr() 806 sched_run_decr(thread_t thread) in sched_run_decr() 818 sched_smt_run_incr(thread_t thread) in sched_smt_run_incr() 833 sched_smt_run_decr(thread_t thread) in sched_smt_run_decr() 847 sched_update_thread_bucket(thread_t thread) in sched_update_thread_bucket() 887 sched_smt_update_thread_bucket(thread_t thread) in sched_smt_update_thread_bucket() [all …]
|
| H A D | thread.c | 418 thread_is_active(thread_t thread) in thread_is_active() 905 thread_t thread; in thread_exception_queue_invoke() local 973 thread_t thread, in thread_exception_enqueue() 1146 thread_t thread) in thread_terminate_enqueue() 1161 thread_t thread) in thread_deallocate_enqueue() 1232 thread_t thread) in thread_stack_enqueue() 1714 thread_t thread; in thread_create_waiting_internal() local 2249 thread_t thread, in thread_read_times() 3034 thread_t thread) in thread_tid() 3304 thread_t thread) in thread_reference() [all …]
|
| H A D | thread_policy.c | 1054 thread_t thread) in thread_recompute_priority() 1187 thread_t thread, in thread_policy_update_tasklocked() 1240 thread_t thread) in thread_policy_reset() 2500 threquested_0(thread_t thread) in threquested_0() 2510 threquested_1(thread_t thread) in threquested_1() 2521 theffective_0(thread_t thread) in theffective_0() 2530 theffective_1(thread_t thread) in theffective_1() 2618 find_qos_override(thread_t thread, in find_qos_override() 2805 thread_t thread, in proc_thread_qos_add_override() 2903 thread_t thread, in proc_thread_qos_remove_override() [all …]
|
| H A D | kpc_thread.c | 121 kpc_update_thread_counters( thread_t thread ) in kpc_update_thread_counters() 156 thread_t thread = current_thread(); in kpc_get_curthread_counters() local 191 kpc_off_cpu_internal(thread_t thread) in kpc_off_cpu_internal() 199 kpc_thread_create(thread_t thread) in kpc_thread_create() 211 kpc_thread_destroy(thread_t thread) in kpc_thread_destroy() 227 kpc_thread_ast_handler(thread_t thread) in kpc_thread_ast_handler()
|
| H A D | sched_amp.c | 191 amp_runq_for_thread(processor_t processor, thread_t thread) in amp_runq_for_thread() 279 thread_t thread, in sched_amp_processor_enqueue() 303 sched_amp_thread_should_yield(processor_t processor, thread_t thread) in sched_amp_thread_should_yield() 424 thread_t thread; in sched_amp_processor_queue_shutdown() local 456 thread_t thread) in sched_amp_processor_queue_remove() 490 thread_t thread = THREAD_NULL; in sched_amp_steal_thread() local 538 thread_t thread; in sched_amp_thread_update_scan() local 613 pcores_recommended(thread_t thread) in pcores_recommended() 638 sched_amp_thread_avoid_processor(processor_t processor, thread_t thread, __unused ast_t reason) in sched_amp_thread_avoid_processor() 654 sched_amp_choose_processor(processor_set_t pset, processor_t processor, thread_t thread) in sched_amp_choose_processor() [all …]
|
| H A D | lock_rw.c | 1134 thread_t thread = current_thread(); in lck_rw_lock_exclusive_check_contended() local 1170 thread_t thread = current_thread(); variable 1407 thread_t thread = current_thread(); variable 1555 thread_t thread = current_thread(); in lck_rw_lock_shared_to_exclusive_failure() local 1711 thread_t thread = current_thread(); in lck_rw_lock_shared_to_exclusive() local 1812 thread_t thread = current_thread(); in lck_rw_lock_exclusive_to_shared_gen() local 1917 thread_t thread = current_thread(); in lck_rw_try_lock_shared_internal_inline() local 2032 thread_t thread = current_thread(); in lck_rw_try_lock_exclusive_internal_inline() local 2155 thread_t thread; in lck_rw_done_gen() local 2219 thread_t thread = current_thread(); in lck_rw_done() local [all …]
|
| H A D | lock_mtx.c | 253 #define LCK_MTX_SNIFF_PREEMPTION(thread) 0 argument 638 __kdebug_only thread_t thread) in lck_mtx_unlock_wakeup() 979 thread_t thread, in lck_mtx_lock_slow() 1019 thread_t thread = current_thread(); in lck_mtx_lock_fastpath() local 1074 thread_t thread, in lck_mtx_try_lock_slow_inline() 1109 thread_t thread, in lck_mtx_try_lock_slow() 1124 thread_t thread, in lck_mtx_try_lock_slow_spin() 1134 thread_t thread = current_thread(); in lck_mtx_try_lock_fastpath() local 1273 thread_t thread = current_thread(); in lck_mtx_unlock() local 1300 thread_t thread = current_thread(); in lck_mtx_assert() local [all …]
|
| H A D | work_interval.c | 414 work_interval_should_propagate(thread_t cthread, thread_t thread) in work_interval_should_propagate() 479 work_interval_auto_join_unwind(thread_t thread) in work_interval_auto_join_unwind() 497 work_interval_auto_join_demote(thread_t thread) in work_interval_auto_join_demote() 707 work_interval_get_priority(thread_t thread) in work_interval_get_priority() 766 work_interval_set_policy(thread_t thread) in work_interval_set_policy() 807 work_interval_clear_policy(thread_t thread) in work_interval_clear_policy() 841 thread_set_work_interval(thread_t thread, in thread_set_work_interval() 1044 work_interval_thread_terminate(thread_t thread) in work_interval_thread_terminate() 1096 kern_work_interval_create(thread_t thread, in kern_work_interval_create() 1514 kern_work_interval_join(thread_t thread, in kern_work_interval_join() [all …]
|
| H A D | sched_dualq.c | 171 dualq_runq_for_thread(processor_t processor, thread_t thread) in dualq_runq_for_thread() 290 thread_t thread, in sched_dualq_processor_enqueue() 392 thread_t thread; in sched_dualq_processor_queue_shutdown() local 424 thread_t thread) in sched_dualq_processor_queue_remove() 458 thread_t thread; in sched_dualq_steal_thread() local 489 thread_t thread; in sched_dualq_thread_update_scan() local 552 sched_dualq_thread_avoid_processor(processor_t processor, thread_t thread, __unused ast_t reason) in sched_dualq_thread_avoid_processor()
|
| H A D | syscall_subr.c | 201 thread_t thread = THREAD_NULL; in thread_switch() local 349 thread_handoff_internal(thread_t thread, thread_continue_t continuation, in thread_handoff_internal() 387 thread_handoff_parameter(thread_t thread, thread_continue_t continuation, in thread_handoff_parameter() 396 thread_handoff_deallocate(thread_t thread, thread_handoff_option_t option) in thread_handoff_deallocate() 474 thread_t thread = (thread_t)p0; in thread_depress_expire() local 497 thread_depress_abort(thread_t thread) in thread_depress_abort() 525 thread_depress_abort_locked(thread_t thread) in thread_depress_abort_locked()
|
| H A D | stack.c | 188 thread_t thread) in stack_alloc() 208 thread_t thread) in stack_free() 220 thread_t thread) in stack_free_reserved() 270 thread_t thread) in stack_alloc_try() 398 __unused thread_t thread) in stack_privilege() 417 thread_t thread; in processor_set_stack_usage() local
|
| H A D | turnstile.c | 945 thread_t thread, in turnstile_prepare_common() 1090 thread_t thread, in turnstile_complete_common() 1546 thread_t thread) in turnstile_need_thread_promotion_update() 1611 thread_t thread) in turnstile_update_thread_promotion_locked() 1655 thread_t thread, in thread_add_turnstile_promotion() 1725 thread_t thread, in thread_remove_turnstile_promotion() 1826 thread_t thread, in thread_update_turnstile_promotion_locked() 1886 thread_t thread, in thread_update_turnstile_promotion() 2341 thread_t thread) in turnstile_compute_thread_push() 2382 thread_t thread) in turnstile_waitq_add_thread_priority_queue() [all …]
|
| H A D | sched_prim.c | 1135 thread_t thread) in thread_allowed_for_handoff() 1546 thread_t thread) in sched_cond_signal() 1715 thread_t thread) in thread_unstop() 1752 thread_t thread, in thread_wait() 1817 thread_t thread, in clear_wait_internal() 1916 thread_t thread) in thread_wakeup_thread() 4161 thread_t thread) in thread_continue() 4366 thread_t thread) in run_queue_remove() 7292 thread_t thread, in runq_scan_thread() 7339 thread_t thread; in runq_scan() local [all …]
|
| H A D | ast.c | 115 thread_t thread = current_thread(); in ast_taken_kernel() local 161 thread_t thread = current_thread(); in ast_taken_user() local 445 ast_context(thread_t thread) in ast_context() 457 ast_propagate(thread_t thread) in ast_propagate()
|
| H A D | restartable.c | 348 thread_reset_pcs_will_fault(thread_t thread) in thread_reset_pcs_will_fault() 360 thread_reset_pcs_done_faulting(struct thread *thread) in thread_reset_pcs_done_faulting() 383 thread_reset_pcs_ack_IPI(struct thread *thread) in thread_reset_pcs_ack_IPI() 403 thread_rr_wait_if_needed(task_t task, thread_t thread) in thread_rr_wait_if_needed() 491 thread_reset_pcs_in_range(task_t task, thread_t thread) in thread_reset_pcs_in_range() 497 thread_reset_pcs_ast(task_t task, thread_t thread) in thread_reset_pcs_ast() 586 thread_t thread; in task_restartable_ranges_synchronize() local
|
| H A D | affinity.c | 108 thread_affinity_get(thread_t thread) in thread_affinity_get() 128 thread_affinity_set(thread_t thread, uint32_t tag) in thread_affinity_set() 351 thread_affinity_terminate(thread_t thread) in thread_affinity_terminate() 372 thread_affinity_exec(thread_t thread) in thread_affinity_exec() 451 affinity_set_add(affinity_set_t aset, thread_t thread) in affinity_set_add() 471 affinity_set_remove(affinity_set_t aset, thread_t thread) in affinity_set_remove()
|
| /xnu-11215/tests/sched/sched_test_harness/shadow_headers/ |
| H A D | misc_needed_deps.c | 44 struct thread { struct 57 uint64_t thread_id; /* system wide unique thread-id */ argument 67 struct thread_group *thread_group; argument 75 thread_assert_runq_null(__assert_only thread_t thread) in thread_assert_runq_null() 81 thread_assert_runq_nonnull(thread_t thread) in thread_assert_runq_nonnull() 87 thread_clear_runq(thread_t thread) in thread_clear_runq() 94 thread_set_runq_locked(thread_t thread, processor_t new_runq) in thread_set_runq_locked() 101 thread_get_runq_locked(thread_t thread) in thread_get_runq_locked() 108 thread_t thread) in thread_tid() 114 #define recount_thread_time_mach(thread) (thread->mock_recount_time.user_time + thread->mock_recoun… argument [all …]
|
| H A D | sched_prim.c | 126 thread_t thread; in run_queue_dequeue() local 161 thread_t thread, in run_queue_enqueue() 200 thread_t thread) in run_queue_remove() 235 thread_t thread = cqe_queue_first(queue, struct thread, runq_links); in run_queue_peek() local
|
| /xnu-11215/osfmk/arm64/ |
| H A D | status.c | 308 thread_t thread) in thread_generate_sigreturn_token() 326 thread_t thread, in machine_thread_state_convert_to_user() 528 thread_t thread) in machine_thread_state_check_sigreturn_token() 575 thread_t thread, in machine_thread_state_convert_from_user() 792 thread_t thread, in machine_thread_siguctx_pointer_convert_to_user() 826 thread_t thread, in machine_thread_function_pointers_convert_from_user() 1630 machine_thread_pc(thread_t thread) in machine_thread_pc() 1739 get_user_regs(thread_t thread) in get_user_regs() 1755 find_user_regs(thread_t thread) in find_user_regs() 1765 find_kern_regs(thread_t thread) in find_kern_regs() [all …]
|
| H A D | pcb.c | 134 machine_thread_get_sme_state(thread_t thread) in machine_thread_get_sme_state() 339 machine_thread_on_core(thread_t thread) in machine_thread_on_core() 345 machine_thread_on_core_allow_invalid(thread_t thread) in machine_thread_on_core_allow_invalid() 373 machine_thread_create(thread_t thread, task_t task, bool first_thread) in machine_thread_create() 536 machine_thread_destroy(thread_t thread) in machine_thread_destroy() 578 machine_thread_sme_state_alloc(thread_t thread) in machine_thread_sme_state_alloc() 601 machine_thread_sme_state_free(thread_t thread) in machine_thread_sme_state_free() 640 thread_t thread = current_thread(); in machine_thread_matrix_state_dup() local 694 machine_stack_detach(thread_t thread) in machine_stack_detach() 717 machine_stack_attach(thread_t thread, in machine_stack_attach() [all …]
|
| /xnu-11215/osfmk/i386/ |
| H A D | pcb.c | 518 machine_thread_on_core(thread_t thread) in machine_thread_on_core() 548 thread_t thread, in machine_processor_shutdown() 567 thread_t thread) in machine_thread_state_initialize() 854 __unused thread_t thread, in machine_thread_state_convert_to_user() 866 __unused thread_t thread, in machine_thread_state_convert_from_user() 880 __unused thread_t thread, in machine_thread_siguctx_pointer_convert_to_user() 889 __unused thread_t thread, in machine_thread_function_pointers_convert_from_user() 1853 thread_t thread, in machine_thread_get_kern_state() 2060 machine_set_current_thread(thread_t thread) in machine_set_current_thread() 2112 machine_stack_detach(thread_t thread) in machine_stack_detach() [all …]
|
| H A D | bsd_i386.c | 94 __unused thread_t thread, in thread_userstack() 208 __unused thread_t thread, in thread_entrypoint() 740 thread_t thread, in thread_setuserstack() 767 thread_t thread, in thread_adjuserstack() 797 thread_setentrypoint(thread_t thread, mach_vm_address_t entry) in thread_setentrypoint() 817 thread_setsinglestep(thread_t thread, int on) in thread_setsinglestep() 857 find_user_regs(thread_t thread) in find_user_regs() 869 find_kern_regs(thread_t thread) in find_kern_regs()
|
| /xnu-11215/tests/sched/sched_test_harness/ |
| H A D | sched_runqueue_harness.c | 88 test_thread_t thread = impl_create_thread(th_sched_bucket, tg, pri); in create_thread() local 95 set_thread_sched_mode(test_thread_t thread, int mode) in set_thread_sched_mode() 102 set_thread_processor_bound(test_thread_t thread) in set_thread_processor_bound() 109 set_thread_current(test_thread_t thread) in set_thread_current() 122 enqueue_thread(test_thread_t thread) in enqueue_thread() 134 test_thread_t thread = va_arg(args, test_thread_t); in enqueue_threads() local 154 test_thread_t thread = va_arg(args, test_thread_t); in enqueue_threads_rand_order() local 212 test_thread_t thread = va_arg(args, test_thread_t); in dequeue_threads_expect_ordered() local
|