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

Function ktrsysret

freebsd/kern/kern_ktrace.c:480–497  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

478}
479
480void
481ktrsysret(int code, int error, register_t retval)
482{
483 struct ktr_request *req;
484 struct ktr_sysret *ktp;
485
486 if (__predict_false(curthread->td_pflags & TDP_INKTRACE))
487 return;
488
489 req = ktr_getrequest(KTR_SYSRET);
490 if (req == NULL)
491 return;
492 ktp = &req->ktr_data.ktr_sysret;
493 ktp->ktr_code = code;
494 ktp->ktr_error = error;
495 ktp->ktr_retval = ((error == 0) ? retval: 0); /* what about val2 ? */
496 ktr_submitrequest(curthread, req);
497}
498
499/*
500 * When a setuid process execs, disable tracing.

Callers 2

syscallretFunction · 0.85
fork_returnFunction · 0.85

Calls 2

ktr_getrequestFunction · 0.85
ktr_submitrequestFunction · 0.85

Tested by

no test coverage detected