Fix tracecontext seek backward underflow v0.12.26
authorMathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
Thu, 28 Jan 2010 23:57:36 +0000 (18:57 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
Thu, 28 Jan 2010 23:57:36 +0000 (18:57 -0500)
commit0903a18630f5ec2087c84e2575bf3e7f2d938210
tree794440f9038fd1e6516b6225bac5b3ca54aa7da4
parent769633db3416e9c3e78423b28c4bd0170fc7f963
Fix tracecontext seek backward underflow

Fix a problem with the detailed event list "seek backward". In the following
condition:

- Long interval between events (e.g. generated with power management suspend).
- Happening close to trace start.
- Trace start near 0s 0ns.

The substraction could underflow. Fix this by comparing the time to substract
and floor to trace start time if it would underflow.

The visible effect was that the detailed event list is seeked to the end of the
trace rather than the previous event when going "up" one event prior to the
suspend begin.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
CC: Viktor Rosendahl <viktor.rosendahl@nokia.com>
lttv/lttv/tracecontext.c
This page took 0.023057 seconds and 4 git commands to generate.