函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:check_cpu_stall

函数原型:static void check_cpu_stall(struct rcu_data *rdp)

返回类型:void

参数:

类型参数名称
struct rcu_data *rdp
487  如果rcu_cpu_stall_suppress且非rcu_kick_kthreads或非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.则返回
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  如果gs1不等于gs2ULONG_CMP_LT(j, js)或ULONG_CMP_GE(gps, js)则返回
522  rnp等于This CPU's leaf of hierarchy
523  jn等于jiffies加3乘Limit-check stall timeouts specified at boottime and runtime. 加3
524  如果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
529  print_cpu_stall()
530  如果rcu_cpu_stall_ftrace_dumpDump the ftrace buffer, but only one time per callsite per boot.(DUMP_ALL)
533  否则如果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
538  print_other_cpu_stall(gs2)
539  如果rcu_cpu_stall_ftrace_dumpDump the ftrace buffer, but only one time per callsite per boot.(DUMP_ALL)
调用者
名称描述
rcu_pending