diff options
author | Josh Don <joshdon@google.com> | 2023-03-15 14:40:29 -0700 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2023-03-17 12:19:15 -1000 |
commit | fcdb1eda5302599045bb366e679cccb4216f3873 (patch) | |
tree | db8f154b993c6f51a90eb649af55435bf9b373c4 /scripts/gdb/linux/timerlist.py | |
parent | 8d3c682a5e3d9dfc2448ecbb22f4cd48359b9e21 (diff) |
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 <joshdon@google.com>
Fixes: 1fcf54deb767 ("sched/core: add forced idle accounting for cgroups")
Cc: stable@vger.kernel.org # v6.0+
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'scripts/gdb/linux/timerlist.py')
0 files changed, 0 insertions, 0 deletions