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

Name:check_cpu_stall

Proto:static void check_cpu_stall(struct rcu_data *rdp)

Type:void

Parameter:

TypeParameterName
struct rcu_data *rdp
487  If rcu_cpu_stall_suppress && Not rcu_kick_kthreads || Not Return true if an RCU grace period is in progress. The READ_ONCE()s* permit this function to be invoked without holding the root rcu_node* structure's ->lock, but of course results can be subject to change. Then Return
490  If too much time has passed in the current grace period, and if* so configured, go kick the relevant kthreads.
491  j = jiffies
511  gs1 = READ_ONCE(Grace-period sequence #. )
512  smp_rmb()
513  js = READ_ONCE(Time at which to check )
514  smp_rmb()
515  gps = READ_ONCE(Time at which GP started, )
516  smp_rmb()
517  gs2 = READ_ONCE(Grace-period sequence #. )
518  If gs1 != gs2 || ULONG_CMP_LT(j, js) || ULONG_CMP_GE(gps, js) Then Return
522  rnp = This CPU's leaf of hierarchy
523  jn = jiffies + 3 * Limit-check stall timeouts specified at boottime and runtime. + 3
524  If Return true if an RCU grace period is in progress. The READ_ONCE()s* permit this function to be invoked without holding the root rcu_node* structure's ->lock, but of course results can be subject to change. && READ_ONCE(CPUs or groups that need to switch in ) & Mask to apply to leaf qsmask. && cmpxchg( & Time at which to check , js, jn) == js Then
529  print_cpu_stall()
530  If rcu_cpu_stall_ftrace_dump Then Dump the ftrace buffer, but only one time per callsite per boot.(DUMP_ALL)
533  Else if Return true if an RCU grace period is in progress. The READ_ONCE()s* permit this function to be invoked without holding the root rcu_node* structure's ->lock, but of course results can be subject to change. && ULONG_CMP_GE(j, js + Allow other CPUs time to take ) && cmpxchg( & Time at which to check , js, jn) == js Then
538  print_other_cpu_stall(gs2)
539  If rcu_cpu_stall_ftrace_dump Then Dump the ftrace buffer, but only one time per callsite per boot.(DUMP_ALL)