Home
last modified time | relevance | path

Searched refs:dep_map (Results 1 – 25 of 61) sorted by relevance

123

/Linux-v5.15/include/linux/
Drwlock_api_smp.h121 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 …]
Dlockdep.h218 lockdep_init_map_waits(&(lock)->dep_map, #key, key, 0, \
219 (lock)->dep_map.wait_type_inner, \
220 (lock)->dep_map.wait_type_outer)
223 lockdep_init_map_waits(&(lock)->dep_map, name, key, 0, \
224 (lock)->dep_map.wait_type_inner, \
225 (lock)->dep_map.wait_type_outer)
228 lockdep_init_map_waits(&(lock)->dep_map, #key, key, sub,\
229 (lock)->dep_map.wait_type_inner, \
230 (lock)->dep_map.wait_type_outer)
233 lockdep_init_map_waits(&(lock)->dep_map, #lock, (lock)->dep_map.key, sub,\
[all …]
Dspinlock_api_smp.h90 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, _RET_IP_); in __raw_spin_unlock()
158 spin_release(&lock->dep_map, _RET_IP_); in __raw_spin_unlock_irqrestore()
166 spin_release(&lock->dep_map, _RET_IP_); in __raw_spin_unlock_irq()
174 spin_release(&lock->dep_map, _RET_IP_); in __raw_spin_unlock_bh()
183 spin_acquire(&lock->dep_map, 0, 1, _RET_IP_); in __raw_spin_trylock_bh()
Dpercpu-rwsem.h19 struct lockdep_map dep_map; member
24 #define __PERCPU_RWSEM_DEP_MAP_INIT(lockname) .dep_map = { .name = #lockname },
51 rwsem_acquire_read(&sem->dep_map, 0, 0, _RET_IP_); in percpu_down_read()
92 rwsem_acquire_read(&sem->dep_map, 0, 1, _RET_IP_); in percpu_down_read_trylock()
99 rwsem_release(&sem->dep_map, _RET_IP_); in percpu_up_read()
144 lock_release(&sem->dep_map, ip); in percpu_rwsem_release()
150 lock_acquire(&sem->dep_map, 0, 1, read, 1, NULL, ip); in percpu_rwsem_acquire()
Dspinlock_types_raw.h21 struct lockdep_map dep_map; member
31 .dep_map = { \
36 .dep_map = { \
42 .dep_map = { \
Dlocal_lock_internal.h13 struct lockdep_map dep_map; member
20 .dep_map = { \
29 lock_map_acquire(&l->dep_map); in local_lock_acquire()
38 lock_map_release(&l->dep_map); in local_lock_release()
59 lockdep_init_map_type(&(lock)->dep_map, #lock, &__key, \
Dmutex.h25 , .dep_map = { \
74 struct lockdep_map dep_map; member
138 struct lockdep_map dep_map; member
194 typecheck(struct lockdep_map *, &(nest_lock)->dep_map); \
195 _mutex_lock_nest_lock(lock, &(nest_lock)->dep_map); \
Dsrcu.h38 #define __SRCU_DEP_MAP_INIT(srcu_name) .dep_map = { .name = #srcu_name },
95 return lock_is_held(&ssp->dep_map); in srcu_read_lock_held()
164 rcu_lock_acquire(&(ssp)->dep_map); in srcu_read_lock()
189 rcu_lock_release(&(ssp)->dep_map); in srcu_read_unlock()
Drwsem.h22 .dep_map = { \
65 struct lockdep_map dep_map; member
132 struct lockdep_map dep_map; member
232 typecheck(struct lockdep_map *, &(nest_lock)->dep_map); \
233 _down_write_nest_lock(sem, &(nest_lock)->dep_map); \
Dspinlock_types.h22 # define LOCK_PADSIZE (offsetof(struct raw_spinlock, dep_map))
25 struct lockdep_map dep_map; member
53 struct lockdep_map dep_map; member
Drwlock_types.h10 .dep_map = { \
32 struct lockdep_map dep_map; member
61 struct lockdep_map dep_map; member
Dww_mutex.h69 struct lockdep_map dep_map; member
149 lockdep_init_map(&ctx->dep_map, ww_class->acquire_name, in ww_acquire_init()
151 mutex_acquire(&ctx->dep_map, 0, 0, _RET_IP_); in ww_acquire_init()
190 mutex_release(&ctx->dep_map, _THIS_IP_); in ww_acquire_fini()
Dseqlock.h68 struct lockdep_map dep_map; member
78 lockdep_init_map(&s->dep_map, name, key, 0); in __seqcount_init()
85 .dep_map = { .name = #lockname }
103 seqcount_acquire_read(&l->dep_map, 0, 0, _RET_IP_); in seqcount_lockdep_reader_access()
104 seqcount_release(&l->dep_map, _RET_IP_); in seqcount_lockdep_reader_access()
520 seqcount_acquire(&s->dep_map, subclass, 0, _RET_IP_); in do_write_seqcount_begin_nested()
565 seqcount_release(&s->dep_map, _RET_IP_); in do_write_seqcount_end()
Drtmutex.h60 struct lockdep_map dep_map; member
81 .dep_map = { \
/Linux-v5.15/tools/lib/lockdep/include/liblockdep/
Drwlock.h10 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, (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_trywrlock()
Dmutex.h11 struct lockdep_map dep_map; member
19 .dep_map = STATIC_LOCKDEP_MAP_INIT(#mtx, &((&(mtx))->dep_map)), \
27 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, (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()
57 lockdep_reset_lock(&lock->dep_map); in liblockdep_pthread_mutex_destroy()
/Linux-v5.15/tools/lib/lockdep/
Dpreload.c22 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, (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, (unsigned long)_RET_IP_); in pthread_mutex_trylock()
298 lock_release(&__get_lock(mutex)->dep_map, (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, (unsigned long)_RET_IP_); in pthread_rwlock_rdlock()
[all …]
/Linux-v5.15/kernel/locking/
Dspinlock_rt.c43 spin_acquire(&lock->dep_map, 0, 0, _RET_IP_); in rt_spin_lock()
51 spin_acquire(&lock->dep_map, subclass, 0, _RET_IP_); in rt_spin_lock_nested()
59 spin_acquire_nest(&lock->dep_map, 0, 0, nest_lock, _RET_IP_); in rt_spin_lock_nest_lock()
67 spin_release(&lock->dep_map, _RET_IP_); in rt_spin_unlock()
96 spin_acquire(&lock->dep_map, 0, 1, _RET_IP_); in __rt_spin_trylock()
128 lockdep_init_map_type(&lock->dep_map, name, key, 0, LD_WAIT_CONFIG, in __rt_spin_lock_init()
189 rwlock_acquire_read(&rwlock->dep_map, 0, 1, _RET_IP_); in rt_read_trylock()
203 rwlock_acquire(&rwlock->dep_map, 0, 1, _RET_IP_); in rt_write_trylock()
214 rwlock_acquire_read(&rwlock->dep_map, 0, 0, _RET_IP_); in rt_read_lock()
224 rwlock_acquire(&rwlock->dep_map, 0, 0, _RET_IP_); in rt_write_lock()
[all …]
Drtmutex_api.c29 mutex_acquire(&lock->dep_map, subclass, 0, _RET_IP_); in __rt_mutex_lock_common()
32 mutex_release(&lock->dep_map, _RET_IP_); in __rt_mutex_lock_common()
105 mutex_acquire(&lock->dep_map, 0, 1, _RET_IP_); in rt_mutex_trylock()
118 mutex_release(&lock->dep_map, _RET_IP_); in rt_mutex_unlock()
196 lockdep_init_map_wait(&lock->dep_map, name, key, 0, LD_WAIT_SLEEP); in __rt_mutex_init()
476 lockdep_init_map_wait(&mutex->dep_map, name, key, 0, LD_WAIT_SLEEP); in __mutex_rt_init()
489 mutex_acquire_nest(&lock->dep_map, subclass, 0, nest_lock, ip); in __mutex_lock_common()
492 mutex_release(&lock->dep_map, ip); in __mutex_lock_common()
494 lock_acquired(&lock->dep_map, ip); in __mutex_lock_common()
577 mutex_acquire(&lock->dep_map, 0, 1, _RET_IP_); in mutex_trylock()
[all …]
Drwsem.c313 lockdep_init_map_wait(&sem->dep_map, name, key, 0, LD_WAIT_SLEEP); in __init_rwsem()
1386 lockdep_init_map_wait(&sem->dep_map, name, key, 0, LD_WAIT_SLEEP); in __init_rwsem()
1464 rwsem_acquire_read(&sem->dep_map, 0, 0, _RET_IP_); in down_read()
1473 rwsem_acquire_read(&sem->dep_map, 0, 0, _RET_IP_); in down_read_interruptible()
1476 rwsem_release(&sem->dep_map, _RET_IP_); in down_read_interruptible()
1487 rwsem_acquire_read(&sem->dep_map, 0, 0, _RET_IP_); in down_read_killable()
1490 rwsem_release(&sem->dep_map, _RET_IP_); in down_read_killable()
1506 rwsem_acquire_read(&sem->dep_map, 0, 1, _RET_IP_); in down_read_trylock()
1517 rwsem_acquire(&sem->dep_map, 0, 0, _RET_IP_); in down_write()
1528 rwsem_acquire(&sem->dep_map, 0, 0, _RET_IP_); in down_write_killable()
[all …]
Dww_rt_mutex.c35 nest_lock = &ww_ctx->dep_map; in __ww_rt_mutex_lock()
38 mutex_acquire_nest(&rtm->dep_map, 0, 0, nest_lock, ip); in __ww_rt_mutex_lock()
49 mutex_release(&rtm->dep_map, ip); in __ww_rt_mutex_lock()
73 mutex_release(&rtm->dep_map, _RET_IP_); in ww_mutex_unlock()
Dpercpu-rwsem.c25 lockdep_init_map(&sem->dep_map, name, key, 0); in __percpu_init_rwsem()
217 rwsem_acquire(&sem->dep_map, 0, 0, _RET_IP_); in percpu_down_write()
244 rwsem_release(&sem->dep_map, _RET_IP_); in percpu_up_write()
Dmutex.c591 nest_lock = &ww_ctx->dep_map; in __mutex_lock_common()
596 mutex_acquire_nest(&lock->dep_map, subclass, 0, nest_lock, ip); in __mutex_lock_common()
601 lock_acquired(&lock->dep_map, ip); in __mutex_lock_common()
624 lock_contended(&lock->dep_map, ip); in __mutex_lock_common()
705 lock_acquired(&lock->dep_map, ip); in __mutex_lock_common()
720 mutex_release(&lock->dep_map, ip); in __mutex_lock_common()
851 mutex_release(&lock->dep_map, ip); in __mutex_unlock_slowpath()
1033 mutex_acquire(&lock->dep_map, 0, 1, _RET_IP_); in mutex_trylock()
/Linux-v5.15/drivers/tty/
Dtty_ldsem.c65 lockdep_init_map(&sem->dep_map, name, key, 0); in __init_ldsem()
300 rwsem_acquire_read(&sem->dep_map, subclass, 0, _RET_IP_); in __ldsem_down_read_nested()
304 lock_contended(&sem->dep_map, _RET_IP_); in __ldsem_down_read_nested()
306 rwsem_release(&sem->dep_map, _RET_IP_); in __ldsem_down_read_nested()
310 lock_acquired(&sem->dep_map, _RET_IP_); in __ldsem_down_read_nested()
319 rwsem_acquire(&sem->dep_map, subclass, 0, _RET_IP_); in __ldsem_down_write_nested()
323 lock_contended(&sem->dep_map, _RET_IP_); in __ldsem_down_write_nested()
325 rwsem_release(&sem->dep_map, _RET_IP_); in __ldsem_down_write_nested()
329 lock_acquired(&sem->dep_map, _RET_IP_); in __ldsem_down_write_nested()
352 rwsem_acquire_read(&sem->dep_map, 0, 1, _RET_IP_); in ldsem_down_read_trylock()
[all …]
/Linux-v5.15/lib/
Dlocking-selftest.c1317 # define I_SPINLOCK(x) lockdep_reset_lock(&lock_##x.dep_map)
1318 # define I_RAW_SPINLOCK(x) lockdep_reset_lock(&raw_lock_##x.dep_map)
1319 # define I_RWLOCK(x) lockdep_reset_lock(&rwlock_##x.dep_map)
1320 # define I_MUTEX(x) lockdep_reset_lock(&mutex_##x.dep_map)
1321 # define I_RWSEM(x) lockdep_reset_lock(&rwsem_##x.dep_map)
1322 # define I_WW(x) lockdep_reset_lock(&x.dep_map)
1323 # define I_LOCAL_LOCK(x) lockdep_reset_lock(&local_##x.dep_map)
1325 # define I_RTMUTEX(x) lockdep_reset_lock(&rtmutex_##x.dep_map)
1790 mutex_release(&o2.base.dep_map, _THIS_IP_); in ww_test_edeadlk_normal()
1803 mutex_acquire(&o2.base.dep_map, 0, 1, _THIS_IP_); in ww_test_edeadlk_normal()
[all …]

123