Home
last modified time | relevance | path

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

/linux-4.4.14/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 …]
Dspinlock_api_smp.h92 spin_acquire(&lock->dep_map, 0, 1, _RET_IP_); in __raw_spin_trylock()
112 spin_acquire(&lock->dep_map, 0, 0, _RET_IP_); in __raw_spin_lock_irqsave()
130 spin_acquire(&lock->dep_map, 0, 0, _RET_IP_); in __raw_spin_lock_irq()
137 spin_acquire(&lock->dep_map, 0, 0, _RET_IP_); in __raw_spin_lock_bh()
144 spin_acquire(&lock->dep_map, 0, 0, _RET_IP_); in __raw_spin_lock()
152 spin_release(&lock->dep_map, 1, _RET_IP_); in __raw_spin_unlock()
160 spin_release(&lock->dep_map, 1, _RET_IP_); in __raw_spin_unlock_irqrestore()
168 spin_release(&lock->dep_map, 1, _RET_IP_); in __raw_spin_unlock_irq()
176 spin_release(&lock->dep_map, 1, _RET_IP_); in __raw_spin_unlock_bh()
185 spin_acquire(&lock->dep_map, 0, 1, _RET_IP_); in __raw_spin_trylock_bh()
Dlockdep.h297 lockdep_init_map(&(lock)->dep_map, #key, key, 0)
299 lockdep_init_map(&(lock)->dep_map, name, key, 0)
301 lockdep_init_map(&(lock)->dep_map, #key, key, sub)
303 lockdep_init_map(&(lock)->dep_map, #lock, \
304 (lock)->dep_map.key, sub)
311 #define lockdep_match_class(lock, key) lockdep_match_key(&(lock)->dep_map, key)
340 #define lockdep_is_held(lock) lock_is_held(&(lock)->dep_map)
375 #define lockdep_pin_lock(l) lock_pin_lock(&(l)->dep_map)
376 #define lockdep_unpin_lock(l) lock_unpin_lock(&(l)->dep_map)
443 lock_contended(&(_lock)->dep_map, _RET_IP_); \
[all …]
Dspinlock_types.h30 struct lockdep_map dep_map; member
39 # define SPIN_DEP_MAP_INIT(lockname) .dep_map = { .name = #lockname }
69 # define LOCK_PADSIZE (offsetof(struct raw_spinlock, dep_map))
72 struct lockdep_map dep_map; member
Dsrcu.h61 struct lockdep_map dep_map; member
77 #define __SRCU_DEP_MAP_INIT(srcu_name) .dep_map = { .name = #srcu_name },
160 return lock_is_held(&sp->dep_map); in srcu_read_lock_held()
223 rcu_lock_acquire(&(sp)->dep_map); in srcu_read_lock()
237 rcu_lock_release(&(sp)->dep_map); in srcu_read_unlock()
Dseqlock.h50 struct lockdep_map dep_map; member
60 lockdep_init_map(&s->dep_map, name, key, 0); in __seqcount_init()
66 .dep_map = { .name = #lockname } \
80 seqcount_acquire_read(&l->dep_map, 0, 0, _RET_IP_); in seqcount_lockdep_reader_access()
81 seqcount_release(&l->dep_map, 1, _RET_IP_); in seqcount_lockdep_reader_access()
374 seqcount_acquire(&s->dep_map, subclass, 0, _RET_IP_); in write_seqcount_begin_nested()
384 seqcount_release(&s->dep_map, 1, _RET_IP_); in write_seqcount_end()
Drwsem.h40 struct lockdep_map dep_map; member
63 # define __RWSEM_DEP_MAP_INIT(lockname) , .dep_map = { .name = #lockname }
160 typecheck(struct lockdep_map *, &(nest_lock)->dep_map); \
161 _down_write_nest_lock(sem, &(nest_lock)->dep_map); \
Dmutex.h65 struct lockdep_map dep_map; member
104 , .dep_map = { .name = #lockname }
152 typecheck(struct lockdep_map *, &(nest_lock)->dep_map); \
153 _mutex_lock_nest_lock(lock, &(nest_lock)->dep_map); \
Dww_mutex.h37 struct lockdep_map dep_map; member
132 lockdep_init_map(&ctx->dep_map, ww_class->acquire_name, in ww_acquire_init()
134 mutex_acquire(&ctx->dep_map, 0, 0, _RET_IP_); in ww_acquire_init()
173 mutex_release(&ctx->dep_map, 0, _THIS_IP_); in ww_acquire_fini()
Drwlock_types.h21 struct lockdep_map dep_map; member
28 # define RW_DEP_MAP_INIT(lockname) .dep_map = { .name = #lockname }
Dpercpu-rwsem.h42 lock_release(&sem->rw_sem.dep_map, 1, ip); in percpu_rwsem_release()
52 lock_acquire(&sem->rw_sem.dep_map, 0, 1, read, 1, NULL, ip); in percpu_rwsem_acquire()
Drwsem-spinlock.h28 struct lockdep_map dep_map; member
Dsemaphore.h36 lockdep_init_map(&sem->lock.dep_map, "semaphore->lock", &__key, 0); in sema_init()
Dspinlock.h188 typecheck(struct lockdep_map *, &(nest_lock)->dep_map);\
189 _raw_spin_lock_nest_lock(lock, &(nest_lock)->dep_map); \
Dtty_ldisc.h144 struct lockdep_map dep_map; member
Dkernfs.h110 struct lockdep_map dep_map; member
/linux-4.4.14/tools/lib/lockdep/include/liblockdep/
Drwlock.h9 struct lockdep_map dep_map; member
17 .dep_map = STATIC_LOCKDEP_MAP_INIT(#rwl, &((&(rwl))->dep_map)), \
25 lockdep_init_map(&lock->dep_map, name, key, 0); in __rwlock_init()
39 lock_acquire(&lock->dep_map, 0, 0, 2, 1, NULL, (unsigned long)_RET_IP_); in liblockdep_pthread_rwlock_rdlock()
46 lock_release(&lock->dep_map, 0, (unsigned long)_RET_IP_); in liblockdep_pthread_rwlock_unlock()
52 lock_acquire(&lock->dep_map, 0, 0, 0, 1, NULL, (unsigned long)_RET_IP_); in liblockdep_pthread_rwlock_wrlock()
58 lock_acquire(&lock->dep_map, 0, 1, 2, 1, NULL, (unsigned long)_RET_IP_); in liblockdep_pthread_rwlock_tryrdlock()
64 lock_acquire(&lock->dep_map, 0, 1, 0, 1, NULL, (unsigned long)_RET_IP_); in liblockdep_pthread_rwlock_trywlock()
Dmutex.h9 struct lockdep_map dep_map; member
17 .dep_map = STATIC_LOCKDEP_MAP_INIT(#mtx, &((&(mtx))->dep_map)), \
25 lockdep_init_map(&lock->dep_map, name, key, 0); in __mutex_init()
38 lock_acquire(&lock->dep_map, 0, 0, 0, 1, NULL, (unsigned long)_RET_IP_); in liblockdep_pthread_mutex_lock()
44 lock_release(&lock->dep_map, 0, (unsigned long)_RET_IP_); in liblockdep_pthread_mutex_unlock()
50 lock_acquire(&lock->dep_map, 0, 1, 0, 1, NULL, (unsigned long)_RET_IP_); in liblockdep_pthread_mutex_trylock()
/linux-4.4.14/kernel/locking/
Drwsem.c22 rwsem_acquire_read(&sem->dep_map, 0, 0, _RET_IP_); in down_read()
37 rwsem_acquire_read(&sem->dep_map, 0, 1, _RET_IP_); in down_read_trylock()
49 rwsem_acquire(&sem->dep_map, 0, 0, _RET_IP_); in down_write()
65 rwsem_acquire(&sem->dep_map, 0, 1, _RET_IP_); in down_write_trylock()
79 rwsem_release(&sem->dep_map, 1, _RET_IP_); in up_read()
91 rwsem_release(&sem->dep_map, 1, _RET_IP_); in up_write()
119 rwsem_acquire_read(&sem->dep_map, subclass, 0, _RET_IP_); in down_read_nested()
129 rwsem_acquire_nest(&sem->dep_map, 0, 0, nest, _RET_IP_); in _down_write_nest_lock()
149 rwsem_acquire(&sem->dep_map, subclass, 0, _RET_IP_); in down_write_nested()
Dpercpu-rwsem.c73 rwsem_acquire_read(&brw->rw_sem.dep_map, 0, 0, _RET_IP_); in percpu_down_read()
94 rwsem_acquire_read(&brw->rw_sem.dep_map, 0, 1, _RET_IP_); in percpu_down_read_trylock()
100 rwsem_release(&brw->rw_sem.dep_map, 1, _RET_IP_); in percpu_up_read()
Dmutex.c351 lock_acquired(&lock->dep_map, ip); in mutex_optimistic_spin()
518 mutex_acquire_nest(&lock->dep_map, subclass, 0, nest_lock, ip); in __mutex_lock_common()
543 lock_contended(&lock->dep_map, ip); in __mutex_lock_common()
592 lock_acquired(&lock->dep_map, ip); in __mutex_lock_common()
608 mutex_release(&lock->dep_map, 1, ip); in __mutex_lock_common()
686 0, &ctx->dep_map, _RET_IP_, ctx, 1); in __ww_mutex_lock()
701 0, &ctx->dep_map, _RET_IP_, ctx, 1); in __ww_mutex_lock_interruptible()
736 mutex_release(&lock->dep_map, nested, _RET_IP_); in __mutex_unlock_common_slowpath()
874 mutex_acquire(&lock->dep_map, 0, 1, _RET_IP_); in __mutex_trylock_slowpath()
Dspinlock.c361 spin_acquire(&lock->dep_map, subclass, 0, _RET_IP_); in _raw_spin_lock_nested()
369 spin_acquire(&lock->dep_map, subclass, 0, _RET_IP_); in _raw_spin_lock_bh_nested()
381 spin_acquire(&lock->dep_map, subclass, 0, _RET_IP_); in _raw_spin_lock_irqsave_nested()
392 spin_acquire_nest(&lock->dep_map, 0, 0, nest_lock, _RET_IP_); in _raw_spin_lock_nest_lock()
Dspinlock_debug.c24 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()
Dmutex-debug.c101 lockdep_init_map(&lock->dep_map, name, key, 0); in debug_mutex_init()
Drwsem-spinlock.c47 lockdep_init_map(&sem->dep_map, name, key, 0); in __init_rwsem()
Drwsem-xadd.c81 lockdep_init_map(&sem->dep_map, name, key, 0); in __init_rwsem()
/linux-4.4.14/tools/lib/lockdep/
Dpreload.c20 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-4.4.14/lib/
Dlocking-selftest.c914 # define I_SPINLOCK(x) lockdep_reset_lock(&lock_##x.dep_map)
915 # define I_RWLOCK(x) lockdep_reset_lock(&rwlock_##x.dep_map)
916 # define I_MUTEX(x) lockdep_reset_lock(&mutex_##x.dep_map)
917 # define I_RWSEM(x) lockdep_reset_lock(&rwsem_##x.dep_map)
918 # define I_WW(x) lockdep_reset_lock(&x.dep_map)
1304 mutex_release(&o2.base.dep_map, 1, _THIS_IP_); in ww_test_edeadlk_normal()
1317 mutex_acquire(&o2.base.dep_map, 0, 1, _THIS_IP_); in ww_test_edeadlk_normal()
1329 mutex_release(&o2.base.dep_map, 1, _THIS_IP_); in ww_test_edeadlk_normal_slow()
1343 mutex_acquire(&o2.base.dep_map, 0, 1, _THIS_IP_); in ww_test_edeadlk_normal_slow()
1356 mutex_release(&o2.base.dep_map, 1, _THIS_IP_); in ww_test_edeadlk_no_unlock()
[all …]
/linux-4.4.14/kernel/
Dcpu.c74 struct lockdep_map dep_map; member
81 .dep_map = {.name = "cpu_hotplug.lock" },
86 #define cpuhp_lock_acquire_read() lock_map_acquire_read(&cpu_hotplug.dep_map)
88 lock_map_acquire_tryread(&cpu_hotplug.dep_map)
89 #define cpuhp_lock_acquire() lock_map_acquire(&cpu_hotplug.dep_map)
90 #define cpuhp_lock_release() lock_map_release(&cpu_hotplug.dep_map)
/linux-4.4.14/drivers/tty/
Dtty_ldsem.c39 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_)
110 lockdep_init_map(&sem->dep_map, name, key, 0); in __init_ldsem()
/linux-4.4.14/fs/kernfs/
Ddir.c331 rwsem_acquire_read(&kn->dep_map, 0, 1, _RET_IP_); in kernfs_get_active()
351 rwsem_release(&kn->dep_map, 1, _RET_IP_); in kernfs_put_active()
378 rwsem_acquire(&kn->dep_map, 0, 0, _RET_IP_); in kernfs_drain()
380 lock_contended(&kn->dep_map, _RET_IP_); in kernfs_drain()
388 lock_acquired(&kn->dep_map, _RET_IP_); in kernfs_drain()
389 rwsem_release(&kn->dep_map, 1, _RET_IP_); in kernfs_drain()
1180 rwsem_acquire(&kn->dep_map, 0, 1, _RET_IP_); in kernfs_unbreak_active_protection()
Dfile.c932 lockdep_init_map(&kn->dep_map, "s_active", key, 0); in __kernfs_create_file()
/linux-4.4.14/kernel/rcu/
Dsrcu.c120 lockdep_init_map(&sp->dep_map, name, key, 0); in __init_srcu_struct()
416 RCU_LOCKDEP_WARN(lock_is_held(&sp->dep_map) || in __synchronize_srcu()
/linux-4.4.14/mm/
Dmemory_hotplug.c63 struct lockdep_map dep_map; member
70 .dep_map = {.name = "mem_hotplug.lock" },
75 #define memhp_lock_acquire_read() lock_map_acquire_read(&mem_hotplug.dep_map)
76 #define memhp_lock_acquire() lock_map_acquire(&mem_hotplug.dep_map)
77 #define memhp_lock_release() lock_map_release(&mem_hotplug.dep_map)
/linux-4.4.14/net/core/
Dsock.c508 mutex_acquire(&sk->sk_lock.dep_map, 0, 1, _RET_IP_); in sk_receive_skb()
512 mutex_release(&sk->sk_lock.dep_map, 1, _RET_IP_); in sk_receive_skb()
2442 mutex_acquire(&sk->sk_lock.dep_map, subclass, 0, _RET_IP_); in lock_sock_nested()
2452 mutex_release(&sk->sk_lock.dep_map, 1, _RET_IP_); in release_sock()
2498 mutex_acquire(&sk->sk_lock.dep_map, 0, 0, _RET_IP_); in lock_sock_fast()
/linux-4.4.14/kernel/sched/
Dsched.h1092 spin_acquire(&rq->lock.dep_map, 0, 0, _THIS_IP_); in finish_lock_switch()
1583 lock_set_subclass(&this_rq->lock.dep_map, 0, _RET_IP_); in double_unlock_balance()
Dcore.c2700 spin_release(&rq->lock.dep_map, 1, _THIS_IP_); in context_switch()
4607 spin_release(&rq->lock.dep_map, 1, _THIS_IP_); in SYSCALL_DEFINE0()
/linux-4.4.14/fs/autofs4/
Dexpire.c169 lock_set_subclass(&ret->d_lock.dep_map, 0, _RET_IP_); in get_next_positive_dentry()
/linux-4.4.14/include/net/
Dsock.h122 struct lockdep_map dep_map; member
1474 lockdep_init_map(&(sk)->sk_lock.dep_map, (name), (key), 0); \
/linux-4.4.14/drivers/staging/lustre/lustre/obdclass/
Dcl_lock.c159 lock_map_acquire(&lock->dep_map); in cl_lock_lockdep_acquire()
166 lock_release(&lock->dep_map, 0, RETIP); in cl_lock_lockdep_release()
/linux-4.4.14/fs/
Ddcache.c1212 spin_release(&dentry->d_lock.dep_map, 1, _RET_IP_); in d_walk()
1214 spin_acquire(&this_parent->d_lock.dep_map, 0, 1, _RET_IP_); in d_walk()
/linux-4.4.14/drivers/staging/lustre/lustre/include/
Dcl_object.h1632 struct lockdep_map dep_map; member
/linux-4.4.14/drivers/md/bcache/
Dbtree.c934 lock_set_subclass(&b->lock.dep_map, level + 1, _THIS_IP_); in mca_alloc()