/Linux-v4.19/kernel/locking/ |
D | rwsem.c | 24 rwsem_acquire_read(&sem->dep_map, 0, 0, _RET_IP_); in down_read() 35 rwsem_acquire_read(&sem->dep_map, 0, 0, _RET_IP_); in down_read_killable() 38 rwsem_release(&sem->dep_map, 1, _RET_IP_); in down_read_killable() 56 rwsem_acquire_read(&sem->dep_map, 0, 1, _RET_IP_); in down_read_trylock() 70 rwsem_acquire(&sem->dep_map, 0, 0, _RET_IP_); in down_write() 84 rwsem_acquire(&sem->dep_map, 0, 0, _RET_IP_); in down_write_killable() 87 rwsem_release(&sem->dep_map, 1, _RET_IP_); in down_write_killable() 105 rwsem_acquire(&sem->dep_map, 0, 1, _RET_IP_); in down_write_trylock() 119 rwsem_release(&sem->dep_map, 1, _RET_IP_); in up_read() 132 rwsem_release(&sem->dep_map, 1, _RET_IP_); in up_write() [all …]
|
D | mutex.c | 925 mutex_acquire_nest(&lock->dep_map, subclass, 0, nest_lock, ip); in __mutex_lock_common() 930 lock_acquired(&lock->dep_map, ip); in __mutex_lock_common() 950 lock_contended(&lock->dep_map, ip); in __mutex_lock_common() 1048 lock_acquired(&lock->dep_map, ip); in __mutex_lock_common() 1063 mutex_release(&lock->dep_map, 1, ip); in __mutex_lock_common() 1160 0, ctx ? &ctx->dep_map : NULL, _RET_IP_, in ww_mutex_lock() 1176 0, ctx ? &ctx->dep_map : NULL, _RET_IP_, in ww_mutex_lock_interruptible() 1197 mutex_release(&lock->dep_map, 1, ip); in __mutex_unlock_slowpath() 1384 mutex_acquire(&lock->dep_map, 0, 1, _RET_IP_); in mutex_trylock()
|
D | spinlock.c | 354 spin_acquire(&lock->dep_map, subclass, 0, _RET_IP_); in _raw_spin_lock_nested() 366 spin_acquire(&lock->dep_map, subclass, 0, _RET_IP_); in _raw_spin_lock_irqsave_nested() 377 spin_acquire_nest(&lock->dep_map, 0, 0, nest_lock, _RET_IP_); in _raw_spin_lock_nest_lock()
|
D | rtmutex.c | 1472 mutex_acquire(&lock->dep_map, subclass, 0, _RET_IP_); in __rt_mutex_lock() 1518 mutex_acquire(&lock->dep_map, 0, 0, _RET_IP_); in rt_mutex_lock_interruptible() 1521 mutex_release(&lock->dep_map, 1, _RET_IP_); in rt_mutex_lock_interruptible() 1560 mutex_acquire(&lock->dep_map, 0, 0, _RET_IP_); in rt_mutex_timed_lock() 1565 mutex_release(&lock->dep_map, 1, _RET_IP_); in rt_mutex_timed_lock() 1591 mutex_acquire(&lock->dep_map, 0, 1, _RET_IP_); in rt_mutex_trylock() 1604 mutex_release(&lock->dep_map, 1, _RET_IP_); in rt_mutex_unlock()
|
D | spinlock_debug.c | 24 lockdep_init_map(&lock->dep_map, name, key, 0); in __raw_spin_lock_init() 42 lockdep_init_map(&lock->dep_map, name, key, 0); in __rwlock_init()
|
/Linux-v4.19/include/linux/ |
D | rwlock_api_smp.h | 121 rwlock_acquire_read(&lock->dep_map, 0, 1, _RET_IP_); in __raw_read_trylock() 132 rwlock_acquire(&lock->dep_map, 0, 1, _RET_IP_); in __raw_write_trylock() 149 rwlock_acquire_read(&lock->dep_map, 0, 0, _RET_IP_); in __raw_read_lock() 159 rwlock_acquire_read(&lock->dep_map, 0, 0, _RET_IP_); in __raw_read_lock_irqsave() 169 rwlock_acquire_read(&lock->dep_map, 0, 0, _RET_IP_); in __raw_read_lock_irq() 176 rwlock_acquire_read(&lock->dep_map, 0, 0, _RET_IP_); in __raw_read_lock_bh() 186 rwlock_acquire(&lock->dep_map, 0, 0, _RET_IP_); in __raw_write_lock_irqsave() 196 rwlock_acquire(&lock->dep_map, 0, 0, _RET_IP_); in __raw_write_lock_irq() 203 rwlock_acquire(&lock->dep_map, 0, 0, _RET_IP_); in __raw_write_lock_bh() 210 rwlock_acquire(&lock->dep_map, 0, 0, _RET_IP_); in __raw_write_lock() [all …]
|
D | spinlock_api_smp.h | 90 spin_acquire(&lock->dep_map, 0, 1, _RET_IP_); in __raw_spin_trylock() 110 spin_acquire(&lock->dep_map, 0, 0, _RET_IP_); in __raw_spin_lock_irqsave() 128 spin_acquire(&lock->dep_map, 0, 0, _RET_IP_); in __raw_spin_lock_irq() 135 spin_acquire(&lock->dep_map, 0, 0, _RET_IP_); in __raw_spin_lock_bh() 142 spin_acquire(&lock->dep_map, 0, 0, _RET_IP_); in __raw_spin_lock() 150 spin_release(&lock->dep_map, 1, _RET_IP_); in __raw_spin_unlock() 158 spin_release(&lock->dep_map, 1, _RET_IP_); in __raw_spin_unlock_irqrestore() 166 spin_release(&lock->dep_map, 1, _RET_IP_); in __raw_spin_unlock_irq() 174 spin_release(&lock->dep_map, 1, _RET_IP_); in __raw_spin_unlock_bh() 183 spin_acquire(&lock->dep_map, 0, 1, _RET_IP_); in __raw_spin_trylock_bh()
|
D | lockdep.h | 294 lockdep_init_map(&(lock)->dep_map, #key, key, 0) 296 lockdep_init_map(&(lock)->dep_map, name, key, 0) 298 lockdep_init_map(&(lock)->dep_map, #key, key, sub) 300 lockdep_init_map(&(lock)->dep_map, #lock, \ 301 (lock)->dep_map.key, sub) 308 #define lockdep_match_class(lock, key) lockdep_match_key(&(lock)->dep_map, key) 347 #define lockdep_is_held(lock) lock_is_held(&(lock)->dep_map) 348 #define lockdep_is_held_type(lock, r) lock_is_held_type(&(lock)->dep_map, (r)) 390 #define lockdep_pin_lock(l) lock_pin_lock(&(l)->dep_map) 391 #define lockdep_repin_lock(l,c) lock_repin_lock(&(l)->dep_map, (c)) [all …]
|
D | spinlock_types.h | 27 struct lockdep_map dep_map; member 36 # define SPIN_DEP_MAP_INIT(lockname) .dep_map = { .name = #lockname } 66 # define LOCK_PADSIZE (offsetof(struct raw_spinlock, dep_map)) 69 struct lockdep_map dep_map; member
|
D | percpu-rwsem.h | 36 rwsem_acquire_read(&sem->rw_sem.dep_map, 0, 0, _RET_IP_); in percpu_down_read_preempt_disable() 81 rwsem_acquire_read(&sem->rw_sem.dep_map, 0, 1, _RET_IP_); in percpu_down_read_trylock() 102 rwsem_release(&sem->rw_sem.dep_map, 1, _RET_IP_); in percpu_up_read_preempt_enable() 133 lock_release(&sem->rw_sem.dep_map, 1, ip); in percpu_rwsem_release() 143 lock_acquire(&sem->rw_sem.dep_map, 0, 1, read, 1, NULL, ip); in percpu_rwsem_acquire()
|
D | seqlock.h | 51 struct lockdep_map dep_map; member 61 lockdep_init_map(&s->dep_map, name, key, 0); in __seqcount_init() 67 .dep_map = { .name = #lockname } \ 81 seqcount_acquire_read(&l->dep_map, 0, 0, _RET_IP_); in seqcount_lockdep_reader_access() 82 seqcount_release(&l->dep_map, 1, _RET_IP_); in seqcount_lockdep_reader_access() 377 seqcount_acquire(&s->dep_map, subclass, 0, _RET_IP_); in write_seqcount_begin_nested() 387 seqcount_release(&s->dep_map, 1, _RET_IP_); in write_seqcount_end()
|
D | srcu.h | 51 #define __SRCU_DEP_MAP_INIT(srcu_name) .dep_map = { .name = #srcu_name }, 133 return lock_is_held(&sp->dep_map); in srcu_read_lock_held() 199 rcu_lock_acquire(&(sp)->dep_map); in srcu_read_lock() 223 rcu_lock_release(&(sp)->dep_map); in srcu_read_unlock()
|
D | mutex.h | 64 struct lockdep_map dep_map; member 123 , .dep_map = { .name = #lockname } 173 typecheck(struct lockdep_map *, &(nest_lock)->dep_map); \ 174 _mutex_lock_nest_lock(lock, &(nest_lock)->dep_map); \
|
D | rwsem.h | 43 struct lockdep_map dep_map; member 75 # define __RWSEM_DEP_MAP_INIT(lockname) , .dep_map = { .name = #lockname } 175 typecheck(struct lockdep_map *, &(nest_lock)->dep_map); \ 176 _down_write_nest_lock(sem, &(nest_lock)->dep_map); \
|
D | ww_mutex.h | 43 struct lockdep_map dep_map; member 144 lockdep_init_map(&ctx->dep_map, ww_class->acquire_name, in ww_acquire_init() 146 mutex_acquire(&ctx->dep_map, 0, 0, _RET_IP_); in ww_acquire_init() 185 mutex_release(&ctx->dep_map, 0, _THIS_IP_); in ww_acquire_fini()
|
D | rwlock_types.h | 18 struct lockdep_map dep_map; member 25 # define RW_DEP_MAP_INIT(lockname) .dep_map = { .name = #lockname }
|
D | rtmutex.h | 41 struct lockdep_map dep_map; member 80 , .dep_map = { .name = #mutexname }
|
D | rwsem-spinlock.h | 29 struct lockdep_map dep_map; member
|
D | semaphore.h | 36 lockdep_init_map(&sem->lock.dep_map, "semaphore->lock", &__key, 0); in sema_init()
|
/Linux-v4.19/tools/lib/lockdep/include/liblockdep/ |
D | rwlock.h | 10 struct lockdep_map dep_map; member 18 .dep_map = STATIC_LOCKDEP_MAP_INIT(#rwl, &((&(rwl))->dep_map)), \ 26 lockdep_init_map(&lock->dep_map, name, key, 0); in __rwlock_init() 40 lock_acquire(&lock->dep_map, 0, 0, 2, 1, NULL, (unsigned long)_RET_IP_); in liblockdep_pthread_rwlock_rdlock() 47 lock_release(&lock->dep_map, 0, (unsigned long)_RET_IP_); in liblockdep_pthread_rwlock_unlock() 53 lock_acquire(&lock->dep_map, 0, 0, 0, 1, NULL, (unsigned long)_RET_IP_); in liblockdep_pthread_rwlock_wrlock() 59 lock_acquire(&lock->dep_map, 0, 1, 2, 1, NULL, (unsigned long)_RET_IP_); in liblockdep_pthread_rwlock_tryrdlock() 65 lock_acquire(&lock->dep_map, 0, 1, 0, 1, NULL, (unsigned long)_RET_IP_); in liblockdep_pthread_rwlock_trywlock()
|
D | mutex.h | 10 struct lockdep_map dep_map; member 18 .dep_map = STATIC_LOCKDEP_MAP_INIT(#mtx, &((&(mtx))->dep_map)), \ 26 lockdep_init_map(&lock->dep_map, name, key, 0); in __mutex_init() 39 lock_acquire(&lock->dep_map, 0, 0, 0, 1, NULL, (unsigned long)_RET_IP_); in liblockdep_pthread_mutex_lock() 45 lock_release(&lock->dep_map, 0, (unsigned long)_RET_IP_); in liblockdep_pthread_mutex_unlock() 51 lock_acquire(&lock->dep_map, 0, 1, 0, 1, NULL, (unsigned long)_RET_IP_); in liblockdep_pthread_mutex_trylock()
|
/Linux-v4.19/tools/lib/lockdep/ |
D | preload.c | 22 struct lockdep_map dep_map; /* Since all locks are dynamic, we need member 200 lockdep_init_map(&l->dep_map, l->name, &l->key, 0); in __get_lock() 255 lock_acquire(&__get_lock(mutex)->dep_map, 0, 0, 0, 1, NULL, in pthread_mutex_lock() 273 lock_release(&__get_lock(mutex)->dep_map, 0, (unsigned long)_RET_IP_); in pthread_mutex_lock() 284 lock_acquire(&__get_lock(mutex)->dep_map, 0, 1, 0, 1, NULL, (unsigned long)_RET_IP_); in pthread_mutex_trylock() 287 lock_release(&__get_lock(mutex)->dep_map, 0, (unsigned long)_RET_IP_); in pthread_mutex_trylock() 298 lock_release(&__get_lock(mutex)->dep_map, 0, (unsigned long)_RET_IP_); in pthread_mutex_unlock() 306 lock_acquire(&__get_lock(mutex)->dep_map, 0, 0, 0, 1, NULL, (unsigned long)_RET_IP_); in pthread_mutex_unlock() 355 lock_acquire(&__get_lock(rwlock)->dep_map, 0, 0, 2, 1, NULL, (unsigned long)_RET_IP_); in pthread_rwlock_rdlock() 358 lock_release(&__get_lock(rwlock)->dep_map, 0, (unsigned long)_RET_IP_); in pthread_rwlock_rdlock() [all …]
|
/Linux-v4.19/lib/ |
D | locking-selftest.c | 1066 # define I_SPINLOCK(x) lockdep_reset_lock(&lock_##x.dep_map) 1067 # define I_RWLOCK(x) lockdep_reset_lock(&rwlock_##x.dep_map) 1068 # define I_MUTEX(x) lockdep_reset_lock(&mutex_##x.dep_map) 1069 # define I_RWSEM(x) lockdep_reset_lock(&rwsem_##x.dep_map) 1070 # define I_WW(x) lockdep_reset_lock(&x.dep_map) 1072 # define I_RTMUTEX(x) lockdep_reset_lock(&rtmutex_##x.dep_map) 1478 mutex_release(&o2.base.dep_map, 1, _THIS_IP_); in ww_test_edeadlk_normal() 1491 mutex_acquire(&o2.base.dep_map, 0, 1, _THIS_IP_); in ww_test_edeadlk_normal() 1503 mutex_release(&o2.base.dep_map, 1, _THIS_IP_); in ww_test_edeadlk_normal_slow() 1517 mutex_acquire(&o2.base.dep_map, 0, 1, _THIS_IP_); in ww_test_edeadlk_normal_slow() [all …]
|
D | bucket_locks.c | 39 lockdep_init_map(&tlocks[i].dep_map, name, key, 0); in __alloc_bucket_spinlocks()
|
/Linux-v4.19/drivers/tty/ |
D | tty_ldsem.c | 39 lock_acquire(&(l)->dep_map, s, t, r, c, n, i) 41 lock_release(&(l)->dep_map, n, i) 54 # define lock_stat(_lock, stat) lock_##stat(&(_lock)->dep_map, _RET_IP_) 88 lockdep_init_map(&sem->dep_map, name, key, 0); in __init_ldsem()
|