35 #include "opt_kdtrace.h"
39 #include <sys/types.h>
41 #include <sys/lockstat.h>
48 uint32_t lockstat_probemap[LS_NPROBES];
49 void (*lockstat_probe_func)(uint32_t, uintptr_t, uintptr_t,
50 uintptr_t, uintptr_t, uintptr_t);
51 int lockstat_enabled = 0;
54 lockstat_nsecs(
struct lock_object *lo)
59 if (!lockstat_enabled)
61 if ((lo->lo_flags & LO_NOPROFILE) != 0)
65 ns = bt.sec * (uint64_t)1000000000;
66 ns += ((uint64_t)1000000000 * (uint32_t)(bt.frac >> 32)) >> 32;
void bintime(struct bintime *bt)
void binuptime(struct bintime *bt)