diff options
author | Andrey Ryabinin <arbn@yandex-team.com> | 2021-11-15 19:46:04 +0300 |
---|---|---|
committer | Peter Zijlstra <peterz@infradead.org> | 2021-11-23 09:55:22 +0100 |
commit | 9731698ecb9c851f353ce2496292ff9fcea39dff (patch) | |
tree | 31a8b27285592b93012f7f955312ebe8c69d5640 /tools/perf/scripts/python/net_dropmonitor.py | |
parent | cb0e52b7748737b2cf6481fdd9b920ce7e1ebbdf (diff) |
cputime, cpuacct: Include guest time in user time in cpuacct.stat
cpuacct.stat in no-root cgroups shows user time without guest time
included int it. This doesn't match with user time shown in root
cpuacct.stat and /proc/<pid>/stat. This also affects cgroup2's cpu.stat
in the same way.
Make account_guest_time() to add user time to cgroup's cpustat to
fix this.
Fixes: ef12fefabf94 ("cpuacct: add per-cgroup utime/stime statistics")
Signed-off-by: Andrey Ryabinin <arbn@yandex-team.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Daniel Jordan <daniel.m.jordan@oracle.com>
Acked-by: Tejun Heo <tj@kernel.org>
Cc: <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/20211115164607.23784-1-arbn@yandex-team.com
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions