Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\cgroup\rstat.c Create Date:2022-07-28 11:12:02
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:cgroup_base_stat_cputime_show

Proto:void cgroup_base_stat_cputime_show(struct seq_file *seq)

Type:void

Parameter:

TypeParameterName
struct seq_file *seq
404  cgrp = PI: the cgroup that this css is attached to
407  If Not cgroup_parent(cgrp) Then Return
410  group_rstat_flush_begin - flush stats in @cgrp's subtree and hold*@cgrp: target cgroup* Flush stats in @cgrp's subtree and prevent further flushes. Must be* paired with cgroup_rstat_flush_release().* This function may block.
411  usage = sum_exec_runtime
412  Adjust tick based cputime random precision against scheduler runtime* accounting
413  group_rstat_flush_release - release cgroup_rstat_flush_hold()
415  do_div() is NOT a C function(usage, NSEC_PER_USEC)
416  do_div() is NOT a C function(utime, NSEC_PER_USEC)
417  do_div() is NOT a C function(stime, NSEC_PER_USEC)
419  seq_printf(seq, "usage_usec %llu\nuser_usec %llu\nsystem_usec %llu\n", usage, utime, stime)
Caller
NameDescribe
cpu_stat_show