函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:cgroup_base_stat_flush

函数原型:static void cgroup_base_stat_flush(struct cgroup *cgrp, int cpu)

返回类型:void

参数:

类型参数名称
struct cgroup *cgrp
intcpu
325  parent等于cgroup_parent(cgrp)
326  rstatc等于cgroup_rstat_cpu(cgrp, cpu)
331  循环
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 __u64_stats_fetch_retry( & ->bsync protects ->bstat. These are the only fields which get* updated in the hot path., seq)循环
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  如果parent
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.
调用者
名称描述
cgroup_rstat_flush_lockedsee cgroup_rstat_flush()