Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:cgroup_base_stat_flush

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

Type:void

Parameter:

TypeParameterName
struct cgroup *cgrp
intcpu
325  parent = cgroup_parent(cgrp)
326  rstatc = cgroup_rstat_cpu(cgrp, cpu)
331  Do
332  seq = __u64_stats_fetch_begin( & ->bsync protects ->bstat. These are the only fields which get* updated in the hot path.)
333  cputime = cputime
334  When __u64_stats_fetch_retry( & ->bsync protects ->bstat. These are the only fields which get* updated in the hot path., seq) cycle
337  delta = cur
338  cgroup_base_stat_sub( & delta, & Snapshots at the last reading. These are used to calculate the* deltas to propagate to the global counters.)
339  Functions for cgroup basic resource statistics implemented on top of* rstat.
340  Functions for cgroup basic resource statistics implemented on top of* rstat.
343  If parent Then
344  delta = bstat
345  cgroup_base_stat_sub( & delta, & cgroup basic resource statistics )
346  Functions for cgroup basic resource statistics implemented on top of* rstat.
347  Functions for cgroup basic resource statistics implemented on top of* rstat.
Caller
NameDescribe
cgroup_rstat_flush_lockedsee cgroup_rstat_flush()