函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\sched\debug.c Create Date:2022-07-27 10:44:23
Last Modify:2020-03-17 13:39:02 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:print_rq

函数原型:static void print_rq(struct seq_file *m, struct rq *rq, int rq_cpu)

返回类型:void

参数:

类型参数名称
struct seq_file *m
struct rq *rq
intrq_cpu
466  This allows printing both to /proc/sched_debug and* to the console(m, "\n")
467  This allows printing both to /proc/sched_debug and* to the console(m, "runnable tasks:\n")
468  This allows printing both to /proc/sched_debug and* to the console(m, " S task PID tree-key switches prio wait-time sum-exec sum-sleep\n")
470  This allows printing both to /proc/sched_debug and* to the console(m, "-----------------------------------------------------------------------------------------------------------\n")
473  _read_lock() - mark the beginning of an RCU read-side critical section* When synchronize_rcu() is invoked on one CPU while other CPUs* are within RCU read-side critical sections, then the* synchronize_rcu() is guaranteed to block until after all the other
474  Careful: this is a double loop, 'break' won't work as expected. (g, p)
475  如果task_cpu(p)不等于rq_cpu则继续下一循环
478  print_task(m, rq, p)
480  _read_unlock() - marks the end of an RCU read-side critical section.* In most situations, rcu_read_unlock() is immune from deadlock.* However, in kernels built with CONFIG_RCU_BOOST, rcu_read_unlock()
调用者
名称描述
print_cpu