函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\locking\lockdep.c Create Date:2022-07-27 10:51:00
Last Modify:2020-03-17 14:16:01 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:debug_show_all_locks

函数原型:void debug_show_all_locks(void)

返回类型:void

参数:

5331  如果此条件成立可能性小(为编译器优化)(!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)则
5332  打印警告信息("INFO: lockdep is turned off.\n")
5333  返回
5335  打印警告信息("\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  如果非lockdep_depth则继续下一循环
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  打印警告信息("\n")
5348  打印警告信息("=============================================\n\n")
调用者
名称描述
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.