diff options
author | Chaos.Chen <[email protected]> | 2016-02-09 15:40:14 -0500 |
---|---|---|
committer | Arnaldo Carvalho de Melo <[email protected]> | 2016-03-03 11:10:37 -0300 |
commit | 21a30100453516004905d4d5f0806ebaffa95131 (patch) | |
tree | 81200b0f539f94c8f71efe192cb6e41176d20743 /tools/perf/scripts/python/stackcollapse.py | |
parent | 979ac257b00c53aacec3eacf86142e8c00bee889 (diff) |
tools lib traceevent: Fix time stamp rounding issue
When rounding to microseconds, if the timestamp subsecond is between
.999999500 and .999999999, it is rounded to .1000000, when it should
instead increment the second counter due to the overflow.
For example, if the timestamp is 1234.999999501 instead of seeing:
1235.000000
we see:
1234.1000000
Signed-off-by: Chaos.Chen <[email protected]>
Cc: Andrew Morton <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
[ fixed incrementing "secs" instead of decrementing it ]
Signed-off-by: Steven Rostedt <[email protected]>
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions