| 509 | } |
| 510 | |
| 511 | static int |
| 512 | reset_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 | |
| 529 | static struct lock_prof * |
| 530 | lock_profile_lookup(struct lock_object *lo, int spin, const char *file, |
nothing calls this directly
no test coverage detected