diff options
author | 2021-11-15 19:46:07 +0300 | |
---|---|---|
committer | 2021-11-23 09:55:22 +0100 | |
commit | 8c92606ab81086db00cbb73347d124b4eb169b7e (patch) | |
tree | 5e84fbf5f8e7bc324c161445f80ce1b0f3c54ad1 /scripts/gdb/linux/utils.py | |
parent | sched/cpuacct: Fix user/system in shown cpuacct.usage* (diff) | |
download | wireguard-linux-8c92606ab81086db00cbb73347d124b4eb169b7e.tar.xz wireguard-linux-8c92606ab81086db00cbb73347d124b4eb169b7e.zip |
sched/cpuacct: Make user/system times in cpuacct.stat more precise
cpuacct.stat shows user time based on raw random precision tick
based counters. Use cputime_addjust() to scale these values against the
total runtime accounted by the scheduler, like we already do
for user/system times in /proc/<pid>/stat.
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>
Link: https://lore.kernel.org/r/20211115164607.23784-4-arbn@yandex-team.com
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions