| 1272 | } |
| 1273 | |
| 1274 | bool |
| 1275 | thread_suspend_check_needed(void) |
| 1276 | { |
| 1277 | struct proc *p; |
| 1278 | struct thread *td; |
| 1279 | |
| 1280 | td = curthread; |
| 1281 | p = td->td_proc; |
| 1282 | PROC_LOCK_ASSERT(p, MA_OWNED); |
| 1283 | return (P_SHOULDSTOP(p) || ((p->p_flag & P_TRACED) != 0 && |
| 1284 | (td->td_dbgflags & TDB_SUSPEND) != 0)); |
| 1285 | } |
| 1286 | |
| 1287 | /* |
| 1288 | * Called in from locations that can safely check to see |
no outgoing calls
no test coverage detected