Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\sched\debug.c Create Date:2022-07-28 09:44:00
Last Modify:2020-03-17 13:39:02 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:print_cfs_rq

Proto:void print_cfs_rq(struct seq_file *m, int cpu, struct cfs_rq *cfs_rq)

Type:void

Parameter:

TypeParameterName
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( & runqueue lock: , flags)
502  If Same as rb_first(), but O(1) ( & tasks_timeline) Then MIN_vruntime = vruntime
504  last = __pick_last_entity(cfs_rq)
505  If last Then max_vruntime = vruntime
507  min_vruntime = min_vruntime
508  rq0_min_vruntime = ( & ( * ({
508  0
508  ({
508  Do
508  const void * __vpp_verify = NULL
508  When 0 cycle
508  &runqueues
508  })
508  })))->cfs.min_vruntime
509  raw_spin_unlock_irqrestore( & runqueue lock: , 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_vruntime - MIN_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_vruntime - rq0_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)