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

Function enable_lock_prof

freebsd/kern/subr_lock.c:491–509  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

489}
490
491static int
492enable_lock_prof(SYSCTL_HANDLER_ARGS)
493{
494 int error, v;
495
496 v = lock_prof_enable;
497 error = sysctl_handle_int(oidp, &v, v, req);
498 if (error)
499 return (error);
500 if (req->newptr == NULL)
501 return (error);
502 if (v == lock_prof_enable)
503 return (0);
504 if (v == 1)
505 lock_prof_reset();
506 lock_prof_enable = !!v;
507
508 return (0);
509}
510
511static int
512reset_lock_prof_stats(SYSCTL_HANDLER_ARGS)

Callers

nothing calls this directly

Calls 2

sysctl_handle_intFunction · 0.85
lock_prof_resetFunction · 0.85

Tested by

no test coverage detected