From: Alexandre Montplaisir Date: Tue, 16 Apr 2013 13:27:36 +0000 (-0400) Subject: tmf: Fix start time of partial history event requests X-Git-Url: http://git.efficios.com/?a=commitdiff_plain;h=d5ba77dba9c23db31c622869aeb089b1a7d8fc93;p=deliverable%2Ftracecompass.git tmf: Fix start time of partial history event requests Change-Id: I187750b8cd781c7e7bed893678f5d9e84e6ce7c3 Signed-off-by: Alexandre Montplaisir Reviewed-on: https://git.eclipse.org/r/11946 Tested-by: Hudson CI Reviewed-by: Bernd Hufmann IP-Clean: Bernd Hufmann Tested-by: Bernd Hufmann --- diff --git a/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/internal/tmf/core/statesystem/backends/partial/PartialHistoryBackend.java b/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/internal/tmf/core/statesystem/backends/partial/PartialHistoryBackend.java index 9d2f97b6d7..34e6129a0d 100644 --- a/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/internal/tmf/core/statesystem/backends/partial/PartialHistoryBackend.java +++ b/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/internal/tmf/core/statesystem/backends/partial/PartialHistoryBackend.java @@ -213,7 +213,13 @@ public class PartialHistoryBackend implements IStateHistoryBackend { /* Send an event request to update the state system to the target time. */ TmfTimeRange range = new TmfTimeRange( - new TmfTimestamp(checkpointTime, -9), new TmfTimestamp(t, -9)); + /* + * The state at the checkpoint already includes any state change + * caused by the event(s) happening exactly at 'checkpointTime', + * if any. We must not include those events in the query. + */ + new TmfTimestamp(checkpointTime + 1, -9), + new TmfTimestamp(t, -9)); ITmfEventRequest request = new PartialStateSystemRequest(partialInput, range); partialInput.getTrace().sendRequest(request);