| /xnu-11215/bsd/dev/i386/ |
| H A D | systemcalls.c | 99 struct uthread *uthread; in unix_syscall() local 172 uthread->uu_rval[0] = 0; in unix_syscall() 173 uthread->uu_rval[1] = 0; in unix_syscall() 179 uthread->uu_iocount = 0; in unix_syscall() 180 uthread->uu_vpindex = 0; in unix_syscall() 259 error, uthread->uu_rval[0], uthread->uu_rval[1], pid); in unix_syscall() 283 struct uthread *uthread; in unix_syscall64() local 365 uthread->uu_rval[0] = 0; in unix_syscall64() 468 error, uthread->uu_rval[0], uthread->uu_rval[1], pid); in unix_syscall64() 481 struct uthread *uthread; in unix_syscall_return() local [all …]
|
| H A D | fasttrap_isa.c | 983 uthread->t_dtrace_ft = 0; in fasttrap_pid_probe32() 984 uthread->t_dtrace_pc = 0; in fasttrap_pid_probe32() 985 uthread->t_dtrace_npc = 0; in fasttrap_pid_probe32() 986 uthread->t_dtrace_scrpc = 0; in fasttrap_pid_probe32() 1456 uthread->t_dtrace_on = 1; in fasttrap_pid_probe32() 1546 uthread->t_dtrace_ft = 0; in fasttrap_pid_probe64() 1547 uthread->t_dtrace_pc = 0; in fasttrap_pid_probe64() 1548 uthread->t_dtrace_npc = 0; in fasttrap_pid_probe64() 1551 uthread->t_dtrace_regv = 0; in fasttrap_pid_probe64() 2183 uthread->t_dtrace_pc = 0; in fasttrap_return_probe() [all …]
|
| H A D | dtrace_subr_x86.c | 77 uthread_t uthread = current_uthread(); in dtrace_user_probe() local 88 uint8_t step = uthread->t_dtrace_step; in dtrace_user_probe() 89 uint8_t ret = uthread->t_dtrace_ret; in dtrace_user_probe() 90 user_addr_t npc = uthread->t_dtrace_npc; in dtrace_user_probe() 92 if (uthread->t_dtrace_ast) { in dtrace_user_probe() 101 uthread->t_dtrace_ft = 0; in dtrace_user_probe()
|
| /xnu-11215/bsd/dev/arm/ |
| H A D | systemcalls.c | 99 struct uthread *uthread = get_bsdthread_info(thread_act); in unix_syscall() local 130 uthread->uu_rval[0] = 0; in unix_syscall() 136 uthread->uu_rval[1] = 0; in unix_syscall() 154 uthread->uu_iocount = 0; in unix_syscall() 155 uthread->uu_vpindex = 0; in unix_syscall() 181 error = (*(callp->sy_call))(proc, &uthread->uu_arg[0], &(uthread->uu_rval[0])); in unix_syscall() 189 uthread->uu_rval[0], uthread->uu_rval[1], in unix_syscall() 193 if (uthread->uu_iocount) { in unix_syscall() 224 error, uthread->uu_rval[0], uthread->uu_rval[1], pid); in unix_syscall() 234 struct uthread *uthread; in unix_syscall_return() local [all …]
|
| /xnu-11215/bsd/security/audit/ |
| H A D | audit.c | 684 uthread->uu_ar = audit_new(event, proc, uthread); in audit_syscall_enter() 688 uthread->uu_ar = audit_new(event, proc, uthread); in audit_syscall_enter() 715 struct uthread *uthread) in audit_syscall_exit() argument 798 uthread->uu_ar = audit_new(event, proc, uthread); in audit_subcall_enter() 802 uthread->uu_ar = audit_new(event, proc, uthread); in audit_subcall_enter() 810 audit_subcall_exit(int error, struct uthread *uthread) in audit_subcall_exit() argument 825 struct uthread *uthread; in audit_mach_syscall_enter() local 868 uthread->uu_ar = audit_new(event, proc, uthread); in audit_mach_syscall_enter() 870 uthread->uu_ar = audit_new(event, proc, uthread); in audit_mach_syscall_enter() 879 audit_mach_syscall_exit(int retval, struct uthread *uthread) in audit_mach_syscall_exit() argument [all …]
|
| H A D | audit.h | 160 struct proc *proc, struct uthread *uthread); 167 struct proc *proc, struct uthread *uthread); 170 struct uthread *uthread); 173 void audit_mach_syscall_exit(int retval, struct uthread *uthread); 176 struct proc *proc, struct uthread *uthread); 178 struct uthread *uthread); 352 if (AUDIT_AUDITING(uthread->uu_ar)) \ 353 audit_syscall_exit(code, error, proc, uthread); \ 358 audit_subcall_enter(AUE_ ## event, proc, uthread); \ 362 if (AUDIT_AUDITING(uthread->uu_ar)) \ [all …]
|
| H A D | audit_mac.c | 139 audit_mac_syscall_enter(unsigned short code, proc_t p, struct uthread *uthread, in audit_mac_syscall_enter() argument 145 (void *)uthread->uu_arg); in audit_mac_syscall_enter() 147 uthread->uu_ar = audit_new(event, p, uthread); in audit_mac_syscall_enter() 148 if (uthread->uu_ar) { in audit_mac_syscall_enter() 149 uthread->uu_ar->k_ar.ar_forced_by_mac = 1; in audit_mac_syscall_enter() 162 audit_mac_syscall_exit(unsigned short code, struct uthread *uthread, int error, in audit_mac_syscall_exit() argument 167 if (uthread->uu_ar == NULL) { /* syscall wasn't audited */ in audit_mac_syscall_exit() 179 (void *) uthread->uu_arg, error, retval, in audit_mac_syscall_exit() 180 uthread->uu_ar->k_ar.ar_forced_by_mac); in audit_mac_syscall_exit() 183 uthread->uu_ar->k_ar_commit |= AR_COMMIT_KERNEL; in audit_mac_syscall_exit() [all …]
|
| H A D | audit_private.h | 339 struct uthread *k_uthread; /* Audited thread. */ 351 struct kaudit_record *audit_new(int event, proc_t p, struct uthread *td); 470 struct uthread *uthread, kauth_cred_t my_cred, au_event_t event); 471 int audit_mac_syscall_exit(unsigned short code, struct uthread *uthread,
|
| /xnu-11215/bsd/dev/arm64/ |
| H A D | fasttrap_isa.c | 379 uthread->t_dtrace_astpc = uthread->t_dtrace_scrpc = uthread->t_dtrace_scratch->addr; 395 uthread->t_dtrace_step = 1; 403 uthread->t_dtrace_pc = pc; 409 uthread->t_dtrace_on = 1; 959 uthread->t_dtrace_ft = 0; 960 uthread->t_dtrace_pc = 0; 961 uthread->t_dtrace_npc = 0; 962 uthread->t_dtrace_scrpc = 0; 964 uthread->t_dtrace_reg = 0; 1136 uthread->t_dtrace_pc = 0; [all …]
|
| H A D | dtrace_subr_arm.c | 58 uthread_t uthread = current_uthread(); in dtrace_user_probe() local 69 uint8_t step = uthread->t_dtrace_step; in dtrace_user_probe() 70 uint8_t ret = uthread->t_dtrace_ret; in dtrace_user_probe() 71 user_addr_t npc = uthread->t_dtrace_npc; in dtrace_user_probe() 73 if (uthread->t_dtrace_ast) { in dtrace_user_probe() 82 uthread->t_dtrace_ft = 0; in dtrace_user_probe()
|
| /xnu-11215/osfmk/arm/ |
| H A D | machdep_call.c | 51 uintptr_t uthread; in get_tpidrro() local 52 __asm__ volatile ("mrs %0, TPIDRRO_EL0" : "=r" (uthread)); in get_tpidrro() 53 return uthread; in get_tpidrro() 57 set_tpidrro(uintptr_t uthread) in set_tpidrro() argument 59 __asm__ volatile ("msr TPIDRRO_EL0, %0" : : "r" (uthread)); in set_tpidrro()
|
| /xnu-11215/bsd/dev/dtrace/ |
| H A D | systrace.c | 174 uthread_t uthread = current_uthread(); in dtrace_systrace_syscall() local 175 if (uthread) { in dtrace_systrace_syscall() 182 if (uthread) { in dtrace_systrace_syscall() 208 uthread_t uthread = current_uthread(); in dtrace_systrace_syscall() local 210 if (uthread) { in dtrace_systrace_syscall() 294 if (uthread) { in dtrace_systrace_syscall_return() 702 if (uthread) { in dtrace_machtrace_syscall() 708 if (uthread) { in dtrace_machtrace_syscall() 987 if (uthread) { in systrace_getargval() 1012 if (!uthread) { in systrace_getargdesc() [all …]
|
| /xnu-11215/bsd/pthread/ |
| H A D | workqueue_internal.h | 235 TAILQ_HEAD(workq_uthread_head, uthread); 270 struct uthread *wq_creator; 307 void workq_thread_terminate(struct proc *p, struct uthread *uth); 340 bool workq_thread_is_permanently_bound(struct uthread *uth); 344 struct uthread *uth); 352 bool bsdthread_part_of_cooperative_workqueue(struct uthread *uth);
|
| H A D | pthread_workqueue.c | 100 thread_qos_t at_qos, struct uthread *uth, 300 workq_thread_wakeup(struct uthread *uth) in workq_thread_wakeup() 832 struct uthread *uth = current_uthread(); in workq_thread_set_max_qos() 849 static inline struct uthread * 924 struct uthread *uth; in workq_death_policy_evaluate() 998 static struct uthread * 1002 struct uthread *uth; in workq_pop_idle_thread() 2265 struct uthread *uth, *tmp; in workq_exit() 3006 struct uthread *uth; in workq_reqthreads() 3059 struct uthread *uth = NULL; in workq_kern_threadreq_initiate() [all …]
|
| H A D | pthread_shims.c | 117 uthread_set_returnval(struct uthread *uth, int retval) in uthread_set_returnval() 155 uthread_get_uukwe(struct uthread *t) in uthread_get_uukwe() 161 uthread_is_cancelled(struct uthread *t) in uthread_is_cancelled() 179 proc_usynch_get_requested_thread_qos(struct uthread *uth) in proc_usynch_get_requested_thread_qos() 200 proc_usynch_thread_qos_add_override_for_resource(task_t task, struct uthread *uth, in proc_usynch_thread_qos_add_override_for_resource() 212 struct uthread *uth, uint64_t tid, user_addr_t resource, int resource_type) in proc_usynch_thread_qos_remove_override_for_resource() 292 th = get_machthread(__container_of(kwe, struct uthread, uu_save.uus_kwe)); in psynch_wait_wakeup()
|
| /xnu-11215/bsd/sys/ |
| H A D | user.h | 123 struct uthread { struct 223 TAILQ_ENTRY(uthread) uu_list; /* List of uthreads in proc */ argument 236 TAILQ_ENTRY(uthread) uu_throttlelist; /* List of uthreads currently throttled */ argument 264 TAILQ_ENTRY(uthread) uu_workq_entry; argument 312 struct uthread *__uth = (uth); \ argument 387 typedef struct uthread * uthread_t; argument
|
| H A D | pthread_shims.h | 49 struct uthread; 194 void* (*uthread_get_uukwe)(struct uthread *t); 196 void (*uthread_set_returnval)(struct uthread *t, int val); 197 int (*uthread_is_cancelled)(struct uthread *t); 222 struct uthread* (*get_bsdthread_info)(thread_t th); 273 int (*proc_usynch_get_requested_thread_qos)(struct uthread *); 282 …boolean_t (*proc_usynch_thread_qos_add_override_for_resource)(task_t task, struct uthread *, uint6… 283 …boolean_t (*proc_usynch_thread_qos_remove_override_for_resource)(task_t task, struct uthread *, ui…
|
| H A D | systm.h | 269 struct uthread; 270 void throttle_info_reset_window(struct uthread *ut);
|
| H A D | mount_internal.h | 506 int throttle_get_io_policy(struct uthread **ut); 507 int throttle_get_passive_io_policy(struct uthread **ut);
|
| /xnu-11215/osfmk/kern/ |
| H A D | thread.h | 1591 struct uthread; 1600 struct uthread; 1608 extern struct uthread *get_bsdthread_info(thread_t) __pure2; 1609 extern thread_t get_machthread(struct uthread *) __pure2; 1610 extern uint64_t uthread_tid(struct uthread *) __pure2; 1614 extern void uthread_cleanup_name(struct uthread *uthread); 1618 extern void uthread_destroy(struct uthread *); 1622 extern bool uthread_is64bit(struct uthread *uth) __pure2; 1624 extern void uthread_init_proc_refcount(struct uthread *); 1638 extern mach_port_name_t uthread_joiner_port(struct uthread *); [all …]
|
| /xnu-11215/bsd/kern/ |
| H A D | kern_sig.c | 730 struct uthread *ut; in execsigs() 792 struct uthread *ut; in sigprocmask() 836 struct uthread *ut; in sigpending() 871 struct uthread *ut; in sigsuspend_nocancel() 896 struct uthread *uth; in __disable_threadsignal() 910 struct uthread * uthread; in __pthread_testcancel() local 912 uthread = (struct uthread *)get_bsdthread_info(self); in __pthread_testcancel() 935 struct uthread *uth; in __pthread_markcancel() 968 struct uthread *uth; in __pthread_canceled() 1150 struct uthread *ut; in __pthread_sigmask() [all …]
|
| H A D | sys_ulock.c | 749 uthread_t uthread = (uthread_t)get_bsdthread_info(self); in sys_ulock_wait2() local 750 uthread->uu_save.uus_ulock_wait_data.ull = ull; in sys_ulock_wait2() 751 uthread->uu_save.uus_ulock_wait_data.retval = retval; in sys_ulock_wait2() 752 uthread->uu_save.uus_ulock_wait_data.flags = flags; in sys_ulock_wait2() 753 uthread->uu_save.uus_ulock_wait_data.owner_thread = owner_thread; in sys_ulock_wait2() 754 uthread->uu_save.uus_ulock_wait_data.old_owner = old_owner; in sys_ulock_wait2() 854 uthread_t uthread = current_uthread(); in ulock_wait_continue() local 857 ull_t *ull = uthread->uu_save.uus_ulock_wait_data.ull; in ulock_wait_continue() 858 int32_t *retval = uthread->uu_save.uus_ulock_wait_data.retval; in ulock_wait_continue() 859 uint flags = uthread->uu_save.uus_ulock_wait_data.flags; in ulock_wait_continue() [all …]
|
| H A D | kern_exec.c | 1211 struct uthread *uthread; in exec_mach_imgact() local 1261 uthread = get_bsdthread_info(thread); in exec_mach_imgact() 2846 struct uthread *uthread = current_uthread(); in exec_handle_file_actions() local 3607 struct uthread *uthread = 0; /* compiler complains if not set to 0*/ in posix_spawn() local 3899 uthread = current_uthread(); in posix_spawn() 4135 uthread->uu_ar = NULL; in posix_spawn() 4141 uthread->uu_ar = save_uu_ar; in posix_spawn() 4156 uthread->uu_ar = NULL; in posix_spawn() 4161 uthread->uu_ar = save_uu_ar; in posix_spawn() 5238 struct uthread *uthread = NULL; in __mac_execve() local [all …]
|
| H A D | kern_fork.c | 173 __private_extern__ const size_t uthread_size = sizeof(struct uthread); 1295 uthread_is64bit(struct uthread *uth) in uthread_is64bit() 1388 uthread_joiner_port(struct uthread *uth) in uthread_joiner_port() 1566 uthread_t ut = (struct uthread *) get_bsdthread_info(thread); in thread_get_sigreturn_token() 1573 uthread_t ut = (struct uthread *) get_bsdthread_info(thread); in thread_get_sigreturn_diversifier()
|
| /xnu-11215/tools/lldbmacros/ |
| H A D | process.py | 349 def GetMachThread(uthread): argument 382 def GetThreadNameFromBSDThread(uthread): argument 386 if int(uthread.pth_name) != 0 : 397 uthread = GetBSDThread(thread) 398 return GetThreadNameFromBSDThread(uthread) 467 uthread = GetBSDThread(thread) 471 if int(uthread.uu_flag) & 0x400: 503 if int(uthread.uu_wmesg) != 0: 1342 uthread = GetBSDThread(thread) 1344 uu_ref_info = uthread.uu_proc_ref_info [all …]
|