Lines Matching refs:Pr
55 struct ps_prochandle *Pr; member
113 if ((pctx->Pr = Pcreate(filename, argv, &err, 0, 0)) == NULL) { in pctx_create()
144 if (Psysentry(pctx->Pr, SYS_exit, 1) == -1) { in pctx_create()
147 Prelease(pctx->Pr, PRELEASE_KILL); in pctx_create()
156 (void) Psetflags(pctx->Pr, PR_KLC); in pctx_create()
177 if ((pctx->Pr = Pgrab(pid, 0, &err)) == NULL) { in pctx_capture()
217 if (Psysentry(pctx->Pr, SYS_exit, 1) == -1) { in pctx_capture()
220 Prelease(pctx->Pr, PRELEASE_CLEAR); in pctx_capture()
232 (void) Psetflags(pctx->Pr, PR_RLC); in pctx_capture()
319 (void) Psysexit(pctx->Pr, SYS_vfork, 1); in pctx_set_events()
320 (void) Psysexit(pctx->Pr, SYS_forksys, 1); in pctx_set_events()
321 if (Psetflags(pctx->Pr, PR_FORK) == -1) in pctx_set_events()
324 (void) Psysexit(pctx->Pr, SYS_vfork, 0); in pctx_set_events()
325 (void) Psysexit(pctx->Pr, SYS_forksys, 0); in pctx_set_events()
326 if (Punsetflags(pctx->Pr, PR_FORK) == -1) in pctx_set_events()
337 (void) Psysexit(pctx->Pr, SYS_execve, 1); in pctx_set_events()
338 (void) Psysentry(pctx->Pr, SYS_execve, 1); in pctx_set_events()
340 (void) Psysexit(pctx->Pr, SYS_execve, 0); in pctx_set_events()
341 (void) Psysentry(pctx->Pr, SYS_execve, 0); in pctx_set_events()
344 (void) Psysexit(pctx->Pr, SYS_lwp_create, in pctx_set_events()
348 (void) Psysentry(pctx->Pr, SYS_lwp_exit, in pctx_set_events()
376 if (pctx->Pr == NULL) in pctx_begin_syscalls()
380 (void) Pcreate_agent(pctx->Pr); in pctx_begin_syscalls()
387 if (pctx->Pr == NULL) in pctx_end_syscalls()
390 (void) Pdestroy_agent(pctx->Pr); in pctx_end_syscalls()
413 pstatus = Pstatus(pctx->Pr); in pctx_lwpiterate()
465 if (pctx->Pr) { in pctx_free()
466 Pfree(pctx->Pr); in pctx_free()
467 pctx->Pr = NULL; in pctx_free()
478 if (pctx->Pr) { in pctx_release()
479 Prelease(pctx->Pr, PRELEASE_CLEAR); in pctx_release()
480 pctx->Pr = NULL; in pctx_release()
533 pid_t pid = Pstatus(pctx->Pr)->pr_pid; in pctx_run()
575 if (Psetrun(pctx->Pr, 0, 0) != 0) { in pctx_run()
611 (void) Pwait(pctx->Pr, mswait); in pctx_run()
614 switch (pstate = Pstate(pctx->Pr)) { in pctx_run()
619 if (Pstop(pctx->Pr, 5 * MILLISEC) == -1 || in pctx_run()
620 (pstate = Pstate(pctx->Pr)) != PS_STOP) { in pctx_run()
633 (void) Preopen(pctx->Pr); in pctx_run()
634 if ((pstate = Pstate(pctx->Pr)) != PS_LOST) in pctx_run()
660 pstatus = Pstatus(pctx->Pr); in pctx_run()
731 Ppsinfo(pctx->Pr), sizeof (psinfo)); in pctx_run()
781 pctx->Pr, PR_KLC); in pctx_run()
974 error = Psyscall(pctx->Pr, &rval, SYS_cpc, 5, &argd[0]); in __pctx_cpc()