Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:__cgroup_account_cputime_field

Proto:void __cgroup_account_cputime_field(struct cgroup *cgrp, enum cpu_usage_stat index, u64 delta_exec)

Type:void

Parameter:

TypeParameterName
struct cgroup *cgrp
enum cpu_usage_statindex
u64delta_exec
383  rstatc = cgroup_base_stat_cputime_account_begin(cgrp)
386  Case index == CPUTIME_USER
387  Case index == CPUTIME_NICE
388  utime += delta_exec
389  Break
390  Case index == CPUTIME_SYSTEM
391  Case index == CPUTIME_IRQ
392  Case index == CPUTIME_SOFTIRQ
393  stime += delta_exec
394  Break
395  Default
396  Break
399  cgroup_base_stat_cputime_account_end(cgrp, rstatc)