Home
last modified time | relevance | path

Searched refs:get_threadtask (Results 1 – 25 of 53) sorted by relevance

123

/xnu-11417.140.69/osfmk/kperf/
H A Dlazy.c100 task_t task = get_threadtask(thread); in kperf_lazy_wait_sample()
147 task_t task = get_threadtask(thread); in kperf_lazy_cpu_sample()
H A Dkperf.c209 int pid = task_pid(get_threadtask(thread)); in kperf_on_cpu_internal()
H A Daction.c448 task_t task = get_threadtask(thread); in kperf_kdebug_handler()
509 task_t task = get_threadtask(thread); in kperf_thread_ast_handler()
H A Dthread_samplers.c298 task_t task = get_threadtask(thread); in kperf_thread_dispatch_sample()
H A Dcallstack.c75 (void)vm_map_read_user(get_task_map(get_threadtask(thread)), sp_user, in callstack_fixup_user()
602 task = get_threadtask(thread); in chudxnu_thread_get_callstack64_internal()
1211 task_t task = get_threadtask(thread);
/xnu-11417.140.69/osfmk/kern/
H A Dthread_act.c120 task_t target_task = get_threadtask(thread); in thread_set_state_allowed()
294 task = get_threadtask(thread); in thread_terminate()
355 task = get_threadtask(thread); in thread_terminate_pinned()
382 task_t task = get_threadtask(thread); in thread_hold()
426 if (thread == THREAD_NULL || get_threadtask(thread) == kernel_task) { in thread_suspend()
454 if (thread == THREAD_NULL || get_threadtask(thread) == kernel_task) { in thread_resume()
735 task_t target_task = get_threadtask(thread); in thread_set_state_internal()
1262 task = get_threadtask(thread); in thread_raise_exception()
H A Daffinity.c130 task_t task = get_threadtask(thread); in thread_affinity_set()
335 assert(aspc == get_threadtask(parent)->affinity_space); in thread_affinity_dup()
336 assert(aspc == get_threadtask(child)->affinity_space); in thread_affinity_dup()
H A Dextmod_statistics.c98 ttask = get_threadtask(target); in extmod_statistics_incr_thread_set_state()
H A Dthread_policy.c523 if (get_threadtask(thread) != current_task()) { in thread_policy_set_internal()
977 task_t task = get_threadtask(thread); in thread_update_qos_cpu_time_locked()
1266 sched_mode_t newmode = SCHED(initial_thread_sched_mode)(get_threadtask(thread)); in thread_policy_reset()
1631 const struct task_effective_policy task_effective = get_threadtask(thread)->effective_policy; in thread_policy_update_internal_spinlocked()
1977 proc_apply_task_networkbg(task_pid(get_threadtask(thread)), thread); in thread_policy_update_complete_unlocked()
2398 get_threadtask(thread)->effective_policy.tep_all_sockets_bg) ? 1 : 0; in proc_get_effective_thread_policy()
2513 return *(uintptr_t*)&get_threadtask(thread)->requested_policy; in threquested_1()
2533 return *(uintptr_t*)&get_threadtask(thread)->effective_policy; in theffective_1()
2826 assert(get_threadtask(thread) == task); in proc_thread_qos_add_override()
2921 assert(task == get_threadtask(thread)); in proc_thread_qos_remove_override()
[all …]
H A Dtelemetry.c304 if (get_threadtask(thread) == kernel_task) { in telemetry_pmi_handler()
884 task_t task = get_threadtask(thread); in telemetry_take_sample()
927 task = get_threadtask(thread); in telemetry_macf_take_sample()
1041 struct task *task = get_threadtask(target->thread); in _write_task_snapshot()
1284 task_t const task = get_threadtask(thread); in telemetry_process_sample()
1546 task_t task = get_threadtask(thread); in telemetry_macf_mark_curthread()
H A Dsfi.c742 task_t task = get_threadtask(thread); in sfi_thread_classify()
953 ledger_credit(get_threadtask(self)->ledger, in _sfi_wait_cleanup()
1171 task_t task = get_threadtask(thread); in sfi_thread_classify()
H A Dpriority.c143 recount_switch_thread(&snap, thread, get_threadtask(thread)); in thread_quantum_expire()
229 if (get_threadtask(thread) == kernel_task) { in thread_quantum_expire()
580 if (get_threadtask(thread)->max_priority > MAXPRI_THROTTLE) { in sched_compute_timeshare_priority()
H A Dast.c162 task_t task = get_threadtask(thread); in ast_taken_user()
H A Dbsd_kern.c215 task_t task = get_threadtask(th); in thread_task_has_ldt()
434 if (task != get_threadtask(thread)) { in swap_task_map()
854 get_threadtask(thread_t th) in get_threadtask() function
867 return get_threadtask(th); in get_threadtask_early()
H A Dthread.c805 task = get_threadtask(thread); in thread_deallocate_complete()
1035 task_t task = get_threadtask(thread); in thread_terminate_queue_invoke()
2458 if (get_threadtask(thread) == kernel_task) { in thread_ast_mach_exception()
2560 task_t task = get_threadtask(t); in mach_exception_ast()
2798 task_t task = get_threadtask(thread); in thread_update_io_stats()
3262 task = get_threadtask(thread); in thread_dispatchqaddr()
3290 task = get_threadtask(thread); in thread_wqquantum_addr()
3318 task = get_threadtask(thread); in thread_rettokern_addr()
3672 task_t task = get_threadtask(thread); in thread_supports_cooperative_workqueue()
H A Dprocessor.c1533 task = get_threadtask(thread); in processor_set_things()
1592 task = get_threadtask(thread_list[i]); in processor_set_things()
1786 task_t task = get_threadtask(thread); in recommended_pset_type()
1818 if (get_threadtask(thread) == kernel_task) { in recommended_pset_type()
H A Dexception.c252 task = get_threadtask(thread); in exception_deliver()
1056 ip_in_space_noauth(xport, get_threadtask(thread)->itk_space)) { in sys_perf_notify()
H A Dthread.h1588 extern task_t get_threadtask(thread_t) __pure2;
1596 task_has_64Bit_addr(get_threadtask(thd))
1602 task_has_64Bit_data(get_threadtask(thd))
/xnu-11417.140.69/bsd/kern/
H A Dkern_fork.c326 child_proc = (proc_t)(get_bsdtask_info(get_threadtask(child_thread))); in fork1()
376 task_bank_init(get_threadtask(child_thread)); in fork1()
588 child_task = (task_t)get_threadtask(child_thread); in fork()
632 task_clear_return_wait(get_threadtask(child_thread), TCRW_CLEAR_ALL_WAIT); in fork()
725 child_task = get_threadtask(child_thread); in cloneproc()
H A Dkern_exec.c1350 task = new_task = get_threadtask(thread); in exec_mach_imgact()
2649 task_t task = get_threadtask(imgp->ip_new_thread); in exec_handle_port_actions()
2834 task_t task = get_threadtask(imgp->ip_new_thread); in exec_handle_exception_port_actions()
4065 new_task = get_threadtask(imgp->ip_new_thread); in posix_spawn()
4119 new_task = get_threadtask(imgp->ip_new_thread); in posix_spawn()
4708 task_clear_return_wait(get_threadtask(imgp->ip_new_thread), TCRW_CLEAR_INITIAL_WAIT); in posix_spawn()
4978 task_clear_return_wait(get_threadtask(imgp->ip_new_thread), clearwait_flags); in posix_spawn()
5048 assert(get_threadtask(new_thread) == new_task); in proc_exec_switch_task()
5341 new_task = get_threadtask(imgp->ip_new_thread); in __mac_execve()
5368 new_task = get_threadtask(imgp->ip_new_thread); in __mac_execve()
[all …]
/xnu-11417.140.69/osfmk/i386/
H A Dpcb_native.c471 bool save_old = (old != NULL && get_threadtask(old) != kernel_task); in i386_switch_lbrs()
472 bool restore_new = (get_threadtask(new) != kernel_task); in i386_switch_lbrs()
601 if ((pcb->cthread_self != 0) || (get_threadtask(new) != kernel_task)) { in act_machine_switch_pcb()
894 if (get_threadtask(thread) == kernel_task) { in machine_thread_set_tsd_base()
H A Duser_ldt.c401 task_t task = get_threadtask(thread); in user_ldt_set()
/xnu-11417.140.69/osfmk/ipc/
H A Dipc_policy.c763 (get_threadtask(t)->task_exc_guard & TASK_EXC_GUARD_MP_FATAL)) { in mach_port_guard_exception()
836 task_t task = get_threadtask(t); in mach_port_guard_ast()
/xnu-11417.140.69/osfmk/arm/
H A Dmachine_routines_common.c446 recount_add_energy(old, get_threadtask(old), in machine_switch_perfcontrol_context()
484 recount_add_energy(thread, get_threadtask(thread), data.energy_estimate_nj); in machine_switch_perfcontrol_state_update()
514 on_core.is_kernel_thread = get_threadtask(new_thread) == kernel_task; in machine_thread_going_on_core()
/xnu-11417.140.69/bsd/dev/dtrace/
H A Dfbt_blacklist.c158 CRITICAL(get_threadtask)

123