Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\rcu\tree_stall.h Create Date:2022-07-28 10:27:50
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:print_other_cpu_stall

Proto:static void print_other_cpu_stall(unsigned long gp_seq)

Type:void

Parameter:

TypeParameterName
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  If rcu_cpu_stall_suppress Then Return
374  pr_err("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  If CPUs or groups that need to switch in != 0 Then
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  for_each_possible_cpu(cpu)
389  totqlen += Return the number of callbacks queued on the specified CPU.* Handles both the nocbs and normal cases.
390  Like KERN_CONT, pr_cont() should only be used when continuing* a line with no newline ('\n') enclosed. Otherwise it defaults* back to KERN_DEFAULT.("\t(detected by %d, t=%ld jiffies, g=%ld, q=%lu)\n", smp_processor_id(), (long)(jiffies - Time at which GP started, ), (long)Return the current value the update side's sequence number, no ordering. , totqlen)
393  If ndetected Then
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  Else
401  pr_err("INFO: Stall ended before state dump start\n")
402  Else
403  j = jiffies
405  pr_err("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  If ULONG_CMP_GE(jiffies, READ_ONCE(Time at which to check )) Then 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.