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()
321 (void) Psysexit(pctx->Pr, SYS_vfork, 1); in pctx_set_events()
322 (void) Psysexit(pctx->Pr, SYS_forksys, 1); in pctx_set_events()
323 if (Psetflags(pctx->Pr, PR_FORK) == -1) in pctx_set_events()
326 (void) Psysexit(pctx->Pr, SYS_vfork, 0); in pctx_set_events()
327 (void) Psysexit(pctx->Pr, SYS_forksys, 0); in pctx_set_events()
328 if (Punsetflags(pctx->Pr, PR_FORK) == -1) in pctx_set_events()
339 (void) Psysexit(pctx->Pr, SYS_execve, 1); in pctx_set_events()
340 (void) Psysentry(pctx->Pr, SYS_execve, 1); in pctx_set_events()
342 (void) Psysexit(pctx->Pr, SYS_execve, 0); in pctx_set_events()
343 (void) Psysentry(pctx->Pr, SYS_execve, 0); in pctx_set_events()
346 (void) Psysexit(pctx->Pr, SYS_lwp_create, in pctx_set_events()
350 (void) Psysentry(pctx->Pr, SYS_lwp_exit, in pctx_set_events()
378 if (pctx->Pr == NULL) in pctx_begin_syscalls()
382 (void) Pcreate_agent(pctx->Pr); in pctx_begin_syscalls()
389 if (pctx->Pr == NULL) in pctx_end_syscalls()
392 (void) Pdestroy_agent(pctx->Pr); in pctx_end_syscalls()
415 pstatus = Pstatus(pctx->Pr); in pctx_lwpiterate()
467 if (pctx->Pr) { in pctx_free()
468 Pfree(pctx->Pr); in pctx_free()
469 pctx->Pr = NULL; in pctx_free()
480 if (pctx->Pr) { in pctx_release()
481 Prelease(pctx->Pr, PRELEASE_CLEAR); in pctx_release()
482 pctx->Pr = NULL; in pctx_release()
535 pid_t pid = Pstatus(pctx->Pr)->pr_pid; in pctx_run()
577 if (Psetrun(pctx->Pr, 0, 0) != 0) { in pctx_run()
613 (void) Pwait(pctx->Pr, mswait); in pctx_run()
616 switch (pstate = Pstate(pctx->Pr)) { in pctx_run()
621 if (Pstop(pctx->Pr, 5 * MILLISEC) == -1 || in pctx_run()
622 (pstate = Pstate(pctx->Pr)) != PS_STOP) { in pctx_run()
635 (void) Preopen(pctx->Pr); in pctx_run()
636 if ((pstate = Pstate(pctx->Pr)) != PS_LOST) in pctx_run()
662 pstatus = Pstatus(pctx->Pr); in pctx_run()
733 Ppsinfo(pctx->Pr), sizeof (psinfo)); in pctx_run()
783 pctx->Pr, PR_KLC); in pctx_run()
976 error = Psyscall(pctx->Pr, &rval, SYS_cpc, 5, &argd[0]); in __pctx_cpc()