函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:lockdep_rcu_suspicious

函数原型:void lockdep_rcu_suspicious(const char *file, const int line, const char *s)

返回类型:void

参数:

类型参数名称
const char *file
const intline
const char *s
5393  curr等于当前进程
5396  打印警告信息("\n")
5397  打印警告信息("=============================\n")
5398  打印警告信息("WARNING: suspicious RCU usage\n")
5399  print_kernel_ident()
5400  打印警告信息("-----------------------------\n")
5401  打印警告信息("%s:%d %s!\n", file, line, s)
5402  打印警告信息("\nother info that might help us debug this:\n\n")
5403  打印警告信息("\n%srcu_scheduler_active = %d, debug_locks = %d\n", !rcu_lockdep_current_cpu_online() ? "RCU used illegally from offline CPU!\n" : !_is_watching - see if RCU thinks that the current CPU is not idle* Return true if RCU is watching the running CPU, which means that this* CPU can safely enter RCU read-side critical sections ? "RCU used illegally from idle CPU!\n" : "", rcu_scheduler_active, 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)
5429  如果非_is_watching - see if RCU thinks that the current CPU is not idle* Return true if RCU is watching the running CPU, which means that this* CPU can safely enter RCU read-side critical sections打印警告信息("RCU used illegally from extended quiescent state!\n")
5432  lockdep_print_held_locks(curr)
5433  打印警告信息("\nstack backtrace:\n")
5434  dump_stack()