trap() tells an fbt probe from a debugger breakpoint by reading the
instruction at the trap address and comparing it with the fbt one. When
a probe is disabled fbt puts the original instruction back, and other
CPUs can already be in the trap for it by then. Such a CPU finds the
original instruction, takes the trap for a breakpoint and drops into
KDB. I've had a guest stop like that twice, both times when dtrace(1)
exited with a probe on a busy function.
DTrace doesn't need the instruction to know its probe. fbt_invop()
looks the address up in its own table, and dtrace_invop_start() returns
-1 when nobody claims it. So ask it for every kernel trap instruction
and go on to KDB only when it says no, like amd64 does.
MFC after: 1 week