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

Function ktrfaultend

freebsd/kern/kern_ktrace.c:891–908  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

889}
890
891void
892ktrfaultend(int result)
893{
894 struct thread *td = curthread;
895 struct ktr_request *req;
896 struct ktr_faultend *kf;
897
898 if (__predict_false(curthread->td_pflags & TDP_INKTRACE))
899 return;
900
901 req = ktr_getrequest(KTR_FAULTEND);
902 if (req == NULL)
903 return;
904 kf = &req->ktr_data.ktr_faultend;
905 kf->result = result;
906 ktr_enqueuerequest(td, req);
907 ktrace_exit(td);
908}
909#endif /* KTRACE */
910
911/* Interface and common routines */

Callers 1

vm_fault_trapFunction · 0.85

Calls 3

ktr_getrequestFunction · 0.85
ktr_enqueuerequestFunction · 0.85
ktrace_exitFunction · 0.85

Tested by

no test coverage detected