Lines Matching refs:Lwp

212 	struct ps_lwphandle *Lwp;  in grab_lwp()  local
215 if ((Lwp = Lgrab(Proc, who, &gcode)) == NULL) { in grab_lwp()
225 return (Lwp); in grab_lwp()
870 struct ps_lwphandle *Lwp = (struct ps_lwphandle *)arg; in worker_thread() local
872 const lwpstatus_t *Lsp = Lstatus(Lwp); in worker_thread()
890 pri->Lwp = Lwp; in worker_thread()
907 (void) Lstop(Lwp, MILLISEC); in worker_thread()
908 if (Lstate(Lwp) == PS_RUN) in worker_thread()
911 if (Lstate(Lwp) == PS_RUN) { in worker_thread()
928 (void) Lwait(Lwp, tout); in worker_thread()
929 if (Lstate(Lwp) == PS_RUN && in worker_thread()
943 if (Lstate(Lwp) == PS_UNDEAD) in worker_thread()
945 if (Lstate(Lwp) == PS_LOST) { /* we lost control */ in worker_thread()
969 Lfree(Lwp); in worker_thread()
970 pri->Lwp = Lwp = in worker_thread()
972 if (Lwp == NULL) in worker_thread()
975 pri->lwpstat = Lsp = Lstatus(Lwp); in worker_thread()
1003 if (Lstate(Lwp) != PS_STOP) { in worker_thread()
1005 "%s: state = %d\n", command, Lstate(Lwp)); in worker_thread()
1274 Lfree(Lwp); in worker_thread()
1275 pri->Lwp = Lwp = in worker_thread()
1277 if (Lwp == NULL) in worker_thread()
1280 pri->lwpstat = Lsp = Lstatus(Lwp); in worker_thread()
1350 (void) Lsetrun(Lwp, 0, PRSTEP); in worker_thread()
1352 (void) Lwait(Lwp, 0); in worker_thread()
1353 } while (Lstate(Lwp) == PS_RUN); in worker_thread()
1354 if (Lstate(Lwp) == PS_STOP && in worker_thread()
1358 (void) Lsetrun(Lwp, 0, PRCFAULT|PRSTOP); in worker_thread()
1366 if (Lstate(Lwp) == PS_STOP) { in worker_thread()
1385 if (Lsetrun(Lwp, 0, flags) != 0 && in worker_thread()
1386 Lstate(Lwp) != PS_LOST && in worker_thread()
1387 Lstate(Lwp) != PS_UNDEAD) { in worker_thread()
1403 if (Lstate(Lwp) == PS_UNDEAD || Lstate(Lwp) == PS_LOST) in worker_thread()
1406 (void) Lstop(Lwp, MILLISEC); in worker_thread()
1408 if (Lstate(Lwp) == PS_STOP && in worker_thread()
1440 if (Lstate(Lwp) == PS_UNDEAD || Lstate(Lwp) == PS_LOST) { in worker_thread()
1529 if (!leave_hung && Lstate(Lwp) == PS_STOP) in worker_thread()
1530 (void) Lsetrun(Lwp, 0, 0); in worker_thread()
1533 (void) Lfree(Lwp); in worker_thread()
2572 struct ps_lwphandle *Lwp; in intr() local
2576 (Lwp = pri->Lwp) != NULL) in intr()
2577 (void) Lstop(Lwp, MILLISEC / 10); in intr()