ctf: make search return the first matching packet in a trace
authorMatthew Khouzam <matthew.khouzam@ericsson.com>
Fri, 28 Apr 2017 17:16:07 +0000 (13:16 -0400)
committerMatthew Khouzam <matthew.khouzam@ericsson.com>
Wed, 3 May 2017 17:04:40 +0000 (13:04 -0400)
commitec983b854d43a40540488ddd691f67a70a8823ad
tree9c725aa71df6e74e672050e9a9f157db2a99c0d8
parent40ed3a0815c1d607a97dcb24dc6357205f5710dc
ctf: make search return the first matching packet in a trace

The CTF parser would return a random packet in search when all packets
overlap. This patch makes it return the first. Performance impacts on
properly packetized traces should be negligeable.

Change-Id: I4e9470c46b3801779ba874c4d2ccfcae88a65e16
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/96055
Reviewed-by: Hudson CI
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
Tested-by: Patrick Tasse <patrick.tasse@gmail.com>
ctf/org.eclipse.tracecompass.ctf.core.tests/src/org/eclipse/tracecompass/ctf/core/tests/trace/CTFStreamInputPacketIndexTest.java
ctf/org.eclipse.tracecompass.ctf.core.tests/src/org/eclipse/tracecompass/ctf/core/tests/trace/PacketStub.java [new file with mode: 0644]
ctf/org.eclipse.tracecompass.ctf.core/src/org/eclipse/tracecompass/internal/ctf/core/trace/StreamInputPacketIndex.java
This page took 0.025745 seconds and 5 git commands to generate.