函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\rcu\tree_stall.h Create Date:2022-07-27 11:28:03
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:print_cpu_stall

函数原型:static void print_cpu_stall(void)

返回类型:void

参数:

429  rdp等于this_cpu_ptr( & rcu_data)
430  rnp等于Return the root node of the rcu_state structure.
431  totqlen等于0
434  If too much time has passed in the current grace period, and if* so configured, go kick the relevant kthreads.
435  如果rcu_cpu_stall_suppress则返回
443  打印错误信息("INFO: %s self-detected stall on CPU\n", Name of structure. )
444  raw_spin_lock_irqsave_rcu_node(This CPU's leaf of hierarchy , flags)
445  Print out diagnostic information for the specified stalled CPU.* If the specified CPU is aware of the current RCU grace period, then* print the number of scheduling clock interrupts the CPU has taken* during the time that it has been aware
446  raw_spin_unlock_irqrestore_rcu_node(This CPU's leaf of hierarchy , flags)
447  遍历可用CPU(cpu)
448  totqlen加等于Return the number of callbacks queued on the specified CPU.* Handles both the nocbs and normal cases.
449  打印标准信息("\t(t=%lu jiffies g=%ld q=%lu)\n", jiffies - Time at which GP started, , (long)Return the current value the update side's sequence number, no ordering. , totqlen)
453  Complain about starvation of grace-period kthread.
455  Dump stacks of all tasks running on stalled CPUs. First try using* NMIs, but fall back to manual remote stack tracing on architectures* that don't support NMI-based stack dumps. The NMI-triggered stack
457  raw_spin_lock_irqsave_rcu_node(rnp, flags)
459  如果ULONG_CMP_GE(jiffies, READ_ONCE(Time at which to check ))则WRITE_ONCE(Time at which to check , jiffies + 3 * Limit-check stall timeouts specified at boottime and runtime. + 3)
462  raw_spin_unlock_irqrestore_rcu_node(rnp, flags)
464  If so specified via sysctl, panic, yielding cleaner stall-warning output.
473  设置进程需要被调度出去的标志
474  设置CPU的内核抢占
调用者
名称描述
check_cpu_stall