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:54
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:print_cpu_stall

Proto:static void print_cpu_stall(void)

Type:void

Parameter:Nothing

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  If rcu_cpu_stall_suppress Then Return
443  pr_err("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  for_each_possible_cpu(cpu)
448  totqlen += Return the number of callbacks queued on the specified CPU.* Handles both the nocbs and normal cases.
449  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(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  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)
462  raw_spin_unlock_irqrestore_rcu_node(rnp, flags)
464  If so specified via sysctl, panic, yielding cleaner stall-warning output.
473  set_tsk_need_resched(current process)
474  We fold the NEED_RESCHED bit into the preempt count such that* preempt_enable() can decrement and test for needing to reschedule with a* single instruction.* We invert the actual bit, so that when the decrement hits 0 we know we both