MCPcopy Create free account
hub / github.com/F-Stack/f-stack / epoch_trace_enter

Function epoch_trace_enter

freebsd/kern/subr_epoch.c:216–232  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

214}
215
216static inline void
217epoch_trace_enter(struct thread *td, epoch_t epoch, epoch_tracker_t et,
218 const char *file, int line)
219{
220 epoch_tracker_t iet;
221
222 SLIST_FOREACH(iet, &td->td_epochs, et_tlink)
223 if (iet->et_epoch == epoch)
224 epoch_trace_report("Recursively entering epoch %s "
225 "at %s:%d, previously entered at %s:%d\n",
226 epoch->e_name, file, line,
227 iet->et_file, iet->et_line);
228 et->et_epoch = epoch;
229 et->et_file = file;
230 et->et_line = line;
231 SLIST_INSERT_HEAD(&td->td_epochs, et, et_tlink);
232}
233
234static inline void
235epoch_trace_exit(struct thread *td, epoch_t epoch, epoch_tracker_t et,

Callers 1

_epoch_enter_preemptFunction · 0.85

Calls 1

epoch_trace_reportFunction · 0.85

Tested by

no test coverage detected