Home
last modified time | relevance | path

Searched refs:DEBUG_LOCKS_WARN_ON (Results 1 – 16 of 16) sorted by relevance

/Linux-v5.10/kernel/locking/
Dmutex-debug.c40 DEBUG_LOCKS_WARN_ON(list_empty(&lock->wait_list)); in debug_mutex_wake_waiter()
41 DEBUG_LOCKS_WARN_ON(waiter->magic != waiter); in debug_mutex_wake_waiter()
42 DEBUG_LOCKS_WARN_ON(list_empty(&waiter->list)); in debug_mutex_wake_waiter()
47 DEBUG_LOCKS_WARN_ON(!list_empty(&waiter->list)); in debug_mutex_free_waiter()
63 DEBUG_LOCKS_WARN_ON(list_empty(&waiter->list)); in mutex_remove_waiter()
64 DEBUG_LOCKS_WARN_ON(waiter->task != task); in mutex_remove_waiter()
65 DEBUG_LOCKS_WARN_ON(task->blocked_on != waiter); in mutex_remove_waiter()
75 DEBUG_LOCKS_WARN_ON(lock->magic != lock); in debug_mutex_unlock()
76 DEBUG_LOCKS_WARN_ON(!lock->wait_list.prev && !lock->wait_list.next); in debug_mutex_unlock()
103 DEBUG_LOCKS_WARN_ON(mutex_is_locked(lock)); in mutex_destroy()
Drtmutex-debug.c62 DEBUG_LOCKS_WARN_ON(!RB_EMPTY_ROOT(&task->pi_waiters.rb_root)); in rt_mutex_debug_task_free()
63 DEBUG_LOCKS_WARN_ON(task->pi_blocked_on); in rt_mutex_debug_task_free()
145 DEBUG_LOCKS_WARN_ON(rt_mutex_owner(lock) != current); in debug_rt_mutex_unlock()
155 DEBUG_LOCKS_WARN_ON(!rt_mutex_owner(lock)); in debug_rt_mutex_proxy_unlock()
Dmutex.c126 DEBUG_LOCKS_WARN_ON(flags & MUTEX_FLAG_PICKUP); in __mutex_trylock_or_owner()
232 DEBUG_LOCKS_WARN_ON(__owner_task(owner) != current); in __mutex_handoff()
233 DEBUG_LOCKS_WARN_ON(owner & MUTEX_FLAG_PICKUP); in __mutex_handoff()
315 DEBUG_LOCKS_WARN_ON(ww->ctx); in ww_mutex_lock_acquired()
320 DEBUG_LOCKS_WARN_ON(ww_ctx->done_acquire); in ww_mutex_lock_acquired()
327 DEBUG_LOCKS_WARN_ON(ww_ctx->contending_lock != ww); in ww_mutex_lock_acquired()
333 DEBUG_LOCKS_WARN_ON(ww_ctx->acquired > 0); in ww_mutex_lock_acquired()
340 DEBUG_LOCKS_WARN_ON(ww_ctx->ww_class != ww->ww_class); in ww_mutex_lock_acquired()
763 DEBUG_LOCKS_WARN_ON(!lock->ctx->acquired); in ww_mutex_unlock()
783 DEBUG_LOCKS_WARN_ON(ww_ctx->contending_lock); in __ww_mutex_kill()
[all …]
Dlockdep.c109 DEBUG_LOCKS_WARN_ON(!irqs_disabled()); in lockdep_lock()
118 DEBUG_LOCKS_WARN_ON(!irqs_disabled()); in lockdep_unlock()
120 if (debug_locks && DEBUG_LOCKS_WARN_ON(__owner != current)) in lockdep_unlock()
130 return DEBUG_LOCKS_WARN_ON(__owner != current); in lockdep_assert_locked()
202 DEBUG_LOCKS_WARN_ON(1); in hlock_class()
885 if (DEBUG_LOCKS_WARN_ON(!irqs_disabled())) in look_up_lock_class()
1240 DEBUG_LOCKS_WARN_ON(!irqs_disabled()); in register_lock_class()
1330 if (DEBUG_LOCKS_WARN_ON(class->subclass != subclass)) in register_lock_class()
2668 if (DEBUG_LOCKS_WARN_ON(ret == BFS_RNOMATCH)) in check_irq_usage()
2678 if (DEBUG_LOCKS_WARN_ON(ret == -1)) in check_irq_usage()
[all …]
Dlockdep_proc.c256 DEBUG_LOCKS_WARN_ON(debug_atomic_read(nr_unused_locks) != nr_unused); in lockdep_stats_show()
/Linux-v5.10/include/linux/
Dww_mutex.h162 DEBUG_LOCKS_WARN_ON(ctx->done_acquire); in ww_acquire_done()
179 DEBUG_LOCKS_WARN_ON(ctx->acquired); in ww_acquire_fini()
285 DEBUG_LOCKS_WARN_ON(!ctx->contending_lock); in ww_mutex_lock_slow()
321 DEBUG_LOCKS_WARN_ON(!ctx->contending_lock); in ww_mutex_lock_slow_interruptible()
Ddebug_locks.h25 #define DEBUG_LOCKS_WARN_ON(c) \ macro
38 # define SMP_DEBUG_LOCKS_WARN_ON(c) DEBUG_LOCKS_WARN_ON(c)
Dlocal_lock_internal.h40 DEBUG_LOCKS_WARN_ON(l->owner); in local_lock_acquire()
46 DEBUG_LOCKS_WARN_ON(l->owner != current); in local_lock_release()
/Linux-v5.10/tools/include/linux/
Ddebug_locks.h9 #define DEBUG_LOCKS_WARN_ON(x) WARN_ON(x) macro
/Linux-v5.10/arch/x86/include/asm/
Ddesc.h307 DEBUG_LOCKS_WARN_ON(preemptible()); in refresh_tss_limit()
324 DEBUG_LOCKS_WARN_ON(preemptible()); in invalidate_tss_limit()
Dmmu_context.h90 DEBUG_LOCKS_WARN_ON(preemptible()); in switch_ldt()
/Linux-v5.10/arch/x86/kernel/
Dldt.c113 DEBUG_LOCKS_WARN_ON(preemptible()); in switch_ldt()
/Linux-v5.10/kernel/sched/
Dcore.c4180 if (DEBUG_LOCKS_WARN_ON((preempt_count() < 0))) in preempt_count_add()
4188 DEBUG_LOCKS_WARN_ON((preempt_count() & PREEMPT_MASK) >= in preempt_count_add()
4212 if (DEBUG_LOCKS_WARN_ON(val > preempt_count())) in preempt_count_sub()
4217 if (DEBUG_LOCKS_WARN_ON((val < PREEMPT_MASK) && in preempt_count_sub()
/Linux-v5.10/lib/
Dlocking-selftest.c1627 DEBUG_LOCKS_WARN_ON(1); in ww_test_fail_acquire()
/Linux-v5.10/kernel/
Dfork.c1960 DEBUG_LOCKS_WARN_ON(!p->softirqs_enabled); in copy_process()
/Linux-v5.10/Documentation/locking/
Dlockdep-design.rst342 (DEBUG_LOCKS_WARN_ON(id >= MAX_LOCKDEP_KEYS))