diff options
| author | Peter Zijlstra <[email protected]> | 2015-06-30 11:30:54 +0200 |
|---|---|---|
| committer | Ingo Molnar <[email protected]> | 2015-08-03 12:21:21 +0200 |
| commit | 9d7fb04276481c59610983362d8e023d262b58ca (patch) | |
| tree | 2f6a6d497d0e088bd984876a34845c64afdffdbe /tools/perf/scripts/python/bin | |
| parent | 781b0203423c228b100aaaf169c77b2b556f8a49 (diff) | |
sched/cputime: Guarantee stime + utime == rtime
While the current code guarantees monotonicity for stime and utime
independently of one another, it does not guarantee that the sum of
both is equal to the total time we started out with.
This confuses things (and peoples) who look at this sum, like top, and
will report >100% usage followed by a matching period of 0%.
Rework the code to provide both individual monotonicity and a coherent
sum.
Suggested-by: Fredrik Markstrom <[email protected]>
Reported-by: Fredrik Markstrom <[email protected]>
Tested-by: Fredrik Markstrom <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Cc: Frederic Weisbecker <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Mike Galbraith <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Rik van Riel <[email protected]>
Cc: Stanislaw Gruszka <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: [email protected]
Cc: [email protected]
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions