函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Show the state of the grace-period kthreads.

函数原型:void show_rcu_gp_kthreads(void)

返回类型:void

参数:

562  j等于jiffies
563  ja等于jREAD_ONCE(Time of last GP kthread )
564  jr等于jREAD_ONCE(Time of last GP request )
565  jw等于jREAD_ONCE(Last GP kthread wake. )
566  打印信息("%s: wait state: %s(%d) ->state: %#lx delta ->gp_activity %lu ->gp_req_activity %lu ->gp_wake_time %lu ->gp_wake_seq %ld ->gp_seq %ld ->gp_seq_needed %ld ->gp_flags %#x\n", Name of structure. , Convert a ->gp_state value to a character string., GP kthread sleep state. , Task for grace periods. ? 任务状态 : 0x1ffffL, ja, jr, jw, (long)READ_ONCE(->gp_seq at ^^^. ), (long)READ_ONCE(Grace-period sequence #. ), (long)READ_ONCE(Track furthest future GP request. ), READ_ONCE(Commands for GP task. ))
574  rcu_for_each_node_breadth_first(rnp)
575  如果ULONG_CMP_GE(Grace-period sequence #. , Track furthest future GP request. )则继续下一循环
577  打印信息("\trcu_node %d:%d ->gp_seq %ld ->gp_seq_needed %ld\n", lowest-numbered CPU or group here. , highest-numbered CPU or group here. , (long)Track rsp->rcu_gp_seq. , (long)Track furthest future GP request. )
580  如果非Is this rcu_node a leaf? (rnp)则继续下一循环
583  rdp等于per_cpu_ptr( & rcu_data, cpu)
584  如果Possible ->gp_seq wrap. ULONG_CMP_GE(Grace-period sequence #. , Track furthest future GP request. )则继续下一循环
588  打印信息("\tcpu %d ->gp_seq_needed %ld\n", cpu, (long)Track furthest future GP request. )
592  遍历可用CPU(cpu)
593  rdp等于per_cpu_ptr( & rcu_data, cpu)
594  如果Is the specified rcu_segcblist offloaded? show_rcu_nocb_state(rdp)
调用者
名称描述
rcu_torture_cleanup
rcu_torture_stats_printPrint torture statistics
rcu_check_gp_start_stallThis function checks for grace-period requests that fail to motivate* RCU to come out of its idle mode.
rcu_fwd_progress_checkDo 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.
sysrq_show_rcuDump grace-period-request information due to commandeered sysrq.