函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Do a forward-progress check for rcutorture. This is normally invoked* due to an OOM event. The argument "j" gives the time period during* which rcutorture would like progress to have been made.

函数原型:void rcu_fwd_progress_check(unsigned long j)

返回类型:void

参数:

类型参数名称
unsigned longj
664  max_cbs等于0
665  max_cpu等于负1
668  如果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.
669  打印信息("%s: GP age %lu jiffies\n", __func__, jiffies - Time at which GP started, )
671  Show the state of the grace-period kthreads.
672  否则
673  打印信息("%s: Last GP end %lu jiffies ago\n", __func__, jiffies - Time last GP ended, again )
675  禁止抢占()
676  rdp等于this_cpu_ptr( & rcu_data)
677  This function checks for grace-period requests that fail to motivate* RCU to come out of its idle mode.
678  禁用抢占和中断()
680  遍历可用CPU(cpu)
681  cbs等于Return the number of callbacks queued on the specified CPU.* Handles both the nocbs and normal cases.
682  如果非cbs则继续下一循环
684  如果max_cpu小于0则打印信息("%s: callbacks", __func__)
686  打印标准信息(" %d: %lu", cpu, cbs)
687  如果cbs小于等于max_cbs则继续下一循环
689  max_cbs等于cbs
690  max_cpu等于cpu
692  如果max_cpu大于等于0则打印标准信息("\n")
调用者
名称描述
rcutorture_oom_notifyOOM notifier, but this only prints diagnostic information for the* current forward-progress test.