Lines Matching refs:Lsp
231 create_thread(void *arg, const lwpstatus_t *Lsp) in create_thread() argument
237 if (lwptrace(Pstatus(Proc)->pr_pid, Lsp->pr_lwpid)) in create_thread()
240 if ((new_Lwp = grab_lwp(Lsp->pr_lwpid)) != NULL) { in create_thread()
263 const lwpstatus_t *Lsp; in main() local
506 Lsp = &Psp->pr_lwp; in main()
507 pri->lwpstat = Lsp; in main()
614 Lsp = &Psp->pr_lwp; in main()
642 Lsp = &Psp->pr_lwp; in main()
744 if ((Lsp->pr_why != PR_SYSENTRY && in main()
745 Lsp->pr_why != PR_SYSEXIT) || in main()
746 Lsp->pr_what != SYS_execve) { in main()
770 ((Pstate(Proc) == PS_STOP && Lsp->pr_why == PR_REQUESTED) || in main()
771 (Lsp->pr_flags & PR_DSTOP))) in main()
867 const lwpstatus_t *Lsp = Lstatus(Lwp); in worker_thread() local
869 lwpid_t who = Lsp->pr_lwpid; in worker_thread()
883 int dotrace = lwptrace(Psp->pr_pid, Lsp->pr_lwpid); in worker_thread()
886 pri->lwpstat = Lsp; in worker_thread()
887 pri->syslast = Lsp->pr_stime; in worker_thread()
888 pri->usrlast = Lsp->pr_utime; in worker_thread()
919 (Lsp->pr_flags & (PR_STOPPED|PR_ISTOP)) in worker_thread()
927 if ((Lsp->pr_flags & PR_STOPPED) && in worker_thread()
928 Lsp->pr_why == PR_JOBCONTROL) in worker_thread()
970 pri->lwpstat = Lsp = Lstatus(Lwp); in worker_thread()
1008 what = Lsp->pr_what; in worker_thread()
1011 switch (Lsp->pr_why) { in worker_thread()
1068 &Lsp->pr_stime, &pri->syslast); in worker_thread()
1070 &Lsp->pr_utime, &pri->usrlast); in worker_thread()
1071 pri->syslast = Lsp->pr_stime; in worker_thread()
1072 pri->usrlast = Lsp->pr_utime; in worker_thread()
1080 pri->syslast = Lsp->pr_stime; in worker_thread()
1098 pri->syslast = Lsp->pr_stime; in worker_thread()
1113 pri->syslast = Lsp->pr_stime; in worker_thread()
1143 pri->exec_lwpid = Lsp->pr_lwpid; in worker_thread()
1151 pri->syslast = Lsp->pr_stime; in worker_thread()
1167 pri->Errno = Lsp->pr_errno; in worker_thread()
1168 pri->ErrPriv = Lsp->pr_errpriv; in worker_thread()
1259 if (who != Lsp->pr_lwpid) { in worker_thread()
1267 who = Lsp->pr_lwpid; in worker_thread()
1274 pri->lwpstat = Lsp = Lstatus(Lwp); in worker_thread()
1282 Lsp->pr_why, what); in worker_thread()
1288 if (Lsp->pr_why == PR_SYSEXIT && in worker_thread()
1289 (Lsp->pr_what == SYS_vfork || in worker_thread()
1290 (Lsp->pr_what == SYS_forksys && in worker_thread()
1291 Lsp->pr_sysarg[0] == 2))) { in worker_thread()
1349 Lsp->pr_why == PR_FAULTED && in worker_thread()
1350 Lsp->pr_what == FLTTRACE) { in worker_thread()
1373 if (Lsp->pr_why == PR_REQUESTED) { in worker_thread()
1403 Lsp->pr_why == PR_FAULTED && in worker_thread()
1404 Lsp->pr_what == FLTBPT) in worker_thread()
1416 &Lsp->pr_stime, &pri->syslast); in worker_thread()
1418 &Lsp->pr_utime, &pri->usrlast); in worker_thread()
1419 pri->syslast = Lsp->pr_stime; in worker_thread()
1420 pri->usrlast = Lsp->pr_utime; in worker_thread()
1428 pri->syslast = Lsp->pr_stime; in worker_thread()
1895 const lwpstatus_t *Lsp = pri->lwpstat; in timestamp() local
1899 if (!(dflag|Dflag|Eflag) || !(Lsp->pr_flags & PR_STOPPED)) in timestamp()
1902 seconds = Lsp->pr_tstamp.tv_sec - Cp->basetime.tv_sec; in timestamp()
1903 fraction = Lsp->pr_tstamp.tv_nsec - Cp->basetime.tv_nsec; in timestamp()
1934 seconds = Lsp->pr_stime.tv_sec - pri->syslast.tv_sec; in timestamp()
1935 fraction = Lsp->pr_stime.tv_nsec - pri->syslast.tv_nsec; in timestamp()
2389 const lwpstatus_t *Lsp; in control() local
2465 Lsp = &Psp->pr_lwp; in control()
2466 pri->lwpstat = Lsp; in control()
2489 const lwpstatus_t *Lsp; in grabit() local
2502 Lsp = &Psp->pr_lwp; in grabit()
2503 pri->lwpstat = Lsp; in grabit()