函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:print_other_cpu_stall

函数原型:static void print_other_cpu_stall(unsigned long gp_seq)

返回类型:void

参数:

类型参数名称
unsigned longgp_seq
360  ndetected等于0
362  totqlen等于0
365  If too much time has passed in the current grace period, and if* so configured, go kick the relevant kthreads.
366  如果rcu_cpu_stall_suppress则返回
374  打印错误信息("INFO: %s detected stalls on CPUs/tasks:\n", Name of structure. )
376  raw_spin_lock_irqsave_rcu_node(rnp, flags)
377  ndetected加等于Because preemptible RCU does not exist, we never have to check for* tasks blocked within RCU read-side critical sections.
378  如果CPUs or groups that need to switch in 不等于0则
379  Iterate over all possible CPUs in a leaf RCU node.(rnp, cpu)
382  ndetected自加
385  raw_spin_unlock_irqrestore_rcu_node(rnp, flags)
388  遍历可用CPU(cpu)
389  totqlen加等于Return the number of callbacks queued on the specified CPU.* Handles both the nocbs and normal cases.
390  打印标准信息("\t(detected by %d, t=%ld jiffies, g=%ld, q=%lu)\n", 当前cpu ID(), (long)(jiffies - Time at which GP started, ), (long)Return the current value the update side's sequence number, no ordering. , totqlen)
393  如果ndetected
394  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
397  Scan the leaves of the rcu_node hierarchy for the rcu_state structure.* Note that if there is a singleton rcu_node tree with but one rcu_node* structure, this loop -will- visit the rcu_node structure. It is still(rnp)
398  Because preemptible RCU does not exist, we never have to check for* tasks blocked within RCU read-side critical sections.
399  否则
401  打印错误信息("INFO: Stall ended before state dump start\n")
402  否则
403  j等于jiffies
405  打印错误信息("All QSes seen, last %s kthread activity %ld (%ld-%ld), jiffies_till_next_fqs=%ld, root ->qsmask %#lx\n", Name of structure. , j - gpa, j, gpa, READ_ONCE(jiffies_till_next_fqs), CPUs or groups that need to switch in )
414  如果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)
418  Complain about starvation of grace-period kthread.
420  If so specified via sysctl, panic, yielding cleaner stall-warning output.
422  Force quiescent states on reluctant CPUs, and also detect which* CPUs are in dyntick-idle mode.
调用者
名称描述
check_cpu_stall