Lines Matching refs:dpr
79 dt_pid_error(dtrace_hdl_t *dtp, dt_pcb_t *pcb, dt_proc_t *dpr, in dt_pid_error() argument
90 assert(dpr != NULL); in dt_pid_error()
91 len = vsnprintf(dpr->dpr_errmsg, sizeof (dpr->dpr_errmsg), in dt_pid_error()
94 if (dpr->dpr_errmsg[len - 2] == '\n') in dt_pid_error()
95 dpr->dpr_errmsg[len - 2] = '\0'; in dt_pid_error()
110 dt_proc_t *dpr = pp->dpp_dpr; in dt_pid_per_sym() local
142 return (dt_pid_error(dtp, pcb, dpr, ftp, in dt_pid_per_sym()
153 return (dt_pid_error(dtp, pcb, dpr, ftp, in dt_pid_per_sym()
166 return (dt_pid_error(dtp, pcb, dpr, ftp, D_PROC_NAME, in dt_pid_per_sym()
171 return (dt_pid_error(dtp, pcb, dpr, ftp, D_PROC_OFF, in dt_pid_per_sym()
180 return (dt_pid_error(dtp, pcb, dpr, ftp, in dt_pid_per_sym()
187 return (dt_pid_error(dtp, pcb, dpr, ftp, D_PROC_ALIGN, in dt_pid_per_sym()
197 return (dt_pid_error(dtp, pcb, dpr, ftp, in dt_pid_per_sym()
254 dt_proc_t *dpr = pp->dpp_dpr; in dt_pid_per_mod() local
322 return (dt_pid_error(dtp, pcb, dpr, NULL, in dt_pid_per_mod()
441 dt_pcb_t *pcb, dt_proc_t *dpr) in dt_pid_create_pid_probes() argument
447 pp.dpp_dpr = dpr; in dt_pid_create_pid_probes()
448 pp.dpp_pr = dpr->dpr_proc; in dt_pid_create_pid_probes()
456 return (dt_pid_error(dtp, pcb, dpr, NULL, D_PROC_DYN, in dt_pid_create_pid_probes()
476 return (dt_pid_error(dtp, pcb, dpr, NULL, D_PROC_LIB, in dt_pid_create_pid_probes()
482 return (dt_pid_error(dtp, pcb, dpr, NULL, D_PROC_NAME, in dt_pid_create_pid_probes()
579 dt_pcb_t *pcb, dt_proc_t *dpr) in dt_pid_create_usdt_probes() argument
581 struct ps_prochandle *P = dpr->dpr_proc; in dt_pid_create_usdt_probes()
584 assert(MUTEX_HELD(&dpr->dpr_lock)); in dt_pid_create_usdt_probes()
589 (void) dt_pid_error(dtp, pcb, dpr, NULL, D_PROC_USDT, in dt_pid_create_usdt_probes()
604 dt_proc_t *dpr) in dt_pid_get_pid() argument
615 (void) dt_pid_error(dtp, pcb, dpr, NULL, D_PROC_BADPROV, in dt_pid_get_pid()
624 (void) dt_pid_error(dtp, pcb, dpr, NULL, D_PROC_BADPID, in dt_pid_get_pid()
637 dt_proc_t *dpr; in dt_pid_create_probes() local
669 dpr = dt_proc_lookup(dtp, P, 0); in dt_pid_create_probes()
670 assert(dpr != NULL); in dt_pid_create_probes()
671 (void) pthread_mutex_lock(&dpr->dpr_lock); in dt_pid_create_probes()
673 if ((err = dt_pid_create_pid_probes(pdp, dtp, pcb, dpr)) == 0) { in dt_pid_create_probes()
681 (void) pthread_mutex_unlock(&dpr->dpr_lock); in dt_pid_create_probes()
695 dpr = dt_proc_lookup(dtp, P, 0); in dt_pid_create_probes()
696 assert(dpr != NULL); in dt_pid_create_probes()
697 (void) pthread_mutex_lock(&dpr->dpr_lock); in dt_pid_create_probes()
699 if (!dpr->dpr_usdt) { in dt_pid_create_probes()
700 err = dt_pid_create_usdt_probes(pdp, dtp, pcb, dpr); in dt_pid_create_probes()
701 dpr->dpr_usdt = B_TRUE; in dt_pid_create_probes()
704 (void) pthread_mutex_unlock(&dpr->dpr_lock); in dt_pid_create_probes()
712 dt_pid_create_probes_module(dtrace_hdl_t *dtp, dt_proc_t *dpr) in dt_pid_create_probes_module() argument
722 (int)dpr->dpr_pid); in dt_pid_create_probes_module()
731 pid = dt_pid_get_pid(pdp, dtp, NULL, dpr); in dt_pid_create_probes_module()
732 if (pid != dpr->dpr_pid) in dt_pid_create_probes_module()
740 dt_pid_create_pid_probes(&pd, dtp, NULL, dpr) != 0) in dt_pid_create_probes_module()
748 dt_pid_create_usdt_probes(&pd, dtp, NULL, dpr) != 0) in dt_pid_create_probes_module()