diff options
author | Xiu Jianfeng <[email protected]> | 2024-10-26 09:34:07 +0000 |
---|---|---|
committer | Andrew Morton <[email protected]> | 2024-11-07 14:38:08 -0800 |
commit | 2b1d55498b67ef59bd461236306fa24ae79878e5 (patch) | |
tree | 92daf0e945865faf80bd95f3094cd12adf6e8076 /tools/perf/scripts/python/sctop.py | |
parent | e8c1a296b8066734ef20797ab77e03a90b0c9be8 (diff) |
memcg: factor out mem_cgroup_stat_aggregate()
Currently mem_cgroup_css_rstat_flush() is used to flush the per-CPU
statistics from a specified CPU into the global statistics of the
memcg. It processes three kinds of data in three for loops using exactly
the same method. Therefore, the for loop can be factored out and may
make the code more clean.
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Xiu Jianfeng <[email protected]>
Cc: Johannes Weiner <[email protected]>
Cc: Michal Hocko <[email protected]>
Cc: Muchun Song <[email protected]>
Cc: Roman Gushchin <[email protected]>
Cc: Shakeel Butt <[email protected]>
Cc: Wang Weiyang <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/sctop.py')
0 files changed, 0 insertions, 0 deletions