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

Function lock_profile_obtain_lock_failed

freebsd/sys/lock_profile.h:54–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52void lock_profile_thread_exit(struct thread *td);
53
54static inline void
55lock_profile_obtain_lock_failed(struct lock_object *lo, int *contested,
56 uint64_t *waittime)
57{
58 if (!lock_prof_enable || (lo->lo_flags & LO_NOPROFILE) || *contested)
59 return;
60 *waittime = nanoseconds();
61 *contested = 1;
62}
63
64#else /* !LOCK_PROFILING */
65

Callers 10

__rw_rlock_hardFunction · 0.85
kern_rwlock.cFile · 0.85
kern_sx.cFile · 0.85
_sx_slock_hardFunction · 0.85
lockmgr_slock_hardFunction · 0.85
lockmgr_xlock_hardFunction · 0.85
__lockmgr_argsFunction · 0.85
__mtx_lock_sleepFunction · 0.85
_mtx_lock_spin_cookieFunction · 0.85
thread_lock_flags_Function · 0.85

Calls 1

nanosecondsFunction · 0.85

Tested by

no test coverage detected