Fix the result of a mismerge. MUTEX_HELD should be DT_MUTEX_HELD() and
Plmid() is not supposed to be called.
This commit is contained in:
parent
7134e39042
commit
31a396ad47
@ -444,7 +444,9 @@ dt_pid_mod_filt(void *arg, const prmap_t *pmp, const char *obj)
|
||||
if (gmatch(pp->dpp_obj, pp->dpp_mod))
|
||||
return (dt_pid_per_mod(pp, pmp, obj));
|
||||
|
||||
#if defined(sun)
|
||||
(void) Plmid(pp->dpp_pr, pmp->pr_vaddr, &pp->dpp_lmid);
|
||||
#endif
|
||||
|
||||
dt_pid_objname(name, sizeof (name), pp->dpp_lmid, pp->dpp_obj);
|
||||
|
||||
@ -676,7 +678,7 @@ dt_pid_create_usdt_probes(dtrace_probedesc_t *pdp, dtrace_hdl_t *dtp,
|
||||
struct ps_prochandle *P = dpr->dpr_proc;
|
||||
int ret = 0;
|
||||
|
||||
assert(MUTEX_HELD(&dpr->dpr_lock));
|
||||
assert(DT_MUTEX_HELD(&dpr->dpr_lock));
|
||||
|
||||
#ifdef DOODAD
|
||||
(void) Pupdate_maps(P);
|
||||
|
@ -99,7 +99,7 @@ dt_proc_bpcreate(dt_proc_t *dpr, uintptr_t addr, dt_bkpt_f *func, void *data)
|
||||
struct ps_prochandle *P = dpr->dpr_proc;
|
||||
dt_bkpt_t *dbp;
|
||||
|
||||
assert(MUTEX_HELD(&dpr->dpr_lock));
|
||||
assert(DT_MUTEX_HELD(&dpr->dpr_lock));
|
||||
|
||||
if ((dbp = dt_zalloc(dpr->dpr_hdl, sizeof (dt_bkpt_t))) != NULL) {
|
||||
dbp->dbp_func = func;
|
||||
@ -126,7 +126,7 @@ dt_proc_bpdestroy(dt_proc_t *dpr, int delbkpts)
|
||||
#endif
|
||||
dt_bkpt_t *dbp, *nbp;
|
||||
|
||||
assert(MUTEX_HELD(&dpr->dpr_lock));
|
||||
assert(DT_MUTEX_HELD(&dpr->dpr_lock));
|
||||
|
||||
for (dbp = dt_list_next(&dpr->dpr_bps); dbp != NULL; dbp = nbp) {
|
||||
printf("%s:%s(%d): DOODAD\n",__FUNCTION__,__FILE__,__LINE__);
|
||||
@ -150,7 +150,7 @@ dt_proc_bpmatch(dtrace_hdl_t *dtp, dt_proc_t *dpr)
|
||||
const lwpstatus_t *psp = &Pstatus(dpr->dpr_proc)->pr_lwp;
|
||||
dt_bkpt_t *dbp;
|
||||
|
||||
assert(MUTEX_HELD(&dpr->dpr_lock));
|
||||
assert(DT_MUTEX_HELD(&dpr->dpr_lock));
|
||||
|
||||
for (dbp = dt_list_next(&dpr->dpr_bps);
|
||||
dbp != NULL; dbp = dt_list_next(dbp)) {
|
||||
@ -177,7 +177,7 @@ dt_proc_bpenable(dt_proc_t *dpr)
|
||||
{
|
||||
dt_bkpt_t *dbp;
|
||||
|
||||
assert(MUTEX_HELD(&dpr->dpr_lock));
|
||||
assert(DT_MUTEX_HELD(&dpr->dpr_lock));
|
||||
|
||||
for (dbp = dt_list_next(&dpr->dpr_bps);
|
||||
dbp != NULL; dbp = dt_list_next(dbp)) {
|
||||
@ -197,7 +197,7 @@ dt_proc_bpdisable(dt_proc_t *dpr)
|
||||
{
|
||||
dt_bkpt_t *dbp;
|
||||
|
||||
assert(MUTEX_HELD(&dpr->dpr_lock));
|
||||
assert(DT_MUTEX_HELD(&dpr->dpr_lock));
|
||||
|
||||
for (dbp = dt_list_next(&dpr->dpr_bps);
|
||||
dbp != NULL; dbp = dt_list_next(dbp)) {
|
||||
@ -248,7 +248,7 @@ dt_proc_notify(dtrace_hdl_t *dtp, dt_proc_hash_t *dph, dt_proc_t *dpr,
|
||||
static void
|
||||
dt_proc_stop(dt_proc_t *dpr, uint8_t why)
|
||||
{
|
||||
assert(MUTEX_HELD(&dpr->dpr_lock));
|
||||
assert(DT_MUTEX_HELD(&dpr->dpr_lock));
|
||||
assert(why != DT_PROC_STOP_IDLE);
|
||||
|
||||
if (dpr->dpr_stop & why) {
|
||||
@ -350,7 +350,7 @@ dt_proc_attach(dt_proc_t *dpr, int exec)
|
||||
rd_err_e err;
|
||||
GElf_Sym sym;
|
||||
|
||||
assert(MUTEX_HELD(&dpr->dpr_lock));
|
||||
assert(DT_MUTEX_HELD(&dpr->dpr_lock));
|
||||
|
||||
if (exec) {
|
||||
if (psp->pr_lwp.pr_errno != 0)
|
||||
@ -416,7 +416,7 @@ dt_proc_waitrun(dt_proc_t *dpr)
|
||||
const long wstop = PCWSTOP;
|
||||
int pfd = Pctlfd(P);
|
||||
|
||||
assert(MUTEX_HELD(&dpr->dpr_lock));
|
||||
assert(DT_MUTEX_HELD(&dpr->dpr_lock));
|
||||
assert(psp->pr_flags & PR_STOPPED);
|
||||
assert(Pstate(P) == PS_STOP);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user