if (DTRACE_ANCHORED(mstate->dtms_probe) &&
in_interrupt())
mstate->dtms_ustackdepth = 0;
- else {
- DTRACE_CPUFLAG_SET(CPU_DTRACE_NOFAULT);
+ else
mstate->dtms_ustackdepth =
- dtrace_getustackdepth();
- DTRACE_CPUFLAG_CLEAR(CPU_DTRACE_NOFAULT);
- }
+ dtrace_getustackdepth();
mstate->dtms_present |= DTRACE_MSTATE_USTACKDEPTH;
}
* will contain the caller, which is what we're after.
*/
ustack[3] = 0;
- DTRACE_CPUFLAG_SET(CPU_DTRACE_NOFAULT);
dtrace_getupcstack(ustack, 4);
- DTRACE_CPUFLAG_CLEAR(CPU_DTRACE_NOFAULT);
+
mstate->dtms_ucaller = ustack[3];
mstate->dtms_present |= DTRACE_MSTATE_UCALLER;
}
/*
* Now get a stack with both program counters and frame pointers.
*/
- DTRACE_CPUFLAG_SET(CPU_DTRACE_NOFAULT);
dtrace_getufpstack(buf, fps, nframes + 2);
- DTRACE_CPUFLAG_CLEAR(CPU_DTRACE_NOFAULT);
/*
* If that faulted, we're cooked.
continue;
}
- DTRACE_CPUFLAG_SET(CPU_DTRACE_NOFAULT);
dtrace_getupcstack(
(uint64_t *)(tomax + valoffs),
DTRACE_USTACK_NFRAMES(rec->dtrd_arg) +
2);
- DTRACE_CPUFLAG_CLEAR(CPU_DTRACE_NOFAULT);
continue;
default: