函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:cgroup_base_stat_cputime_show

函数原型:void cgroup_base_stat_cputime_show(struct seq_file *seq)

返回类型:void

参数:

类型参数名称
struct seq_file *seq
404  cgrp等于PI: the cgroup that this css is attached to
407  如果非cgroup_parent(cgrp)则返回
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)
调用者
名称描述
cpu_stat_show