/macosx-10.10.1/dtrace-147/test/tst/common/inline/ |
H A D | err.D_OP_INCOMPAT.badxlate.d | 41 inline task_t *invalid = xlate<psinfo_t>(((struct uthread *)curthread->uthread)->uu_proc);
|
/macosx-10.10.1/xnu-2782.1.97/security/ |
H A D | mac_mach_internal.h | 64 struct uthread; 68 struct label *mac_thread_get_uthreadlabel(struct uthread *uthread);
|
H A D | mac_process.c | 676 mac_thread_label_init(struct uthread *uthread) argument 678 uthread->uu_label = mac_thread_label_alloc(); 689 mac_thread_label_destroy(struct uthread *uthread) argument 692 mac_thread_label_free(uthread->uu_label); 693 uthread->uu_label = NULL; 704 mac_thread_get_uthreadlabel(struct uthread *uthread) argument 707 return (uthread 713 struct uthread *uthread = get_bsdthread_info(thread); local [all...] |
/macosx-10.10.1/xnu-2782.1.97/bsd/dev/i386/ |
H A D | systemcalls.c | 90 struct uthread *uthread; local 101 uthread = get_bsdthread_info(thread); 104 is_vfork = uthread->uu_flag & UT_VFORK; 134 vt = (void *)uthread->uu_arg; 144 assert((unsigned) callp->sy_arg_bytes <= sizeof (uthread->uu_arg)); 177 kauth_cred_uthread_update(uthread, p); 179 uthread->uu_rval[0] = 0; 180 uthread->uu_rval[1] = 0; 181 uthread 267 struct uthread *uthread; local 449 struct uthread *uthread; local [all...] |
H A D | dtrace_subr_x86.c | 83 uthread_t uthread = (uthread_t)get_bsdthread_info(current_thread()); local 90 kauth_cred_uthread_update(uthread, p); 94 uint8_t step = uthread->t_dtrace_step; 95 uint8_t ret = uthread->t_dtrace_ret; 96 user_addr_t npc = uthread->t_dtrace_npc; 98 if (uthread->t_dtrace_ast) { 100 // aston(uthread); 101 // uthread->t_sig_check = 1; 107 uthread->t_dtrace_ft = 0;
|
H A D | fasttrap_isa.c | 958 uthread_t uthread = (uthread_t)get_bsdthread_info(current_thread()); local 966 if (uthread->t_dtrace_step) { 967 ASSERT(uthread->t_dtrace_on); 968 fasttrap_sigtrap(p, uthread, pc); 975 uthread->t_dtrace_ft = 0; 976 uthread->t_dtrace_pc = 0; 977 uthread->t_dtrace_npc = 0; 978 uthread->t_dtrace_scrpc = 0; 979 uthread->t_dtrace_astpc = 0; 1148 fasttrap_sigsegv(p, uthread, (user_addr_ 1516 uthread_t uthread = (uthread_t)get_bsdthread_info(current_thread()); local 2163 uthread_t uthread = (uthread_t)get_bsdthread_info(current_thread()); local [all...] |
/macosx-10.10.1/dtrace-147/test/tst/common/types/ |
H A D | err.D_XLATE_REDECL.ResultDynType.d | 40 pr_wchan = (uintptr_t)(((uthread_t)(T->uthread))->uu_wchan);
|
/macosx-10.10.1/xnu-2782.1.97/bsd/security/audit/ |
H A D | audit.c | 374 audit_new(int event, proc_t p, __unused struct uthread *uthread) argument 594 audit_syscall_enter(unsigned int code, proc_t proc, struct uthread *uthread) argument 620 KASSERT(uthread->uu_ar == NULL, 621 ("audit_syscall_enter: uthread->uu_ar != NULL")); 644 if (audit_mac_syscall_enter(code, proc, uthread, cred, event) == 0) 665 if (uthread->uu_ar == NULL) 666 uthread->uu_ar = audit_new(event, proc, uthread); 686 audit_syscall_exit(unsigned int code, int error, __unused proc_t proc, struct uthread *uthread) argument 724 struct uthread *uthread; local 773 audit_mach_syscall_exit(int retval, struct uthread *uthread) argument 806 struct uthread *uthread; local [all...] |
H A D | audit_mac.c | 145 audit_mac_syscall_enter(unsigned short code, proc_t p, struct uthread *uthread, argument 151 (void *)uthread->uu_arg); 153 uthread->uu_ar = audit_new(event, p, uthread); 154 uthread->uu_ar->k_ar.ar_forced_by_mac = 1; 167 audit_mac_syscall_exit(unsigned short code, struct uthread *uthread, int error, argument 172 if (uthread->uu_ar == NULL) /* syscall wasn't audited */ 183 (void *) uthread [all...] |
H A D | audit.h | 162 struct proc *proc, struct uthread *uthread); 169 struct proc *proc, struct uthread *uthread); 172 struct uthread *uthread); 175 void audit_mach_syscall_exit(int retval, struct uthread *uthread); 296 ((struct uthread*)get_bsdthread_info(current_thread()))->uu_ar 343 #define AUDIT_SYSCALL_EXIT(code, proc, uthread, erro [all...] |
H A D | audit_private.h | 303 #define curthread() ((struct uthread *)get_bsdthread_info(current_thread())) 315 struct uthread *k_uthread; /* Audited thread. */ 327 struct kaudit_record *audit_new(int event, proc_t p, struct uthread *td); 442 struct uthread *uthread, kauth_cred_t my_cred, au_event_t event); 443 int audit_mac_syscall_exit(unsigned short code, struct uthread *uthread,
|
/macosx-10.10.1/xnu-2782.1.97/bsd/kern/ |
H A D | kern_prot.c | 353 struct uthread *uthread = get_bsdthread_info(current_thread()); local 360 if (!(uthread->uu_flag & UT_SETUID)) 363 if ((error = suword(uap->uidp, kauth_cred_getruid(uthread->uu_ucred)))) 365 if ((error = suword(uap->gidp, kauth_cred_getrgid(uthread->uu_ucred)))) 1400 struct uthread *uthread = get_bsdthread_info(current_thread()); local 1415 if ((uthread->uu_flag & UT_SETUID) == 0) 1420 kauth_cred_unref(&uthread->uu_ucred); 1421 uthread 1472 struct uthread *uthread = get_bsdthread_info(current_thread()); local 1597 struct uthread *uthread = get_bsdthread_info(current_thread()); local 1964 uthread_t uthread; local [all...] |
H A D | kern_sig.c | 439 struct uthread * uth; 448 uth = (struct uthread *)get_bsdthread_info(thact); 473 struct uthread * uth; 481 uth = (struct uthread *)get_bsdthread_info(thact); 503 struct uthread * uth; 511 uth = (struct uthread *)get_bsdthread_info(thact); 533 struct uthread * uth; 541 uth = (struct uthread *)get_bsdthread_info(thact); 671 struct uthread *ut; 673 ut = (struct uthread *)get_bsdthread_inf 846 struct uthread * uthread; local [all...] |
H A D | pthread_shims.c | 85 PTHREAD_STRUCT_ACCESSOR(uthread_get_threadlist, uthread_set_threadlist, void*, struct uthread*, uu_threadlist); 86 PTHREAD_STRUCT_ACCESSOR(uthread_get_sigmask, uthread_set_sigmask, sigset_t, struct uthread*, uu_sigmask); 87 PTHREAD_STRUCT_ACCESSOR(uthread_get_returnval, uthread_set_returnval, int, struct uthread*, uu_rval[0]); 126 uthread_get_uukwe(struct uthread *t) 132 uthread_is_cancelled(struct uthread *t) 150 static int proc_usynch_get_requested_thread_qos(struct uthread *uth) 170 static boolean_t proc_usynch_thread_qos_add_override(struct uthread *uth, uint64_t tid, int override_qos, boolean_t first_override_for_resource) 178 static boolean_t proc_usynch_thread_qos_remove_override(struct uthread *uth, uint64_t tid)
|
H A D | kern_fork.c | 227 * has its task, thread, and uthread lent to the child process, 234 * operations on the task, thread, or uthread will result in 236 * state, when a task, thread, and uthread are realized for the 250 * uthread | ^ bsd_info | ^ 268 * | uthread | ^ bsd_info | ^ 346 * uthread to return running in the child; 420 * child and the tash/thread/uthread from the parent in 702 * with the task, thread, and uthread. 775 * thread creation, a uthread) in the parent coalition, which is 958 * the net effect is to provide a uthread structur 1535 uthread_cleanup(task_t task, void *uthread, void * bsd_info) argument 1627 uthread_cred_free(void *uthread) argument 1641 uthread_zone_free(void *uthread) argument [all...] |
H A D | bsd_stubs.c | 91 struct uthread * ut; 95 ut = (struct uthread *)get_bsdthread_info(thread);
|
H A D | kern_credential.c | 737 struct uthread *ut; 892 struct uthread *ut = get_bsdthread_info(thread); 3454 struct uthread *uthread; local 3456 uthread = get_bsdthread_info(current_thread()); 3458 if (uthread == NULL) 3467 if (uthread->uu_ucred == NOCRED) { 3470 uthread->uu_ucred = kauth_cred_proc_ref(p); 3472 return(uthread->uu_ucred); 3478 uthread_t uthread; local 3505 kauth_cred_uthread_update(uthread_t uthread, proc_t proc) argument 3545 struct uthread *uthread; local [all...] |
/macosx-10.10.1/xnu-2782.1.97/bsd/sys/ |
H A D | pthread_shims.h | 45 struct uthread; 141 void* (*uthread_get_threadlist)(struct uthread *t); 142 void (*uthread_set_threadlist)(struct uthread *t, void* threadlist); 143 sigset_t (*uthread_get_sigmask)(struct uthread *t); 144 void (*uthread_set_sigmask)(struct uthread *t, sigset_t s); 145 void* (*uthread_get_uukwe)(struct uthread *t); 146 int (*uthread_get_returnval)(struct uthread *t); 147 void (*uthread_set_returnval)(struct uthread *t, int val); 148 int (*uthread_is_cancelled)(struct uthread *t); 174 struct uthread* (*get_bsdthread_inf [all...] |
H A D | user.h | 92 * VFS context structure (part of uthread) 107 * uthread structure. 132 struct uthread { struct 211 TAILQ_ENTRY(uthread) uu_list; /* List of uthreads in proc */ 218 TAILQ_ENTRY(uthread) uu_throttlelist; /* List of uthreads currently throttled */ 286 typedef struct uthread * uthread_t;
|
/macosx-10.10.1/libpthread-105.1.4/lldbmacros/ |
H A D | pthread.py | 66 @header("{0: <24s} {1: <24s} {2: <24s}".format('thread', 'thread_id', 'uthread')) 74 uthread = Cast(thread.uthread, "uthread_t") 75 uthreadstr = str("{0: <#020x}".format(uthread)) 129 uthread = Cast(thread.uthread, "uthread_t") 130 kwe = addressof(uthread.uu_kevent.uu_kwe)
|
/macosx-10.10.1/xnu-2782.1.97/bsd/dev/dtrace/ |
H A D | systrace.c | 145 uthread_t uthread = (uthread_t)get_bsdthread_info(current_thread()); local 146 if (uthread) 147 uthread->t_dtrace_syscall_args = (void *)ip; 154 if (uthread) 155 uthread->t_dtrace_syscall_args = (void *)0; 177 uthread_t uthread = (uthread_t)get_bsdthread_info(current_thread()); local 179 if (uthread) 180 uthread->t_dtrace_errno = rval; /* Establish t_dtrace_errno now in case this enabling refers to it. */ 261 uthread_t uthread = (uthread_t)get_bsdthread_info(current_thread()); local 263 if (uthread) 682 uthread_t uthread = (uthread_t)get_bsdthread_info(current_thread()); local 970 uthread_t uthread = (uthread_t)get_bsdthread_info(current_thread()); local 993 uthread_t uthread = (uthread_t)get_bsdthread_info(current_thread()); local [all...] |
/macosx-10.10.1/xnu-2782.1.97/bsd/dev/dtrace/scripts/ |
H A D | darwin.d | 26 inline uthread_t uthread = (mach_kernel`uthread_t)(curthread->uthread); /* ` */ 27 #pragma D binding "1.0" uthread 30 (uthread && (uthread->uu_flag & UT_VFORK) && uthread->uu_proc) ? (struct proc *)uthread->uu_proc : 309 pr_wchan = (uintptr_t)(((uthread_t)(T->uthread))->uu_wchan); 319 pr_syscall = ((uthread_t)(T->uthread))->uu_code;
|
/macosx-10.10.1/libpthread-105.1.4/kern/ |
H A D | kern_init.c | 61 struct uthread*
|
/macosx-10.10.1/xnu-2782.1.97/bsd/dev/chud/ |
H A D | chud_process.c | 70 struct uthread *ut = get_bsdthread_info(current_thread()); 77 // no task, so try looking in the uthread and/or proc
|
/macosx-10.10.1/xnu-2782.1.97/tools/lldbmacros/ |
H A D | process.py | 270 if int(thread.uthread) != 0: 271 uthread = Cast(thread.uthread, 'uthread *') 273 if int(uthread.pth_name) != 0 : 274 th_name_strval = Cast(uthread.pth_name, 'char *') 279 if int(uthread.uu_flag) & 0x400: 320 if int(thread.uthread) != 0 : 321 uthread = Cast(thread.uthread, 'uthrea [all...] |