return;
}
- simple_lock(&kd_trace_lock);
+ usimple_lock(&kd_trace_lock);
if (kdebug_flags & KDBG_PIDCHECK)
{
/* If kdebug flag is not set for current proc, return */
if ((curproc && !(curproc->p_flag & P_KDEBUG)) &&
((debugid&0xffff0000) != (MACHDBG_CODE(DBG_MACH_SCHED, 0) | DBG_FUNC_NONE)))
{
- simple_unlock(&kd_trace_lock);
+ usimple_unlock(&kd_trace_lock);
ml_set_interrupts_enabled(s);
return;
}
if ((curproc && (curproc->p_flag & P_KDEBUG)) &&
((debugid&0xffff0000) != (MACHDBG_CODE(DBG_MACH_SCHED, 0) | DBG_FUNC_NONE)))
{
- simple_unlock(&kd_trace_lock);
+ usimple_unlock(&kd_trace_lock);
ml_set_interrupts_enabled(s);
return;
}
if ((debugid < kdlog_beg) || (debugid > kdlog_end)
&& (debugid >> 24 != DBG_TRACE))
{
- simple_unlock(&kd_trace_lock);
+ usimple_unlock(&kd_trace_lock);
ml_set_interrupts_enabled(s);
return;
}
(debugid & DBG_FUNC_MASK) != kdlog_value4 &&
(debugid >> 24 != DBG_TRACE))
{
- simple_unlock(&kd_trace_lock);
+ usimple_unlock(&kd_trace_lock);
ml_set_interrupts_enabled(s);
return;
}
kdebug_nolog = 1;
kdebug_flags |= KDBG_WRAPPED;
}
- simple_unlock(&kd_trace_lock);
+ usimple_unlock(&kd_trace_lock);
ml_set_interrupts_enabled(s);
}
return;
}
- simple_lock(&kd_trace_lock);
+ usimple_lock(&kd_trace_lock);
if (kdebug_flags & KDBG_PIDCHECK)
{
/* If kdebug flag is not set for current proc, return */
if ((curproc && !(curproc->p_flag & P_KDEBUG)) &&
((debugid&0xffff0000) != (MACHDBG_CODE(DBG_MACH_SCHED, 0) | DBG_FUNC_NONE)))
{
- simple_unlock(&kd_trace_lock);
+ usimple_unlock(&kd_trace_lock);
ml_set_interrupts_enabled(s);
return;
}
if ((curproc && (curproc->p_flag & P_KDEBUG)) &&
((debugid&0xffff0000) != (MACHDBG_CODE(DBG_MACH_SCHED, 0) | DBG_FUNC_NONE)))
{
- simple_unlock(&kd_trace_lock);
+ usimple_unlock(&kd_trace_lock);
ml_set_interrupts_enabled(s);
return;
}
if ((debugid < kdlog_beg) || (debugid > kdlog_end)
&& (debugid >> 24 != DBG_TRACE))
{
- simple_unlock(&kd_trace_lock);
+ usimple_unlock(&kd_trace_lock);
ml_set_interrupts_enabled(s);
return;
}
(debugid & DBG_FUNC_MASK) != kdlog_value4 &&
(debugid >> 24 != DBG_TRACE))
{
- simple_unlock(&kd_trace_lock);
+ usimple_unlock(&kd_trace_lock);
ml_set_interrupts_enabled(s);
return;
}
kdebug_nolog = 1;
kdebug_flags |= KDBG_WRAPPED;
}
- simple_unlock(&kd_trace_lock);
+ usimple_unlock(&kd_trace_lock);
ml_set_interrupts_enabled(s);
}
kd_buf * my_kd_bufptr;
s = ml_set_interrupts_enabled(FALSE);
- simple_lock(&kd_trace_lock);
+ usimple_lock(&kd_trace_lock);
my_kdebug_flags = kdebug_flags;
my_kd_bufptr = kd_bufptr;
- simple_unlock(&kd_trace_lock);
+ usimple_unlock(&kd_trace_lock);
ml_set_interrupts_enabled(s);
count = avail/sizeof(kd_buf);