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

Function reset_lock_prof_stats

freebsd/kern/subr_lock.c:511–527  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

509}
510
511static int
512reset_lock_prof_stats(SYSCTL_HANDLER_ARGS)
513{
514 int error, v;
515
516 v = 0;
517 error = sysctl_handle_int(oidp, &v, 0, req);
518 if (error)
519 return (error);
520 if (req->newptr == NULL)
521 return (error);
522 if (v == 0)
523 return (0);
524 lock_prof_reset();
525
526 return (0);
527}
528
529static struct lock_prof *
530lock_profile_lookup(struct lock_object *lo, int spin, const char *file,

Callers

nothing calls this directly

Calls 2

sysctl_handle_intFunction · 0.85
lock_prof_resetFunction · 0.85

Tested by

no test coverage detected