tmf: Bug 477508: Fix wrong event count and ranks in TmfXmlTraceStub
authorPatrick Tasse <patrick.tasse@gmail.com>
Tue, 24 Nov 2015 23:27:50 +0000 (18:27 -0500)
committerPatrick Tasse <patrick.tasse@gmail.com>
Thu, 26 Nov 2015 20:07:44 +0000 (15:07 -0500)
commit0e564353239b2b3e2e2e8c96a3b03c6f9bcec7c4
tree467b3903e544fc9f92626d4deddd64a4729f5c9e
parent0ff3b4ebde5e838580d4ab60546ca2b684e85bd8
tmf: Bug 477508: Fix wrong event count and ranks in TmfXmlTraceStub

The stub implementation of getNext() was increasing the context rank
twice per event. This would cause a wrong event count in the trace.

The processing of the 'set_aspects' dummy event was also causing the
context rank to be incremented twice. The XML Schema Definition is
changed to extract 'set_aspects' into its own element. The trace stub
now first parses the trace with a custom XML trace definition that only
processes the single 'set_aspects' event, then reinitializes the trace
with a custom XML trace definition that processes 'event' events.

Change-Id: Id1cf2251e364f892ab37511f0a5d99f2bcc2b5c6
Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-on: https://git.eclipse.org/r/61205
Reviewed-by: Hudson CI
analysis/org.eclipse.tracecompass.analysis.os.linux.core.tests/testfiles/cpu_analysis.xml
analysis/org.eclipse.tracecompass.analysis.os.linux.core.tests/testfiles/lttng_kernel_analysis.xml
lttng/org.eclipse.tracecompass.lttng2.kernel.core.tests/testfiles/graph/sched_only.xml
lttng/org.eclipse.tracecompass.lttng2.kernel.core.tests/testfiles/vm/OneQemuKvm/guest.xml
lttng/org.eclipse.tracecompass.lttng2.kernel.core.tests/testfiles/vm/OneQemuKvm/host.xml
tmf/org.eclipse.tracecompass.tmf.core.tests/stubs/org/eclipse/tracecompass/tmf/tests/stubs/trace/xml/TmfXmlDevelopmentTrace.xml
tmf/org.eclipse.tracecompass.tmf.core.tests/stubs/org/eclipse/tracecompass/tmf/tests/stubs/trace/xml/TmfXmlDevelopmentTrace.xsd
tmf/org.eclipse.tracecompass.tmf.core.tests/stubs/org/eclipse/tracecompass/tmf/tests/stubs/trace/xml/TmfXmlTraceStub.java
tmf/org.eclipse.tracecompass.tmf.core.tests/testfiles/stub_xml_traces/valid/test.xml
tmf/org.eclipse.tracecompass.tmf.ui.swtbot.tests/src/org/eclipse/tracecompass/tmf/ui/swtbot/tests/wizards/TestImportExportPackageWizard.java
This page took 0.027922 seconds and 5 git commands to generate.