diff options
| author | Josh Don <[email protected]> | 2023-03-15 21:40:29 +0000 |
|---|---|---|
| committer | Tejun Heo <[email protected]> | 2023-03-17 22:19:15 +0000 |
| commit | fcdb1eda5302599045bb366e679cccb4216f3873 (patch) | |
| tree | db8f154b993c6f51a90eb649af55435bf9b373c4 /tools/perf/scripts/python/stat-cpi.py | |
| parent | Merge tag 'block-6.3-2023-03-16' of git://git.kernel.dk/linux (diff) | |
| download | kernel-fcdb1eda5302599045bb366e679cccb4216f3873.tar.gz kernel-fcdb1eda5302599045bb366e679cccb4216f3873.zip | |
cgroup: fix display of forceidle time at root
We need to reset forceidle_sum to 0 when reading from root, since the
bstat we accumulate into is stack allocated.
To make this more robust, just replace the existing cputime reset with a
memset of the overall bstat.
Signed-off-by: Josh Don <[email protected]>
Fixes: 1fcf54deb767 ("sched/core: add forced idle accounting for cgroups")
Cc: [email protected] # v6.0+
Signed-off-by: Tejun Heo <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stat-cpi.py')
0 files changed, 0 insertions, 0 deletions
