Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:group_rstat_updated - keep track of updated rstat_cpu*@cgrp: target cgroup*@cpu: cpu on which rstat_cpu was updated*@cgrp's rstat_cpu on @cpu was updated. Put it on the parent's matching* rstat_cpu->updated_children list. See the comment on top of

Proto:void cgroup_rstat_updated(struct cgroup *cgrp, int cpu)

Type:void

Parameter:

TypeParameterName
struct cgroup *cgrp
intcpu
27  cpu_lock = per_cpu_ptr( & cgroup_rstat_cpu_lock, cpu)
32  If Not cgroup_parent(cgrp) Then Return
39  smp_mb()
46  If NULL iff not on the list Then Return
49  raw_spin_lock_irqsave(cpu_lock, flags)
52  When parent cycle
54  rstatc = cgroup_rstat_cpu(cgrp, cpu)
55  prstatc = cgroup_rstat_cpu(parent, cpu)
61  If NULL iff not on the list Then Break
64  NULL iff not on the list = rminated by self cgroup
65  rminated by self cgroup = cgrp
68  raw_spin_unlock_irqrestore(cpu_lock, flags)
Caller
NameDescribe
cgroup_base_stat_cputime_account_end
blkcg_bio_issue_check