Lines Matching refs:Lwp
210 struct ps_lwphandle *Lwp; in grab_lwp() local
213 if ((Lwp = Lgrab(Proc, who, &gcode)) == NULL) { in grab_lwp()
223 return (Lwp); in grab_lwp()
865 struct ps_lwphandle *Lwp = (struct ps_lwphandle *)arg; in worker_thread() local
867 const lwpstatus_t *Lsp = Lstatus(Lwp); in worker_thread()
885 pri->Lwp = Lwp; in worker_thread()
902 (void) Lstop(Lwp, MILLISEC); in worker_thread()
903 if (Lstate(Lwp) == PS_RUN) in worker_thread()
906 if (Lstate(Lwp) == PS_RUN) { in worker_thread()
923 (void) Lwait(Lwp, tout); in worker_thread()
924 if (Lstate(Lwp) == PS_RUN && in worker_thread()
938 if (Lstate(Lwp) == PS_UNDEAD) in worker_thread()
940 if (Lstate(Lwp) == PS_LOST) { /* we lost control */ in worker_thread()
964 Lfree(Lwp); in worker_thread()
965 pri->Lwp = Lwp = in worker_thread()
967 if (Lwp == NULL) in worker_thread()
970 pri->lwpstat = Lsp = Lstatus(Lwp); in worker_thread()
998 if (Lstate(Lwp) != PS_STOP) { in worker_thread()
1000 "%s: state = %d\n", command, Lstate(Lwp)); in worker_thread()
1268 Lfree(Lwp); in worker_thread()
1269 pri->Lwp = Lwp = in worker_thread()
1271 if (Lwp == NULL) in worker_thread()
1274 pri->lwpstat = Lsp = Lstatus(Lwp); in worker_thread()
1344 (void) Lsetrun(Lwp, 0, PRSTEP); in worker_thread()
1346 (void) Lwait(Lwp, 0); in worker_thread()
1347 } while (Lstate(Lwp) == PS_RUN); in worker_thread()
1348 if (Lstate(Lwp) == PS_STOP && in worker_thread()
1352 (void) Lsetrun(Lwp, 0, PRCFAULT|PRSTOP); in worker_thread()
1360 if (Lstate(Lwp) == PS_STOP) { in worker_thread()
1379 if (Lsetrun(Lwp, 0, flags) != 0 && in worker_thread()
1380 Lstate(Lwp) != PS_LOST && in worker_thread()
1381 Lstate(Lwp) != PS_UNDEAD) { in worker_thread()
1397 if (Lstate(Lwp) == PS_UNDEAD || Lstate(Lwp) == PS_LOST) in worker_thread()
1400 (void) Lstop(Lwp, MILLISEC); in worker_thread()
1402 if (Lstate(Lwp) == PS_STOP && in worker_thread()
1434 if (Lstate(Lwp) == PS_UNDEAD || Lstate(Lwp) == PS_LOST) { in worker_thread()
1523 if (!leave_hung && Lstate(Lwp) == PS_STOP) in worker_thread()
1524 (void) Lsetrun(Lwp, 0, 0); in worker_thread()
1527 (void) Lfree(Lwp); in worker_thread()
2566 struct ps_lwphandle *Lwp; in intr() local
2570 (Lwp = pri->Lwp) != NULL) in intr()
2571 (void) Lstop(Lwp, MILLISEC / 10); in intr()