From: Mathieu Desnoyers Date: Thu, 28 Jan 2010 23:57:36 +0000 (-0500) Subject: Fix tracecontext seek backward underflow X-Git-Tag: v0.12.26 X-Git-Url: http://git.liburcu.org/?a=commitdiff_plain;h=0903a18630f5ec2087c84e2575bf3e7f2d938210;hp=0903a18630f5ec2087c84e2575bf3e7f2d938210;p=lttv.git 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 CC: Viktor Rosendahl ---