Lines Matching refs:lu_base
226 } lu_base = { variable
233 for (i = 0; i < lu_base.nr_locks; ++i) { in lu_find()
234 lock_wrapper *lock = &lu_base.locks[i]; in lu_find()
244 ++lu_base.nr_locks; in trace_lock_alloc()
245 lu_base.locks = realloc(lu_base.locks, in trace_lock_alloc()
246 sizeof(lock_wrapper) * lu_base.nr_locks); in trace_lock_alloc()
247 lock = lu_base.cbs.alloc(locktype); in trace_lock_alloc()
248 lu_base.locks[lu_base.nr_locks - 1] = (lock_wrapper){ lock, ALLOC, 0 }; in trace_lock_alloc()
258 lu_base.cbs.free(lock_, locktype); in trace_lock_free()
269 return lu_base.cbs.lock(mode, lock_); in trace_lock_lock()
280 return lu_base.cbs.unlock(mode, lock_); in trace_lock_unlock()
308 memcpy(&lu_base.cbs, evthread_get_lock_callbacks(), in use_lock_unlock_profiler()
309 sizeof(lu_base.cbs)); in use_lock_unlock_profiler()
327 free(lu_base.locks); in free_lock_unlock_profiler()