Lines Matching refs:lwpid

43  * about an lwp in the core file, given its lwpid.
46 getlwpcore(struct ps_prochandle *P, lwpid_t lwpid)
52 if (lwp->lwp_id == lwpid)
65 getlwpfile(struct ps_prochandle *P, lwpid_t lwpid,
72 procfs_path, (int)P->status.pr_pid, (int)lwpid, fbase);
90 getlwpstatus(struct ps_prochandle *P, lwpid_t lwpid, lwpstatus_t *lps)
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)) != NULL) {
129 setlwpregs(struct ps_prochandle *P, lwpid_t lwpid, long cmd,
152 if (P->status.pr_lwp.pr_lwpid == lwpid) {
171 procfs_path, (int)P->status.pr_pid, (int)lwpid);
184 Plwp_getregs(struct ps_prochandle *P, lwpid_t lwpid, prgregset_t gregs)
188 if (getlwpstatus(P, lwpid, &lps) == -1)
196 Plwp_setregs(struct ps_prochandle *P, lwpid_t lwpid, const prgregset_t gregs)
198 return (setlwpregs(P, lwpid, PCSREG, gregs, sizeof (prgregset_t)));
202 Plwp_getfpregs(struct ps_prochandle *P, lwpid_t lwpid, prfpregset_t *fpregs)
206 if (getlwpstatus(P, lwpid, &lps) == -1)
213 int Plwp_setfpregs(struct ps_prochandle *P, lwpid_t lwpid,
216 return (setlwpregs(P, lwpid, PCSFPREG, fpregs, sizeof (prfpregset_t)));
220 Plwp_getxregs(struct ps_prochandle *P, lwpid_t lwpid, prxregset_t *xregs)
235 return (getlwpfile(P, lwpid, "xregs",
239 if ((lwp = getlwpcore(P, lwpid)) != NULL && lwp->lwp_xregs != NULL) {
250 Plwp_setxregs(struct ps_prochandle *P, lwpid_t lwpid, const prxregset_t *xregs)
252 return (setlwpregs(P, lwpid, PCSXREG, xregs, sizeof (prxregset_t)));
257 Plwp_getgwindows(struct ps_prochandle *P, lwpid_t lwpid, gwindows_t *gwins)
272 return (getlwpfile(P, lwpid, "gwindows",
276 if ((lwp = getlwpcore(P, lwpid)) != NULL && lwp->lwp_gwins != NULL) {
288 Plwp_getasrs(struct ps_prochandle *P, lwpid_t lwpid, asrset_t asrs)
303 return (getlwpfile(P, lwpid, "asrs", asrs, sizeof (asrset_t)));
306 if ((lwp = getlwpcore(P, lwpid)) != NULL && lwp->lwp_asrs != NULL) {
318 Plwp_setasrs(struct ps_prochandle *P, lwpid_t lwpid, const asrset_t asrs)
320 return (setlwpregs(P, lwpid, PCSASRS, asrs, sizeof (asrset_t)));
327 Plwp_getcxregs(struct ps_prochandle *P, lwpid_t lwpid, prcpuxregset_t *cxregs)
338 ret = ps_lgetcxregsize(P, lwpid, &cxregsize);
350 return (getlwpfile(P, lwpid, "cxregs", cxregs, cxregsize));
353 if ((lwp = getlwpcore(P, lwpid)) != NULL && lwp->lwp_cxregs != NULL) {
365 Plwp_setcxregs(struct ps_prochandle *P, lwpid_t lwpid,
371 ret = ps_lgetcxregsize(P, lwpid, &cxregsize);
377 return (setlwpregs(P, lwpid, PCSCXREG, cxregs, cxregsize));
381 Plwp_getcxregsize(struct ps_prochandle *P, lwpid_t lwpid,
391 ret = ps_lgetcxregsize(P, lwpid, cxregsize);
402 Plwp_getpsinfo(struct ps_prochandle *P, lwpid_t lwpid, lwpsinfo_t *lps)
412 return (getlwpfile(P, lwpid, "lwpsinfo",
416 if ((lwp = getlwpcore(P, lwpid)) != NULL) {
425 Plwp_stack(struct ps_prochandle *P, lwpid_t lwpid, stack_t *stkp)
436 if (getlwpfile(P, lwpid, "lwpstatus", &ls, sizeof (ls)) != 0)
441 if ((lwp = getlwpcore(P, lwpid)) == NULL)
465 Plwp_main_stack(struct ps_prochandle *P, lwpid_t lwpid, stack_t *stkp)
476 if (getlwpfile(P, lwpid, "lwpstatus", &ls, sizeof (ls)) != 0)
480 if ((lwp = getlwpcore(P, lwpid)) == NULL)
539 Plwp_alt_stack(struct ps_prochandle *P, lwpid_t lwpid, stack_t *stkp)
549 if (getlwpfile(P, lwpid, "lwpstatus", &ls, sizeof (ls)) != 0)
561 if ((lwp = getlwpcore(P, lwpid)) == NULL)