/linux-4.4.14/tools/lib/lockdep/include/liblockdep/ |
H A D | mutex.h | 9 struct lockdep_map dep_map; member in struct:liblockdep_pthread_mutex 17 .dep_map = STATIC_LOCKDEP_MAP_INIT(#mtx, &((&(mtx))->dep_map)), \ 25 lockdep_init_map(&lock->dep_map, name, key, 0); __mutex_init() 38 lock_acquire(&lock->dep_map, 0, 0, 0, 1, NULL, (unsigned long)_RET_IP_); liblockdep_pthread_mutex_lock() 44 lock_release(&lock->dep_map, 0, (unsigned long)_RET_IP_); liblockdep_pthread_mutex_unlock() 50 lock_acquire(&lock->dep_map, 0, 1, 0, 1, NULL, (unsigned long)_RET_IP_); liblockdep_pthread_mutex_trylock()
|
H A D | rwlock.h | 9 struct lockdep_map dep_map; member in struct:liblockdep_pthread_rwlock 17 .dep_map = STATIC_LOCKDEP_MAP_INIT(#rwl, &((&(rwl))->dep_map)), \ 25 lockdep_init_map(&lock->dep_map, name, key, 0); __rwlock_init() 39 lock_acquire(&lock->dep_map, 0, 0, 2, 1, NULL, (unsigned long)_RET_IP_); liblockdep_pthread_rwlock_rdlock() 46 lock_release(&lock->dep_map, 0, (unsigned long)_RET_IP_); liblockdep_pthread_rwlock_unlock() 52 lock_acquire(&lock->dep_map, 0, 0, 0, 1, NULL, (unsigned long)_RET_IP_); liblockdep_pthread_rwlock_wrlock() 58 lock_acquire(&lock->dep_map, 0, 1, 2, 1, NULL, (unsigned long)_RET_IP_); liblockdep_pthread_rwlock_tryrdlock() 64 lock_acquire(&lock->dep_map, 0, 1, 0, 1, NULL, (unsigned long)_RET_IP_); liblockdep_pthread_rwlock_trywlock()
|
/linux-4.4.14/kernel/locking/ |
H A D | rwsem.c | 22 rwsem_acquire_read(&sem->dep_map, 0, 0, _RET_IP_); down_read() 37 rwsem_acquire_read(&sem->dep_map, 0, 1, _RET_IP_); down_read_trylock() 49 rwsem_acquire(&sem->dep_map, 0, 0, _RET_IP_); down_write() 65 rwsem_acquire(&sem->dep_map, 0, 1, _RET_IP_); down_write_trylock() 79 rwsem_release(&sem->dep_map, 1, _RET_IP_); up_read() 91 rwsem_release(&sem->dep_map, 1, _RET_IP_); up_write() 119 rwsem_acquire_read(&sem->dep_map, subclass, 0, _RET_IP_); down_read_nested() 129 rwsem_acquire_nest(&sem->dep_map, 0, 0, nest, _RET_IP_); _down_write_nest_lock() 149 rwsem_acquire(&sem->dep_map, subclass, 0, _RET_IP_); down_write_nested()
|
H A D | percpu-rwsem.c | 73 rwsem_acquire_read(&brw->rw_sem.dep_map, 0, 0, _RET_IP_); percpu_down_read() 94 rwsem_acquire_read(&brw->rw_sem.dep_map, 0, 1, _RET_IP_); percpu_down_read_trylock() 100 rwsem_release(&brw->rw_sem.dep_map, 1, _RET_IP_); percpu_up_read()
|
H A D | spinlock.c | 361 spin_acquire(&lock->dep_map, subclass, 0, _RET_IP_); _raw_spin_lock_nested() 369 spin_acquire(&lock->dep_map, subclass, 0, _RET_IP_); _raw_spin_lock_bh_nested() 381 spin_acquire(&lock->dep_map, subclass, 0, _RET_IP_); _raw_spin_lock_irqsave_nested() 392 spin_acquire_nest(&lock->dep_map, 0, 0, nest_lock, _RET_IP_); _raw_spin_lock_nest_lock()
|
H A D | mutex-debug.c | 101 lockdep_init_map(&lock->dep_map, name, key, 0); debug_mutex_init()
|
H A D | mutex.c | 351 lock_acquired(&lock->dep_map, ip); mutex_optimistic_spin() 518 mutex_acquire_nest(&lock->dep_map, subclass, 0, nest_lock, ip); __mutex_lock_common() 543 lock_contended(&lock->dep_map, ip); __mutex_lock_common() 592 lock_acquired(&lock->dep_map, ip); __mutex_lock_common() 608 mutex_release(&lock->dep_map, 1, ip); __mutex_lock_common() 686 0, &ctx->dep_map, _RET_IP_, ctx, 1); __ww_mutex_lock() 701 0, &ctx->dep_map, _RET_IP_, ctx, 1); __ww_mutex_lock_interruptible() 736 mutex_release(&lock->dep_map, nested, _RET_IP_); __mutex_unlock_common_slowpath() 874 mutex_acquire(&lock->dep_map, 0, 1, _RET_IP_); __mutex_trylock_slowpath()
|
H A D | spinlock_debug.c | 24 lockdep_init_map(&lock->dep_map, name, key, 0); __raw_spin_lock_init() 42 lockdep_init_map(&lock->dep_map, name, key, 0); __rwlock_init()
|
H A D | rwsem-spinlock.c | 47 lockdep_init_map(&sem->dep_map, name, key, 0); __init_rwsem()
|
H A D | rwsem-xadd.c | 81 lockdep_init_map(&sem->dep_map, name, key, 0); __init_rwsem()
|
/linux-4.4.14/include/linux/ |
H A D | rwlock_api_smp.h | 121 rwlock_acquire_read(&lock->dep_map, 0, 1, _RET_IP_); __raw_read_trylock() 132 rwlock_acquire(&lock->dep_map, 0, 1, _RET_IP_); __raw_write_trylock() 149 rwlock_acquire_read(&lock->dep_map, 0, 0, _RET_IP_); __raw_read_lock() 159 rwlock_acquire_read(&lock->dep_map, 0, 0, _RET_IP_); __raw_read_lock_irqsave() 169 rwlock_acquire_read(&lock->dep_map, 0, 0, _RET_IP_); __raw_read_lock_irq() 176 rwlock_acquire_read(&lock->dep_map, 0, 0, _RET_IP_); __raw_read_lock_bh() 186 rwlock_acquire(&lock->dep_map, 0, 0, _RET_IP_); __raw_write_lock_irqsave() 196 rwlock_acquire(&lock->dep_map, 0, 0, _RET_IP_); __raw_write_lock_irq() 203 rwlock_acquire(&lock->dep_map, 0, 0, _RET_IP_); __raw_write_lock_bh() 210 rwlock_acquire(&lock->dep_map, 0, 0, _RET_IP_); __raw_write_lock() 218 rwlock_release(&lock->dep_map, 1, _RET_IP_); __raw_write_unlock() 225 rwlock_release(&lock->dep_map, 1, _RET_IP_); __raw_read_unlock() 233 rwlock_release(&lock->dep_map, 1, _RET_IP_); __raw_read_unlock_irqrestore() 241 rwlock_release(&lock->dep_map, 1, _RET_IP_); __raw_read_unlock_irq() 249 rwlock_release(&lock->dep_map, 1, _RET_IP_); __raw_read_unlock_bh() 257 rwlock_release(&lock->dep_map, 1, _RET_IP_); __raw_write_unlock_irqrestore() 265 rwlock_release(&lock->dep_map, 1, _RET_IP_); __raw_write_unlock_irq() 273 rwlock_release(&lock->dep_map, 1, _RET_IP_); __raw_write_unlock_bh()
|
H A D | rwlock_types.h | 21 struct lockdep_map dep_map; member in struct:__anon13149 28 # define RW_DEP_MAP_INIT(lockname) .dep_map = { .name = #lockname }
|
H A D | spinlock_types.h | 30 struct lockdep_map dep_map; member in struct:raw_spinlock 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 in struct:spinlock::__anon13195::__anon13196
|
H A D | spinlock_api_smp.h | 92 spin_acquire(&lock->dep_map, 0, 1, _RET_IP_); __raw_spin_trylock() 112 spin_acquire(&lock->dep_map, 0, 0, _RET_IP_); __raw_spin_lock_irqsave() 130 spin_acquire(&lock->dep_map, 0, 0, _RET_IP_); __raw_spin_lock_irq() 137 spin_acquire(&lock->dep_map, 0, 0, _RET_IP_); __raw_spin_lock_bh() 144 spin_acquire(&lock->dep_map, 0, 0, _RET_IP_); __raw_spin_lock() 152 spin_release(&lock->dep_map, 1, _RET_IP_); __raw_spin_unlock() 160 spin_release(&lock->dep_map, 1, _RET_IP_); __raw_spin_unlock_irqrestore() 168 spin_release(&lock->dep_map, 1, _RET_IP_); __raw_spin_unlock_irq() 176 spin_release(&lock->dep_map, 1, _RET_IP_); __raw_spin_unlock_bh() 185 spin_acquire(&lock->dep_map, 0, 1, _RET_IP_); __raw_spin_trylock_bh()
|
H A D | percpu-rwsem.h | 42 lock_release(&sem->rw_sem.dep_map, 1, ip); percpu_rwsem_release() 52 lock_acquire(&sem->rw_sem.dep_map, 0, 1, read, 1, NULL, ip); percpu_rwsem_acquire()
|
H A D | lockdep.h | 297 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_); \ 446 lock_acquired(&(_lock)->dep_map, _RET_IP_); \ 529 typecheck(struct lockdep_map *, &(lock)->dep_map); \ 530 lock_acquire(&(lock)->dep_map, 0, 0, 0, 1, NULL, _THIS_IP_); \ 531 lock_release(&(lock)->dep_map, 0, _THIS_IP_); \ 535 typecheck(struct lockdep_map *, &(lock)->dep_map); \ 536 lock_acquire(&(lock)->dep_map, 0, 0, 1, 1, NULL, _THIS_IP_); \ 537 lock_release(&(lock)->dep_map, 0, _THIS_IP_); \
|
H A D | mutex.h | 65 struct lockdep_map dep_map; member in struct:mutex 104 , .dep_map = { .name = #lockname } 152 typecheck(struct lockdep_map *, &(nest_lock)->dep_map); \ 153 _mutex_lock_nest_lock(lock, &(nest_lock)->dep_map); \
|
H A D | rwsem.h | 40 struct lockdep_map dep_map; member in struct:rw_semaphore 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); \
|
H A D | semaphore.h | 36 lockdep_init_map(&sem->lock.dep_map, "semaphore->lock", &__key, 0); sema_init()
|
H A D | rwsem-spinlock.h | 28 struct lockdep_map dep_map; member in struct:rw_semaphore
|
H A D | seqlock.h | 50 struct lockdep_map dep_map; member in struct:seqcount 60 lockdep_init_map(&s->dep_map, name, key, 0); __seqcount_init() 66 .dep_map = { .name = #lockname } \ 80 seqcount_acquire_read(&l->dep_map, 0, 0, _RET_IP_); seqcount_lockdep_reader_access() 81 seqcount_release(&l->dep_map, 1, _RET_IP_); seqcount_lockdep_reader_access() 374 seqcount_acquire(&s->dep_map, subclass, 0, _RET_IP_); write_seqcount_begin_nested() 384 seqcount_release(&s->dep_map, 1, _RET_IP_); write_seqcount_end()
|
H A D | srcu.h | 61 struct lockdep_map dep_map; member in struct:srcu_struct 77 #define __SRCU_DEP_MAP_INIT(srcu_name) .dep_map = { .name = #srcu_name }, 160 return lock_is_held(&sp->dep_map); srcu_read_lock_held() 223 rcu_lock_acquire(&(sp)->dep_map); __acquires() 237 rcu_lock_release(&(sp)->dep_map); __releases()
|
H A D | ww_mutex.h | 37 struct lockdep_map dep_map; member in struct:ww_acquire_ctx 132 lockdep_init_map(&ctx->dep_map, ww_class->acquire_name, ww_acquire_init() 134 mutex_acquire(&ctx->dep_map, 0, 0, _RET_IP_); ww_acquire_init() 173 mutex_release(&ctx->dep_map, 0, _THIS_IP_); ww_acquire_fini()
|
H A D | spinlock.h | 188 typecheck(struct lockdep_map *, &(nest_lock)->dep_map);\ 189 _raw_spin_lock_nest_lock(lock, &(nest_lock)->dep_map); \
|
H A D | tty_ldisc.h | 144 struct lockdep_map dep_map; member in struct:ld_semaphore
|
H A D | kernfs.h | 110 struct lockdep_map dep_map; member in struct:kernfs_node
|
/linux-4.4.14/tools/lib/lockdep/ |
H A D | preload.c | 13 * @dep_map: lockdep's dep_map structure 20 struct lockdep_map dep_map; /* Since all locks are dynamic, we need member in struct:lock_lookup 21 * a dep_map and a key for each lock */ 200 lockdep_init_map(&l->dep_map, l->name, &l->key, 0); __get_lock() 255 lock_acquire(&__get_lock(mutex)->dep_map, 0, 0, 0, 1, NULL, pthread_mutex_lock() 273 lock_release(&__get_lock(mutex)->dep_map, 0, (unsigned long)_RET_IP_); pthread_mutex_lock() 284 lock_acquire(&__get_lock(mutex)->dep_map, 0, 1, 0, 1, NULL, (unsigned long)_RET_IP_); pthread_mutex_trylock() 287 lock_release(&__get_lock(mutex)->dep_map, 0, (unsigned long)_RET_IP_); pthread_mutex_trylock() 298 lock_release(&__get_lock(mutex)->dep_map, 0, (unsigned long)_RET_IP_); pthread_mutex_unlock() 306 lock_acquire(&__get_lock(mutex)->dep_map, 0, 0, 0, 1, NULL, (unsigned long)_RET_IP_); pthread_mutex_unlock() 355 lock_acquire(&__get_lock(rwlock)->dep_map, 0, 0, 2, 1, NULL, (unsigned long)_RET_IP_); pthread_rwlock_rdlock() 358 lock_release(&__get_lock(rwlock)->dep_map, 0, (unsigned long)_RET_IP_); pthread_rwlock_rdlock() 369 lock_acquire(&__get_lock(rwlock)->dep_map, 0, 1, 2, 1, NULL, (unsigned long)_RET_IP_); pthread_rwlock_tryrdlock() 372 lock_release(&__get_lock(rwlock)->dep_map, 0, (unsigned long)_RET_IP_); pthread_rwlock_tryrdlock() 383 lock_acquire(&__get_lock(rwlock)->dep_map, 0, 1, 0, 1, NULL, (unsigned long)_RET_IP_); pthread_rwlock_trywrlock() 386 lock_release(&__get_lock(rwlock)->dep_map, 0, (unsigned long)_RET_IP_); pthread_rwlock_trywrlock() 397 lock_acquire(&__get_lock(rwlock)->dep_map, 0, 0, 0, 1, NULL, (unsigned long)_RET_IP_); pthread_rwlock_wrlock() 400 lock_release(&__get_lock(rwlock)->dep_map, 0, (unsigned long)_RET_IP_); pthread_rwlock_wrlock() 411 lock_release(&__get_lock(rwlock)->dep_map, 0, (unsigned long)_RET_IP_); pthread_rwlock_unlock() 414 lock_acquire(&__get_lock(rwlock)->dep_map, 0, 0, 0, 1, NULL, (unsigned long)_RET_IP_); pthread_rwlock_unlock()
|
/linux-4.4.14/lib/ |
H A D | locking-selftest.c | 914 # 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_); ww_test_edeadlk_normal() 1317 mutex_acquire(&o2.base.dep_map, 0, 1, _THIS_IP_); ww_test_edeadlk_normal() 1329 mutex_release(&o2.base.dep_map, 1, _THIS_IP_); ww_test_edeadlk_normal_slow() 1343 mutex_acquire(&o2.base.dep_map, 0, 1, _THIS_IP_); ww_test_edeadlk_normal_slow() 1356 mutex_release(&o2.base.dep_map, 1, _THIS_IP_); ww_test_edeadlk_no_unlock() 1369 mutex_acquire(&o2.base.dep_map, 0, 1, _THIS_IP_); ww_test_edeadlk_no_unlock() 1380 mutex_release(&o2.base.dep_map, 1, _THIS_IP_); ww_test_edeadlk_no_unlock_slow() 1394 mutex_acquire(&o2.base.dep_map, 0, 1, _THIS_IP_); ww_test_edeadlk_no_unlock_slow() 1405 mutex_release(&o2.base.dep_map, 1, _THIS_IP_); ww_test_edeadlk_acquire_more() 1426 mutex_release(&o2.base.dep_map, 1, _THIS_IP_); ww_test_edeadlk_acquire_more_slow() 1447 mutex_release(&o2.base.dep_map, 1, _THIS_IP_); ww_test_edeadlk_acquire_more_edeadlk() 1451 mutex_release(&o3.base.dep_map, 1, _THIS_IP_); ww_test_edeadlk_acquire_more_edeadlk() 1473 mutex_release(&o2.base.dep_map, 1, _THIS_IP_); ww_test_edeadlk_acquire_more_edeadlk_slow() 1477 mutex_release(&o3.base.dep_map, 1, _THIS_IP_); ww_test_edeadlk_acquire_more_edeadlk_slow() 1498 mutex_release(&o2.base.dep_map, 1, _THIS_IP_); ww_test_edeadlk_acquire_wrong() 1523 mutex_release(&o2.base.dep_map, 1, _THIS_IP_); ww_test_edeadlk_acquire_wrong_slow()
|
/linux-4.4.14/drivers/tty/ |
H A 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_) 110 lockdep_init_map(&sem->dep_map, name, key, 0); __init_ldsem()
|
/linux-4.4.14/kernel/ |
H A D | cpu.c | 74 struct lockdep_map dep_map; member in struct:__anon14782 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/fs/kernfs/ |
H A D | dir.c | 331 rwsem_acquire_read(&kn->dep_map, 0, 1, _RET_IP_); kernfs_get_active() 351 rwsem_release(&kn->dep_map, 1, _RET_IP_); kernfs_put_active() 378 rwsem_acquire(&kn->dep_map, 0, 0, _RET_IP_); 380 lock_contended(&kn->dep_map, _RET_IP_); 388 lock_acquired(&kn->dep_map, _RET_IP_); 389 rwsem_release(&kn->dep_map, 1, _RET_IP_); 1180 rwsem_acquire(&kn->dep_map, 0, 1, _RET_IP_); kernfs_unbreak_active_protection()
|
H A D | file.c | 932 lockdep_init_map(&kn->dep_map, "s_active", key, 0); __kernfs_create_file()
|
/linux-4.4.14/mm/ |
H A D | memory_hotplug.c | 63 struct lockdep_map dep_map; member in struct:__anon14892 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/fs/autofs4/ |
H A D | expire.c | 169 lock_set_subclass(&ret->d_lock.dep_map, 0, _RET_IP_); get_next_positive_dentry()
|
/linux-4.4.14/kernel/rcu/ |
H A D | srcu.c | 120 lockdep_init_map(&sp->dep_map, name, key, 0); __init_srcu_struct() 416 RCU_LOCKDEP_WARN(lock_is_held(&sp->dep_map) || __synchronize_srcu()
|
/linux-4.4.14/net/core/ |
H A D | sock.c | 508 mutex_acquire(&sk->sk_lock.dep_map, 0, 1, _RET_IP_); sk_receive_skb() 512 mutex_release(&sk->sk_lock.dep_map, 1, _RET_IP_); sk_receive_skb() 2442 mutex_acquire(&sk->sk_lock.dep_map, subclass, 0, _RET_IP_); lock_sock_nested() 2452 mutex_release(&sk->sk_lock.dep_map, 1, _RET_IP_); release_sock() 2498 mutex_acquire(&sk->sk_lock.dep_map, 0, 0, _RET_IP_); lock_sock_fast()
|
/linux-4.4.14/kernel/sched/ |
H A D | sched.h | 1092 spin_acquire(&rq->lock.dep_map, 0, 0, _THIS_IP_); finish_lock_switch() 1583 lock_set_subclass(&this_rq->lock.dep_map, 0, _RET_IP_);
|
H A D | core.c | 2700 spin_release(&rq->lock.dep_map, 1, _THIS_IP_); context_switch() 4607 spin_release(&rq->lock.dep_map, 1, _THIS_IP_); SYSCALL_DEFINE0()
|
/linux-4.4.14/drivers/staging/lustre/lustre/obdclass/ |
H A D | cl_lock.c | 159 lock_map_acquire(&lock->dep_map); cl_lock_lockdep_acquire() 166 lock_release(&lock->dep_map, 0, RETIP); cl_lock_lockdep_release()
|
/linux-4.4.14/include/net/ |
H A D | sock.h | 122 struct lockdep_map dep_map; member in struct:__anon13582 1474 lockdep_init_map(&(sk)->sk_lock.dep_map, (name), (key), 0); \
|
/linux-4.4.14/drivers/md/bcache/ |
H A D | btree.c | 934 lock_set_subclass(&b->lock.dep_map, level + 1, _THIS_IP_); mca_alloc()
|
/linux-4.4.14/drivers/staging/lustre/lustre/include/ |
H A D | cl_object.h | 1631 /* "dep_map" name is assumed by lockdep.h macros. */ 1632 struct lockdep_map dep_map; member in struct:cl_lock
|
/linux-4.4.14/fs/ |
H A D | dcache.c | 1212 spin_release(&dentry->d_lock.dep_map, 1, _RET_IP_); d_walk() 1214 spin_acquire(&this_parent->d_lock.dep_map, 0, 1, _RET_IP_); d_walk()
|