* ktrace itself generates events, such as context switches, which we do not * wish to trace. Maintain a flag, TDP_INKTRACE, on each thread to determine * whether or not it is in a region where tracing of events should be * suppressed. */
| 168 | * suppressed. |
| 169 | */ |
| 170 | static void |
| 171 | ktrace_enter(struct thread *td) |
| 172 | { |
| 173 | |
| 174 | KASSERT(!(td->td_pflags & TDP_INKTRACE), ("ktrace_enter: flag set")); |
| 175 | td->td_pflags |= TDP_INKTRACE; |
| 176 | } |
| 177 | |
| 178 | static void |
| 179 | ktrace_exit(struct thread *td) |
no outgoing calls
no test coverage detected