Lines Matching defs:pctx
325 pinit_lwp(pctx_t *pctx, pid_t pid, id_t lwpid, void *arg)
366 if (cpc_bind_pctx(cpc, pctx, lwpid, set, 0) != 0 ||
391 pfini_lwp(pctx_t *pctx, pid_t pid, id_t lwpid, void *arg)
448 plwp_create(pctx_t *pctx, pid_t pid, id_t lwpid, void *arg)
467 plwp_exit(pctx_t *pctx, pid_t pid, id_t lwpid, void *arg)
492 pexec(pctx_t *pctx, pid_t pid, id_t lwpid, char *name, void *arg)
537 pexit(pctx_t *pctx, pid_t pid, id_t lwpid, int status, void *arg)
571 ptick(pctx_t *pctx, pid_t pid, id_t lwpid, void *arg)
626 if (cpc_bind_pctx(cpc, pctx, lwpid, next, 0) != 0)
654 * pctx handle already opened on the child of the original controlled process.
657 pfork(pctx_t *pctx, pid_t oldpid, pid_t pid, id_t lwpid, void *arg)
666 if (pctx_set_events(pctx,
676 (void) pctx_run(pctx, opts->mseconds, opts->nsamples, ptick);
692 pctx_t *pctx;
704 pctx = pctx_create(argv[optind],
706 if (pctx == NULL) {
714 pctx = pctx_capture(opts->pid, state, 1, cputrack_pctx_errfn);
715 if (pctx == NULL) {
724 err = pctx_set_events(pctx,
743 err = pctx_run(pctx, opts->mseconds, opts->nsamples, ptick);