ctf: Attempt to gracefully recover from a malformed packet context
authorMatthew Khouzam <matthew.khouzam@ericsson.com>
Tue, 26 Jan 2016 11:15:28 +0000 (06:15 -0500)
committerMatthew Khouzam <matthew.khouzam@ericsson.com>
Fri, 29 Jan 2016 02:07:01 +0000 (21:07 -0500)
commita6efddce8bbceca4dd81ef3a0acbb1265c31c3c0
treea405360905af173c666658f2d837dbd79e794fca
parented493a0715153ad81a1eb7f258e932b5660163b8
ctf: Attempt to gracefully recover from a malformed packet context

If a packet context has an end time that is less than the start time
tracecompass will give an error message and refuse to read the trace.

This patch makes tracecompass log a warning instead and try to read
the trace.

Seeking should not be affected.

Bug 486670

Change-Id: I352af4c79476c73b0ced2cefd65f82bd04d6762d
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/65168
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Reviewed-by: Hudson CI
ctf/org.eclipse.tracecompass.ctf.core.tests/src/org/eclipse/tracecompass/ctf/core/tests/trace/CTFStreamInputPacketIndexTest.java
ctf/org.eclipse.tracecompass.ctf.core/src/org/eclipse/tracecompass/internal/ctf/core/trace/StreamInputPacketIndex.java
ctf/org.eclipse.tracecompass.ctf.core/src/org/eclipse/tracecompass/internal/ctf/core/trace/StreamInputPacketIndexEntry.java
This page took 0.026482 seconds and 5 git commands to generate.