ctf: Fix incorrect location in CtfTmfContext after seek
authorPatrick Tasse <patrick.tasse@gmail.com>
Fri, 5 Jun 2015 19:38:39 +0000 (15:38 -0400)
committerPatrick Tasse <patrick.tasse@gmail.com>
Mon, 8 Jun 2015 20:36:42 +0000 (16:36 -0400)
commit544c79ad307ecce074ce54eee8dd097e64085e58
treef45484f342d1ad327afde104b2c103bf74755add
parent5b17357d28dff407bfb06962feba3bdd8648a284
ctf: Fix incorrect location in CtfTmfContext after seek

After seeking by timestamp, the context location should be set to the
exact timestamp of the event, not the specified timestamp.

After seeking to the start of the trace, the context location should be
set to the exact timestamp of the first event, not to 0. This was a
regression introduced when the CtfLocation was made final.

Change-Id: I5d34653aede7afd5b5fef1baead532a8b1640fa7
Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-on: https://git.eclipse.org/r/49555
Reviewed-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
org.eclipse.tracecompass.tmf.ctf.core/src/org/eclipse/tracecompass/tmf/ctf/core/context/CtfTmfContext.java
org.eclipse.tracecompass.tmf.ctf.core/src/org/eclipse/tracecompass/tmf/ctf/core/trace/CtfTmfTrace.java
This page took 0.220485 seconds and 5 git commands to generate.