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

Function ktrcsw

freebsd/kern/kern_ktrace.c:736–758  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

734}
735
736void
737ktrcsw(int out, int user, const char *wmesg)
738{
739 struct thread *td = curthread;
740 struct ktr_request *req;
741 struct ktr_csw *kc;
742
743 if (__predict_false(curthread->td_pflags & TDP_INKTRACE))
744 return;
745
746 req = ktr_getrequest(KTR_CSW);
747 if (req == NULL)
748 return;
749 kc = &req->ktr_data.ktr_csw;
750 kc->out = out;
751 kc->user = user;
752 if (wmesg != NULL)
753 strlcpy(kc->wmesg, wmesg, sizeof(kc->wmesg));
754 else
755 bzero(kc->wmesg, sizeof(kc->wmesg));
756 ktr_enqueuerequest(td, req);
757 ktrace_exit(td);
758}
759
760void
761ktrstruct(const char *name, const void *data, size_t datalen)

Callers 8

_cv_waitFunction · 0.85
_cv_wait_unlockFunction · 0.85
_cv_wait_sigFunction · 0.85
_cv_timedwait_sbtFunction · 0.85
_cv_timedwait_sig_sbtFunction · 0.85
astFunction · 0.85
_sleepFunction · 0.85
msleep_spin_sbtFunction · 0.85

Calls 5

ktr_getrequestFunction · 0.85
bzeroFunction · 0.85
ktr_enqueuerequestFunction · 0.85
ktrace_exitFunction · 0.85
strlcpyFunction · 0.50

Tested by

no test coverage detected