diff options
author | Frederic Weisbecker <frederic@kernel.org> | 2019-11-21 05:44:25 +0300 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2019-11-21 09:33:23 +0300 |
commit | 5a1c95580f1d89c8a736bb02ecd82a8858388b8a (patch) | |
tree | 90a120e1683e4e81829317127b1cecfa7c8ab637 /include/linux/kernel_stat.h | |
parent | bef69dd87828ef5d8ecdab8d857cd3a33cf98675 (diff) | |
download | linux-5a1c95580f1d89c8a736bb02ecd82a8858388b8a.tar.xz |
sched/cputime: Support other fields on kcpustat_field()
Provide support for user, nice, guest and guest_nice fields through
kcpustat_field().
Whether we account the delta to a nice or not nice field is decided on
top of the nice value snapshot taken at the time we call kcpustat_field().
If the nice value of the task has been changed since the last vtime
update, we may have inacurrate distribution of the nice VS unnice
cputime.
However this is considered as a minor issue compared to the proper fix
that would involve interrupting the target on nice updates, which is
undesired on nohz_full CPUs.
Signed-off-by: Frederic Weisbecker <frederic@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Wanpeng Li <wanpengli@tencent.com>
Cc: Yauheni Kaliuta <yauheni.kaliuta@redhat.com>
Link: https://lkml.kernel.org/r/20191121024430.19938-2-frederic@kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'include/linux/kernel_stat.h')
0 files changed, 0 insertions, 0 deletions