/osnet-11/usr/src/lib/libc/port/sys/ |
H A D | lwp.c | 68 _lwp_suspend(lwpid_t lwpid) argument 71 return (___lwp_suspend(lwpid));
|
/osnet-11/usr/src/lib/libc/port/threads/ |
H A D | sema.c | 138 lwpid_t lwpid = 0; local 170 lwpid = ulwp->ul_lwpid; 175 if (lwpid) { 176 (void) __lwp_unpark(lwpid); 256 lwpid_t lwpid = 0; local 265 lwpid = ulwp->ul_lwpid; 270 if (lwpid) { 271 (void) __lwp_unpark(lwpid); 323 lwpid_t lwpid = 0; local 332 lwpid [all...] |
H A D | assfail.c | 62 lwpid_t lwpid; local 68 lwpid = self->ul_lwpid; 70 lwpid = _lwp_self(); 83 (void) _lwp_kill(lwpid, SIGABRT); /* never returns */ 166 lwpid_t lwpid; local 182 lwpid = self->ul_lwpid; 188 lwpid = _lwp_self(); 217 ultos((uint64_t)lwpid, 10, buf + strlen(buf)); 257 lwpid_t lwpid; local 274 lwpid 344 lwpid_t lwpid; local 393 lwpid_t lwpid; local [all...] |
H A D | rwlock.c | 386 lwpid_t *lwpid = buffer; local 424 * We keep track of lwpids that are to be unparked in lwpid[]. 450 lwpid = alloc_lwpids(lwpid, &nlwpid, &maxlwps); 463 lwpid[nlwpid++] = ulwp->ul_lwpid; 483 (void) __lwp_unpark(lwpid[0]); 485 (void) __lwp_unpark_all(lwpid, nlwpid); 488 if (lwpid != buffer) 489 (void) munmap((caddr_t)lwpid, maxlwps * sizeof (lwpid_t));
|
H A D | synch.c | 1219 * lwp so it can run while we delay. Return the original lwpid if the 1225 preempt_unpark(ulwp_t *self, lwpid_t lwpid) argument 1232 (void) __lwp_unpark(lwpid); 1233 lwpid = 0; 1235 return (lwpid); 1638 * Returns the lwpid of the thread that was dequeued, if any. 1639 * The caller of mutex_wakeup() must call __lwp_unpark(lwpid) 1645 lwpid_t lwpid = 0; local 1657 lwpid = ulwp->ul_lwpid; 1661 return (lwpid); 1676 lwpid_t *lwpid = buffer; local 1737 lwpid_t lwpid = 0; local 2454 lwpid_t lwpid; local 2515 lwpid_t lwpid; local 2674 lwpid_t lwpid; local 3170 lwpid_t lwpid; local 3689 lwpid_t lwpid; local 3771 alloc_lwpids(lwpid_t *lwpid, int *nlwpid_ptr, int *maxlwps_ptr) argument 3828 lwpid_t *lwpid = buffer; local [all...] |
/osnet-11/usr/src/lib/libproc/common/ |
H A D | Plwpregs.c | 43 * about an lwp in the core file, given its lwpid. 46 getlwpcore(struct ps_prochandle *P, lwpid_t lwpid) argument 52 if (lwp->lwp_id == lwpid) 65 getlwpfile(struct ps_prochandle *P, lwpid_t lwpid, argument 72 procfs_path, (int)P->status.pr_pid, (int)lwpid, fbase); 90 getlwpstatus(struct ps_prochandle *P, lwpid_t lwpid, lwpstatus_t *lps) argument 95 * For both live processes and cores, our job is easy if the lwpid 98 if (P->status.pr_lwp.pr_lwpid == lwpid) { 108 return (getlwpfile(P, lwpid, "lwpstatus", 116 if (P->core != NULL && (lwp = getlwpcore(P, lwpid)) ! 129 setlwpregs(struct ps_prochandle *P, lwpid_t lwpid, long cmd, const void *rp, size_t n) argument 184 Plwp_getregs(struct ps_prochandle *P, lwpid_t lwpid, prgregset_t gregs) argument 196 Plwp_setregs(struct ps_prochandle *P, lwpid_t lwpid, const prgregset_t gregs) argument 202 Plwp_getfpregs(struct ps_prochandle *P, lwpid_t lwpid, prfpregset_t *fpregs) argument 213 Plwp_setfpregs(struct ps_prochandle *P, lwpid_t lwpid, const prfpregset_t *fpregs) argument 220 Plwp_getxregs(struct ps_prochandle *P, lwpid_t lwpid, prxregset_t *xregs) argument 250 Plwp_setxregs(struct ps_prochandle *P, lwpid_t lwpid, const prxregset_t *xregs) argument 257 Plwp_getgwindows(struct ps_prochandle *P, lwpid_t lwpid, gwindows_t *gwins) argument 288 Plwp_getasrs(struct ps_prochandle *P, lwpid_t lwpid, asrset_t asrs) argument 318 Plwp_setasrs(struct ps_prochandle *P, lwpid_t lwpid, const asrset_t asrs) argument 327 Plwp_getcxregs(struct ps_prochandle *P, lwpid_t lwpid, prcpuxregset_t *cxregs) argument 365 Plwp_setcxregs(struct ps_prochandle *P, lwpid_t lwpid, const prcpuxregset_t *cxregs) argument 381 Plwp_getcxregsize(struct ps_prochandle *P, lwpid_t lwpid, int *cxregsize) argument 402 Plwp_getpsinfo(struct ps_prochandle *P, lwpid_t lwpid, lwpsinfo_t *lps) argument 425 Plwp_stack(struct ps_prochandle *P, lwpid_t lwpid, stack_t *stkp) argument 465 Plwp_main_stack(struct ps_prochandle *P, lwpid_t lwpid, stack_t *stkp) argument 539 Plwp_alt_stack(struct ps_prochandle *P, lwpid_t lwpid, stack_t *stkp) argument [all...] |
H A D | Pservice.c | 102 ps_lstop(struct ps_prochandle *P, lwpid_t lwpid) argument 111 ps_lcontinue(struct ps_prochandle *P, lwpid_t lwpid) argument 119 ps_lgetregs(struct ps_prochandle *P, lwpid_t lwpid, prgregset_t regs) argument 124 if (Plwp_getregs(P, lwpid, regs) == 0) 131 ps_lsetregs(struct ps_prochandle *P, lwpid_t lwpid, const prgregset_t regs) argument 136 if (Plwp_setregs(P, lwpid, regs) == 0) 143 ps_lgetfpregs(struct ps_prochandle *P, lwpid_t lwpid, prfpregset_t *regs) argument 148 if (Plwp_getfpregs(P, lwpid, regs) == 0) 155 ps_lsetfpregs(struct ps_prochandle *P, lwpid_t lwpid, const prfpregset_t *regs) argument 160 if (Plwp_setfpregs(P, lwpid, reg 167 ps_lgetxregsize(struct ps_prochandle *P, lwpid_t lwpid, int *xrsize) argument 218 ps_lgetxregs(struct ps_prochandle *P, lwpid_t lwpid, caddr_t xregs) argument 243 ps_lsetxregs(struct ps_prochandle *P, lwpid_t lwpid, caddr_t xregs) argument 272 ps_lgetcxregsize(struct ps_prochandle *P, lwpid_t lwpid, int *cxrsize) argument 312 ps_lgetcxregs(struct ps_prochandle *P, lwpid_t lwpid, caddr_t cxregs) argument 325 ps_lsetcxregs(struct ps_prochandle *P, lwpid_t lwpid, caddr_t cxregs) argument 341 ps_lgetLDT(struct ps_prochandle *P, lwpid_t lwpid, struct ssd *ldt) argument [all...] |
H A D | proc_arg.c | 340 * Determine if the specified lwpid is in the given set of lwpids. 341 * The set can include multiple lwpid ranges separated by commas 348 * -n lwpid <= n 349 * n-m n <= lwpid <= m 350 * n- lwpid >= n 351 * n lwpid == n 354 proc_lwp_in_set(const char *set, lwpid_t lwpid) argument 357 id_t id = (id_t)lwpid;
|
H A D | Pcontrol.c | 2937 * Find an entry in the process hash table for the specified lwpid. 2942 Lfind(struct ps_prochandle *P, lwpid_t lwpid) argument 2947 for (Lp = &P->hashtab[lwpid % (HASHSIZE - 1)]; 2949 if (L->lwp_id == lwpid) 2960 Lgrab(struct ps_prochandle *P, lwpid_t lwpid, int *perr) argument 2977 else if (*(Lp = Lfind(P, lwpid)) != NULL) 2991 L->lwp_id = lwpid; 2995 if (getlwpstatus(P, lwpid, &L->lwp_status) == -1) { 3006 * Open the /proc/<pid>/lwp/<lwpid> files 3009 procfs_path, (int)P->pid, (int)lwpid); [all...] |
/osnet-11/usr/src/lib/libcpc/common/ |
H A D | obsoleted.c | 295 cpc_pctx_bind_event(pctx_t *pctx, id_t lwpid, cpc_event_t *event, int flags) argument 301 return (cpc_pctx_rele(pctx, lwpid)); 326 ret = cpc_bind_pctx(__cpc, pctx, lwpid, set, 0); 334 cpc_pctx_take_sample(pctx_t *pctx, id_t lwpid, cpc_event_t *event) argument 338 return (__pctx_cpc(pctx, __cpc, CPC_SAMPLE, lwpid, event->ce_pic, 343 * Given a process context and an lwpid, mark the CPU performance 347 cpc_pctx_invalidate(pctx_t *pctx, id_t lwpid) argument 349 return (__pctx_cpc(pctx, __cpc, CPC_INVALIDATE, lwpid, 0, 0, 0, 0)); 353 * Given a process context and an lwpid, remove all our 357 cpc_pctx_rele(pctx_t *pctx, id_t lwpid) argument [all...] |
/osnet-11/usr/src/lib/libpctx/common/ |
H A D | libpctx.c | 332 * and resets the lwpid to one in the new address space. 532 id_t lwpid; local 661 lwpid = pstatus->pr_lwp.pr_lwpid; 684 pid, lwpid, pctx->uarg); 686 pid, lwpid, pctx->uarg); 693 pctx->exit(pctx, pid, lwpid, 734 if (pctx->exec(pctx, pid, lwpid, 747 if (pctx->init_lwp(pctx, pid, lwpid, 751 pid, lwpid, pctx->uarg) != 0) 784 lwpid, pct 870 __pctx_cpc(pctx_t *pctx, cpc_t *cpc, int cmd, id_t lwpid, void *data1, void *data2, void *data3, int bufsize) argument [all...] |
/osnet-11/usr/src/lib/libdtrace/common/ |
H A D | dt_proc.c | 394 lwpid_t lwpid = psp->pr_lwpid; local 426 if (Pstate(P) != PS_STOP || psp->pr_lwpid != lwpid ||
|
/osnet-11/usr/src/lib/brand/solaris10/s10_brand/common/ |
H A D | s10_signal.c | 795 s10_lwp_kill(sysret_t *rval, id_t lwpid, int sig) argument 801 lwpid, sig); 805 return (__systemcall(rval, SYS_lwp_kill + 1024, lwpid, nativesig));
|
/osnet-11/usr/src/lib/libc_db/common/ |
H A D | thread_db.c | 198 * Get the address and lwpid of the single thread/LWP. 203 lwpid_t lwpid = 0; local 212 &lwpid, sizeof (lwpid)) != PS_OK) 214 ta_p->single_lwpid = lwpid; 219 lwpid_t lwpid = 0; local 228 &lwpid, sizeof (lwpid)) != PS_OK) 230 ta_p->single_lwpid = lwpid; 1276 lwpid_t lwpid; local 1320 lwpid_t lwpid; local 1761 lwpid_t lwpid; local 2627 __td_ta_map_lwp2thr(td_thragent_t *ta_p, lwpid_t lwpid, td_thrhandle_t *th_p) argument [all...] |