aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/syscall-counts.py
diff options
context:
space:
mode:
authorStanislaw Gruszka <[email protected]>2013-04-30 11:35:05 +0200
committerIngo Molnar <[email protected]>2013-04-30 19:13:04 +0200
commit772c808a252594692972773f6ee41c289b8e0b2a (patch)
tree1c1c2631ca1133df1bfe0c5a47d2d49dfe864895 /tools/perf/scripts/python/syscall-counts.py
parent55eaa7c1f511af5fb6ef808b5328804f4d4e5243 (diff)
sched: Do not account bogus utime
Due to rounding in scale_stime(), for big numbers, scaled stime values will grow in chunks. Since rtime grow in jiffies and we calculate utime like below: prev->stime = max(prev->stime, stime); prev->utime = max(prev->utime, rtime - prev->stime); we could erroneously account stime values as utime. To prevent that only update prev->{u,s}time values when they are smaller than current rtime. Signed-off-by: Stanislaw Gruszka <[email protected]> Cc: Frederic Weisbecker <[email protected]> Cc: [email protected] Cc: Linus Torvalds <[email protected]> Cc: Dave Hansen <[email protected]> Cc: Peter Zijlstra <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions