函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:print_cfs_rq

函数原型:void print_cfs_rq(struct seq_file *m, int cpu, struct cfs_rq *cfs_rq)

返回类型:void

参数:

类型参数名称
struct seq_file *m
intcpu
struct cfs_rq *cfs_rq
485  MIN_vruntime等于负1, max_vruntime等于负1
487  rq等于cpu_rq(cpu)
495  This allows printing both to /proc/sched_debug and* to the console(m, "\n")
496  This allows printing both to /proc/sched_debug and* to the console(m, "cfs_rq[%d]:\n", cpu)
498  This allows printing both to /proc/sched_debug and* to the console(m, " .%-30s: %Ld.%06ld\n", "exec_clock", SPLIT_NS(exec_clock))
501  raw_spin_lock_irqsave( & 运行队列锁, flags)
502  如果Same as rb_first(), but O(1) ( & tasks_timeline)则MIN_vruntime等于vruntime
504  last等于__pick_last_entity(cfs_rq)
505  如果lastmax_vruntime等于vruntime
507  min_vruntime等于min_vruntime
508  rq0_min_vruntime = ( & ( * ({
508  0
508  ({
508  循环
508  const void * __vpp_verify = NULL
508  当0循环
508  runqueues的地址
508  })
508  })))->cfs.min_vruntime
509  raw_spin_unlock_irqrestore( & 运行队列锁, flags)
510  This allows printing both to /proc/sched_debug and* to the console(m, " .%-30s: %Ld.%06ld\n", "MIN_vruntime", SPLIT_NS(MIN_vruntime))
512  This allows printing both to /proc/sched_debug and* to the console(m, " .%-30s: %Ld.%06ld\n", "min_vruntime", SPLIT_NS(min_vruntime))
514  This allows printing both to /proc/sched_debug and* to the console(m, " .%-30s: %Ld.%06ld\n", "max_vruntime", SPLIT_NS(max_vruntime))
516  spread等于max_vruntimeMIN_vruntime
517  This allows printing both to /proc/sched_debug and* to the console(m, " .%-30s: %Ld.%06ld\n", "spread", SPLIT_NS(spread))
519  spread0等于min_vruntimerq0_min_vruntime
520  This allows printing both to /proc/sched_debug and* to the console(m, " .%-30s: %Ld.%06ld\n", "spread0", SPLIT_NS(spread0))
522  This allows printing both to /proc/sched_debug and* to the console(m, " .%-30s: %d\n", "nr_spread_over", nr_spread_over)
524  This allows printing both to /proc/sched_debug and* to the console(m, " .%-30s: %d\n", "nr_running", nr_running)
525  This allows printing both to /proc/sched_debug and* to the console(m, " .%-30s: %ld\n", "load", weight)