Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\locking\lockdep.c Create Date:2022-07-28 09:50:42
Last Modify:2020-03-17 14:16:01 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:debug_show_all_locks

Proto:void debug_show_all_locks(void)

Type:void

Parameter:Nothing

5331  If Value for the false possibility is greater at compile time(!We want to turn all lock-debugging facilities on/off at once,* via a global flag. The reason is that once a single bug has been* detected and reported, there might be cascade of followup bugs* that would just muddy the log. So we report the first one and) Then
5332  pr_warn("INFO: lockdep is turned off.\n")
5333  Return
5335  pr_warn("\nShowing all locks held in the system:\n")
5337  _read_lock() - mark the beginning of an RCU read-side critical section* When synchronize_rcu() is invoked on one CPU while other CPUs* are within RCU read-side critical sections, then the* synchronize_rcu() is guaranteed to block until after all the other
5338  Careful: this is a double loop, 'break' won't work as expected. (g, p)
5339  If Not lockdep_depth Then Continue
5341  lockdep_print_held_locks(p)
5342  h_nmi_watchdog - restart NMI watchdog timeout.* If the architecture supports the NMI watchdog, touch_nmi_watchdog()* may be used to reset the timeout - for code which intentionally* disables interrupts for a long time. This call is stateless.
5343  touch_all_softlockup_watchdogs()
5345  _read_unlock() - marks the end of an RCU read-side critical section.* In most situations, rcu_read_unlock() is immune from deadlock.* However, in kernels built with CONFIG_RCU_BOOST, rcu_read_unlock()
5347  pr_warn("\n")
5348  pr_warn("=============================================\n\n")
Caller
NameDescribe
show_state_filter
__lock_acquireThis gets called for every mutex_lock*()/spin_lock*() operation
debug_rt_mutex_print_deadlock
check_hung_uninterruptible_tasksCheck whether a TASK_UNINTERRUPTIBLE does not get woken up for* a really long time (120 seconds). If that happens, print out* a warning.