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

Function ktr_submitrequest

freebsd/kern/kern_ktrace.c:391–403  ·  view source on GitHub ↗

* Submit a trace record for immediate commit to disk -- to be used only * where entering VFS is OK. First drain any pending records that may have * been cached in the thread. */

Source from the content-addressed store, hash-verified

389 * been cached in the thread.
390 */
391static void
392ktr_submitrequest(struct thread *td, struct ktr_request *req)
393{
394
395 ktrace_assert(td);
396
397 sx_xlock(&ktrace_sx);
398 ktr_drain(td);
399 ktr_writerequest(td, req);
400 ktr_freerequest(req);
401 sx_xunlock(&ktrace_sx);
402 ktrace_exit(td);
403}
404
405static void
406ktr_freerequest(struct ktr_request *req)

Callers 8

ktrsyscallFunction · 0.85
ktrsysretFunction · 0.85
ktrnameiFunction · 0.85
ktrsysctlFunction · 0.85
ktrgenioFunction · 0.85
ktrstructFunction · 0.85
ktrstructarrayFunction · 0.85
sys_utraceFunction · 0.85

Calls 5

ktrace_assertFunction · 0.85
ktr_drainFunction · 0.85
ktr_writerequestFunction · 0.85
ktr_freerequestFunction · 0.85
ktrace_exitFunction · 0.85

Tested by

no test coverage detected