aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/check-perf-trace.py
diff options
context:
space:
mode:
authorHidetoshi Seto <[email protected]>2009-11-12 13:33:45 +0900
committerIngo Molnar <[email protected]>2009-11-12 15:23:47 +0100
commit761b1d26df542fd5eb348837351e4d2f3bc7bffe (patch)
tree3c548070fdf81b618d32f9878b41fb16d26ffcde /tools/perf/scripts/python/check-perf-trace.py
parentffd44db5f02af32bcc25a8eb5981bf02a141cdab (diff)
sched: Fix granularity of task_u/stime()
Originally task_s/utime() were designed to return clock_t but later changed to return cputime_t by following commit: commit efe567fc8281661524ffa75477a7c4ca9b466c63 Author: Christian Borntraeger <[email protected]> Date: Thu Aug 23 15:18:02 2007 +0200 It only changed the type of return value, but not the implementation. As the result the granularity of task_s/utime() is still that of clock_t, not that of cputime_t. So using task_s/utime() in __exit_signal() makes values accumulated to the signal struct to be rounded and coarse grained. This patch removes casts to clock_t in task_u/stime(), to keep granularity of cputime_t over the calculation. v2: Use div_u64() to avoid error "undefined reference to `__udivdi3`" on some 32bit systems. Signed-off-by: Hidetoshi Seto <[email protected]> Acked-by: Peter Zijlstra <[email protected]> Cc: [email protected] Cc: Spencer Candland <[email protected]> Cc: Oleg Nesterov <[email protected]> Cc: Stanislaw Gruszka <[email protected]> LKML-Reference: <[email protected]> Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions