| 52 | void lock_profile_thread_exit(struct thread *td); |
| 53 | |
| 54 | static inline void |
| 55 | lock_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 |
no test coverage detected