Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexandre Montplaisir2012-08-07 18:59:34 +0000
committerAlexandre Montplaisir2012-08-20 17:30:50 +0000
commit1ff9cea5c455391fd546e9a787d9b16cc5e6148a (patch)
tree09df52bb9bfb595bf37953bff3d930b5dd3bea0a
parente68ddcbc7dc45cd49dc1e6d45b70dcd2f4c22014 (diff)
downloadorg.eclipse.linuxtools-1ff9cea5c455391fd546e9a787d9b16cc5e6148a.tar.gz
org.eclipse.linuxtools-1ff9cea5c455391fd546e9a787d9b16cc5e6148a.tar.xz
org.eclipse.linuxtools-1ff9cea5c455391fd546e9a787d9b16cc5e6148a.zip
Drop the legacy LTTng 0.x plugins
Here comes the axe! LTTng 0.x has been unsupported upstream for more than 2 years now. The plugins themselves haven't received any new development since then. We plan to drop support for LTTng 0.x in Linux Tools 2.0. It will remain supported in the Linux Tools 1.x branch. This will open the door for some future improvements that were impossible to make with this codebase still around. For example, immutable timestamps in the framework. Change-Id: I176f6e03012cb7e4a11e4dd6fd450272b015ca36 Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im> Reviewed-on: https://git.eclipse.org/r/7134
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.core.tests/.classpath7
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.core.tests/.gitignore5
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.core.tests/.project34
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.core.tests/.settings/org.eclipse.jdt.core.prefs12
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.core.tests/ChangeLog72
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.core.tests/META-INF/MANIFEST.MF15
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.core.tests/build.properties6
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.core.tests/plugin.properties3
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.core.tests/pom.xml76
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.core.tests/src/org/eclipse/linuxtools/lttng/core/tests/ActivateDebugging.java15
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.core.tests/src/org/eclipse/linuxtools/lttng/core/tests/AllLTTngCoreTests.java72
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.core.tests/src/org/eclipse/linuxtools/lttng/core/tests/LttngTestPreparation.java419
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.core.tests/src/org/eclipse/linuxtools/lttng/core/tests/control/LTTngSyntheticEventProviderTest.java95
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.core.tests/src/org/eclipse/linuxtools/lttng/core/tests/control/LTTngSyntheticEventProviderTextTest.java76
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.core.tests/src/org/eclipse/linuxtools/lttng/core/tests/event/AllLTTngEventTests.java23
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.core.tests/src/org/eclipse/linuxtools/lttng/core/tests/event/LttngEventContentTest.java264
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.core.tests/src/org/eclipse/linuxtools/lttng/core/tests/event/LttngEventFieldTest.java123
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.core.tests/src/org/eclipse/linuxtools/lttng/core/tests/event/LttngEventTest.java225
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.core.tests/src/org/eclipse/linuxtools/lttng/core/tests/event/LttngEventTypeTest.java119
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.core.tests/src/org/eclipse/linuxtools/lttng/core/tests/event/LttngTimestampTest.java144
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.core.tests/src/org/eclipse/linuxtools/lttng/core/tests/headless/JniTraceTest.java88
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.core.tests/src/org/eclipse/linuxtools/lttng/core/tests/headless/LttngTraceTest.java99
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.core.tests/src/org/eclipse/linuxtools/lttng/core/tests/headless/TmfTraceTest.java125
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.core.tests/src/org/eclipse/linuxtools/lttng/core/tests/jni/AllJniTests.java20
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.core.tests/src/org/eclipse/linuxtools/lttng/core/tests/jni/Combinations.java177
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.core.tests/src/org/eclipse/linuxtools/lttng/core/tests/jni/JniEventTest.java340
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.core.tests/src/org/eclipse/linuxtools/lttng/core/tests/jni/JniMarkerFieldTest.java112
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.core.tests/src/org/eclipse/linuxtools/lttng/core/tests/jni/JniMarkerTest.java120
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.core.tests/src/org/eclipse/linuxtools/lttng/core/tests/jni/JniTraceTest.java392
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.core.tests/src/org/eclipse/linuxtools/lttng/core/tests/jni/JniTracefileTest.java244
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.core.tests/src/org/eclipse/linuxtools/lttng/core/tests/model/LTTngTreeNodeTest.java271
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.core.tests/src/org/eclipse/linuxtools/lttng/core/tests/state/StateManagerFactoryTestSupport.java83
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.core.tests/src/org/eclipse/linuxtools/lttng/core/tests/state/TestStateManager.java59
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.core.tests/src/org/eclipse/linuxtools/lttng/core/tests/state/experiment/StateExperimentManagerTextTest.java88
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.core.tests/src/org/eclipse/linuxtools/lttng/core/tests/state/handlers/AbsStateUpdate.java569
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.core.tests/src/org/eclipse/linuxtools/lttng/core/tests/state/handlers/after/StateAfterUpdateFactory.java160
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.core.tests/src/org/eclipse/linuxtools/lttng/core/tests/state/handlers/after/StateAfterUpdateHandlers.java1615
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.core.tests/src/org/eclipse/linuxtools/lttng/core/tests/state/handlers/before/StateBeforeUpdateFactory.java160
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.core.tests/src/org/eclipse/linuxtools/lttng/core/tests/state/handlers/before/StateBeforeUpdateHandlers.java1605
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.core.tests/src/org/eclipse/linuxtools/lttng/core/tests/state/resource/LTTngStateResourceTest.java193
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.core.tests/src/org/eclipse/linuxtools/lttng/core/tests/state/tests/handlers/AbsStateUpdate.java569
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.core.tests/src/org/eclipse/linuxtools/lttng/core/tests/trace/LTTngExperimentTest.java126
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.core.tests/src/org/eclipse/linuxtools/lttng/core/tests/trace/LTTngTextTraceTest.java268
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.core.tests/src/org/eclipse/linuxtools/lttng/core/tests/trace/LTTngTraceTest.java548
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.core.tests/traceset/.gitignore2
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.core.tests/traceset/trace-15316events_nolost_newformat.tar.gzbin150943 -> 0 bytes
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.core.tests/traceset/trace-15316events_nolost_newformat.txt15320
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.core.tests/traceset/trace-15471events_nolost_newformat.tar.gzbin152765 -> 0 bytes
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.core.tests/traceset/trace-15471events_nolost_newformat.txt15475
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.core.tests/traceset/trace-2.6.tar.gzbin1179844 -> 0 bytes
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.core/.classpath7
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.core/.gitignore5
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.core/.options3
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.core/.project34
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.core/.settings/org.eclipse.jdt.core.prefs12
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.core/ChangeLog167
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.core/META-INF/MANIFEST.MF38
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.core/about.html28
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.core/build.properties6
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.core/plugin.properties3
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.core/pom.xml45
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.core/src/org/eclipse/linuxtools/internal/lttng/core/Activator.java142
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.core/src/org/eclipse/linuxtools/internal/lttng/core/LTTngProjectNature.java26
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.core/src/org/eclipse/linuxtools/internal/lttng/core/LttngConstants.java214
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.core/src/org/eclipse/linuxtools/internal/lttng/core/LttngFactory.java35
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.core/src/org/eclipse/linuxtools/internal/lttng/core/TraceDebug.java152
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.core/src/org/eclipse/linuxtools/internal/lttng/core/TraceHelper.java116
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.core/src/org/eclipse/linuxtools/internal/lttng/core/control/LttngCoreProviderFactory.java68
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.core/src/org/eclipse/linuxtools/internal/lttng/core/control/LttngSyntheticEventProvider.java481
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.core/src/org/eclipse/linuxtools/internal/lttng/core/event/LttngEvent.java247
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.core/src/org/eclipse/linuxtools/internal/lttng/core/event/LttngEventContent.java333
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.core/src/org/eclipse/linuxtools/internal/lttng/core/event/LttngEventField.java54
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.core/src/org/eclipse/linuxtools/internal/lttng/core/event/LttngEventType.java181
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.core/src/org/eclipse/linuxtools/internal/lttng/core/event/LttngLocation.java165
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.core/src/org/eclipse/linuxtools/internal/lttng/core/event/LttngSyntheticEvent.java347
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.core/src/org/eclipse/linuxtools/internal/lttng/core/event/LttngTimestamp.java172
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.core/src/org/eclipse/linuxtools/internal/lttng/core/exceptions/EventOutOfSequenceException.java17
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.core/src/org/eclipse/linuxtools/internal/lttng/core/exceptions/LttngException.java14
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.core/src/org/eclipse/linuxtools/internal/lttng/core/latency/analyzer/EventMatcher.java508
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.core/src/org/eclipse/linuxtools/internal/lttng/core/latency/analyzer/StackWrapper.java153
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.core/src/org/eclipse/linuxtools/internal/lttng/core/model/ILTTngTreeNode.java119
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.core/src/org/eclipse/linuxtools/internal/lttng/core/model/LTTngTreeNode.java68
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.core/src/org/eclipse/linuxtools/internal/lttng/core/model/LTTngTreeNodeGeneric.java362
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.core/src/org/eclipse/linuxtools/internal/lttng/core/request/ILttngSyntEventRequest.java97
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.core/src/org/eclipse/linuxtools/internal/lttng/core/request/IRequestStatusListener.java39
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.core/src/org/eclipse/linuxtools/internal/lttng/core/request/LttngBaseEventRequest.java126
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.core/src/org/eclipse/linuxtools/internal/lttng/core/request/LttngSyntEventRequest.java252
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.core/src/org/eclipse/linuxtools/internal/lttng/core/request/RequestCompletedSignal.java18
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.core/src/org/eclipse/linuxtools/internal/lttng/core/request/RequestStartedSignal.java18
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.core/src/org/eclipse/linuxtools/internal/lttng/core/signal/ILttExperimentSelectedListener.java35
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.core/src/org/eclipse/linuxtools/internal/lttng/core/signal/StateExperimentListener.java46
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.core/src/org/eclipse/linuxtools/internal/lttng/core/state/LttngStateException.java85
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.core/src/org/eclipse/linuxtools/internal/lttng/core/state/StateStrings.java652
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.core/src/org/eclipse/linuxtools/internal/lttng/core/state/evProcessor/AbsEventToHandlerResolver.java226
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.core/src/org/eclipse/linuxtools/internal/lttng/core/state/evProcessor/IBaseEventProcessor.java28
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.core/src/org/eclipse/linuxtools/internal/lttng/core/state/evProcessor/IEventToHandlerResolver.java34
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.core/src/org/eclipse/linuxtools/internal/lttng/core/state/evProcessor/ILttngEventProcessor.java37
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.core/src/org/eclipse/linuxtools/internal/lttng/core/state/evProcessor/ITransEventProcessor.java38
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.core/src/org/eclipse/linuxtools/internal/lttng/core/state/evProcessor/state/AbsStateProcessing.java210
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.core/src/org/eclipse/linuxtools/internal/lttng/core/state/evProcessor/state/AbsStateUpdate.java252
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.core/src/org/eclipse/linuxtools/internal/lttng/core/state/evProcessor/state/StateEventToHandlerFactory.java185
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.core/src/org/eclipse/linuxtools/internal/lttng/core/state/evProcessor/state/StateUpdateHandlers.java1599
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.core/src/org/eclipse/linuxtools/internal/lttng/core/state/experiment/IStateExperimentManager.java80
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.core/src/org/eclipse/linuxtools/internal/lttng/core/state/experiment/StateExperimentManager.java554
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.core/src/org/eclipse/linuxtools/internal/lttng/core/state/experiment/StateManagerFactory.java156
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.core/src/org/eclipse/linuxtools/internal/lttng/core/state/model/LTTngCPUState.java178
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.core/src/org/eclipse/linuxtools/internal/lttng/core/state/model/LttngBdevState.java89
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.core/src/org/eclipse/linuxtools/internal/lttng/core/state/model/LttngExecutionState.java181
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.core/src/org/eclipse/linuxtools/internal/lttng/core/state/model/LttngIRQState.java85
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.core/src/org/eclipse/linuxtools/internal/lttng/core/state/model/LttngProcessState.java509
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.core/src/org/eclipse/linuxtools/internal/lttng/core/state/model/LttngSoftIRQState.java114
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.core/src/org/eclipse/linuxtools/internal/lttng/core/state/model/LttngTraceState.java536
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.core/src/org/eclipse/linuxtools/internal/lttng/core/state/model/LttngTrapState.java87
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.core/src/org/eclipse/linuxtools/internal/lttng/core/state/model/StateModelFactory.java61
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.core/src/org/eclipse/linuxtools/internal/lttng/core/state/resource/ILTTngStateResource.java102
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.core/src/org/eclipse/linuxtools/internal/lttng/core/state/resource/ILttngStateContext.java77
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.core/src/org/eclipse/linuxtools/internal/lttng/core/state/resource/LTTngStateResource.java135
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.core/src/org/eclipse/linuxtools/internal/lttng/core/state/trace/IStateTraceManager.java99
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.core/src/org/eclipse/linuxtools/internal/lttng/core/state/trace/StateTraceManager.java593
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.core/src/org/eclipse/linuxtools/internal/lttng/core/trace/LTTngTextTrace.java516
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.core/src/org/eclipse/linuxtools/internal/lttng/core/trace/LTTngTrace.java1005
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.core/src/org/eclipse/linuxtools/internal/lttng/core/trace/LTTngTraceVersion.java165
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.core/src/org/eclipse/linuxtools/internal/lttng/core/tracecontrol/Messages.java41
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.core/src/org/eclipse/linuxtools/internal/lttng/core/tracecontrol/messages.properties13
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.core/src/org/eclipse/linuxtools/internal/lttng/core/tracecontrol/model/ProviderResource.java149
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.core/src/org/eclipse/linuxtools/internal/lttng/core/tracecontrol/model/TargetResource.java245
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.core/src/org/eclipse/linuxtools/internal/lttng/core/tracecontrol/model/TraceResource.java488
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.core/src/org/eclipse/linuxtools/internal/lttng/core/tracecontrol/model/config/TraceChannel.java334
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.core/src/org/eclipse/linuxtools/internal/lttng/core/tracecontrol/model/config/TraceChannels.java186
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.core/src/org/eclipse/linuxtools/internal/lttng/core/tracecontrol/model/config/TraceConfig.java235
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.core/src/org/eclipse/linuxtools/internal/lttng/core/tracecontrol/service/ILttControllerService.java327
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.core/src/org/eclipse/linuxtools/internal/lttng/core/tracecontrol/service/LttControllerServiceProxy.java573
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.core/src/org/eclipse/linuxtools/internal/lttng/core/tracecontrol/utility/LiveTraceManager.java33
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.core/src/org/eclipse/linuxtools/internal/lttng/core/util/EventsPair.java29
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.core/src/org/eclipse/linuxtools/internal/lttng/core/util/Pair.java121
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.jni/.classpath7
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.jni/.gitignore5
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.jni/.project34
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.jni/.settings/org.eclipse.jdt.core.prefs12
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.jni/ChangeLog36
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.jni/META-INF/MANIFEST.MF16
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.jni/about.html28
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.jni/build.properties6
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.jni/doc/JNI_Documentation.docbin64512 -> 0 bytes
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.jni/doc/JNI_Documentation.pdfbin456468 -> 0 bytes
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.jni/plugin.properties3
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.jni/pom.xml45
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.jni/src/org/eclipse/linuxtools/internal/lttng/jni/common/JniTime.java213
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.jni/src/org/eclipse/linuxtools/internal/lttng/jni/common/Jni_C_Constant.java51
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.jni/src/org/eclipse/linuxtools/internal/lttng/jni/common/Jni_C_Pointer.java105
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.jni/src/org/eclipse/linuxtools/internal/lttng/jni/common/Jni_C_Pointer_And_Library_Id.java71
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.jni/src/org/eclipse/linuxtools/internal/lttng/jni/exception/JniEventException.java25
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.jni/src/org/eclipse/linuxtools/internal/lttng/jni/exception/JniEventOutOfRangeException.java28
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.jni/src/org/eclipse/linuxtools/internal/lttng/jni/exception/JniException.java27
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.jni/src/org/eclipse/linuxtools/internal/lttng/jni/exception/JniMarkerException.java25
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.jni/src/org/eclipse/linuxtools/internal/lttng/jni/exception/JniMarkerFieldException.java25
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.jni/src/org/eclipse/linuxtools/internal/lttng/jni/exception/JniNoNextEventInTraceException.java28
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.jni/src/org/eclipse/linuxtools/internal/lttng/jni/exception/JniNoSuchEventException.java28
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.jni/src/org/eclipse/linuxtools/internal/lttng/jni/exception/JniOpenTraceFailedException.java27
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.jni/src/org/eclipse/linuxtools/internal/lttng/jni/exception/JniTraceException.java25
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.jni/src/org/eclipse/linuxtools/internal/lttng/jni/exception/JniTraceVersionException.java25
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.jni/src/org/eclipse/linuxtools/internal/lttng/jni/exception/JniTracefileException.java25
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.jni/src/org/eclipse/linuxtools/internal/lttng/jni/exception/JniTracefileWithoutEventException.java27
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.jni/src/org/eclipse/linuxtools/internal/lttng/jni_v2_3/JniEvent_v2_3.java46
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.jni/src/org/eclipse/linuxtools/internal/lttng/jni_v2_3/JniMarkerField_v2_3.java42
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.jni/src/org/eclipse/linuxtools/internal/lttng/jni_v2_3/JniMarker_v2_3.java59
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.jni/src/org/eclipse/linuxtools/internal/lttng/jni_v2_3/JniParser_v2_3.java31
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.jni/src/org/eclipse/linuxtools/internal/lttng/jni_v2_3/JniTrace_v2_3.java89
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.jni/src/org/eclipse/linuxtools/internal/lttng/jni_v2_3/JniTracefile_v2_3.java77
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.jni/src/org/eclipse/linuxtools/internal/lttng/jni_v2_5/JniEvent_v2_5.java46
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.jni/src/org/eclipse/linuxtools/internal/lttng/jni_v2_5/JniMarkerField_v2_5.java42
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.jni/src/org/eclipse/linuxtools/internal/lttng/jni_v2_5/JniMarker_v2_5.java59
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.jni/src/org/eclipse/linuxtools/internal/lttng/jni_v2_5/JniParser_v2_5.java31
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.jni/src/org/eclipse/linuxtools/internal/lttng/jni_v2_5/JniTrace_v2_5.java92
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.jni/src/org/eclipse/linuxtools/internal/lttng/jni_v2_5/JniTracefile_v2_5.java78
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.jni/src/org/eclipse/linuxtools/internal/lttng/jni_v2_6/JniEvent_v2_6.java46
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.jni/src/org/eclipse/linuxtools/internal/lttng/jni_v2_6/JniMarkerField_v2_6.java42
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.jni/src/org/eclipse/linuxtools/internal/lttng/jni_v2_6/JniMarker_v2_6.java58
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.jni/src/org/eclipse/linuxtools/internal/lttng/jni_v2_6/JniParser_v2_6.java31
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.jni/src/org/eclipse/linuxtools/internal/lttng/jni_v2_6/JniTrace_v2_6.java86
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.jni/src/org/eclipse/linuxtools/internal/lttng/jni_v2_6/JniTracefile_v2_6.java78
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.jni/src/org/eclipse/linuxtools/lttng/jni/JniEvent.java563
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.jni/src/org/eclipse/linuxtools/lttng/jni/JniMarker.java270
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.jni/src/org/eclipse/linuxtools/lttng/jni/JniMarkerField.java152
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.jni/src/org/eclipse/linuxtools/lttng/jni/JniParser.java297
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.jni/src/org/eclipse/linuxtools/lttng/jni/JniTrace.java1135
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.jni/src/org/eclipse/linuxtools/lttng/jni/JniTracefile.java649
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.jni/src/org/eclipse/linuxtools/lttng/jni/Jni_C_Common.java66
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.jni/src/org/eclipse/linuxtools/lttng/jni/factory/JniTraceFactory.java106
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.jni/src/org/eclipse/linuxtools/lttng/jni/factory/JniTraceVersion.java264
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui.tests/.classpath8
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui.tests/.gitignore5
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui.tests/.project34
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui.tests/.settings/org.eclipse.jdt.core.prefs12
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui.tests/ChangeLog7
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui.tests/META-INF/MANIFEST.MF17
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui.tests/build.properties7
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui.tests/plugin.properties3
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui.tests/pom.xml53
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui.tests/src/org/eclipse/linuxtools/lttng/ui/tests/AllLTTngUITests.java14
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui.tests/src/org/eclipse/linuxtools/lttng/ui/tests/distribution/AllTests.java27
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui.tests/src/org/eclipse/linuxtools/lttng/ui/tests/distribution/LatencyGraphModelTest.java582
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui.tests/stubs/org/eclipse/linuxtools/internal/lttng/stubs/LTTngEventParserStub.java139
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui.tests/stubs/org/eclipse/linuxtools/internal/lttng/stubs/LTTngTimestampStub.java57
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui.tests/stubs/org/eclipse/linuxtools/internal/lttng/stubs/LTTngTraceStub.java191
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/.classpath7
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/.gitignore5
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/.options7
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/.project34
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/.settings/org.eclipse.jdt.core.prefs12
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/ChangeLog301
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/META-INF/MANIFEST.MF24
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/about.html28
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/build.properties8
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/icons/elcl16/add_button.gifbin308 -> 0 bytes
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/icons/elcl16/browse_trace.gifbin216 -> 0 bytes
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/icons/elcl16/checked.gifbin343 -> 0 bytes
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/icons/elcl16/configure_markers.gifbin578 -> 0 bytes
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/icons/elcl16/configure_trace.gifbin572 -> 0 bytes
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/icons/elcl16/decreasebar_button.gifbin211 -> 0 bytes
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/icons/elcl16/delete_button.gifbin337 -> 0 bytes
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/icons/elcl16/delete_trace.gifbin351 -> 0 bytes
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/icons/elcl16/edit.gifbin210 -> 0 bytes
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/icons/elcl16/import_trace.gifbin327 -> 0 bytes
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/icons/elcl16/increasebar_button.gifbin208 -> 0 bytes
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/icons/elcl16/new_trace.gifbin382 -> 0 bytes
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/icons/elcl16/newconnection_wiz.gifbin202 -> 0 bytes
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/icons/elcl16/pause_trace.gifbin338 -> 0 bytes
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/icons/elcl16/start_trace.gifbin528 -> 0 bytes
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/icons/elcl16/stop_trace.gifbin215 -> 0 bytes
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/icons/elcl16/unchecked.gifbin148 -> 0 bytes
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/icons/elcl16/warning.gifbin999 -> 0 bytes
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/icons/eview16/control_flow_view.gifbin215 -> 0 bytes
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/icons/eview16/control_view.gifbin152 -> 0 bytes
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/icons/eview16/events_view.gifbin97 -> 0 bytes
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/icons/eview16/graph.gifbin197 -> 0 bytes
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/icons/eview16/resources_view.gifbin101 -> 0 bytes
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/icons/eview16/statistics_view.gifbin343 -> 0 bytes
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/icons/eview16/time_frame_view.gifbin368 -> 0 bytes
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/icons/obj16/LTTng.pngbin1566 -> 0 bytes
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/icons/obj16/garland16-live.gifbin649 -> 0 bytes
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/icons/obj16/garland16.gifbin563 -> 0 bytes
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/icons/obj16/garland16.pngbin631 -> 0 bytes
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/icons/obj16/garland32.pngbin1566 -> 0 bytes
-rwxr-xr-xlttng/org.eclipse.linuxtools.lttng.ui/icons/obj16/node_obj.gifbin579 -> 0 bytes
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/icons/obj16/providers.gifbin224 -> 0 bytes
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/icons/obj16/systemlttng-live.gifbin201 -> 0 bytes
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/icons/obj16/systemlttng.gifbin275 -> 0 bytes
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/icons/obj16/targets.gifbin243 -> 0 bytes
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/icons/obj16/trace.gifbin370 -> 0 bytes
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/icons/obj16/tux.pngbin268 -> 0 bytes
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/icons/obj16/tux2.pngbin280 -> 0 bytes
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/plugin.properties82
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/plugin.xml434
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/pom.xml45
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/internal/lttng/ui/Activator.java159
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/internal/lttng/ui/TraceDebug.java227
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/internal/lttng/ui/model/trange/ITimeRangeComponent.java43
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/internal/lttng/ui/model/trange/ItemContainer.java53
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/internal/lttng/ui/model/trange/Messages.java20
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/internal/lttng/ui/model/trange/TimeRangeComponent.java126
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/internal/lttng/ui/model/trange/TimeRangeComposite.java240
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/internal/lttng/ui/model/trange/TimeRangeEvent.java159
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/internal/lttng/ui/model/trange/TimeRangeEventProcess.java324
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/internal/lttng/ui/model/trange/TimeRangeEventResource.java185
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/internal/lttng/ui/model/trange/TimeRangeResourceFactory.java255
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/internal/lttng/ui/model/trange/TimeRangeViewerProvider.java244
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/internal/lttng/ui/model/trange/messages.properties6
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/internal/lttng/ui/project/dialogs/Messages.java26
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/internal/lttng/ui/project/dialogs/NewLTTngProjectMainWizardPage.java32
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/internal/lttng/ui/project/dialogs/NewLTTngProjectWizard.java98
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/internal/lttng/ui/project/dialogs/TraceLibraryPathPropertyPage.java165
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/internal/lttng/ui/project/dialogs/TraceLibraryPathWizardPage.java140
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/internal/lttng/ui/project/dialogs/messages.properties19
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/internal/lttng/ui/tracecontrol/Messages.java194
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/internal/lttng/ui/tracecontrol/TraceControlConstants.java48
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/internal/lttng/ui/tracecontrol/actions/ConfigureMarkers.java215
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/internal/lttng/ui/tracecontrol/actions/ConfigureTrace.java471
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/internal/lttng/ui/tracecontrol/actions/CreateNewTrace.java327
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/internal/lttng/ui/tracecontrol/actions/DeleteTrace.java164
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/internal/lttng/ui/tracecontrol/actions/ImportToProject.java346
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/internal/lttng/ui/tracecontrol/actions/PauseTrace.java195
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/internal/lttng/ui/tracecontrol/actions/StartTrace.java367
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/internal/lttng/ui/tracecontrol/actions/StopTrace.java288
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/internal/lttng/ui/tracecontrol/connectorservice/TraceConnectorService.java384
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/internal/lttng/ui/tracecontrol/connectorservice/TraceConnectorServiceManager.java83
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/internal/lttng/ui/tracecontrol/dialogs/ConfigureMarkersDialog.java403
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/internal/lttng/ui/tracecontrol/dialogs/ImportTraceDialog.java199
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/internal/lttng/ui/tracecontrol/dialogs/NewTraceDialog.java631
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/internal/lttng/ui/tracecontrol/dialogs/SelectTracePathDialog.java237
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/internal/lttng/ui/tracecontrol/messages.properties165
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/internal/lttng/ui/tracecontrol/model/ProviderResourceAdapter.java274
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/internal/lttng/ui/tracecontrol/model/TargetResourceAdapter.java281
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/internal/lttng/ui/tracecontrol/model/TraceAdapterFactory.java78
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/internal/lttng/ui/tracecontrol/model/TraceResourceAdapter.java344
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/internal/lttng/ui/tracecontrol/model/config/TraceChannelCellModifier.java179
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/internal/lttng/ui/tracecontrol/model/config/TraceChannelTableContentProvider.java66
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/internal/lttng/ui/tracecontrol/model/config/TraceChannelTableLabelProvider.java146
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/internal/lttng/ui/tracecontrol/subsystems/ITCFSubSystem.java22
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/internal/lttng/ui/tracecontrol/subsystems/ITraceSubSystem.java21
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/internal/lttng/ui/tracecontrol/subsystems/TraceSubSystem.java818
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/internal/lttng/ui/tracecontrol/subsystems/TraceSubSystemConfiguration.java140
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/internal/lttng/ui/tracecontrol/utility/DownloadProxy.java121
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/internal/lttng/ui/tracecontrol/wizards/ConfigureTraceWizard.java182
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/internal/lttng/ui/tracecontrol/wizards/ITraceChannelConfigurationPage.java22
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/internal/lttng/ui/tracecontrol/wizards/KernelTraceChannelConfigurationPage.java590
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/internal/lttng/ui/tracecontrol/wizards/TraceConfigurationPage.java572
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/internal/lttng/ui/tracecontrol/wizards/UstTraceChannelConfigurationPage.java139
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/internal/lttng/ui/viewers/timeAnalysis/GridUtil.java45
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/internal/lttng/ui/viewers/timeAnalysis/ITimeAnalysisViewer.java195
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/internal/lttng/ui/viewers/timeAnalysis/ITmfTimeFilterSelectionListener.java19
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/internal/lttng/ui/viewers/timeAnalysis/ITmfTimeScaleSelectionListener.java24
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/internal/lttng/ui/viewers/timeAnalysis/ITmfTimeSelectionListener.java24
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/internal/lttng/ui/viewers/timeAnalysis/ITmfViewer.java23
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/internal/lttng/ui/viewers/timeAnalysis/Messages.java54
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/internal/lttng/ui/viewers/timeAnalysis/TmfTimeAnalysisProvider.java328
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/internal/lttng/ui/viewers/timeAnalysis/TmfTimeAnalysisViewer.java957
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/internal/lttng/ui/viewers/timeAnalysis/TmfTimeFilterSelectionEvent.java39
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/internal/lttng/ui/viewers/timeAnalysis/TmfTimeScaleSelectionEvent.java79
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/internal/lttng/ui/viewers/timeAnalysis/TmfTimeSelectionEvent.java49
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/internal/lttng/ui/viewers/timeAnalysis/TmfViewerFactory.java35
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/internal/lttng/ui/viewers/timeAnalysis/dialogs/TmfTimeFilterDialog.java222
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/internal/lttng/ui/viewers/timeAnalysis/dialogs/TmfTimeLegend.java279
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/internal/lttng/ui/viewers/timeAnalysis/messages.properties38
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/internal/lttng/ui/viewers/timeAnalysis/model/ITimeEvent.java32
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/internal/lttng/ui/viewers/timeAnalysis/model/ITmfTimeAnalysisEntry.java53
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/internal/lttng/ui/viewers/timeAnalysis/model/TimeEvent.java35
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/internal/lttng/ui/viewers/timeAnalysis/widgets/ITimeDataProvider.java68
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/internal/lttng/ui/viewers/timeAnalysis/widgets/PlainSelection.java71
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/internal/lttng/ui/viewers/timeAnalysis/widgets/TimeScaleCtrl.java777
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/internal/lttng/ui/viewers/timeAnalysis/widgets/TmfTimeStatesCtrl.java2173
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/internal/lttng/ui/viewers/timeAnalysis/widgets/TmfTimeTipHandler.java245
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/internal/lttng/ui/viewers/timeAnalysis/widgets/TraceColorScheme.java381
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/internal/lttng/ui/viewers/timeAnalysis/widgets/TraceCtrl.java68
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/internal/lttng/ui/viewers/timeAnalysis/widgets/Utils.java530
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/internal/lttng/ui/views/PerspectiveFactory.java113
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/internal/lttng/ui/views/common/AbsTRangeUpdate.java63
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/internal/lttng/ui/views/common/AbsTimeUpdateView.java831
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/internal/lttng/ui/views/common/ParamsUpdater.java292
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/internal/lttng/ui/views/controlflow/ControlFlowView.java997
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/internal/lttng/ui/views/controlflow/Messages.java33
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/internal/lttng/ui/views/controlflow/evProcessor/AbsFlowTRangeUpdate.java247
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/internal/lttng/ui/views/controlflow/evProcessor/FlowAfterUpdateHandlers.java387
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/internal/lttng/ui/views/controlflow/evProcessor/FlowBeforeUpdateHandlers.java396
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/internal/lttng/ui/views/controlflow/evProcessor/FlowEventToHandlerFactory.java178
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/internal/lttng/ui/views/controlflow/evProcessor/FlowFinishUpdateHandler.java118
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/internal/lttng/ui/views/controlflow/messages.properties35
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/internal/lttng/ui/views/controlflow/model/FlowModelFactory.java52
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/internal/lttng/ui/views/controlflow/model/FlowProcessContainer.java276
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/internal/lttng/ui/views/controlflow/model/FlowTimeRangeViewerProvider.java46
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/internal/lttng/ui/views/distribution/model/DistributionData.java180
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/internal/lttng/ui/views/distribution/model/HorDistributionData.java70
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/internal/lttng/ui/views/distribution/model/VerDistributionData.java69
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/internal/lttng/ui/views/events/EventsTable.java79
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/internal/lttng/ui/views/events/Messages.java18
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/internal/lttng/ui/views/events/messages.properties4
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/internal/lttng/ui/views/latency/AbstractViewer.java255
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/internal/lttng/ui/views/latency/GraphViewer.java158
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/internal/lttng/ui/views/latency/HistogramViewer.java157
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/internal/lttng/ui/views/latency/LatencyView.java486
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/internal/lttng/ui/views/latency/Messages.java81
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/internal/lttng/ui/views/latency/dialogs/AbstractDialog.java240
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/internal/lttng/ui/views/latency/dialogs/AddDialog.java488
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/internal/lttng/ui/views/latency/dialogs/DeleteDialog.java155
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/internal/lttng/ui/views/latency/dialogs/ListDialog.java252
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/internal/lttng/ui/views/latency/listeners/AbstractMouseListener.java80
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/internal/lttng/ui/views/latency/listeners/AbstractMouseTrackListener.java77
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/internal/lttng/ui/views/latency/listeners/AbstractPaintListener.java735
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/internal/lttng/ui/views/latency/listeners/GraphMouseListener.java70
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/internal/lttng/ui/views/latency/listeners/GraphPaintListener.java227
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/internal/lttng/ui/views/latency/listeners/HistogramPaintListener.java355
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/internal/lttng/ui/views/latency/listeners/TimePointerListener.java69
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/internal/lttng/ui/views/latency/listeners/TooltipListener.java100
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/internal/lttng/ui/views/latency/listeners/ZoomListener.java134
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/internal/lttng/ui/views/latency/messages.properties59
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/internal/lttng/ui/views/latency/model/Config.java76
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/internal/lttng/ui/views/latency/model/GraphScaledData.java246
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/internal/lttng/ui/views/latency/model/IGraphDataModel.java41
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/internal/lttng/ui/views/latency/model/IGraphModelListener.java31
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/internal/lttng/ui/views/latency/model/LatencyController.java188
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/internal/lttng/ui/views/latency/model/LatencyEventRequest.java92
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/internal/lttng/ui/views/latency/model/LatencyGraphModel.java380
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/internal/lttng/ui/views/resources/Messages.java33
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/internal/lttng/ui/views/resources/ResourcesView.java599
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/internal/lttng/ui/views/resources/evProcessor/AbsResourcesTRangeUpdate.java327
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/internal/lttng/ui/views/resources/evProcessor/ResourcesAfterUpdateHandlers.java70
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/internal/lttng/ui/views/resources/evProcessor/ResourcesBeforeUpdateHandlers.java380
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/internal/lttng/ui/views/resources/evProcessor/ResourcesEventToHandlerFactory.java166
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/internal/lttng/ui/views/resources/evProcessor/ResourcesFinishUpdateHandler.java71
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/internal/lttng/ui/views/resources/messages.properties26
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/internal/lttng/ui/views/resources/model/ResourceContainer.java243
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/internal/lttng/ui/views/resources/model/ResourceModelFactory.java53
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/internal/lttng/ui/views/resources/model/ResourcesTimeRangeViewerProvider.java55
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/internal/lttng/ui/views/statistics/Messages.java24
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/internal/lttng/ui/views/statistics/StatisticsView.java816
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/internal/lttng/ui/views/statistics/evProcessor/AbstractStatsEventHandler.java46
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/internal/lttng/ui/views/statistics/evProcessor/StatsModeChangeHandler.java36
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/internal/lttng/ui/views/statistics/evProcessor/StatsModeEndHandler.java36
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/internal/lttng/ui/views/statistics/evProcessor/StatsProcessExitHandler.java44
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/internal/lttng/ui/views/statistics/evProcessor/StatsTimeCountHandlerFactory.java143
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/internal/lttng/ui/views/statistics/evProcessor/StatsTimeCountHandlers.java195
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/internal/lttng/ui/views/statistics/evProcessor/StatsTracesetEndHandler.java41
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/internal/lttng/ui/views/statistics/messages.properties10
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/internal/lttng/ui/views/statistics/model/FixedArray.java208
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/internal/lttng/ui/views/statistics/model/KernelStatisticsData.java1126
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/internal/lttng/ui/views/statistics/model/Messages.java21
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/internal/lttng/ui/views/statistics/model/Statistics.java41
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/internal/lttng/ui/views/statistics/model/StatisticsData.java289
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/internal/lttng/ui/views/statistics/model/StatisticsTreeNode.java162
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/internal/lttng/ui/views/statistics/model/StatisticsTreeRootFactory.java73
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/internal/lttng/ui/views/statistics/model/messages.properties7
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/internal/lttng/ui/views/timeframe/Messages.java18
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/internal/lttng/ui/views/timeframe/SpinnerGroup.java322
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/internal/lttng/ui/views/timeframe/TimeFrameView.java395
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/internal/lttng/ui/views/timeframe/messages.properties4
-rw-r--r--lttng/org.eclipse.linuxtools.lttng/.gitignore5
-rw-r--r--lttng/org.eclipse.linuxtools.lttng/.project17
-rw-r--r--lttng/org.eclipse.linuxtools.lttng/build.properties5
-rw-r--r--lttng/org.eclipse.linuxtools.lttng/epl-v10.html256
-rw-r--r--lttng/org.eclipse.linuxtools.lttng/feature.properties145
-rw-r--r--lttng/org.eclipse.linuxtools.lttng/feature.xml85
-rw-r--r--lttng/org.eclipse.linuxtools.lttng/license.html164
-rw-r--r--lttng/org.eclipse.linuxtools.lttng/p2.inf3
-rw-r--r--lttng/org.eclipse.linuxtools.lttng/pom.xml64
-rw-r--r--lttng/org.eclipse.linuxtools.lttng/sourceTemplateFeature/feature.properties1
-rw-r--r--lttng/pom.xml7
426 files changed, 0 insertions, 99277 deletions
diff --git a/lttng/org.eclipse.linuxtools.lttng.core.tests/.classpath b/lttng/org.eclipse.linuxtools.lttng.core.tests/.classpath
deleted file mode 100644
index 1fa3e6803d..0000000000
--- a/lttng/org.eclipse.linuxtools.lttng.core.tests/.classpath
+++ /dev/null
@@ -1,7 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<classpath>
- <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
- <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
- <classpathentry kind="src" path="src"/>
- <classpathentry kind="output" path="bin"/>
-</classpath>
diff --git a/lttng/org.eclipse.linuxtools.lttng.core.tests/.gitignore b/lttng/org.eclipse.linuxtools.lttng.core.tests/.gitignore
deleted file mode 100644
index 8d94ef8deb..0000000000
--- a/lttng/org.eclipse.linuxtools.lttng.core.tests/.gitignore
+++ /dev/null
@@ -1,5 +0,0 @@
-bin
-@dot
-javaCompiler...args
-build.xml
-target
diff --git a/lttng/org.eclipse.linuxtools.lttng.core.tests/.project b/lttng/org.eclipse.linuxtools.lttng.core.tests/.project
deleted file mode 100644
index 44d5599730..0000000000
--- a/lttng/org.eclipse.linuxtools.lttng.core.tests/.project
+++ /dev/null
@@ -1,34 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<projectDescription>
- <name>org.eclipse.linuxtools.lttng.core.tests</name>
- <comment></comment>
- <projects>
- </projects>
- <buildSpec>
- <buildCommand>
- <name>org.eclipse.jdt.core.javabuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- <buildCommand>
- <name>org.eclipse.pde.ManifestBuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- <buildCommand>
- <name>org.eclipse.pde.SchemaBuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- <buildCommand>
- <name>org.eclipse.pde.api.tools.apiAnalysisBuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- </buildSpec>
- <natures>
- <nature>org.eclipse.pde.PluginNature</nature>
- <nature>org.eclipse.jdt.core.javanature</nature>
- <nature>org.eclipse.pde.api.tools.apiAnalysisNature</nature>
- </natures>
-</projectDescription>
diff --git a/lttng/org.eclipse.linuxtools.lttng.core.tests/.settings/org.eclipse.jdt.core.prefs b/lttng/org.eclipse.linuxtools.lttng.core.tests/.settings/org.eclipse.jdt.core.prefs
deleted file mode 100644
index 1d817b7047..0000000000
--- a/lttng/org.eclipse.linuxtools.lttng.core.tests/.settings/org.eclipse.jdt.core.prefs
+++ /dev/null
@@ -1,12 +0,0 @@
-#Thu Nov 18 17:14:29 EST 2010
-eclipse.preferences.version=1
-org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
-org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
-org.eclipse.jdt.core.compiler.compliance=1.6
-org.eclipse.jdt.core.compiler.debug.lineNumber=generate
-org.eclipse.jdt.core.compiler.debug.localVariable=generate
-org.eclipse.jdt.core.compiler.debug.sourceFile=generate
-org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
-org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
-org.eclipse.jdt.core.compiler.source=1.6
diff --git a/lttng/org.eclipse.linuxtools.lttng.core.tests/ChangeLog b/lttng/org.eclipse.linuxtools.lttng.core.tests/ChangeLog
deleted file mode 100644
index 4202a323aa..0000000000
--- a/lttng/org.eclipse.linuxtools.lttng.core.tests/ChangeLog
+++ /dev/null
@@ -1,72 +0,0 @@
-2010-12-15 Francois Chouinard <fchouinard@gmail.com>
-
- * src/org/eclipse/linuxtools/lttng/tests/event/LttngTimestampTest.java: Added a proper test for toString()
-
-2010-11-23 Francois Chouinard <fchouinard@gmail.com> Adjusted tests to new API
-
- * src/org/eclipse/linuxtools/lttng/state/experiment/StateExperimentManagerTextTest.java:
- * src/org/eclipse/linuxtools/lttng/state/resource/LTTngStateResourceTest.java:
- * src/org/eclipse/linuxtools/lttng/tests/event/LttngEventTest.java:
- * src/org/eclipse/linuxtools/lttng/tests/event/LttngEventTypeTest.java:
- * src/org/eclipse/linuxtools/lttng/tests/state/handlers/after/StateAfterUpdateHandlers.java:
- * src/org/eclipse/linuxtools/lttng/tests/state/handlers/before/StateBeforeUpdateHandlers.java:
-
-2010-11-10 Francois Chouinard <fchouinard@gmail.com>
-
- * src/org/eclipse/linuxxtools/lttng/tests/headless/JniTraceTest.java: New file.
- * src/org/eclipse/linuxxtools/lttng/tests/headless/LttngTraceTest.java: New file.
- * src/org/eclipse/linuxxtools/lttng/tests/headless/TmfTraceTest.java: New file.
-
-2010-11-09 Francois Chouinard <fchouinard@gmail.com>
-
- Suppress warning for non-externalized strings
- * src/org/eclipse/linuxtools/lttng/control/LTTngSyntheticEventProviderTest.java:
- * src/org/eclipse/linuxtools/lttng/LttngTestPreparation.java:
- * src/org/eclipse/linuxtools/lttng/model/LTTngTreeNodeTest.java:
- * src/org/eclipse/linuxtools/lttng/state/experiment/StateExperimentManagerTextTest.java:
- * src/org/eclipse/linuxtools/lttng/state/resource/LTTngStateResourceTest.java:
- * src/org/eclipse/linuxtools/lttng/tests/event/AllLttngTests.java:
- * src/org/eclipse/linuxtools/lttng/tests/event/LttngEventContentTest.java:
- * src/org/eclipse/linuxtools/lttng/tests/event/LttngEventFieldTest.java:
- * src/org/eclipse/linuxtools/lttng/tests/event/LttngEventReferenceTest.java:
- * src/org/eclipse/linuxtools/lttng/tests/event/LttngEventTest.java:
- * src/org/eclipse/linuxtools/lttng/tests/event/LttngEventTypeTest.java:
- * src/org/eclipse/linuxtools/lttng/tests/event/LttngTimestampTest.java:
- * src/org/eclipse/linuxtools/lttng/tests/jni/AllJniTests.java:
- * src/org/eclipse/linuxtools/lttng/tests/jni/Combinations.java:
- * src/org/eclipse/linuxtools/lttng/tests/jni/JniEventTest.java:
- * src/org/eclipse/linuxtools/lttng/tests/jni/JniMarkerFieldTest.java:
- * src/org/eclipse/linuxtools/lttng/tests/jni/JniMarkerTest.java:
- * src/org/eclipse/linuxtools/lttng/tests/jni/JniTracefileTest.java:
- * src/org/eclipse/linuxtools/lttng/tests/jni/JniTraceTest.java:
- * src/org/eclipse/linuxtools/lttng/tests/LTTngCoreTestPlugin.java:
- * src/org/eclipse/linuxtools/lttng/tests/state/handlers/AbsStateUpdate.java:
- * src/org/eclipse/linuxtools/lttng/tests/state/handlers/after/StateAfterUpdateHandlers.java:
- * src/org/eclipse/linuxtools/lttng/tests/state/handlers/before/StateBeforeUpdateHandlers.java:
- * src/org/eclipse/linuxtools/lttng/tests/state/tests/handlers/AbsStateUpdate.java:
- * src/org/eclipse/linuxtools/lttng/tests/state/TestStateManager.java:
- * src/org/eclipse/linuxtools/lttng/tests/trace/LTTngExperimentTest.java:
- * src/org/eclipse/linuxtools/lttng/tests/trace/LTTngTextTraceTest.java:
- * src/org/eclipse/linuxtools/lttng/tests/trace/LTTngTraceTest.java:
-
-2010-10-27 Francois Chouinard <fchouinard@gmail.com>
-
- * src/org/eclipse/linuxtools/lttng/LttngTestPreparation.java (prepareExperimentContext): Event provider adjustment
-
-2010-10-15 Francois Chouinard <fchouinard@gmail.com>
-
- * src/org/eclipse/linuxtools/lttng/tests/trace/LTTngExperimentTest.java (fStartTime): Fixed unit test for updated start time
-2010-09-17 Francois Chouinard <fchouinard@gmail.com>
-
- * src/org/eclipse/linuxtools/lttng/control/LTTngSyntheticEventProviderTest.java: Adjusted unit test
- * src/org/eclipse/linuxtools/lttng/LttngTestPreparation.java: Adjusted unit test
-
-2010-09-15 Francois Chouinard <fchouinard@gmail.com>
-
- * src/org/eclipse/linuxtools/lttng/control/LTTngSyntheticEventProviderTest.java: Problematic test
- * src/org/eclipse/linuxtools/lttng/LttngTestPreparation.java: Problematic test
-
-2010-09-09 Francois Chouinard <fchouinard@gmail.com>
-
- * src/org/eclipse/linuxtools/lttng/tests/AllLTTngCoreTests.java: Invoke new test
- * src/org/eclipse/linuxtools/lttng/tests/trace/LTTngExperimentTest.java: New test \ No newline at end of file
diff --git a/lttng/org.eclipse.linuxtools.lttng.core.tests/META-INF/MANIFEST.MF b/lttng/org.eclipse.linuxtools.lttng.core.tests/META-INF/MANIFEST.MF
deleted file mode 100644
index 4589f91fce..0000000000
--- a/lttng/org.eclipse.linuxtools.lttng.core.tests/META-INF/MANIFEST.MF
+++ /dev/null
@@ -1,15 +0,0 @@
-Manifest-Version: 1.0
-Bundle-ManifestVersion: 2
-Bundle-Name: %Bundle-Name
-Bundle-Vendor: %Bundle-Vendor
-Bundle-Version: 1.0.0.qualifier
-Bundle-Localization: plugin
-Bundle-SymbolicName: org.eclipse.linuxtools.lttng.core.tests
-Bundle-ActivationPolicy: lazy
-Bundle-RequiredExecutionEnvironment: JavaSE-1.6
-Fragment-Host: org.eclipse.linuxtools.lttng.core
-Require-Bundle: org.junit;bundle-version="3.8.2",
- org.eclipse.core.runtime;bundle-version="3.7.0",
- org.eclipse.core.resources;bundle-version="3.7.100",
- org.eclipse.linuxtools.tmf.core;bundle-version="1.0.0",
- org.eclipse.linuxtools.lttng.jni;bundle-version="1.0.0"
diff --git a/lttng/org.eclipse.linuxtools.lttng.core.tests/build.properties b/lttng/org.eclipse.linuxtools.lttng.core.tests/build.properties
deleted file mode 100644
index 768e481232..0000000000
--- a/lttng/org.eclipse.linuxtools.lttng.core.tests/build.properties
+++ /dev/null
@@ -1,6 +0,0 @@
-source.. = src/
-output.. = bin/
-bin.includes = META-INF/,\
- .,\
- plugin.properties,\
- traceset/
diff --git a/lttng/org.eclipse.linuxtools.lttng.core.tests/plugin.properties b/lttng/org.eclipse.linuxtools.lttng.core.tests/plugin.properties
deleted file mode 100644
index 3b08473d6a..0000000000
--- a/lttng/org.eclipse.linuxtools.lttng.core.tests/plugin.properties
+++ /dev/null
@@ -1,3 +0,0 @@
-#Properties file for org.eclipse.linuxtools.lttng.tests
-Bundle-Vendor = Eclipse Linux Tools
-Bundle-Name = LTTng Core Unit Test Suite (legacy) \ No newline at end of file
diff --git a/lttng/org.eclipse.linuxtools.lttng.core.tests/pom.xml b/lttng/org.eclipse.linuxtools.lttng.core.tests/pom.xml
deleted file mode 100644
index 9f9e43418a..0000000000
--- a/lttng/org.eclipse.linuxtools.lttng.core.tests/pom.xml
+++ /dev/null
@@ -1,76 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright (C) 2011, Red Hat, Inc.
-
- All rights reserved. This program and the accompanying materials
- are made available under the terms of the Eclipse Public License v1.0
- which accompanies this distribution, and is available at
- http://www.eclipse.org/legal/epl-v10.html
--->
-<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
- <modelVersion>4.0.0</modelVersion>
-
- <parent>
- <artifactId>linuxtools-lttng-parent</artifactId>
- <groupId>org.eclipse.linuxtools.lttng</groupId>
- <version>1.2.0-SNAPSHOT</version>
- </parent>
-
- <artifactId>org.eclipse.linuxtools.lttng.core.tests</artifactId>
- <version>1.0.0-SNAPSHOT</version>
- <packaging>eclipse-test-plugin</packaging>
-
- <name>Linux Tools LTTng Core Unit Test Suite (legacy)</name>
-
- <build>
- <!-- workaround for https://issues.sonatype.org/browse/TYCHO-168 -->
- <resources>
- <resource>
- <directory>src</directory>
- <excludes>
- <exclude>**/*.java</exclude>
- </excludes>
- </resource>
- </resources>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-antrun-plugin</artifactId>
- <version>1.2</version>
- <executions>
- <execution>
- <id>prepare</id>
- <phase>validate</phase>
- <configuration>
- <tasks>
- <echo message="prepare phase" />
- <gunzip src="traceset/trace-15471events_nolost_newformat.tar.gz" dest="traceset/" />
- <untar src="traceset/trace-15471events_nolost_newformat.tar" dest="traceset/" />
- <gunzip src="traceset/trace-15316events_nolost_newformat.tar.gz" dest="traceset/" />
- <untar src="traceset/trace-15316events_nolost_newformat.tar" dest="traceset/" />
- </tasks>
- </configuration>
- <goals>
- <goal>run</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>org.eclipse.tycho</groupId>
- <artifactId>tycho-surefire-plugin</artifactId>
- <version>${tycho-version}</version>
- <configuration>
- <testSuite>org.eclipse.linuxtools.lttng.core.tests</testSuite>
- <testClass>org.eclipse.linuxtools.lttng.core.tests.AllLTTngCoreTests</testClass>
- <useUIHarness>false</useUIHarness>
- <useUIThread>false</useUIThread>
- <product>org.eclipse.sdk.ide</product>
- </configuration>
- </plugin>
- </plugins>
- </build>
-
- <groupId>org.eclipse.linuxtools.lttng</groupId>
-</project>
diff --git a/lttng/org.eclipse.linuxtools.lttng.core.tests/src/org/eclipse/linuxtools/lttng/core/tests/ActivateDebugging.java b/lttng/org.eclipse.linuxtools.lttng.core.tests/src/org/eclipse/linuxtools/lttng/core/tests/ActivateDebugging.java
deleted file mode 100644
index d5cf119860..0000000000
--- a/lttng/org.eclipse.linuxtools.lttng.core.tests/src/org/eclipse/linuxtools/lttng/core/tests/ActivateDebugging.java
+++ /dev/null
@@ -1,15 +0,0 @@
-package org.eclipse.linuxtools.lttng.core.tests;
-
-import org.eclipse.linuxtools.internal.lttng.core.TraceDebug;
-
-public class ActivateDebugging {
-
- public static void activate() {
- TraceDebug.setDEBUG(true);
- }
-
- public static void deactivate() {
- TraceDebug.setDEBUG(false);
- }
-}
-
diff --git a/lttng/org.eclipse.linuxtools.lttng.core.tests/src/org/eclipse/linuxtools/lttng/core/tests/AllLTTngCoreTests.java b/lttng/org.eclipse.linuxtools.lttng.core.tests/src/org/eclipse/linuxtools/lttng/core/tests/AllLTTngCoreTests.java
deleted file mode 100644
index c2283c7513..0000000000
--- a/lttng/org.eclipse.linuxtools.lttng.core.tests/src/org/eclipse/linuxtools/lttng/core/tests/AllLTTngCoreTests.java
+++ /dev/null
@@ -1,72 +0,0 @@
-package org.eclipse.linuxtools.lttng.core.tests;
-
-import junit.framework.Test;
-import junit.framework.TestSuite;
-
-import org.eclipse.linuxtools.lttng.core.tests.control.LTTngSyntheticEventProviderTest;
-import org.eclipse.linuxtools.lttng.core.tests.control.LTTngSyntheticEventProviderTextTest;
-import org.eclipse.linuxtools.lttng.core.tests.event.LttngEventContentTest;
-import org.eclipse.linuxtools.lttng.core.tests.event.LttngEventFieldTest;
-import org.eclipse.linuxtools.lttng.core.tests.event.LttngEventTest;
-import org.eclipse.linuxtools.lttng.core.tests.event.LttngEventTypeTest;
-import org.eclipse.linuxtools.lttng.core.tests.event.LttngTimestampTest;
-import org.eclipse.linuxtools.lttng.core.tests.jni.JniEventTest;
-import org.eclipse.linuxtools.lttng.core.tests.jni.JniMarkerFieldTest;
-import org.eclipse.linuxtools.lttng.core.tests.jni.JniMarkerTest;
-import org.eclipse.linuxtools.lttng.core.tests.jni.JniTraceTest;
-import org.eclipse.linuxtools.lttng.core.tests.jni.JniTracefileTest;
-import org.eclipse.linuxtools.lttng.core.tests.model.LTTngTreeNodeTest;
-import org.eclipse.linuxtools.lttng.core.tests.state.TestStateManager;
-import org.eclipse.linuxtools.lttng.core.tests.state.experiment.StateExperimentManagerTextTest;
-import org.eclipse.linuxtools.lttng.core.tests.state.resource.LTTngStateResourceTest;
-import org.eclipse.linuxtools.lttng.core.tests.trace.LTTngExperimentTest;
-import org.eclipse.linuxtools.lttng.core.tests.trace.LTTngTextTraceTest;
-import org.eclipse.linuxtools.lttng.core.tests.trace.LTTngTraceTest;
-
-public class AllLTTngCoreTests {
-
- public static Test suite() {
- TestSuite suite = new TestSuite(AllLTTngCoreTests.class.getName());
- // $JUnit-BEGIN$
-
- // Event
- suite.addTestSuite(LttngTimestampTest.class);
- suite.addTestSuite(LttngEventFieldTest.class);
- suite.addTestSuite(LttngEventContentTest.class);
- suite.addTestSuite(LttngEventTypeTest.class);
- suite.addTestSuite(LttngEventTest.class);
-
- // JNI
- suite.addTestSuite(JniTraceTest.class);
- suite.addTestSuite(JniTracefileTest.class);
- suite.addTestSuite(JniEventTest.class);
- suite.addTestSuite(JniMarkerTest.class);
- suite.addTestSuite(JniMarkerFieldTest.class);
-
- // Trace
- suite.addTestSuite(LTTngTextTraceTest.class);
- suite.addTestSuite(LTTngTraceTest.class);
- suite.addTestSuite(LTTngExperimentTest.class);
-
- // Control
- suite.addTestSuite(LTTngSyntheticEventProviderTest.class);
- suite.addTestSuite(LTTngSyntheticEventProviderTextTest.class);
-
- // Model
- suite.addTestSuite(LTTngTreeNodeTest.class);
-
- // State
- suite.addTestSuite(TestStateManager.class);
- suite.addTestSuite(StateExperimentManagerTextTest.class);
- // suite.addTestSuite(AbsStateUpdate.class);
- // suite.addTestSuite(StateAfterUpdateFactory.class);
- // suite.addTestSuite(StateAfterUpdateHandlers.class);
- // suite.addTestSuite(StateBeforeUpdateFactory.class);
- // suite.addTestSuite(StateBeforeUpdateHandlers.class);
- suite.addTestSuite(LTTngStateResourceTest.class);
-
- // $JUnit-END$
- return suite;
- }
-
-}
diff --git a/lttng/org.eclipse.linuxtools.lttng.core.tests/src/org/eclipse/linuxtools/lttng/core/tests/LttngTestPreparation.java b/lttng/org.eclipse.linuxtools.lttng.core.tests/src/org/eclipse/linuxtools/lttng/core/tests/LttngTestPreparation.java
deleted file mode 100644
index 4a5bd2b18a..0000000000
--- a/lttng/org.eclipse.linuxtools.lttng.core.tests/src/org/eclipse/linuxtools/lttng/core/tests/LttngTestPreparation.java
+++ /dev/null
@@ -1,419 +0,0 @@
-package org.eclipse.linuxtools.lttng.core.tests;
-
-import java.io.File;
-import java.net.URL;
-
-import junit.framework.TestCase;
-
-import org.eclipse.core.runtime.FileLocator;
-import org.eclipse.core.runtime.Path;
-import org.eclipse.linuxtools.internal.lttng.core.TraceDebug;
-import org.eclipse.linuxtools.internal.lttng.core.control.LttngCoreProviderFactory;
-import org.eclipse.linuxtools.internal.lttng.core.event.LttngEvent;
-import org.eclipse.linuxtools.internal.lttng.core.event.LttngSyntheticEvent;
-import org.eclipse.linuxtools.internal.lttng.core.event.LttngSyntheticEvent.SequenceInd;
-import org.eclipse.linuxtools.internal.lttng.core.event.LttngTimestamp;
-import org.eclipse.linuxtools.internal.lttng.core.state.experiment.IStateExperimentManager;
-import org.eclipse.linuxtools.internal.lttng.core.state.experiment.StateManagerFactory;
-import org.eclipse.linuxtools.internal.lttng.core.trace.LTTngTextTrace;
-import org.eclipse.linuxtools.internal.lttng.core.trace.LTTngTrace;
-import org.eclipse.linuxtools.tmf.core.event.ITmfEvent;
-import org.eclipse.linuxtools.tmf.core.event.TmfTimeRange;
-import org.eclipse.linuxtools.tmf.core.request.TmfDataRequest;
-import org.eclipse.linuxtools.tmf.core.request.TmfEventRequest;
-import org.eclipse.linuxtools.tmf.core.signal.TmfExperimentSelectedSignal;
-import org.eclipse.linuxtools.tmf.core.trace.ITmfTrace;
-import org.eclipse.linuxtools.tmf.core.trace.TmfExperiment;
-import org.osgi.framework.FrameworkUtil;
-
-@SuppressWarnings("nls")
-public abstract class LttngTestPreparation extends TestCase {
- // ========================================================================
- // Data
- // ========================================================================
- private final static String ftracepath_T1 = "traceset/trace-15316events_nolost_newformat";
- final static String fTextTracepath_T1 = "traceset/trace-15316events_nolost_newformat.txt";
-
- private static final Long CHECK_POINT_INTERVAL = 1000L;
-
- final Long[] expectedEvents_T1 = new Long[20];
- final Long[] requestIntervals_T1 = new Long[32];
-
- static LTTngTextTrace ftextStream_T1 = null;
- private static LTTngTrace frealStream = null;
-
- private TmfExperiment fTestExperiment = null;
- protected volatile int feventCount = 0;
- protected boolean validSequence = true;
-
- public LttngTestPreparation() {
- super();
- init();
- }
-
- public LttngTestPreparation(final String name) {
- super(name);
- init();
- }
-
- protected void init() {
- fillInRequestIntervals();
- fillInExpectedEvents();
- feventCount = 0;
- }
-
- /**
- * @return
- */
- protected TmfExperiment prepareExperimentToTest() {
- if (fTestExperiment == null) {
- final String expId = "testExperiment";
- final int nbTraces = 1;
-
- // Define traces in experiment
- final ITmfTrace[] traces = new ITmfTrace[nbTraces];
- final ITmfTrace trace = prepareStreamToTest();
- traces[0] = trace;
-
- fTestExperiment = new TmfExperiment(LttngEvent.class, expId, traces, TmfExperiment.DEFAULT_BLOCK_SIZE);
-
- // Set the current selected experiment as the test experiment
- final TmfExperimentSelectedSignal signal = new TmfExperimentSelectedSignal(
- this, fTestExperiment);
- fTestExperiment.experimentSelected(signal);
- }
-
- return fTestExperiment;
- }
-
- /**
- * @return
- */
- protected TmfExperiment prepareTextExperimentToTest() {
- if (fTestExperiment == null) {
- final String expId = "testExperiment";
- final int nbTraces = 1;
-
- // Define traces in experiment
- final ITmfTrace[] traces = new ITmfTrace[nbTraces];
- final ITmfTrace trace = prepareTextStreamToTest();
- traces[0] = trace;
-
- // create experiment and associate traces
- fTestExperiment = new TmfExperiment(LttngEvent.class, expId, traces);
-
- // Set the current selected experiment as the test experiment
- final TmfExperimentSelectedSignal signal = new TmfExperimentSelectedSignal(
- this, fTestExperiment);
- fTestExperiment.experimentSelected(signal);
-
- }
-
- return fTestExperiment;
- }
-
- protected LTTngTrace prepareStreamToTest() {
- if (frealStream == null) {
- try {
- final URL location = FileLocator.find(FrameworkUtil.getBundle(this.getClass()), new Path(ftracepath_T1),
- null);
- final File testfile = new File(FileLocator.toFileURL(location).toURI());
- final LTTngTrace tmpStream = new LTTngTrace(null, testfile.getPath(), false);
- frealStream = tmpStream;
- } catch (final Exception e) {
- System.out.println("ERROR : Could not open " + ftracepath_T1);
- frealStream = null;
- }
- } else {
- frealStream.seekEvent(0L);
- }
-
- return frealStream;
- }
-
- protected LTTngTextTrace prepareTextStreamToTest() {
- if (ftextStream_T1 == null) {
- try {
- final URL location = FileLocator.find(FrameworkUtil.getBundle(this.getClass()),
- new Path(fTextTracepath_T1), null);
- final File testfile = new File(FileLocator.toFileURL(location).toURI());
- final LTTngTextTrace tmpStream = new LTTngTextTrace(null, testfile.getPath());
- ftextStream_T1 = tmpStream;
-
- } catch (final Exception e) {
- System.out.println("ERROR : Could not open " + fTextTracepath_T1);
- ftextStream_T1 = null;
- }
- } else {
- ftextStream_T1.seekEvent(0);
- }
-
- return ftextStream_T1;
- }
-
- protected IStateExperimentManager prepareExperimentContext(
- final boolean waitForRequest) {
- // Create a new Experiment manager
- final IStateExperimentManager expManager = StateManagerFactory
- .getExperimentManager();
- // Configure the interval to create check points so this can be tested
- // with medium size files i.e. default is 50000 events
- StateManagerFactory.setTraceCheckPointInterval(CHECK_POINT_INTERVAL);
-
- // Lets wait for the request completion to analyse the results
- LttngCoreProviderFactory.getEventProvider(0)
- .setWaitForRequest(waitForRequest);
- return expManager;
- }
-
- /**
- * @param <T>
- * @param k
- * @param startIdx
- * , > 0 and between 0 - 31
- * @param endIdx
- * , > startIdx and between 0 - 31
- * @return
- */
- protected <T extends LttngEvent> TmfEventRequest prepareEventRequest(final Class<T> k, final int startIdx, final int endIdx) {
- return prepareEventRequest(k, startIdx, endIdx, true);
- }
-
- /**
- * @param <T>
- * @param k
- * @param startIdx
- * , > 0 and between 0 - 31
- * @param endIdx
- * , > startIdx and between 0 - 31
- * @param printFirst20
- * , print the first expected events vs actual events
- * @return
- */
- protected <T extends LttngEvent> TmfEventRequest prepareEventRequest(
- final Class<T> k, final int startIdx, final int endIdx, final boolean printFirst20) {
- // verify bounds
- if (!(endIdx > startIdx && startIdx >= 0 && endIdx <= 31)) {
- TraceDebug.debug("Event request indexes out of bounds");
- return null;
- }
-
- final int DEFAULT_CHUNK = 1;
-
- // time range
- final TmfTimeRange trange = new TmfTimeRange(new LttngTimestamp(
- requestIntervals_T1[startIdx]), new LttngTimestamp(
- requestIntervals_T1[endIdx]));
-
- // request
- validSequence = true;
- final TmfEventRequest request = new TmfEventRequest(k, trange, TmfDataRequest.ALL_DATA, DEFAULT_CHUNK) {
-
- @Override
- public void handleData(final ITmfEvent event) {
- if (event == null) {
- System.out
- .println("Syntheric Event Received is null, after event: "
- + feventCount);
- return;
- }
-
- // Listen to only one variant of synthetic event to keep
- // track of
- if (event instanceof LttngSyntheticEvent) {
- if (((LttngSyntheticEvent) event).getSynType() != SequenceInd.BEFORE) {
- return;
- }
- }
-
- // Validating the orders of the first 20 events
- if (printFirst20 && feventCount < 20) {
- final long timevalue = event.getTimestamp().getValue();
- if (timevalue != expectedEvents_T1[feventCount]) {
- validSequence = false;
- System.out.println("Expected Event: "
- + expectedEvents_T1[feventCount] + " actual: "
- + event.getTimestamp().getValue());
- }
- }
-
- // increment count
- incrementCount();
- }
-
- /**
- * possibly increased by multiple request threads
- */
- private synchronized void incrementCount() {
- feventCount++;
- }
-
- @Override
- public void handleCompleted() {
- // if (isCancelled() || isFailed()) {
- // // No notification to end request handlers
- // } else {
- // // notify the associated end request handlers
- // requestCompleted();
- // }
-
- // System.out.println("handleCompleted(request:" + startIdx + ") Number of events processed: " + feventCount);
- }
-
- };
- return request;
- }
-
- /**
- * @param <T>
- * @param k
- * @param startIdx
- * , > 0 and between 0 - 31
- * @param endIdx
- * , > startIdx and between 0 - 31
- * @param printFirst20
- * , print the first expected events vs actual events
- * @return
- */
- protected <T extends LttngEvent> TmfEventRequest prepareEventRequest2(
- final Class<T> k, final int startIdx, final int endIdx, final boolean printFirst20) {
- // verify bounds
- if (!(endIdx > startIdx && startIdx >= 0 && endIdx <= 31)) {
- TraceDebug.debug("Event request indexes out of bounds");
- return null;
- }
-
- final int DEFAULT_CHUNK = 1;
-
- // time range
- final TmfTimeRange trange = new TmfTimeRange(new LttngTimestamp(
- requestIntervals_T1[startIdx]), new LttngTimestamp(
- requestIntervals_T1[endIdx]));
-
- // request
- validSequence = true;
- final TmfEventRequest request = new TmfEventRequest(k, trange, TmfDataRequest.ALL_DATA, DEFAULT_CHUNK) {
-
- @Override
- public void handleData(final ITmfEvent event) {
- if (event == null) {
- System.out
- .println("Syntheric Event Received is null, after event: "
- + feventCount);
- return;
- }
-
- // Listen to only one variant of synthetic event to keep
- // track of
- if (event instanceof LttngSyntheticEvent) {
- if (((LttngSyntheticEvent) event).getSynType() != SequenceInd.BEFORE) {
- return;
- }
- }
-
- // Validating the orders of the first 20 events
- if (printFirst20 && feventCount < 20) {
- final long timevalue = event.getTimestamp().getValue();
- if (timevalue != expectedEvents_T1[feventCount]) {
- validSequence = false;
- System.out.println("Expected Event: "
- + expectedEvents_T1[feventCount] + " actual: "
- + event.getTimestamp().getValue());
- } else {
- System.out.println("Synthetic Event: " + feventCount
- + " matched expected time");
- }
- }
-
- // increment count
- incrementCount();
- }
-
- /**
- * possibly increased by multiple request threads
- */
- private synchronized void incrementCount() {
- feventCount++;
- }
-
- @Override
- public void handleCompleted() {
- // if (isCancelled() || isFailed()) {
- // // No notification to end request handlers
- // } else {
- // // notify the associated end request handlers
- // requestCompleted();
- // }
-
- // System.out.println("handleCompleted(request:" + startIdx + ") Number of events processed: " + feventCount);
- }
-
- };
- return request;
- }
-
- /**
- * Validation points
- */
- private void fillInExpectedEvents() {
- expectedEvents_T1[0] = 13589759412128L;
- expectedEvents_T1[1] = 13589759419903L;
- expectedEvents_T1[2] = 13589759422785L;
- expectedEvents_T1[3] = 13589759425598L;
- expectedEvents_T1[4] = 13589759430979L;
- expectedEvents_T1[5] = 13589759433694L;
- expectedEvents_T1[6] = 13589759436212L;
- expectedEvents_T1[7] = 13589759438797L;
- expectedEvents_T1[8] = 13589759441253L;
- expectedEvents_T1[9] = 13589759444795L;
- expectedEvents_T1[10] = 13589759447800L;
- expectedEvents_T1[11] = 13589759450836L;
- expectedEvents_T1[12] = 13589759453835L;
- expectedEvents_T1[13] = 13589759459351L;
- expectedEvents_T1[14] = 13589759464411L;
- expectedEvents_T1[15] = 13589759467021L;
- expectedEvents_T1[16] = 13589759469668L;
- expectedEvents_T1[17] = 13589759474938L;
- expectedEvents_T1[18] = 13589759477536L;
- expectedEvents_T1[19] = 13589759480485L;
- }
-
- /**
- * Intervals for trace 1, separated %500 + last event
- */
- private void fillInRequestIntervals() {
- requestIntervals_T1[0] = 13589759412128L; /* check point expected */
- requestIntervals_T1[1] = 13589763490945L; /* between check points */
- requestIntervals_T1[2] = 13589778265041L; /* check point expected */
- requestIntervals_T1[3] = 13589783143445L; /* between check points */
- requestIntervals_T1[4] = 13589786300104L; /* check point expected */
- requestIntervals_T1[5] = 13589790722564L; /* between check points */
- requestIntervals_T1[6] = 13589796139823L; /* check point expected */
- requestIntervals_T1[7] = 13589800400562L; /* between check points */
- requestIntervals_T1[8] = 13589801594374L; /* check point expected */
- requestIntervals_T1[9] = 13589802750295L; /* between check points */
- requestIntervals_T1[10] = 13589804071157L; /* check point expected */
- requestIntervals_T1[11] = 13589810124488L; /* between check points */
- requestIntervals_T1[12] = 13589822493183L; /* check point expected */
- requestIntervals_T1[13] = 13589824131273L; /* between check points */
- requestIntervals_T1[14] = 13589825398284L; /* check point expected */
- requestIntervals_T1[15] = 13589826664185L; /* between check points */
- requestIntervals_T1[16] = 13589827811998L; /* check point expected */
- requestIntervals_T1[17] = 13589828915763L; /* between check points */
- requestIntervals_T1[18] = 13589830074220L; /* check point expected */
- requestIntervals_T1[19] = 13589831232050L; /* between check points */
- requestIntervals_T1[20] = 13589832394049L; /* check point expected */
- requestIntervals_T1[21] = 13589833852883L; /* between check points */
- requestIntervals_T1[22] = 13589839626892L; /* check point expected */
- requestIntervals_T1[23] = 13589849509798L; /* between check points */
- requestIntervals_T1[24] = 13589850728538L; /* check point expected */
- requestIntervals_T1[25] = 13589851889230L; /* between check points */
- requestIntervals_T1[26] = 13589853294800L; /* check point expected */
- requestIntervals_T1[27] = 13589859414998L; /* between check points */
- requestIntervals_T1[28] = 13589878046089L; /* check point expected */
- requestIntervals_T1[29] = 13589886468603L; /* between check points */
- requestIntervals_T1[30] = 13589902256918L; /* check point expected */
- requestIntervals_T1[31] = 13589906758692L; /* last event in T1 */
- }
-
-} \ No newline at end of file
diff --git a/lttng/org.eclipse.linuxtools.lttng.core.tests/src/org/eclipse/linuxtools/lttng/core/tests/control/LTTngSyntheticEventProviderTest.java b/lttng/org.eclipse.linuxtools.lttng.core.tests/src/org/eclipse/linuxtools/lttng/core/tests/control/LTTngSyntheticEventProviderTest.java
deleted file mode 100644
index aa156e8f12..0000000000
--- a/lttng/org.eclipse.linuxtools.lttng.core.tests/src/org/eclipse/linuxtools/lttng/core/tests/control/LTTngSyntheticEventProviderTest.java
+++ /dev/null
@@ -1,95 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2010 Ericsson
- *
- * All rights reserved. This program and the accompanying materials are
- * made available under the terms of the Eclipse Public License v1.0 which
- * accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Alvaro Sanchez-Leon (alvsan09@gmail.com) - Initial API and implementation
- *******************************************************************************/
-package org.eclipse.linuxtools.lttng.core.tests.control;
-
-import org.eclipse.linuxtools.internal.lttng.core.event.LttngEvent;
-import org.eclipse.linuxtools.lttng.core.tests.LttngTestPreparation;
-import org.eclipse.linuxtools.tmf.core.request.TmfEventRequest;
-import org.eclipse.linuxtools.tmf.core.trace.TmfExperiment;
-
-@SuppressWarnings("nls")
-public class LTTngSyntheticEventProviderTest extends LttngTestPreparation {
- // ========================================================================
- // Tests
- // ========================================================================
-
- public void testPlainDataRequest() {
- // prepare
- init();
- TmfExperiment experiment = prepareExperimentToTest();
- TmfEventRequest request = prepareEventRequest(
- LttngEvent.class, 0, 31);
-
- // execute
- experiment.sendRequest(request);
- try {
- request.waitForCompletion();
- } catch (InterruptedException e) {
- e.printStackTrace();
- }
-
- // finish
- assertEquals("Unexpected eventCount", 15316, feventCount);
- boolean expected = true;
- assertEquals("Events received out of expected order", expected,
- validSequence);
- }
-
- public void testSyntheticEventRequest() {
-// System.out.println("testSyntheticEventRequest: test removed");
-// init();
-// // Create a new Experiment manager context
-// IStateExperimentManager expManager = prepareExperimentContext(false);
-//
-// // make sure a TmfExperiment instance is registered as provider and
-// // selected as current
-// TmfExperiment<LttngEvent> experiment = prepareExperimentToTest();
-//
-// // experiment selected, build experiment selection context and trigger
-// // check point creation
-// expManager.experimentSelected_prep(experiment);
-// // builds check points in parallel
-// expManager.experimentSelected(this, experiment);
-//
-// // Obtain the singleton event provider
-// LttngSyntheticEventProvider synProvider = LttngCoreProviderFactory
-// .getEventProvider();
-//
-// // prepare synthetic event requests
-// boolean printExpectedEvents = false;
-// TmfEventRequest<LttngSyntheticEvent> request1 = prepareEventRequest(LttngSyntheticEvent.class, 5, 9,
-// printExpectedEvents); /* 2001 events */
-// TmfEventRequest<LttngSyntheticEvent> request2 = prepareEventRequest(LttngSyntheticEvent.class, 11, 13,
-// printExpectedEvents); /* 1001 events */
-//
-// // execute
-// synProvider.sendRequest(request1);
-// try {
-// request1.waitForCompletion();
-// } catch (InterruptedException e) {
-// e.printStackTrace();
-// }
-// System.out.println("EventCount " + feventCount);
-//
-// synProvider.sendRequest(request2);
-// try {
-// request2.waitForCompletion();
-// } catch (InterruptedException e) {
-// e.printStackTrace();
-// }
-// System.out.println("EventCount " + feventCount);
-//
-// // finish
-// assertEquals("Unexpected eventCount", 3002, feventCount);
- }
-
-} \ No newline at end of file
diff --git a/lttng/org.eclipse.linuxtools.lttng.core.tests/src/org/eclipse/linuxtools/lttng/core/tests/control/LTTngSyntheticEventProviderTextTest.java b/lttng/org.eclipse.linuxtools.lttng.core.tests/src/org/eclipse/linuxtools/lttng/core/tests/control/LTTngSyntheticEventProviderTextTest.java
deleted file mode 100644
index f36ead13df..0000000000
--- a/lttng/org.eclipse.linuxtools.lttng.core.tests/src/org/eclipse/linuxtools/lttng/core/tests/control/LTTngSyntheticEventProviderTextTest.java
+++ /dev/null
@@ -1,76 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2010 Ericsson
- *
- * All rights reserved. This program and the accompanying materials are
- * made available under the terms of the Eclipse Public License v1.0 which
- * accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Alvaro Sanchez-Leon (alvsan09@gmail.com) - Initial API and implementation
- *******************************************************************************/
-package org.eclipse.linuxtools.lttng.core.tests.control;
-
-
-
-import org.eclipse.linuxtools.lttng.core.tests.LttngTestPreparation;
-
-public class LTTngSyntheticEventProviderTextTest extends LttngTestPreparation {
-
- // ========================================================================
- // Tests
- // ========================================================================
- /**
- *
- */
- public void testPlainDataRequest() {
-// // prepare
-// init();
-// TmfExperiment<LttngEvent> experiment = prepareTextExperimentToTest();
-// TmfEventRequest<LttngEvent> request = prepareEventRequest(
-// LttngEvent.class, 0, 31);
-//
-// // execute
-// experiment.sendRequest(request);
-// try {
-// request.waitForCompletion();
-// } catch (InterruptedException e) {
-// e.printStackTrace();
-// }
-//
-// // finish
-// assertEquals("Unexpected eventCount", 15316, feventCount);
-// boolean expected = true;
-// assertEquals("Events received out of expected order", expected,
-// validSequence);
- }
-
- /**
- *
- */
- public void testSyntheticEventRequest() {
-// init();
-// // make sure a synthetic event provider exists and it's registered
-// LttngSyntheticEventProvider synProvider = LttngCoreProviderFactory
-// .getEventProvider();
-//
-// // make sure a TmfExperiment instance is registered as provider and
-// // selected as current
-// prepareTextExperimentToTest();
-//
-// // prepare synthetic event request
-// TmfEventRequest<LttngSyntheticEvent> request = prepareEventRequest(
-// LttngSyntheticEvent.class, 0, 31);
-//
-// // execute
-// synProvider.sendRequest(request);
-// try {
-// request.waitForCompletion();
-// } catch (InterruptedException e) {
-// e.printStackTrace();
-// }
-//
-// // finish
-// assertEquals("Unexpected eventCount", 15316, feventCount);
- }
-}
diff --git a/lttng/org.eclipse.linuxtools.lttng.core.tests/src/org/eclipse/linuxtools/lttng/core/tests/event/AllLTTngEventTests.java b/lttng/org.eclipse.linuxtools.lttng.core.tests/src/org/eclipse/linuxtools/lttng/core/tests/event/AllLTTngEventTests.java
deleted file mode 100644
index 02aaf6853b..0000000000
--- a/lttng/org.eclipse.linuxtools.lttng.core.tests/src/org/eclipse/linuxtools/lttng/core/tests/event/AllLTTngEventTests.java
+++ /dev/null
@@ -1,23 +0,0 @@
-package org.eclipse.linuxtools.lttng.core.tests.event;
-
-import junit.framework.TestCase;
-import junit.framework.TestSuite;
-
-import org.eclipse.linuxtools.lttng.core.tests.trace.LTTngTextTraceTest;
-
-@SuppressWarnings("nls")
-public final class AllLTTngEventTests extends TestCase {
- public static TestSuite suite() {
- TestSuite suite = new TestSuite("Testing LTTng (trace in text format)");
-
- suite.addTestSuite(LTTngTextTraceTest.class);
- suite.addTestSuite(LttngTimestampTest.class);
- suite.addTestSuite(LttngEventFieldTest.class);
- suite.addTestSuite(LttngEventContentTest.class);
- suite.addTestSuite(LttngEventTypeTest.class);
- suite.addTestSuite(LttngEventTest.class);
-
- return suite;
- }
-}
-
diff --git a/lttng/org.eclipse.linuxtools.lttng.core.tests/src/org/eclipse/linuxtools/lttng/core/tests/event/LttngEventContentTest.java b/lttng/org.eclipse.linuxtools.lttng.core.tests/src/org/eclipse/linuxtools/lttng/core/tests/event/LttngEventContentTest.java
deleted file mode 100644
index 19cb11ebfc..0000000000
--- a/lttng/org.eclipse.linuxtools.lttng.core.tests/src/org/eclipse/linuxtools/lttng/core/tests/event/LttngEventContentTest.java
+++ /dev/null
@@ -1,264 +0,0 @@
-package org.eclipse.linuxtools.lttng.core.tests.event;
-
-import java.io.File;
-import java.net.URL;
-import java.util.HashMap;
-
-import junit.framework.TestCase;
-
-import org.eclipse.core.runtime.FileLocator;
-import org.eclipse.core.runtime.Path;
-import org.eclipse.linuxtools.internal.lttng.core.event.LttngEvent;
-import org.eclipse.linuxtools.internal.lttng.core.event.LttngEventContent;
-import org.eclipse.linuxtools.internal.lttng.core.event.LttngEventField;
-import org.eclipse.linuxtools.internal.lttng.core.event.LttngEventType;
-import org.eclipse.linuxtools.internal.lttng.core.event.LttngTimestamp;
-import org.eclipse.linuxtools.internal.lttng.core.trace.LTTngTextTrace;
-import org.eclipse.linuxtools.tmf.core.trace.ITmfContext;
-import org.eclipse.linuxtools.tmf.core.trace.TmfContext;
-import org.eclipse.linuxtools.tmf.core.trace.TmfLocation;
-import org.osgi.framework.FrameworkUtil;
-
-/*
- Functions tested here :
-
- public LttngEventContent()
- public LttngEventContent(LttngEvent thisParent)
- public LttngEventContent(LttngEvent thisParent, HashMap<String, LttngEventField> thisContent)
- public LttngEventContent(LttngEventContent oldContent)
-
- public void emptyContent()
-
- public LttngEventField[] getFields()
- public LttngEventField getField(int position)
- public LttngEventField getField(String name)
- public LttngEvent getEvent()
- public LttngEventType getType()
- public Object[] getContent()
- public HashMap<String, LttngEventField> getRawContent()
-
- public void setType(LttngEventType newType)
- public void setEvent(LttngEvent newParent)
-
- public String toString()
- */
-
-@SuppressWarnings("nls")
-public class LttngEventContentTest extends TestCase {
- private final static String tracepath1="traceset/trace-15316events_nolost_newformat.txt";
- // private final static boolean skipIndexing=true;
-
- private final static String firstEventContentFirstField = "alignment:0";
- private final static String firstEventContentFirstFieldName = "alignment";
- private final static String firstEventContentType = "metadata/0/core_marker_id";
-
- private final static String secondEventContentSecondField = "string:LTT state dump begin";
- private final static String secondEventContentSecondFieldName = "string";
- private final static String secondEventContentType = "kernel/0/vprintk";
-
- private final static long timestampAfterMetadata = 13589760262237L;
-
- private static LTTngTextTrace testStream = null;
-
- private LTTngTextTrace initializeEventStream() {
- if (testStream == null)
- try {
- final URL location = FileLocator.find(FrameworkUtil.getBundle(this.getClass()), new Path(tracepath1), null);
- final File testfile = new File(FileLocator.toFileURL(location).toURI());
- final LTTngTextTrace tmpStream = new LTTngTextTrace(null, testfile.getPath());
- testStream = tmpStream;
- }
- catch (final Exception e) {
- System.out.println("ERROR : Could not open " + tracepath1);
- testStream = null;
- }
- else
- testStream.seekEvent(0);
-
- return testStream;
- }
-
-
- private LttngEventContent prepareToTest() {
- LttngEventContent tmpEventContent = null;
-
- // This trace should be valid
- try {
- testStream = null;
- final LTTngTextTrace tmpStream = initializeEventStream();
- tmpEventContent = (LttngEventContent)tmpStream.getNext( new TmfContext(new TmfLocation<Long>(0L), 0) ).getContent();
- }
- catch (final Exception e) {
- fail("ERROR : Failed to get content!");
- }
-
- return tmpEventContent;
- }
-
- public void testConstructors() {
- final LttngEvent testEvent = null;
- LttngEventContent testContent = null;
- final LttngEventField[] testFields = new LttngEventField[1];
- testFields[0] = new LttngEventField("test");
-
- // Default construction with good argument
- try {
- testContent = new LttngEventContent();
- }
- catch( final Exception e) {
- fail("Construction with format failed!");
- }
-
- // Construction with good parameters (parent event)
- try {
- testContent = new LttngEventContent(testEvent);
- }
- catch( final Exception e) {
- fail("Construction with format, content and fields failed!");
- }
-
- // Construction with good parameters (parent event and pre-parsed content)
- try {
- final HashMap<String, LttngEventField> parsedContent = new HashMap<String, LttngEventField>();
- testContent = new LttngEventContent(testEvent, parsedContent);
- }
- catch( final Exception e) {
- fail("Construction with format, content and fields failed!");
- }
-
-
- // Copy constructor with correct parameters
- try {
- testContent = new LttngEventContent(testEvent);
- new LttngEventContent(testContent);
- }
- catch( final Exception e) {
- fail("Copy constructor failed!");
- }
-
- }
-
-
- public void testGetter() {
- LttngEventContent testContent = null;
- LTTngTextTrace tmpStream = null;
- LttngEvent tmpEvent = null;
- ITmfContext tmpContext = null;
-
- // Require an event
- tmpStream = initializeEventStream();
- tmpContext = new TmfContext(new TmfLocation<Long>(0L), 0);
- tmpEvent = (LttngEvent)tmpStream.getNext(tmpContext);
- testContent = prepareToTest();
- // getFieldS()
- assertNotSame("getFields() returned null!", null, testContent.getFields() );
-
- // *** FIXME ***
- // Depending from the Java version because of the "hashcode()" on String.
- // We can't really test that safetly
- //
- // getField(int)
- //assertEquals("getField(int) returned unexpected result!",firstEventContentFirstField, testContent.getField(0).toString());
- assertNotSame("getField(int) returned unexpected result!", null, testContent.getField(0).toString());
-
-
- // getField(name)
- assertEquals("getField(name) returned unexpected result!",firstEventContentFirstField, testContent.getField(firstEventContentFirstFieldName).toString());
- // getRawContent
- assertNotSame("getRawContent() returned null!",null, testContent.getMapContent());
- // Test that get event return the correct event
- assertTrue("getEvent() returned unexpected result!", tmpEvent.getTimestamp().getValue() == testContent.getEvent().getTimestamp().getValue());
- // getType()
- assertEquals("getType() returned unexpected result!",firstEventContentType, testContent.getEvent().getType().toString());
-
- //*** To test getFields with a fields number >0, we need to move to an event that have some more
- tmpStream = initializeEventStream();
- tmpContext = new TmfContext(new TmfLocation<Long>(0L), 0);
- // Skip first events and seek to event pass metadata
- tmpContext= tmpStream.seekEvent(new LttngTimestamp(timestampAfterMetadata) );
- // Skip first one
- tmpEvent = (LttngEvent)tmpStream.getNext(tmpContext);
-
- // Second event past metadata should have more fields
- tmpEvent = (LttngEvent)tmpStream.getNext(tmpContext);
- // Get the content
- testContent = tmpEvent.getContent();
-
- // Test that get event return the correct event
- assertTrue("getEvent() returned unexpected result!",tmpEvent.getTimestamp().getValue() == testContent.getEvent().getTimestamp().getValue());
- // getType()
- assertEquals("getType() returned unexpected result!",secondEventContentType, testContent.getEvent().getType().toString());
-
-
- // getFieldS()
- assertNotSame("getFields() returned null!", null, testContent.getFields() );
- // getField(int)
- assertEquals("getField(int) returned unexpected result!",secondEventContentSecondField, testContent.getField(1).toString());
- // getField(name)
- assertEquals("getField(name) returned unexpected result!",secondEventContentSecondField, testContent.getField(secondEventContentSecondFieldName).toString());
- // getRawContent
- assertNotSame("getRawContent() returned null!", null, testContent.getMapContent());
-
- }
-
- public void testSetter() {
- // Not much to test here, we will just make sure the set does not fail for any reason.
- // It's pointless to test with a getter...
- LTTngTextTrace tmpStream = null;
- LttngEvent tmpEvent = null;
- TmfContext tmpContext = null;
-
- // Require an event
- tmpStream = initializeEventStream();
- tmpContext = new TmfContext(new TmfLocation<Long>(0L), 0);
- tmpEvent = (LttngEvent)tmpStream.getNext(tmpContext);
-
- final LttngEventContent tmpContent = prepareToTest();
- try {
- tmpContent.setEvent(tmpEvent);
- }
- catch( final Exception e) {
- fail("setEvent(event) failed!");
- }
-
-
- final LttngEventType testType = new LttngEventType();
- try {
- tmpContent.getEvent().setType(testType);
- }
- catch( final Exception e) {
- fail("setType(type) failed!");
- }
- }
-
- public void testEmptyContent() {
- LttngEventContent testContent = null;
- LTTngTextTrace tmpStream = null;
- LttngEvent tmpEvent = null;
- TmfContext tmpContext = null;
-
- // Require an event
- tmpStream = initializeEventStream();
- tmpContext = new TmfContext(new TmfLocation<Long>(0L), 0);
- tmpEvent = (LttngEvent)tmpStream.getNext(tmpContext);
- // Get the content
- testContent = tmpEvent.getContent();
- // Get all the fields to make sure there is something in the HashMap
- testContent.getFields();
- // Just making sure there is something in the HashMap
- assertNotSame("HashMap is empty but should not!", 0, testContent.getMapContent().size() );
-
- // This is the actual test
- testContent.emptyContent();
- assertSame("HashMap is not empty but should be!", 0, testContent.getMapContent().size() );
- }
-
- public void testToString() {
- final LttngEventContent tmpContent = prepareToTest();
-
- // Just make sure toString() does not return null or the java reference
- assertNotSame("toString returned null",null, tmpContent.toString() );
- assertNotSame("toString is not overridded!", tmpContent.getClass().getName() + '@' + Integer.toHexString(tmpContent.hashCode()), tmpContent.toString() );
- }
-
-}
diff --git a/lttng/org.eclipse.linuxtools.lttng.core.tests/src/org/eclipse/linuxtools/lttng/core/tests/event/LttngEventFieldTest.java b/lttng/org.eclipse.linuxtools.lttng.core.tests/src/org/eclipse/linuxtools/lttng/core/tests/event/LttngEventFieldTest.java
deleted file mode 100644
index 879b47f48a..0000000000
--- a/lttng/org.eclipse.linuxtools.lttng.core.tests/src/org/eclipse/linuxtools/lttng/core/tests/event/LttngEventFieldTest.java
+++ /dev/null
@@ -1,123 +0,0 @@
-package org.eclipse.linuxtools.lttng.core.tests.event;
-
-
-
-import java.io.File;
-import java.net.URL;
-
-import junit.framework.TestCase;
-
-import org.eclipse.core.runtime.FileLocator;
-import org.eclipse.core.runtime.Path;
-import org.eclipse.linuxtools.internal.lttng.core.event.LttngEventField;
-import org.eclipse.linuxtools.internal.lttng.core.trace.LTTngTextTrace;
-import org.eclipse.linuxtools.tmf.core.trace.TmfContext;
-import org.eclipse.linuxtools.tmf.core.trace.TmfLocation;
-import org.osgi.framework.FrameworkUtil;
-
-/*
- Functions tested here :
- public LttngEventField(String name, Object newContent)
- public LttngEventField(LttngEventField oldField)
- public String getName()
- public String toString()
-
- */
-@SuppressWarnings("nls")
-public class LttngEventFieldTest extends TestCase {
- private final static String tracepath1="traceset/trace-15316events_nolost_newformat.txt";
- private final static boolean skipIndexing=true;
-
- // private final static String firstEventName = "alignment";
- private final static String firstEventValue = "0";
-
- private static LTTngTextTrace testStream = null;
- private LTTngTextTrace initializeEventStream() {
- if (testStream == null)
- try {
- final URL location = FileLocator.find(FrameworkUtil.getBundle(this.getClass()), new Path(tracepath1), null);
- final File testfile = new File(FileLocator.toFileURL(location).toURI());
- final LTTngTextTrace tmpStream = new LTTngTextTrace(null, testfile.getPath(), skipIndexing);
- testStream = tmpStream;
- }
- catch (final Exception e) {
- System.out.println("ERROR : Could not open " + tracepath1);
- testStream = null;
- }
- else
- testStream.seekEvent(0);
-
- return testStream;
- }
-
- private LttngEventField prepareToTest() {
- LttngEventField tmpField = null;
-
- // This trace should be valid
- try {
- final LTTngTextTrace tmpStream = initializeEventStream();
- tmpField = (LttngEventField)tmpStream.getNext( new TmfContext(new TmfLocation<Long>(0L), 0) ).getContent().getField(0);
- }
- catch (final Exception e) {
- fail("ERROR : Failed to get field!");
- }
-
- return tmpField;
- }
-
- public void testConstructors() {
- LttngEventField testField = null;
-
- // Default construction with good argument
- try {
- testField = new LttngEventField("test", "test");
- }
- catch( final Exception e) {
- fail("Default construction failed!");
- }
-
- // Copy constructor with correct parameters
- try {
- testField = new LttngEventField("test", "test");
- new LttngEventField(testField);
- }
- catch( final Exception e) {
- fail("Copy constructor failed!");
- }
-
- }
-
- public void testGetter() {
-
- // *** To "really" test the field, we will get a real field from LTTngTrace
- final LTTngTextTrace tmpStream = initializeEventStream();
-
- LttngEventField testField = null;
- // try {
- testField = (LttngEventField) tmpStream.getNext( new TmfContext(new TmfLocation<Long>(0L), 0) ).getContent().getField(0);
- // } catch (TmfNoSuchFieldException e) {
- // e.printStackTrace();
- // }
- assertNotSame("getField is null!", null, testField);
-
- // *** FIXME ***
- // Depending from the Java version because of the "hashcode()" on String.
- // We can't really test that safetly
- //
- //assertTrue("getName() returned unexpected result!",firstEventName.equals(testField.getId().toString()));
- assertNotSame("getName() returned unexpected result!",null, testField.getName());
-
- assertTrue("getValue() returned unexpected result!",firstEventValue.equals(testField.getValue().toString()));
-
-
- }
-
- public void testToString() {
- final LttngEventField tmpField = prepareToTest();
-
- // Just make sure toString() does not return null or the java reference
- assertNotSame("toString returned null",null, tmpField.toString() );
- assertNotSame("toString is not overridded!", tmpField.getClass().getName() + '@' + Integer.toHexString(tmpField.hashCode()), tmpField.toString() );
- }
-
-}
diff --git a/lttng/org.eclipse.linuxtools.lttng.core.tests/src/org/eclipse/linuxtools/lttng/core/tests/event/LttngEventTest.java b/lttng/org.eclipse.linuxtools.lttng.core.tests/src/org/eclipse/linuxtools/lttng/core/tests/event/LttngEventTest.java
deleted file mode 100644
index a99f824248..0000000000
--- a/lttng/org.eclipse.linuxtools.lttng.core.tests/src/org/eclipse/linuxtools/lttng/core/tests/event/LttngEventTest.java
+++ /dev/null
@@ -1,225 +0,0 @@
-package org.eclipse.linuxtools.lttng.core.tests.event;
-
-import java.io.File;
-import java.net.URL;
-
-import junit.framework.TestCase;
-
-import org.eclipse.core.runtime.FileLocator;
-import org.eclipse.core.runtime.Path;
-import org.eclipse.linuxtools.internal.lttng.core.event.LttngEvent;
-import org.eclipse.linuxtools.internal.lttng.core.event.LttngEventContent;
-import org.eclipse.linuxtools.internal.lttng.core.event.LttngEventType;
-import org.eclipse.linuxtools.internal.lttng.core.event.LttngTimestamp;
-import org.eclipse.linuxtools.internal.lttng.core.trace.LTTngTextTrace;
-import org.eclipse.linuxtools.internal.lttng.core.trace.LTTngTrace;
-import org.eclipse.linuxtools.lttng.jni.JniEvent;
-import org.eclipse.linuxtools.tmf.core.trace.TmfContext;
-import org.eclipse.linuxtools.tmf.core.trace.TmfLocation;
-import org.osgi.framework.FrameworkUtil;
-
-/*
- Functions tested here :
- public LttngEvent(LttngTimestamp timestamp, TmfEventSource source, LttngEventType type, LttngEventContent content, LttngEventReference reference, JniEvent lttEvent)
- public LttngEvent(LttngEvent oldEvent)
-
- public String getChannelName()
- public long getCpuId()
- public String getMarkerName()
- public LttngEventType getType()
- public LttngEventContent getContent()
-
- public void updateJniEventReference(JniEvent newJniEventReference)
- public void setContent(LttngEventContent newContent)
- public void setType(LttngEventType newType)
-
- public JniEvent convertEventTmfToJni()
-
- public String toString()
- */
-
-@SuppressWarnings("nls")
-public class LttngEventTest extends TestCase {
- private final static String tracepath1="traceset/trace-15316events_nolost_newformat.txt";
- private final static boolean skipIndexing=true;
-
- private final static long eventTimestamp = 13589759412128L;
- private final static String eventSource = "Kernel Core";
- private final static String eventType = "metadata/0/core_marker_id";
- private final static String eventChannel = "metadata";
- private final static long eventCpu = 0;
- private final static String eventMarker = "core_marker_id";
- // private final static String eventContent = "alignment:0 size_t:4 int:4 name:vm_map pointer:4 event_id:0 long:4 channel:vm_state ";
- private final static String eventReference = eventChannel + "_" + eventCpu;
-
-
- private static LTTngTextTrace testStream = null;
- private LTTngTextTrace initializeEventStream() {
- if (testStream == null)
- try {
- final URL location = FileLocator.find(FrameworkUtil.getBundle(this.getClass()), new Path(tracepath1), null);
- final File testfile = new File(FileLocator.toFileURL(location).toURI());
- final LTTngTextTrace tmpStream = new LTTngTextTrace(null, testfile.getPath(), skipIndexing);
- testStream = tmpStream;
- }
- catch (final Exception e) {
- System.out.println("ERROR : Could not open " + tracepath1);
- testStream = null;
- }
- else
- testStream.seekEvent(0);
-
- return testStream;
- }
-
- private LttngEvent prepareToTest() {
- LttngEvent tmpEvent = null;
-
- try {
- final LTTngTextTrace tmpStream = initializeEventStream();
- tmpEvent = (LttngEvent)tmpStream.getNext(new TmfContext(new TmfLocation<Long>(0L), 0) );
- }
- catch (final Exception e) {
- System.out.println("ERROR : Could not open " + tracepath1);
- }
-
- return tmpEvent;
- }
-
- public void testConstructors() {
- LttngEvent testEvent = null;
- final LTTngTrace testTrace = null;
- LttngTimestamp testTime = null;
- String testSource = null;
- LttngEventType testType = null;
- LttngEventContent testContent = null;
- String testReference = null;
- final JniEvent testJniEvent = null;
- String[] testMarkerFields = null;
-
- // This need to work if we want to perform tests
- try {
- // In order to test LttngEvent, we need all these constructors/functions to work.
- // Make sure to run their unit tests first!
- testMarkerFields = new String[] { "test" };
- testEvent = null;
- testTime = new LttngTimestamp(0L);
- testSource = "test";
- testType = new LttngEventType("test", 0L, "test", 0, testMarkerFields);
- testContent = new LttngEventContent(testEvent);
- testReference = "test";
- }
- catch( final Exception e) {
- fail("Cannot allocate an EventStream, junit failed!");
- }
-
- // Test constructor with correct information
- try {
- testEvent = new LttngEvent(testTrace, testTime, testSource, testType, testContent, testReference, testJniEvent);
- }
- catch( final Exception e) {
- fail("Construction with correct information failed!");
- }
-
- // Test about copy constructor
- // Passing a null to copy constructor should fail
- try {
- new LttngEvent(null);
- fail("Copy constructor with null old event should fail!");
- }
- catch( final Exception e) {
- }
-
- // Copy constructor used properly
- testEvent = prepareToTest();
- try {
- new LttngEvent(testEvent);
- }
- catch( final Exception e) {
- fail("Correct utilisation of copy constructor failed!");
- }
-
- }
-
- public void testGetter() {
- final LttngEvent testEvent = prepareToTest();
-
- // These will test TMF functions but since we are expecting it to work...
- assertEquals("Timestamp not what expected!",eventTimestamp,testEvent.getTimestamp().getValue());
- assertEquals("Source not what expected!",eventSource,testEvent.getSource());
- assertEquals("Reference not what expected!", eventReference, testEvent.getReference());
-
- // These should be overridden functions
- assertEquals("Type not what expected!",eventType,testEvent.getType().getName());
- assertEquals("Channel not what expected!",eventChannel,testEvent.getChannelName());
- assertEquals("CpuId not what expected!",eventCpu,testEvent.getCpuId());
- assertEquals("Marker not what expected!",eventMarker,testEvent.getMarkerName());
-
- // All events should have a parent
- assertNotNull("Trace parent for this event is null!", testEvent.getTrace() );
-
- // *** FIXME ***
- // Depending from the Java version because of the "hashcode()" on String.
- // We can't really test that safetly
- //
- //assertEquals("Content not what expected!",eventContent,testEvent.getContent().toString());
- assertNotSame("Content is null!", null,testEvent.getContent());
- }
-
- public void testSetter() {
- final LttngEvent testEvent = prepareToTest();
-
- LttngEventType testType = null;
- LttngEventContent testContent = null;
- final JniEvent testJniEvent = null;
-
- final String[] testMarkerFields = new String[] { "test" };
- testType = new LttngEventType("test", 0L, "test", 0, testMarkerFields);
- testContent = new LttngEventContent(testEvent);
-
- try {
- // *** FIXME ***
- // This won't do anything good on a text trace
- testEvent.updateJniEventReference(testJniEvent);
-
- testEvent.setContent(testContent);
- testEvent.setType(testType);
- }
- catch( final Exception e) {
- fail("Setters raised an exception!");
- }
-
- assertSame("SetType failed : type not what expected!",testType,testEvent.getType());
- assertSame("SetContent failed : content not what expected!",testContent,testEvent.getContent());
-
- }
-
-
- public void testConversion() {
- @SuppressWarnings("unused")
- JniEvent tmpJniEvent = null;
- LttngEvent testEvent = null;
-
- testEvent = prepareToTest();
-
- try {
- tmpJniEvent = testEvent.convertEventTmfToJni();
- }
- catch( final Exception e) {
- fail("Conversion raised an exception!");
- }
-
- // *** FIXME ***
- // This test can't work with a text trace, commented for now
- //assertNotSame("Conversion returned a null event!",null, tmpJniEvent );
- }
-
- public void testToString() {
- final LttngEvent tmpEvent = prepareToTest();
-
- // Just make sure toString() does not return null or the java reference
- assertNotSame("toString returned null",null, tmpEvent.toString() );
- assertNotSame("toString is not overridded!", tmpEvent.getClass().getName() + '@' + Integer.toHexString(tmpEvent.hashCode()), tmpEvent.toString() );
- }
-
-}
diff --git a/lttng/org.eclipse.linuxtools.lttng.core.tests/src/org/eclipse/linuxtools/lttng/core/tests/event/LttngEventTypeTest.java b/lttng/org.eclipse.linuxtools.lttng.core.tests/src/org/eclipse/linuxtools/lttng/core/tests/event/LttngEventTypeTest.java
deleted file mode 100644
index 7c4ebf9c0a..0000000000
--- a/lttng/org.eclipse.linuxtools.lttng.core.tests/src/org/eclipse/linuxtools/lttng/core/tests/event/LttngEventTypeTest.java
+++ /dev/null
@@ -1,119 +0,0 @@
-package org.eclipse.linuxtools.lttng.core.tests.event;
-
-import java.io.File;
-import java.net.URL;
-
-import junit.framework.TestCase;
-
-import org.eclipse.core.runtime.FileLocator;
-import org.eclipse.core.runtime.Path;
-import org.eclipse.linuxtools.internal.lttng.core.event.LttngEventType;
-import org.eclipse.linuxtools.internal.lttng.core.trace.LTTngTextTrace;
-import org.eclipse.linuxtools.tmf.core.trace.TmfContext;
-import org.osgi.framework.FrameworkUtil;
-
-/*
- Functions tested here :
- public LttngEventType()
- public LttngEventType(String thisTracefileName, Long thisCpuId, String thisMarkerName, String[] thisMarkerfieldsName)
- public LttngEventType(LttngEventType oldType)
-
- public String getTracefileName()
- public Long getCpuId()
- public String getMarkerName()
-
- public String toString()
- */
-
-@SuppressWarnings("nls")
-public class LttngEventTypeTest extends TestCase {
- private final static String tracepath1="traceset/trace-15316events_nolost_newformat.txt";
- private final static boolean skipIndexing=true;
-
- private final static String firstEventChannel = "metadata";
- private final static long firstEventCpu = 0;
- private final static String firstEventMarker = "core_marker_id";
-
- private static LTTngTextTrace testStream = null;
- private LTTngTextTrace initializeEventStream() {
- if (testStream == null)
- try {
- final URL location = FileLocator.find(FrameworkUtil.getBundle(this.getClass()), new Path(tracepath1), null);
- final File testfile = new File(FileLocator.toFileURL(location).toURI());
- final LTTngTextTrace tmpStream = new LTTngTextTrace(null, testfile.getPath(), skipIndexing);
- testStream = tmpStream;
- }
- catch (final Exception e) {
- System.out.println("ERROR : Could not open " + tracepath1);
- testStream = null;
- }
- else
- testStream.seekEvent(0);
-
- return testStream;
- }
-
- private LttngEventType prepareToTest() {
- LttngEventType tmpEventType = null;
-
- // This trace should be valid
- try {
- final LTTngTextTrace tmpStream = initializeEventStream();
- tmpEventType = (LttngEventType)tmpStream.getNext( new TmfContext(null, 0) ).getType();
- }
- catch (final Exception e) {
- fail("ERROR : Failed to get reference!");
- }
-
- return tmpEventType;
- }
-
- public void testConstructors() {
- LttngEventType tmpEventType = null;
-
- // Default construction, no argument
- try {
- tmpEventType = new LttngEventType();
- }
- catch( final Exception e) {
- fail("Construction failed!");
- }
-
- // Default construction with good arguments
- try {
- tmpEventType = new LttngEventType("test", 0L, "test", 0, new String[] { "test" });
- }
- catch (final Exception e) {
- fail("Construction failed!");
- }
-
- // Copy constructor
- try {
- tmpEventType = new LttngEventType("test", 0L, "test", 0, new String[] { "test" });
- new LttngEventType(tmpEventType);
- }
- catch (final Exception e) {
- fail("Construction failed!");
- }
- }
-
-
- public void testGetter() {
- final LttngEventType tmpEventType = prepareToTest();
-
- assertTrue("Channel name not what was expected!",firstEventChannel.equals(tmpEventType.getTracefileName()) );
- assertTrue("Cpu Id not what was expected!",firstEventCpu == tmpEventType.getCpuId() );
- assertTrue("Marker Name not what was expected!",firstEventMarker.equals(tmpEventType.getMarkerName()) );
- // Just test the non-nullity of labels
- assertNotSame("getLabels returned null",null, tmpEventType.getFieldNames() );
- }
-
- public void testToString() {
- final LttngEventType tmpEventType = prepareToTest();
-
- // Just make sure toString() does not return null or the java reference
- assertNotSame("toString returned null",null, tmpEventType.toString() );
- assertNotSame("toString is not overridded!", tmpEventType.getClass().getName() + '@' + Integer.toHexString(tmpEventType.hashCode()), tmpEventType.toString() );
- }
-
-}
diff --git a/lttng/org.eclipse.linuxtools.lttng.core.tests/src/org/eclipse/linuxtools/lttng/core/tests/event/LttngTimestampTest.java b/lttng/org.eclipse.linuxtools.lttng.core.tests/src/org/eclipse/linuxtools/lttng/core/tests/event/LttngTimestampTest.java
deleted file mode 100644
index e5dcf34959..0000000000
--- a/lttng/org.eclipse.linuxtools.lttng.core.tests/src/org/eclipse/linuxtools/lttng/core/tests/event/LttngTimestampTest.java
+++ /dev/null
@@ -1,144 +0,0 @@
-package org.eclipse.linuxtools.lttng.core.tests.event;
-
-import java.io.File;
-import java.net.URL;
-
-import junit.framework.TestCase;
-
-import org.eclipse.core.runtime.FileLocator;
-import org.eclipse.core.runtime.Path;
-import org.eclipse.linuxtools.internal.lttng.core.event.LttngTimestamp;
-import org.eclipse.linuxtools.internal.lttng.core.trace.LTTngTextTrace;
-import org.eclipse.linuxtools.tmf.core.trace.TmfContext;
-import org.osgi.framework.FrameworkUtil;
-
-/*
- Functions tested here :
- public LttngTimestamp()
- public LttngTimestamp(long newEventTime)
- public LttngTimestamp(TmfTimestamp oldEventTime)
-
- public long getValue()
- public String getSeconds()
- public String getNanoSeconds()
-
- public void setValue(long newValue)
-
- public String toString()
- */
-
-@SuppressWarnings("nls")
-public class LttngTimestampTest extends TestCase {
- private final static String tracepath1 = "traceset/trace-15316events_nolost_newformat.txt";
- private final static boolean skipIndexing = true;
-
- private final static String firstEventTimeSecond = "13589";
- private final static String firstEventTimeNano = "759412128";
- private final static long firstEventTimeFull = 13589759412128L;
-
- private static LTTngTextTrace testStream = null;
-
- private LTTngTextTrace initializeEventStream() {
- if (testStream == null)
- try {
- final URL location = FileLocator.find(FrameworkUtil.getBundle(this.getClass()), new Path(tracepath1), null);
- final File testfile = new File(FileLocator.toFileURL(location).toURI());
- final LTTngTextTrace tmpStream = new LTTngTextTrace(null, testfile.getPath(), skipIndexing);
- testStream = tmpStream;
- } catch (final Exception e) {
- System.out.println("ERROR : Could not open " + tracepath1);
- testStream = null;
- }
- return testStream;
- }
-
- private LttngTimestamp prepareToTest() {
- LttngTimestamp tmpTime = null;
-
- // This trace should be valid
- try {
- final LTTngTextTrace tmpStream = initializeEventStream();
- tmpTime = (LttngTimestamp) tmpStream.getNext(new TmfContext(null, 0)).getTimestamp();
- } catch (final Exception e) {
- fail("ERROR : Failed to get reference!");
- }
-
- return tmpTime;
- }
-
- public void testConstructors() {
- LttngTimestamp tmpTime = null;
-
- // Default construction with no argument
- try {
- tmpTime = new LttngTimestamp();
- } catch (final Exception e) {
- fail("Construction failed!");
- }
-
- // Default construction with good argument
- try {
- tmpTime = new LttngTimestamp(1);
- } catch (final Exception e) {
- fail("Construction failed!");
- }
-
- // Copy constructor
- try {
- tmpTime = new LttngTimestamp(1);
- new LttngTimestamp(tmpTime);
- } catch (final Exception e) {
- fail("Construction failed!");
- }
- }
-
- public void testGetter() {
- final LttngTimestamp tmpTime = prepareToTest();
-
- assertEquals("Time in second is wrong", firstEventTimeSecond, tmpTime.getSeconds());
- assertEquals("Time in nano second is wrong", firstEventTimeNano, tmpTime.getNanoSeconds());
-
- assertEquals("Full time is wrong", firstEventTimeFull, tmpTime.getValue());
- }
-
- public void testSetter() {
- final LttngTimestamp tmpTime = prepareToTest();
-
- // We will set a time and we will make sure the set is working then
- tmpTime.setValue(1);
- assertEquals("Full time is wrong after set", 1, tmpTime.getValue());
- }
-
- public void testToString() {
- final LttngTimestamp tmpTime = prepareToTest();
-
- // Just make sure toString() does not return null or the java reference
- assertNotSame("toString returned null", null, tmpTime.toString());
- assertNotSame("toString is not overridded!", tmpTime.getClass().getName() + '@' + Integer.toHexString(tmpTime.hashCode()), tmpTime.toString());
- }
-
- // Better test...
- public void testToString2() {
- final LttngTimestamp ts1 = new LttngTimestamp(2064357056377L);
- final String expectedTS1 = "2064.357056377";
-
- final LttngTimestamp ts2 = new LttngTimestamp(1L);
- final String expectedTS2 = "0.000000001";
-
- final LttngTimestamp ts3 = new LttngTimestamp(123456789L);
- final String expectedTS3 = "0.123456789";
-
- final LttngTimestamp ts4 = new LttngTimestamp(1234567890L);
- final String expectedTS4 = "1.234567890";
-
- assertEquals("toString()", expectedTS1, ts1.toString());
- assertEquals("toString()", expectedTS2, ts2.toString());
- assertEquals("toString()", expectedTS3, ts3.toString());
- assertEquals("toString()", expectedTS4, ts4.toString());
-
- final LttngTimestamp ts5 = new LttngTimestamp(2234567890L);
- final LttngTimestamp delta = ts4.getDelta(ts5);
- final String expectedDelta = "-1.000000000";
- assertEquals("toString()", expectedDelta, delta.toString());
- }
-}
diff --git a/lttng/org.eclipse.linuxtools.lttng.core.tests/src/org/eclipse/linuxtools/lttng/core/tests/headless/JniTraceTest.java b/lttng/org.eclipse.linuxtools.lttng.core.tests/src/org/eclipse/linuxtools/lttng/core/tests/headless/JniTraceTest.java
deleted file mode 100644
index 4fea922811..0000000000
--- a/lttng/org.eclipse.linuxtools.lttng.core.tests/src/org/eclipse/linuxtools/lttng/core/tests/headless/JniTraceTest.java
+++ /dev/null
@@ -1,88 +0,0 @@
-package org.eclipse.linuxtools.lttng.core.tests.headless;
-/*******************************************************************************
- * Copyright (c) 2009 Ericsson
- *
- * All rights reserved. This program and the accompanying materials are
- * made available under the terms of the Eclipse Public License v1.0 which
- * accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * William Bourque (wbourque@gmail.com) - Initial API and implementation
- *******************************************************************************/
-
-import java.util.ArrayList;
-
-import org.eclipse.linuxtools.internal.lttng.jni.common.JniTime;
-import org.eclipse.linuxtools.lttng.jni.JniEvent;
-import org.eclipse.linuxtools.lttng.jni.JniMarkerField;
-import org.eclipse.linuxtools.lttng.jni.JniTrace;
-import org.eclipse.linuxtools.lttng.jni.factory.JniTraceFactory;
-
-
-@SuppressWarnings("nls")
-public class JniTraceTest {
-
- public static void main(String[] args) {
-
- // Path of the trace
- final String TRACE_PATH = "/home/william/trace-614601events-nolost-newformat";
-
- // *** Change this to run several time over the same trace
- final int NB_OF_PASS = 1;
-
- // *** Change this to true to parse all the events in the trace
- // Otherwise, events are just read
- final boolean PARSE_EVENTS = true;
-
-
- // Work variables
- JniTrace tmptrace = null;
- JniEvent tmpevent = null;
- Long nbEvent = 0L;
-
- try {
- // Get the trace from the Factory...
- // This assume the path is correct and that the correct version of the lib is installed
- tmptrace = JniTraceFactory.getJniTrace(TRACE_PATH, null, false);
-
- // Seek beginning
- tmptrace.seekToTime(new JniTime(0L));
-
- // Run up to "NB_OF_PASS" on the same trace
- for (int x=0; x<NB_OF_PASS; x++ ){
- tmpevent = tmptrace.readNextEvent();
- nbEvent++;
-
- while ( tmpevent != null ) {
-
- // Parse event if asked
- if ( PARSE_EVENTS ) {
- ArrayList<JniMarkerField> tmpFields = tmpevent.getMarkersMap().get(tmpevent.getEventMarkerId()).getMarkerFieldsArrayList();
- for ( int pos=0; pos<tmpFields.size(); pos++ ) {
- @SuppressWarnings("unused")
- Object newValue = tmpevent.parseFieldById(pos);
-
- // *** Uncomment the following to print the parsed content
- // Warning : this is VERY intensive
- //if ( pos == (tmpFields.size() -1) ) {
- // tmptrace.printC(tmpevent.getEventPtr().getLibraryId(), tmpFields.get(pos).getField() + ":" + newValue + " ");
- //} else {
- // tmptrace.printlnC(tmpevent.getEventPtr().getLibraryId(), tmpFields.get(pos).getField() + ":" + newValue + " ");
- //}
- }
- }
-
- tmpevent = tmptrace.readNextEvent();
- nbEvent++;
- }
- }
-
- System.out.println("NB Events read : " + nbEvent);
- }
- catch (Exception e) {
- e.printStackTrace();
- }
- }
-
-}
diff --git a/lttng/org.eclipse.linuxtools.lttng.core.tests/src/org/eclipse/linuxtools/lttng/core/tests/headless/LttngTraceTest.java b/lttng/org.eclipse.linuxtools.lttng.core.tests/src/org/eclipse/linuxtools/lttng/core/tests/headless/LttngTraceTest.java
deleted file mode 100644
index 314fd407e6..0000000000
--- a/lttng/org.eclipse.linuxtools.lttng.core.tests/src/org/eclipse/linuxtools/lttng/core/tests/headless/LttngTraceTest.java
+++ /dev/null
@@ -1,99 +0,0 @@
-package org.eclipse.linuxtools.lttng.core.tests.headless;
-/*******************************************************************************
- * Copyright (c) 2009 Ericsson
- *
- * All rights reserved. This program and the accompanying materials are
- * made available under the terms of the Eclipse Public License v1.0 which
- * accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * William Bourque (wbourque@gmail.com) - Initial API and implementation
- *******************************************************************************/
-
-import org.eclipse.linuxtools.internal.lttng.core.event.LttngEvent;
-import org.eclipse.linuxtools.internal.lttng.core.event.LttngLocation;
-import org.eclipse.linuxtools.internal.lttng.core.event.LttngTimestamp;
-import org.eclipse.linuxtools.internal.lttng.core.trace.LTTngTextTrace;
-import org.eclipse.linuxtools.internal.lttng.core.trace.LTTngTrace;
-import org.eclipse.linuxtools.tmf.core.trace.ITmfContext;
-import org.eclipse.linuxtools.tmf.core.trace.TmfContext;
-import org.eclipse.linuxtools.tmf.core.trace.TmfTrace;
-
-
-@SuppressWarnings("nls")
-public class LttngTraceTest {
-
- /**
- * @param args
- */
- public static void main(final String[] args) {
-
- // Path of the trace
- final String TRACE_PATH = "/home/francois/Desktop/Workspaces/LTTngTraces/trace_2GB";
- // *** Change to true to use the "fake" LttngTextTrace instead of LTTngTrace
- // To use this, you need a ".txt" trace.
- // You can get it using LTTv with the command "lttv -m textDump -t /tmp/sometrace > mytrace.txt"
- final boolean USE_TEXT_TRACE = false;
-
- // *** Change this to run several time over the same trace
- final int NB_OF_PASS = 1;
-
- // *** Change this to true to parse all the events in the trace
- // Otherwise, events are just read
- final boolean PARSE_EVENTS = true;
-
-
- // Work variables
- TmfTrace tmptrace = null;
- LttngEvent tmpevent = null;
- ITmfContext tmpContext = null;
- Long nbEvent = 0L;
-
- try {
- // ** Use TextTrace (slow!) if it was asked
- if ( USE_TEXT_TRACE ) {
- tmptrace = new LTTngTextTrace(null, TRACE_PATH, true);
- } else {
- tmptrace = new LTTngTrace(null, TRACE_PATH, null, true, true);
- }
-
- final LttngTimestamp tmpTime = new LttngTimestamp(0L);
- tmpContext = new TmfContext(new LttngLocation(0L), 0);
-
-
- final long startTime = System.nanoTime();
- System.out.println("Start: " + startTime);
- for ( int nb=0; nb<NB_OF_PASS; nb++) {
-
- // Seek to the beginning of the trace
- tmpContext = tmptrace.seekEvent( tmpTime );
- tmpevent = (LttngEvent)tmptrace.getNext(tmpContext);
-
- while ( tmpevent != null ) {
- tmpevent = (LttngEvent)tmptrace.getNext(tmpContext);
-
- // Parse the events if it was asked
- if ( (tmpevent != null) && (PARSE_EVENTS) ) {
- tmpevent.getContent().getFields();
- }
-
- nbEvent++;
- }
- }
-
- System.out.println("NB events : " + nbEvent);
-
- final long endTime = System.nanoTime();
- final long elapsed = endTime - startTime;
- System.out.println("End: " + endTime);
- System.out.println("Elapsed: " + elapsed + ", Average: " + (elapsed/nbEvent) + "ns/evt");
-
- }
- catch (final Exception e) {
- e.printStackTrace();
- }
-
- }
-
-}
diff --git a/lttng/org.eclipse.linuxtools.lttng.core.tests/src/org/eclipse/linuxtools/lttng/core/tests/headless/TmfTraceTest.java b/lttng/org.eclipse.linuxtools.lttng.core.tests/src/org/eclipse/linuxtools/lttng/core/tests/headless/TmfTraceTest.java
deleted file mode 100644
index a862d076ba..0000000000
--- a/lttng/org.eclipse.linuxtools.lttng.core.tests/src/org/eclipse/linuxtools/lttng/core/tests/headless/TmfTraceTest.java
+++ /dev/null
@@ -1,125 +0,0 @@
-package org.eclipse.linuxtools.lttng.core.tests.headless;
-/*******************************************************************************
- * Copyright (c) 2009 Ericsson
- *
- * All rights reserved. This program and the accompanying materials are
- * made available under the terms of the Eclipse Public License v1.0 which
- * accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * William Bourque (wbourque@gmail.com) - Initial API and implementation
- *******************************************************************************/
-
-import org.eclipse.linuxtools.internal.lttng.core.event.LttngEvent;
-import org.eclipse.linuxtools.internal.lttng.core.event.LttngTimestamp;
-import org.eclipse.linuxtools.internal.lttng.core.trace.LTTngTrace;
-import org.eclipse.linuxtools.tmf.core.event.ITmfEvent;
-import org.eclipse.linuxtools.tmf.core.event.TmfEvent;
-import org.eclipse.linuxtools.tmf.core.event.TmfTimeRange;
-import org.eclipse.linuxtools.tmf.core.request.TmfEventRequest;
-import org.eclipse.linuxtools.tmf.core.trace.ITmfTrace;
-import org.eclipse.linuxtools.tmf.core.trace.TmfExperiment;
-
-@SuppressWarnings("nls")
-public class TmfTraceTest extends TmfEventRequest {
-
- public TmfTraceTest(final Class<? extends TmfEvent> dataType, final TmfTimeRange range, final int nbRequested) {
- super(dataType, range, nbRequested, 1);
- }
-
-
- // Path of the trace
- public static final String TRACE_PATH = "/home/william/trace-614601events-nolost-newformat";
-
- // *** Change this to run several time over the same trace
- public static final int NB_OF_PASS = 1;
-
- // *** Change this to true to parse all the events in the trace
- // Otherwise, events are just read
- public final boolean PARSE_EVENTS = true;
-
-
- // Work variables
- public static int nbEvent = 0;
- public static int nbPassDone = 0;
- public static TmfExperiment fExperiment = null;
-
-
- public static void main(final String[] args) {
-
- try {
- // OUr experiment will contains ONE trace
- final ITmfTrace[] traces = new ITmfTrace[1];
- traces[0] = new LTTngTrace(null, TRACE_PATH);
- // Create our new experiment
- fExperiment = new TmfExperiment(LttngEvent.class, "Headless", traces);
-
-
- // Create a new time range from -infinity to +infinity
- // That way, we will get "everything" in the trace
- final LttngTimestamp ts1 = new LttngTimestamp(Long.MIN_VALUE);
- final LttngTimestamp ts2 = new LttngTimestamp(Long.MAX_VALUE);
- final TmfTimeRange tmpRange = new TmfTimeRange(ts1, ts2);
-
-
- // We will issue a request for each "pass".
- // TMF will then process them synchonously
- TmfTraceTest request = null;
- for ( int x=0; x<NB_OF_PASS; x++ ) {
- request = new TmfTraceTest(LttngEvent.class, tmpRange, Integer.MAX_VALUE );
- fExperiment.sendRequest(request);
- nbPassDone++;
- }
- }
- catch (final NullPointerException e) {
- // Silently dismiss Null pointer exception
- // The only way to "finish" the threads in TMF is by crashing them with null
- }
- catch (final Exception e) {
- e.printStackTrace();
- }
-
- }
-
- @Override
- public void handleData(final ITmfEvent event) {
- super.handleData(event);
- if ( (event != null) && (PARSE_EVENTS) ) {
- event.getContent().getFields();
-
- // *** Uncomment the following to print the parsed content
- // Warning : this is VERY intensive
- //
- //System.out.println((LttngEvent)evt[0]);
- //System.out.println(((LttngEvent)evt[0]).getContent());
-
- nbEvent++;
- }
- }
-
- @Override
- public void handleCompleted() {
- if ( nbPassDone >= NB_OF_PASS ) {
- try {
- System.out.println("Nb events : " + nbEvent);
-
- fExperiment.sendRequest(null);
- }
- catch (final Exception e) {}
- }
- }
-
- @Override
- public void handleSuccess() {
- }
-
- @Override
- public void handleFailure() {
- }
-
- @Override
- public void handleCancel() {
- }
-
-}
diff --git a/lttng/org.eclipse.linuxtools.lttng.core.tests/src/org/eclipse/linuxtools/lttng/core/tests/jni/AllJniTests.java b/lttng/org.eclipse.linuxtools.lttng.core.tests/src/org/eclipse/linuxtools/lttng/core/tests/jni/AllJniTests.java
deleted file mode 100644
index 7f9f659d7b..0000000000
--- a/lttng/org.eclipse.linuxtools.lttng.core.tests/src/org/eclipse/linuxtools/lttng/core/tests/jni/AllJniTests.java
+++ /dev/null
@@ -1,20 +0,0 @@
-
-package org.eclipse.linuxtools.lttng.core.tests.jni;
-
-import junit.framework.TestCase;
-import junit.framework.TestSuite;
-
-@SuppressWarnings("nls")
-public final class AllJniTests extends TestCase {
- public static TestSuite suite() {
- TestSuite suite = new TestSuite("Testing JNI");
-
- suite.addTestSuite(JniTraceTest.class);
- suite.addTestSuite(JniTracefileTest.class);
- suite.addTestSuite(JniEventTest.class);
- suite.addTestSuite(JniMarkerTest.class);
- suite.addTestSuite(JniMarkerFieldTest.class);
-
- return suite;
- }
-} \ No newline at end of file
diff --git a/lttng/org.eclipse.linuxtools.lttng.core.tests/src/org/eclipse/linuxtools/lttng/core/tests/jni/Combinations.java b/lttng/org.eclipse.linuxtools.lttng.core.tests/src/org/eclipse/linuxtools/lttng/core/tests/jni/Combinations.java
deleted file mode 100644
index d31264ed12..0000000000
--- a/lttng/org.eclipse.linuxtools.lttng.core.tests/src/org/eclipse/linuxtools/lttng/core/tests/jni/Combinations.java
+++ /dev/null
@@ -1,177 +0,0 @@
-/**
- *
- */
-package org.eclipse.linuxtools.lttng.core.tests.jni;
-
-import junit.framework.TestCase;
-import java.util.HashMap;
-import java.util.HashSet;
-import java.util.List;
-import java.util.Set;
-
-import org.eclipse.linuxtools.internal.lttng.jni.exception.JniException;
-import org.eclipse.linuxtools.lttng.jni.JniEvent;
-import org.eclipse.linuxtools.lttng.jni.JniMarker;
-import org.eclipse.linuxtools.lttng.jni.JniMarkerField;
-import org.eclipse.linuxtools.lttng.jni.JniTrace;
-import org.eclipse.linuxtools.lttng.jni.factory.JniTraceFactory;
-
-
-/**
- * @author alvaro
- *
- */
-@SuppressWarnings("nls")
-public class Combinations extends TestCase {
-
- private final static boolean printLttDebug = false;
-
- private final static String tracepath="traceset/trace-618339events-1293lost-1cpu";
- private final static String eventName = "syscall_state";
-
- private final static Integer expect_syscall_entry = 195596;
- private final static Integer expect_syscall_exit = 195598;
- private final static Integer expect_core_marker_format = 177;
- private final static Integer expect_core_marker_id = 177;
-
- // private static final String LTT_EVENT_SYSCALL_ENTRY = "syscall_entry";
- // private static final String LTT_EVENT_SYSCALL_EXIT = "syscall_exit";
- // private static final String LTT_EVENT_TRAP_ENTRY = "trap_entry";
- // private static final String LTT_EVENT_TRAP_EXIT = "trap_exit";
- // private static final String LTT_EVENT_PAGE_FAULT_ENTRY =
- // "page_fault_entry";
- // private static final String LTT_EVENT_PAGE_FAULT_EXIT =
- // "page_fault_exit";
- // private static final String LTT_EVENT_PAGE_FAULT_NOSEM_ENTRY =
- // "page_fault_nosem_entry";
- // private static final String LTT_EVENT_PAGE_FAULT_NOSEM_EXIT =
- // "page_fault_nosem_exit";
- // private static final String LTT_EVENT_IRQ_ENTRY = "irq_entry";
- // private static final String LTT_EVENT_IRQ_EXIT = "irq_exit";
- // private static final String LTT_EVENT_SOFT_IRQ_RAISE = "softirq_raise";
- // private static final String LTT_EVENT_SOFT_IRQ_ENTRY = "softirq_entry";
- // private static final String LTT_EVENT_SOFT_IRQ_EXIT = "softirq_exit";
- // private static final String LTT_EVENT_SCHED_SCHEDULE = "sched_schedule";
- // private static final String LTT_EVENT_PROCESS_FORK = "process_fork";
- // private static final String LTT_EVENT_KTHREAD_CREATE = "kthread_create";
- // private static final String LTT_EVENT_PROCESS_EXIT = "process_exit";
- // private static final String LTT_EVENT_PROCESS_FREE = "process_free";
- // private static final String LTT_EVENT_EXEC = "exec";
- // private static final String LTT_EVENT_PROCESS_STATE = "process_state";
- // private static final String LTT_EVENT_STATEDUMP_END = "statedump_end";
- // private static final String LTT_EVENT_FUNCTION_ENTRY = "function_entry";
- // private static final String LTT_EVENT_FUNCTION_EXIT = "function_exit";
- // private static final String LTT_EVENT_THREAD_BRAND = "thread_brand";
- // private static final String LTT_EVENT_REQUEST_ISSUE =
- // "_blk_request_issue";
- // private static final String LTT_EVENT_REQUEST_COMPLETE =
- // "_blk_request_complete";
- // private static final String LTT_EVENT_LIST_INTERRUPT = "interrupt";
- // private static final String LTT_EVENT_SYS_CALL_TABLE = "sys_call_table";
- // private static final String LTT_EVENT_SOFTIRQ_VEC = "softirq_vec";
- // private static final String LTT_EVENT_KPROBE_TABLE = "kprobe_table";
- // private static final String LTT_EVENT_KPROBE = "kprobe";
-
- // enum EventString {
- // syscall_entry, syscall_exit, trap_entry, trap_exit, page_fault_entry,
- // page_fault_exit, page_fault_nosem_entry, page_fault_nosem_exit,
- // irq_entry, irq_exit, softirq_raise, softirq_entry, softirq_exit,
- // sched_schedule, process_fork, kthread_create, process_exit, process_free,
- // exec, process_state, statedump_end, function_entry, function_exit,
- // thread_brand, _blk_request_issue, blk_request_complete, interrupt,
- // sys_call_table, softirq_vec, kprobe_table, kprobe
- // };
-
- enum EvStateTrans {
- syscall_entry, syscall_exit, trap_entry, trap_exit, page_fault_entry, page_fault_exit, page_fault_nosem_entry, page_fault_nosem_exit, irq_entry, irq_exit, softirq_raise, softirq_entry, softirq_exit, sched_schedule, process_fork, kthread_create, process_exit, process_free, exec, thread_brand
- };
-
- private static Set<String> stateSet;
- static {
- stateSet = new HashSet<String>();
- EvStateTrans[] stateArr = EvStateTrans.values();
- for (EvStateTrans event : stateArr) {
- stateSet.add(event.name());
- }
- }
-
- private JniEvent prepareEventToTest() {
-
- JniEvent tmpEvent = null;
- // This trace should be valid
- try {
- tmpEvent = JniTraceFactory.getJniTrace(tracepath, null, printLttDebug).requestEventByName(eventName);
- } catch (JniException e) {
- }
-
- return tmpEvent;
- }
-
- public void testGetSpecEventFields() {
- JniEvent event = prepareEventToTest();
- JniMarker dmarker = event.requestEventMarker();
- List<JniMarkerField> markers = dmarker.getMarkerFieldsArrayList();
-
- assertNotNull(markers);
- System.out.println("Markers: " + markers);
-
- }
-
- public void testEventsLoop() {
- JniTrace trace = null;
- JniEvent event = null;
- try {
- trace = JniTraceFactory.getJniTrace(tracepath, null, printLttDebug);
- } catch (JniException e) {
- fail("Could not open trace");
- }
-
- HashMap<String, Integer> eventCount = new HashMap<String, Integer>();
- while (true) {
- event = trace.readNextEvent();
- if (event == null) {
- break;
- }
- JniMarker dmarker = event.requestEventMarker();
- assertNotNull(dmarker);
-
- String name = dmarker.getName();
-
- if (eventCount.containsKey(name)) {
- Integer cnt = eventCount.get(name);
- eventCount.put(name, cnt + 1);
- } else {
- eventCount.put(name, 1);
- // Only print state transition states and it's format
- if (stateSet.contains(name)) {
- System.out.println("\nMarker name: " + name + "\nFields:");
-
- Object[] tmpMarkerFields = dmarker.getMarkerFieldsArrayList().toArray();
- String[] fields = new String[tmpMarkerFields.length];
-
- for (int pos = 0; pos < tmpMarkerFields.length; pos++) {
- fields[pos] = ((JniMarkerField) tmpMarkerFields[pos]).getField() + ":" + ((JniMarkerField) tmpMarkerFields[pos]).getFormat();
- }
-
- for (String field : fields) {
- System.out.println(field + " ");
- }
- }
- }
- }
-
- for (String state : eventCount.keySet()) {
- System.out.println(state + " : " + eventCount.get(state));
- }
-
- assertEquals("syscall_entry mismatch", expect_syscall_entry, eventCount
- .get(EvStateTrans.syscall_entry.name()));
- assertEquals("syscall_exit mismatch", expect_syscall_exit, eventCount
- .get(EvStateTrans.syscall_exit.name()));
- assertEquals("core_market_format mismatch", expect_core_marker_format,
- eventCount.get("core_marker_format"));
- assertEquals("core_market_id mismatch", expect_core_marker_id,
- eventCount.get("core_marker_id"));
- }
-
-}
diff --git a/lttng/org.eclipse.linuxtools.lttng.core.tests/src/org/eclipse/linuxtools/lttng/core/tests/jni/JniEventTest.java b/lttng/org.eclipse.linuxtools.lttng.core.tests/src/org/eclipse/linuxtools/lttng/core/tests/jni/JniEventTest.java
deleted file mode 100644
index 7d3815ec59..0000000000
--- a/lttng/org.eclipse.linuxtools.lttng.core.tests/src/org/eclipse/linuxtools/lttng/core/tests/jni/JniEventTest.java
+++ /dev/null
@@ -1,340 +0,0 @@
-
-/*
- Functions tested here :
- public JniEvent(JniEvent oldEvent)
- public JniEvent(long newEventPtr, long newTracefilePtr, HashMap<Integer, JniMarker> newMarkersMap, JniTracefile newParentTracefile) throws JafException
-
- public int readNextEvent()
- public int seekToTime(JniTime seekTime)
- public int seekOrFallBack(JniTime seekTime)
-
- public JniMarker requestEventMarker()
- public String requestEventSource()
- public JniTime requestNextEventTime()
-
- public ArrayList<ParsedContent> parse()
-
- public int getEventMarkerId()
- public JniTime getEventTime()
- public long getEventDataSize()
- public HashMap<Integer, JniMarker> getMarkersMap()
- public long getTracefilePtr()
- public long getEventPtr()
- public int getEventState()
- public JniTracefile getParentTracefile()
-
- public String toString()
- public void printEventInformation()
-*/
-
-
-package org.eclipse.linuxtools.lttng.core.tests.jni;
-
-
-import junit.framework.TestCase;
-
-import org.eclipse.linuxtools.internal.lttng.jni.common.JniTime;
-import org.eclipse.linuxtools.internal.lttng.jni.exception.JniException;
-import org.eclipse.linuxtools.lttng.jni.JniEvent;
-import org.eclipse.linuxtools.lttng.jni.JniTracefile;
-import org.eclipse.linuxtools.lttng.jni.factory.JniTraceFactory;
-
-@SuppressWarnings("nls")
-public class JniEventTest extends TestCase
-{
- private final static boolean printLttDebug = false;
-
- private final static String tracepath="traceset/trace-15316events_nolost_newformat";
- private final static String eventName="kernel0";
-
- private final static int numberOfMarkersInTracefile = 45;
-
- private final static int numberOfparsedFieldsFirstEvent = 1;
- private final static int numberOfparsedFieldsSecondEvent = 3;
-
- private final static int chosenPositionOfFieldsFirstEvent = 1;
- private final static int chosenPositionOfFieldsSecondEvent = 0;
- private final static int chosenPositionOfFieldsAfterSeekEvent = 1;
-
- private final static String chosenNameOfFieldsFirstEvent = "string";
- private final static String chosenNameOfFieldsSecondEvent = "ip";
- private final static String chosenNameOfFieldsThirdEvent = "syscall_id";
-
- private final static String contentOfFieldsFirstEvent = "LTT state dump begin";
- private final static String contentOfFieldsSecondEvent = "0xc142176d";
- private final static long contentOfFieldsThirdEvent = 3L;
-
- private final static int numberOfByteInContent = 4;
-
- private final static long firstEventTimestamp = 13589760262237L;
- private final static long secondEventTimestamp = 13589762149621L;
- private final static long thirdEventTimestamp = 13589762917527L;
-
- private final static long timestampToSeekTest1 = 13589807108560L;
- private final static long timestampAfterSeekTest1 = 13589807116344L;
-
- private final static long timestampToSeekLast = 13589906758692L;
-
- private final static long timestampToSeekTooFarAway = Long.MAX_VALUE;
-
- private JniEvent prepareEventToTest() {
-
- JniEvent tmpEvent = null;
-
- // This trace should be valid
- try {
- tmpEvent = JniTraceFactory.getJniTrace(tracepath, null, printLttDebug).requestEventByName(eventName);
- }
- catch( JniException e) { }
-
- return tmpEvent;
- }
-
-
- public void testEventConstructors() {
- JniTracefile testTracefile = null;
-
- // This trace should be valid and will be used in test
- try {
- testTracefile = JniTraceFactory.getJniTrace(tracepath, null, printLttDebug).requestTracefileByName(eventName);
- }
- catch( JniException e) {
- fail("Could not get trace file");
- }
-
-
- // Test constructor on a wrong marker HashMap
- try {
- testTracefile.allocateNewJniEvent( testTracefile.getCurrentEvent().getEventPtr(), null, testTracefile );
- fail("Construction with wrong marker hashmap should fail!");
- }
- catch( JniException e) {
- }
-
- // Test constructor on a wrong tracefile reference
- try {
- testTracefile.allocateNewJniEvent( testTracefile.getCurrentEvent().getEventPtr(), testTracefile.getTracefileMarkersMap(), null );
- fail("Construction with wrong tracefile reference should fail!");
- }
- catch( JniException e) {
- }
-
- // Finally, test constructor with correct information
- try {
- testTracefile.allocateNewJniEvent( testTracefile.getCurrentEvent().getEventPtr(), testTracefile.getTracefileMarkersMap(), testTracefile );
- }
- catch( JniException e) {
- fail("Construction with correct information failed!");
- }
-
- /*
- // Test copy constructor
- try {
- testEvent1 = new JniEvent( testTracefile.getCurrentEvent() );
- testEvent2 = new JniEvent( testEvent1);
- }
- catch( Exception e) {
- fail("Copy constructor failed!");
- }
- assertEquals("JniEvent timestamp not same after using copy constructor", testEvent1.getEventTime().getTime() , testEvent2.getEventTime().getTime() );
- */
-
- }
-
- public void testPrintAndToString() {
-
- JniEvent testEvent = prepareEventToTest();
-
- // Test printEventInformation
- try {
- testEvent.printEventInformation();
- }
- catch( Exception e) {
- fail("printEventInformation failed!");
- }
-
- // Test ToString()
- assertNotSame("toString returned empty data","",testEvent.toString() );
-
- }
-
- public void testEventDisplacement() {
-
- int readValue = -1;
- int seekValue = -1;
- JniEvent testEvent = prepareEventToTest();
-
- // Test #1 readNextEvent()
- readValue = testEvent.readNextEvent();
- assertSame("readNextEvent() returned error (test #1)",0,readValue);
- assertEquals("readNextEvent() event timestamp is incoherent (test #1)",secondEventTimestamp,testEvent.getEventTime().getTime() );
-
- // Test #2 readNextEvent()
- readValue = testEvent.readNextEvent();
- assertSame("readNextEvent() returned error (test #1)",0,readValue);
- assertEquals("readNextEvent() event timestamp is incoherent (test #1)",thirdEventTimestamp,testEvent.getEventTime().getTime() );
-
-
- // Test #1 of seekToTime()
- seekValue = testEvent.seekToTime(new JniTime(timestampToSeekTest1) );
- assertSame("seekToTime() returned error (test #1)",0,seekValue);
- // Read SHOULD NOT be performed after a seek!
- assertEquals("readNextEvent() event timestamp is incoherent (test #1)",timestampToSeekTest1,testEvent.getEventTime().getTime() );
-
- readValue = testEvent.readNextEvent();
- assertEquals("readNextEvent() event timestamp is incoherent (test #1)",timestampAfterSeekTest1,testEvent.getEventTime().getTime() );
-
-
- // Test #2 of seekToTime()
- seekValue = testEvent.seekToTime(new JniTime(timestampToSeekLast) );
- assertSame("seekToTime() returned error (test #2)",0,seekValue);
- // Read SHOULD NOT be performed after a seek!
- assertEquals("readNextEvent() event timestamp is incoherent (test #2)",timestampToSeekLast,testEvent.getEventTime().getTime() );
-
- // Read AFTER the last event should bring an error
- readValue = testEvent.readNextEvent();
- assertNotSame("readNextEvent() AFTER last event should return error (test #2)",0,readValue);
-
-
- // Test to see if we can seek back
- seekValue = testEvent.seekToTime(new JniTime(firstEventTimestamp) );
- assertSame("seekToTime() returned error (test seek back)",0,seekValue);
- // Read SHOULD NOT be performed after a seek!
- assertEquals("readNextEvent() event timestamp is incoherent (test seek back)",firstEventTimestamp,testEvent.getEventTime().getTime() );
-
-
- // Test #1 of seekOrFallBack() (seek within range)
- seekValue = testEvent.seekOrFallBack(new JniTime(timestampToSeekTest1) );
- assertSame("seekToTime() returned error (test #1)",0,seekValue);
- // Read SHOULD NOT be performed after a seek!
- assertEquals("readNextEvent() event timestamp is incoherent (test #1)",timestampToSeekTest1,testEvent.getEventTime().getTime() );
-
- // Test #2 of seekOrFallBack() (seek out of range, should fall back)
- seekValue = testEvent.seekOrFallBack(new JniTime(timestampToSeekTooFarAway) );
- assertNotSame("seekOrFallBack() should return an error (test #2)",0,seekValue);
- // The read should return the "last" value as we seek back
- assertEquals("readNextEvent() event timestamp is incoherent (test #2)",timestampToSeekTest1,testEvent.getEventTime().getTime() );
- }
-
- public void testGetSet() {
-
- JniEvent testEvent = prepareEventToTest();
-
- // Test that all Get/Set return data
- assertNotSame("getEventMarkerId is 0",0,testEvent.getEventMarkerId() );
-
- // JniTime should never be null
- assertNotNull("getEventTime returned null", testEvent.getEventTime() );
-
- assertNotSame("getEventDataSize is 0",0,testEvent.getEventDataSize() );
-
- // Test that the marker map is not null
- assertNotSame("getMarkersMap is null",null,testEvent.getMarkersMap() );
- // Also check that the map contain some data
- assertSame("getMarkersMap returned an unexpected number of markers",numberOfMarkersInTracefile,testEvent.getMarkersMap().size() );
-
- assertNotSame("getTracefilePtr is 0",0,testEvent.getTracefilePtr() );
- assertNotSame("getEventPtr is 0",0,testEvent.getEventPtr() );
- // State 0 (EOK) means the event is in a sane state
- assertSame("getEventState is not EOK",0,testEvent.getEventState() );
-
- // ParentTracefile should never be null
- assertNotNull("getParentTracefile returned null", testEvent.getParentTracefile() );
- }
-
- public void testRequestFunctions() {
-
- JniEvent testEvent = prepareEventToTest();
-
- // Test requestEventMarker(). Should return an unique marker
- assertNotNull("requestEventMarker returned null",testEvent.requestEventMarker() );
-
- // Test requestEventSource()
- assertNotSame("requestEventSource is empty","",testEvent.requestEventSource() );
-
- // Test requestEventContent()
- assertNotNull("requestEventContent returned null",testEvent.requestEventContent() );
-
- // Also check that the byte array contain some data
- assertSame("requestEventContent returned an unexpected number of markers",numberOfByteInContent,testEvent.requestEventContent().length );
-
- }
-
- public void testParseAllFieldsFunctions() {
-
- JniEvent testEvent = prepareEventToTest();
-
- // Test parse()
- assertNotNull("parseAllFields returned null",testEvent.parseAllFields() );
- // Parse shouldn't be empty
- assertSame("parseAllFields returned an unexpected number of parsed fields",numberOfparsedFieldsFirstEvent,testEvent.parseAllFields().size() );
-
- // MORE PARSING TESTS
- // We will perform several more unit tests about parsing as it is very important
- // All those below use the same call as in the displacement test
- // Test #1 readNextEvent()
- testEvent.readNextEvent();
- assertNotNull("parseAllFields returned null",testEvent.parseAllFields() );
- assertSame("parseAllFields returned an unexpected number of parsed fields",numberOfparsedFieldsSecondEvent,testEvent.parseAllFields().size() );
- // Test #2 readNextEvent()
- testEvent.readNextEvent();
- assertNotNull("parseAllFields returned null",testEvent.parseAllFields() );
-
- // Test #1 of seekToTime()
- testEvent.seekToTime(new JniTime(timestampToSeekTest1) );
- // Read need to be perform after a seek!
- testEvent.readNextEvent();
- assertNotNull("parseAllFields returned null",testEvent.parseAllFields() );
- testEvent.readNextEvent();
- assertNotNull("parseAllFields returned null",testEvent.parseAllFields() );
-
- // Test #2 of seekToTime()
- testEvent.seekToTime(new JniTime(timestampToSeekLast) );
- // Read need to be perform after a seek!
- testEvent.readNextEvent();
- assertNotNull("parseAllFields returned null",testEvent.parseAllFields() );
-
- // Test to see if we can seek back
- testEvent.seekToTime(new JniTime(firstEventTimestamp) );
- // Read need to be perform after a seek!
- testEvent.readNextEvent();
- assertNotNull("parseAllFields returned null",testEvent.parseAllFields() );
- }
-
- public void testParseFieldByIdFunctions() {
- JniEvent testEvent = prepareEventToTest();
-
- // Test parse()
- assertNotNull("parseFieldById returned null",testEvent.parseFieldById(0) );
-
- testEvent.readNextEvent();
- assertNotNull("parseFieldById returned null",testEvent.parseFieldById(chosenPositionOfFieldsFirstEvent) );
- assertEquals("Content return by parseFieldById is invalid",contentOfFieldsFirstEvent, testEvent.parseFieldById(chosenPositionOfFieldsFirstEvent) );
- assertEquals("Content return by parseFieldByName is invalid",contentOfFieldsFirstEvent, testEvent.parseFieldByName(chosenNameOfFieldsFirstEvent) );
-
- // MORE PARSING TESTS
- // We will perform several more unit tests about parsing as it is very important
- // All those below use the same call as in the displacement test
- // Test #1 readNextEvent()
- testEvent.readNextEvent();
- assertNotNull("parseFieldById returned null",testEvent.parseFieldById(chosenPositionOfFieldsSecondEvent) );
- assertEquals("Content return by parseFieldById is invalid", contentOfFieldsSecondEvent, testEvent.parseFieldById(chosenPositionOfFieldsSecondEvent).toString() );
- assertEquals("Content return by parseFieldByName is invalid",contentOfFieldsSecondEvent, testEvent.parseFieldByName(chosenNameOfFieldsSecondEvent).toString() );
-
- // Test #1 of seekToTime()
- testEvent.seekToTime(new JniTime(timestampToSeekTest1) );
- // Read need to be perform after a seek!
- testEvent.readNextEvent();
- assertNotNull("parseFieldById returned null",testEvent.parseFieldById(chosenPositionOfFieldsAfterSeekEvent) );
- assertEquals("Content return by parseFieldById is invalid",contentOfFieldsThirdEvent, testEvent.parseFieldById(chosenPositionOfFieldsAfterSeekEvent) );
- assertEquals("Content return by parseFieldByName is invalid",contentOfFieldsThirdEvent, testEvent.parseFieldByName(chosenNameOfFieldsThirdEvent) );
-
- // Test to see if we can seek back
- testEvent.seekToTime(new JniTime(firstEventTimestamp) );
- // Read need to be perform after a seek!
- testEvent.readNextEvent();
- assertNotNull("parseFieldById returned null",testEvent.parseFieldById(chosenPositionOfFieldsFirstEvent) );
- assertEquals("Content return by parseFieldById is invalid",contentOfFieldsFirstEvent, testEvent.parseFieldById(chosenPositionOfFieldsFirstEvent) );
- assertEquals("Content return by parseFieldByName is invalid",contentOfFieldsFirstEvent, testEvent.parseFieldByName(chosenNameOfFieldsFirstEvent) );
- }
-}
diff --git a/lttng/org.eclipse.linuxtools.lttng.core.tests/src/org/eclipse/linuxtools/lttng/core/tests/jni/JniMarkerFieldTest.java b/lttng/org.eclipse.linuxtools.lttng.core.tests/src/org/eclipse/linuxtools/lttng/core/tests/jni/JniMarkerFieldTest.java
deleted file mode 100644
index e6b0a6fe46..0000000000
--- a/lttng/org.eclipse.linuxtools.lttng.core.tests/src/org/eclipse/linuxtools/lttng/core/tests/jni/JniMarkerFieldTest.java
+++ /dev/null
@@ -1,112 +0,0 @@
-
-package org.eclipse.linuxtools.lttng.core.tests.jni;
-
-
-import junit.framework.TestCase;
-
-import org.eclipse.linuxtools.internal.lttng.jni.exception.JniException;
-import org.eclipse.linuxtools.lttng.jni.JniEvent;
-import org.eclipse.linuxtools.lttng.jni.JniMarker;
-import org.eclipse.linuxtools.lttng.jni.JniMarkerField;
-import org.eclipse.linuxtools.lttng.jni.factory.JniTraceFactory;
-
-/*
- Functions tested here :
- public JniMarkerField(JniMarkerField oldMarkerField)
- public JniMarkerField(long newMarkerPtr) throws JniException
-
- public String getField()
- public String getFormat()
-
- public String toString()
- public void printMarkerFieldInformation()
-*/
-
-@SuppressWarnings("nls")
-public class JniMarkerFieldTest extends TestCase
-{
- private final static boolean printLttDebug = false;
-
- private final static String tracepath="traceset/trace-15316events_nolost_newformat";
- private final static String eventName="kernel0";
-
- private JniMarkerField prepareMarkerFieldToTest() {
-
- JniEvent tmpEvent = null;
- JniMarkerField tmpMarkerField = null;
-
- // This trace should be valid
- // We will read the first 2 event to have something interesting to test on
- try {
- tmpEvent = JniTraceFactory.getJniTrace(tracepath, null, printLttDebug).requestEventByName(eventName);
- tmpEvent.readNextEvent();
- tmpEvent.readNextEvent();
-
- // Use the first field
- tmpMarkerField = tmpEvent.requestEventMarker().getMarkerFieldsArrayList().get(0);
- }
- catch( JniException e) { }
-
- return tmpMarkerField;
- }
-
- public void testEventConstructors() {
-
- JniMarker tmpMarker = null;
-
- // This event should be valid and will be used in test
- try {
- tmpMarker = JniTraceFactory.getJniTrace(tracepath, null, printLttDebug).requestEventByName(eventName).requestEventMarker();
- }
- catch( JniException e) {
- fail("Could not get marker");
- }
-
- // Test constructor with pointer on a correct pointer
- try {
- tmpMarker.allocateNewJniMarkerField( tmpMarker.getMarkerFieldsArrayList().get(0).getMarkerFieldPtr() );
- }
- catch( JniException e) {
- fail("Construction with correct pointer failed!");
- }
-
- /*
- // Test copy constructor
- try {
- tmpMarkerField1 = new JniMarkerField( tmpMarker.getMarkerFieldsArrayList().get(0) );
- tmpMarkerField2 = new JniMarkerField( tmpMarkerField1);
- }
- catch( Exception e) {
- fail("Copy constructor failed!");
- }
- assertSame("JniMarker name not same after using copy constructor", tmpMarkerField1.getField() , tmpMarkerField2.getField());
- */
-
- }
-
- public void testGetSet() {
-
- JniMarkerField testMarkerField = prepareMarkerFieldToTest();
-
- // Test that all Get/Set return data
- assertNotSame("getName is empty","",testMarkerField.getField() );
- assertNotSame("getFormat is empty","",testMarkerField.getFormat() );
- assertNotSame("getMarkerFieldPtr is 0",0,testMarkerField.getMarkerFieldPtr() );
- }
-
- public void testPrintAndToString() {
-
- JniMarkerField testMarkerField = prepareMarkerFieldToTest();
-
- // Test printMarkerInformation
- try {
- testMarkerField.printMarkerFieldInformation();
- }
- catch( Exception e) {
- fail("printMarkerFieldInformation failed!");
- }
-
- // Test ToString()
- assertNotSame("toString returned empty data","",testMarkerField.toString() );
- }
-}
diff --git a/lttng/org.eclipse.linuxtools.lttng.core.tests/src/org/eclipse/linuxtools/lttng/core/tests/jni/JniMarkerTest.java b/lttng/org.eclipse.linuxtools.lttng.core.tests/src/org/eclipse/linuxtools/lttng/core/tests/jni/JniMarkerTest.java
deleted file mode 100644
index 30aed0b6a3..0000000000
--- a/lttng/org.eclipse.linuxtools.lttng.core.tests/src/org/eclipse/linuxtools/lttng/core/tests/jni/JniMarkerTest.java
+++ /dev/null
@@ -1,120 +0,0 @@
-
-package org.eclipse.linuxtools.lttng.core.tests.jni;
-
-
-import junit.framework.TestCase;
-
-import org.eclipse.linuxtools.internal.lttng.jni.exception.JniException;
-import org.eclipse.linuxtools.lttng.jni.JniEvent;
-import org.eclipse.linuxtools.lttng.jni.JniMarker;
-import org.eclipse.linuxtools.lttng.jni.factory.JniTraceFactory;
-
-/*
- Functions tested here :
- public JniMarker(JniMarker oldMarker)
- public JniMarker(long newMarkerPtr) throws JniException
-
- public String[] requestMarkerFieldToString()
-
- public String getName()
- public String getFormatOverview()
- public ArrayList<JniMarkerField> getMarkerFieldArrayList()
-
- public String toString()
- public void printMarkerInformation()
-*/
-
-@SuppressWarnings("nls")
-public class JniMarkerTest extends TestCase
-{
- private final static boolean printLttDebug = false;
-
- private final static String tracepath="traceset/trace-15316events_nolost_newformat";
- private final static String eventName="kernel0";
-
- private final static int numberOfMarkersFieldInMarker = 3;
-
- private JniMarker prepareMarkerToTest() {
-
- JniEvent tmpEvent = null;
- JniMarker tmpMarker = null;
-
- // This trace should be valid
- // We will read the second event to have something interesting to test on
- try {
- tmpEvent = JniTraceFactory.getJniTrace(tracepath, null, printLttDebug).requestEventByName(eventName);
- tmpEvent.readNextEvent();
-
- tmpMarker = tmpEvent.requestEventMarker();
- }
- catch( JniException e) { }
-
- return tmpMarker;
- }
-
- public void testEventConstructors() {
-
- JniEvent tmpEvent = null;
-
- // This event should be valid and will be used in test
- try {
- tmpEvent = JniTraceFactory.getJniTrace(tracepath, null, printLttDebug).requestEventByName(eventName);
- }
- catch( JniException e) {
- fail("Could not find event");
- }
-
- // Test constructor with pointer on a correct pointer
- try {
- tmpEvent.getParentTracefile().allocateNewJniMarker( tmpEvent.requestEventMarker().getMarkerPtr() );
- }
- catch( JniException e) {
- fail("Construction with correct pointer failed!");
- }
-
- /*
- // Test copy constructor
- try {
- testMarker1 = new JniMarker( tmpEvent.requestEventMarker().getMarkerPtr() );
- testMarker2 = new JniMarker( testMarker1);
- }
- catch( JniException e) {
- fail("Copy constructor failed!");
- }
- assertSame("JniMarker name not same after using copy constructor", testMarker1.getName() , testMarker2.getName());
- */
-
- }
-
- public void testGetSet() {
-
- JniMarker testMarker = prepareMarkerToTest();
-
- // Test that all Get/Set return data
- assertNotSame("getName is empty","",testMarker.getName() );
- assertNotSame("getFormat is empty","",testMarker.getFormatOverview() );
-
- assertNotSame("getMarkerFieldArrayList is null",null,testMarker.getMarkerFieldsArrayList() );
- // Also check that the map contain a certains number of data
- assertSame("getMarkerFieldArrayList returned an unexpected number of markers",numberOfMarkersFieldInMarker,testMarker.getMarkerFieldsArrayList().size() );
-
- assertNotSame("getMarkerPtr is 0",0,testMarker.getMarkerPtr() );
- }
-
- public void testPrintAndToString() {
-
- JniMarker testMarker = prepareMarkerToTest();
-
- // Test printMarkerInformation
- try {
- testMarker.printMarkerInformation();
- }
- catch( Exception e) {
- fail("printMarkerInformation failed!");
- }
-
- // Test ToString()
- assertNotSame("toString returned empty data","",testMarker.toString() );
-
- }
-}
diff --git a/lttng/org.eclipse.linuxtools.lttng.core.tests/src/org/eclipse/linuxtools/lttng/core/tests/jni/JniTraceTest.java b/lttng/org.eclipse.linuxtools.lttng.core.tests/src/org/eclipse/linuxtools/lttng/core/tests/jni/JniTraceTest.java
deleted file mode 100644
index c4606eb194..0000000000
--- a/lttng/org.eclipse.linuxtools.lttng.core.tests/src/org/eclipse/linuxtools/lttng/core/tests/jni/JniTraceTest.java
+++ /dev/null
@@ -1,392 +0,0 @@
-package org.eclipse.linuxtools.lttng.core.tests.jni;
-
-import org.eclipse.linuxtools.internal.lttng.jni.common.JniTime;
-import org.eclipse.linuxtools.internal.lttng.jni.exception.JniException;
-import org.eclipse.linuxtools.lttng.jni.JniEvent;
-import org.eclipse.linuxtools.lttng.jni.JniTrace;
-import org.eclipse.linuxtools.lttng.jni.factory.JniTraceFactory;
-
-import junit.framework.TestCase;
-
-/*
- * Functions tested here : public JniTrace() public JniTrace(JniTrace oldTrace)
- * public JniTrace(String newpath) throws JafException public JniTrace(long
- * newPtr) throws JafException
- *
- * public void openTrace(String newPath) throws JafException public void
- * openTrace() throws JafException public void closeTrace( ) throws JafException
- *
- * public JniEvent readNextEvent() public JniEvent findNextEvent() public
- * JniEvent seekAndRead(JniTime seekTime) public void seekToTime(JniTime
- * seekTime)
- *
- * public JniTracefile requestTracefileByName(String tracefileName) public
- * JniEvent requestEventByName(String tracefileName) public ArrayList<Location>
- * requestTraceLocation()
- *
- * public String getTracepath() public int getCpuNumber() public long
- * getArchType() public long getArchVariant() public short getArchSize() public
- * short getLttMajorVersion() public short getLttMinorVersion() public short
- * getFlightRecorder() public long getFreqScale() public long getStartFreq()
- * public long getStartTimestampCurrentCounter() public long getStartMonotonic()
- * public JniTime getStartTime() pubilc JniTime getEndTime() public JniTime
- * getStartTimeFromTimestampCurrentCounter() public HashMap<String,
- * JniTracefile> getTracefilesMap() public long getTracePtr()
- *
- * public void printAllTracefilesInformation() public void
- * printTraceInformation()
- *
- * public String toString()
- */
-
-@SuppressWarnings("nls")
-public class JniTraceTest extends TestCase {
-
- private final static boolean printLttDebug = false;
-
- private final static String tracepath1 = "traceset/trace-15316events_nolost_newformat";
- private final static String tracepath2 = "traceset/trace-15471events_nolost_newformat";
- private final static String wrongTracePath = "/somewhere/that/does/not/exist";
-
- private final static String correctTracefileName = "kernel0";
- private final static String wrongTracefileName = "somethingThatDoesNotExists";
-
- private final static int numberOfTracefilesInTrace = 16;
-
- private final static long firstEventTimestamp = 13589759412128L;
- private final static String firstEventTracefilename = "metadata0";
-
- private final static long secondEventTimestamp = 13589759419903L;
- private final static String secondEventName = "metadata";
-
- private final static long thirdEventTimestamp = 13589759422785L;
-
- private final static long eventTimestampAfterMetadata = 13589760262237L;
- private final static String eventTracefilenameAfterMetadata = "kernel0";
-
- private final static long timestampToSeekTest1 = 13589821608319L;
- private final static String eventNameAfterSeekTest1 = "kernel";
- private final static String eventTracefilenameAfterSeekTest1 = "kernel0";
- private final static String nextEventNameAfterSeekTest1 = "vm_state";
-
- private final static long timestampToSeekTest2 = 13589861889350L;
- private final static String eventNameAfterSeekTest2 = "fs";
- private final static String nextEventNameAfterSeekTest2 = "kernel";
-
- private final static long timestampToSeekLast = 13589906758692L;
- private final static String eventNameAfterSeekLast = "kernel";
-
- private JniTrace prepareTraceToTest() {
- JniTrace tmpTrace = null;
-
- // This trace should be valid
- try {
- tmpTrace = JniTraceFactory.getJniTrace(tracepath1, null, printLttDebug);
- //tmpTrace.seekToTime(new JniTime(0L));
- } catch (JniException e) {
- }
-
- return tmpTrace;
- }
-
- public void testTraceConstructors() {
- // Test constructor with argument on a wrong tracepath
- try {
- JniTraceFactory.getJniTrace(wrongTracePath, null, printLttDebug);
- fail("Construction with wrong tracepath should fail!");
- } catch (JniException e) {
- }
-
- // Test constructor with argument on a correct tracepath
- try {
- JniTraceFactory.getJniTrace(tracepath1, null, printLttDebug);
- } catch (JniException e) {
- fail("Construction with correct tracepath failed!");
- }
- }
-
- public void testTraceOpenClose() {
-
- JniTrace testTrace = prepareTraceToTest(); // This trace should be valid
-
- // test the constructor with arguments passing a wrong tracepath
- try {
- testTrace.openTrace(wrongTracePath);
- fail("Open with wrong tracepath should fail!");
- } catch (JniException e) {
- }
-
- // Test open with a correct tracepath
- try {
- testTrace.openTrace(tracepath1);
- assertNotSame("getTracepath is empty after open", "", testTrace.getTracepath());
- } catch (JniException e) {
- fail("Open with a correct tracepath failed!");
- }
-
- // Test to open a trace already opened
- try {
- testTrace.openTrace(tracepath1);
- testTrace.openTrace(tracepath2);
- assertNotSame("getTracepath is empty after open", "", testTrace.getTracepath());
- } catch (JniException e) {
- fail("Reopen of a trace failed!");
- }
-
- // Test to open a trace already opened, but with a wrong tracepath
- try {
- testTrace.openTrace(tracepath1);
- testTrace.openTrace(wrongTracePath);
- fail("Reopen with wrong tracepath should fail!");
- } catch (JniException e) {
- }
- }
-
- public void testGetSet() {
-
- JniTrace testTrace = prepareTraceToTest();
-
- // Test that all Get/Set return data
- assertNotSame("getTracepath is empty", "", testTrace.getTracepath());
- assertNotSame("getCpuNumber is 0", 0, testTrace.getCpuNumber());
- assertNotSame("getArchType is 0", 0, testTrace.getArchType());
- assertNotSame("getArchVariant is 0", 0, testTrace.getArchVariant());
- assertNotSame("getArchSize is 0", 0, testTrace.getArchSize());
- assertNotSame("getLttMajorVersion is 0", 0, testTrace.getLttMajorVersion());
- assertNotSame("getLttMinorVersion is 0", 0, testTrace.getLttMinorVersion());
- assertNotSame("getFlightRecorder is 0", 0, testTrace.getFlightRecorder());
- assertNotSame("getFreqScale is 0", 0, testTrace.getFreqScale());
- assertNotSame("getStartFreq is 0", 0, testTrace.getStartFreq());
- assertNotSame("getStartTimestampCurrentCounter is 0", 0,
- testTrace.getStartTimestampCurrentCounter());
- assertNotSame("getStartMonotonic is 0", 0, testTrace.getStartMonotonic());
- assertNotSame("getStartTime is null", null, testTrace.getStartTime());
- assertNotSame("getEndTime() is null", null, testTrace.getEndTime());
- assertNotSame("getStartTimeNoAdjustement is null", null,
- testTrace.getStartTimeNoAdjustement());
- assertNotSame("getTracefilesMap is null", null, testTrace.getTracefilesMap());
- // Also check that the map contain some tracefiles
- assertSame("getTracefilesMap returned an unexpected number of tracefiles",
- numberOfTracefilesInTrace, testTrace.getTracefilesMap().size());
- assertNotSame("getTracePtr is 0", 0, testTrace.getTracePtr());
-
- }
-
- public void testPrintAndToString() {
-
- JniTrace testTrace = prepareTraceToTest();
-
- // Test printTraceInformation
- try {
- testTrace.printTraceInformation();
- } catch (Exception e) {
- fail("printTraceInformation failed!");
- }
-
- // Test ToString()
- assertNotSame("toString returned empty data", "", testTrace.toString());
- }
-
- public void testRequestFunctions() {
-
- JniTrace testTrace = prepareTraceToTest();
-
- // Test requestTracefileByName()
- assertNotSame("requestTracefileByName returned null", null,
- testTrace.requestTracefileByName(correctTracefileName));
- assertSame("requestTracefileByName returned content on non existent name", null,
- testTrace.requestTracefileByName(wrongTracefileName));
-
- // Test requestEventByName()
- assertNotSame("requestEventByName returned null", null,
- testTrace.requestEventByName(correctTracefileName));
- assertSame("requestEventByName returned content on non existent name", null,
- testTrace.requestEventByName(wrongTracefileName));
- }
-
- public void testEventDisplacement() {
-
- JniEvent testEvent = null;
- JniTrace testTrace = prepareTraceToTest();
-
- // Test readNextEvent()
- testEvent = testTrace.readNextEvent();
- assertNotSame("readNextEvent() returned null", null, testEvent);
- assertEquals("readNextEvent() timestamp is incoherent", firstEventTimestamp, testEvent
- .getEventTime().getTime());
-
- // Test findNextEvent()
- testEvent = testTrace.findNextEvent();
- assertNotSame("findNextEvent() returned null", null, testEvent);
- assertEquals("findNextEvent() name is incoherent", secondEventName, testEvent
- .getParentTracefile().getTracefileName());
-
- // Test readNextEvent()
- testEvent = testTrace.readNextEvent();
- assertNotSame("readNextEvent() returned null", null, testEvent);
- assertEquals("readNextEvent() timestamp is incoherent", secondEventName, testEvent
- .getParentTracefile().getTracefileName());
-
- // Tests below are for seekAndRead()
- // After, we will perform the same operation for seekTime
- //
- // Test #1 of seekAndRead()
- testEvent = testTrace.seekAndRead(new JniTime(timestampToSeekTest1));
- assertNotSame("seekAndRead(time) returned null (test #1)", null, testEvent);
- assertEquals("seekAndRead(time) timestamp is incoherent (test #1)", timestampToSeekTest1,
- testEvent.getEventTime().getTime());
- assertEquals("event name after seekAndRead(time) is incoherent (test #1)",
- eventNameAfterSeekTest1, testEvent.getParentTracefile().getTracefileName());
- // Test that the next event after seek in the one we expect
- testEvent = testTrace.readNextEvent();
- assertEquals("readNextEvent() name after seekAndRead(time) is incoherent (test #1)",
- nextEventNameAfterSeekTest1, testEvent.getParentTracefile()
- .getTracefileName());
-
- // Test #2 of seekAndRead()
- testEvent = testTrace.seekAndRead(new JniTime(timestampToSeekTest2));
- assertNotSame("seekAndRead(time) returned null (test #2)", null, testEvent);
- assertEquals("seekAndRead(time) timestamp is incoherent (test #2)", timestampToSeekTest2,
- testEvent.getEventTime().getTime());
- assertEquals("event name after seekAndRead(time) is incoherent (test #2)",
- eventNameAfterSeekTest2, testEvent.getParentTracefile().getTracefileName());
- // Test that the next event after seek in the one we expect
- testEvent = testTrace.readNextEvent();
- assertEquals("readNextEvent() name after seekAndRead(time) is incoherent (test #2)",
- nextEventNameAfterSeekTest2, testEvent.getParentTracefile()
- .getTracefileName());
-
- // Seek to the LAST event of the trace
- testEvent = testTrace.seekAndRead(new JniTime(timestampToSeekLast));
- assertNotSame("seekAndRead(time) returned null ", null, testEvent);
- assertEquals("seekAndRead(time) timestamp is incoherent ", timestampToSeekLast, testEvent
- .getEventTime().getTime());
- assertEquals("event name after seekTime(time) is incoherent ", eventNameAfterSeekLast,
- testEvent.getParentTracefile().getTracefileName());
- // Test that the next event is NULL (end of the trace)
- testEvent = testTrace.readNextEvent();
- assertSame("seekAndRead(time) returned null ", null, testEvent);
-
- // Make sure we can seek back
- testEvent = testTrace.seekAndRead(new JniTime(firstEventTimestamp));
- assertNotSame("seekAndRead(time) to seek back returned null", null, testEvent);
- assertEquals("seekAndRead(time) timestamp after seek back is incoherent",
- firstEventTimestamp, testEvent.getEventTime().getTime());
-
- // Tests below are for seekToTime()
- // These are the same test as seekAndRead() for a readNextEvent() should be performed after seek
- //
- // Test #1 of seekToTime()
- testTrace.seekToTime(new JniTime(timestampToSeekTest1));
- testEvent = testTrace.readNextEvent();
- assertNotSame("seekToTime(time) returned null (test #1)", null, testEvent);
- assertEquals("seekToTime(time) timestamp is incoherent (test #1)", timestampToSeekTest1,
- testEvent.getEventTime().getTime());
- assertEquals("event name after seekTime(time) is incoherent (test #1)",
- eventNameAfterSeekTest1, testEvent.getParentTracefile().getTracefileName());
- // Test that the next event after seek in the one we expect
- testEvent = testTrace.readNextEvent();
- assertEquals("readNextEvent() name after seekToTime(time) is incoherent (test #1)",
- nextEventNameAfterSeekTest1, testEvent.getParentTracefile()
- .getTracefileName());
-
- // Test #2 of seekToTime()
- testTrace.seekToTime(new JniTime(timestampToSeekTest2));
- testEvent = testTrace.readNextEvent();
- assertNotSame("seekToTime(time) returned null (test #2)", null, testEvent);
- assertEquals("seekToTime(time) timestamp is incoherent (test #2)", timestampToSeekTest2,
- testEvent.getEventTime().getTime());
- assertEquals("event name after seekTime(time) is incoherent (test #2)",
- eventNameAfterSeekTest2, testEvent.getParentTracefile().getTracefileName());
- // Test that the next event after seek in the one we expect
- testEvent = testTrace.readNextEvent();
- assertEquals("readNextEvent() name after seekToTime(time) is incoherent (test #2)",
- nextEventNameAfterSeekTest2, testEvent.getParentTracefile()
- .getTracefileName());
-
- // Seek to the LAST event of the trace
- testTrace.seekToTime(new JniTime(timestampToSeekLast));
- testEvent = testTrace.readNextEvent();
- assertNotSame("seekToTime(time) returned null ", null, testEvent);
- assertEquals("seekToTime(time) timestamp is incoherent ", timestampToSeekLast, testEvent
- .getEventTime().getTime());
- assertEquals("event name after seekTime(time) is incoherent ", eventNameAfterSeekLast,
- testEvent.getParentTracefile().getTracefileName());
- // Test that the next event is NULL (end of the trace)
- testEvent = testTrace.readNextEvent();
- assertSame("seekToTime(time) returned null ", null, testEvent);
-
- // Make sure we can seek back
- testTrace.seekToTime(new JniTime(firstEventTimestamp));
- testEvent = testTrace.readNextEvent();
- assertNotSame("seekToTime(time) to seek back returned null", null, testEvent);
- assertEquals("seekToTime(time) timestamp after seek back is incoherent",
- firstEventTimestamp, testEvent.getEventTime().getTime());
- }
-
- public void testEventDisplacementByTracefile() {
-
- JniEvent testEvent = null;
- JniTrace testTrace = prepareTraceToTest();
-
- // Read first event for the metadata (which is also the first event in the trace)
- testEvent = testTrace.readNextEvent(testTrace
- .requestTracefileByName(firstEventTracefilename));
- assertNotSame("readNextEvent() returned null", null, testEvent);
- assertEquals("readNextEvent() timestamp is incoherent", firstEventTimestamp, testEvent
- .getEventTime().getTime());
-
- // If we read the next event again for this tracefile, we should get the SECOND event
- testEvent = testTrace.readNextEvent(testTrace
- .requestTracefileByName(firstEventTracefilename));
- assertNotSame("readNextEvent() on second read returned null", null, testEvent);
- assertEquals("readNextEvent() timestamp on second read is incoherent",
- secondEventTimestamp, testEvent.getEventTime().getTime());
-
- // Reading the "global" event should take care of the change
- // So if we read the next event, we should get the THIRD event
- testEvent = testTrace.readNextEvent();
- assertNotSame("readNextEvent() to read global event returned null", null, testEvent);
- assertEquals("readNextEvent() timestamp to read global event is incoherent",
- thirdEventTimestamp, testEvent.getEventTime().getTime());
-
- // Now read the next event for another type of tracefile
- testEvent = testTrace.readNextEvent(testTrace
- .requestTracefileByName(eventTracefilenameAfterMetadata));
- assertNotSame("readNextEvent() returned null", null, testEvent);
- assertEquals("readNextEvent() timestamp is incoherent", eventTimestampAfterMetadata,
- testEvent.getEventTime().getTime());
-
- // Seek back to the beginning
- testTrace.seekToTime(new JniTime(firstEventTimestamp),
- testTrace.requestTracefileByName(firstEventTracefilename));
- // Read the first event
- testEvent = testTrace.readNextEvent(testTrace
- .requestTracefileByName(firstEventTracefilename));
- assertNotSame("readNextEvent() after seekToTime returned null", null, testEvent);
- assertEquals("readNextEvent() after seekToTime timestamp is incoherent",
- firstEventTimestamp, testEvent.getEventTime().getTime());
-
- // Seek and Read the first event for the metadata (again the first event in the trace)
- testEvent = testTrace.seekAndRead(new JniTime(firstEventTimestamp),
- testTrace.requestTracefileByName(firstEventTracefilename));
- assertNotSame("seekAndRead() returned null", null, testEvent);
- assertEquals("seekAndRead() timestamp is incoherent", firstEventTimestamp, testEvent
- .getEventTime().getTime());
-
- // Seek the whole trace to the infinity
- testTrace.seekToTime(new JniTime(Long.MAX_VALUE));
- // Seek and Read the next event in the trace
- testEvent = testTrace.seekAndRead(new JniTime(timestampToSeekTest1),
- testTrace.requestTracefileByName(eventTracefilenameAfterSeekTest1));
- assertNotSame("seekAndRead() returned null", null, testEvent);
- assertEquals("seekAndRead() timestamp is incoherent", timestampToSeekTest1, testEvent
- .getEventTime().getTime());
- // Read next event... only the same type should be here as other are exhausted
- testEvent = testTrace.readNextEvent();
- assertNotSame("readNextEvent() after seekToTime returned null", null, testEvent);
- assertEquals("readNextEvent() name after seekToTime is incoherent",
- eventNameAfterSeekTest1, testEvent.getParentTracefile().getTracefileName());
-
- }
-}
diff --git a/lttng/org.eclipse.linuxtools.lttng.core.tests/src/org/eclipse/linuxtools/lttng/core/tests/jni/JniTracefileTest.java b/lttng/org.eclipse.linuxtools.lttng.core.tests/src/org/eclipse/linuxtools/lttng/core/tests/jni/JniTracefileTest.java
deleted file mode 100644
index e9fc45fada..0000000000
--- a/lttng/org.eclipse.linuxtools.lttng.core.tests/src/org/eclipse/linuxtools/lttng/core/tests/jni/JniTracefileTest.java
+++ /dev/null
@@ -1,244 +0,0 @@
-
-package org.eclipse.linuxtools.lttng.core.tests.jni;
-
-import junit.framework.TestCase;
-
-import org.eclipse.linuxtools.internal.lttng.jni.common.JniTime;
-import org.eclipse.linuxtools.internal.lttng.jni.exception.JniException;
-import org.eclipse.linuxtools.lttng.jni.JniTrace;
-import org.eclipse.linuxtools.lttng.jni.JniTracefile;
-import org.eclipse.linuxtools.lttng.jni.factory.JniTraceFactory;
-
-/*
- Functions tested here :
- public JniTracefile(JniTracefile oldTracefile)
- public JniTracefile(long newPtr) throws JniException
-
- public int readNextEvent()
- public int seekToTime(JniTime seekTime)
-
- public Location requestTracefileLocation()
-
- public boolean getIsCpuOnline()
- public String getTracefilePath()
- public String getTracefileName()
- public long getCpuNumber()
- public long getTid()
- public long getPgid()
- public long getCreation()
- public long getTracePtr()
- public long getMarkerDataPtr()
- public int getCFileDescriptor()
- public long getFileSize()
- public long getBlocksNumber()
- public boolean getIsBytesOrderReversed()
- public boolean getIsFloatWordOrdered()
- public long getAlignement()
- public long getBufferHeaderSize()
- public int getBitsOfCurrentTimestampCounter()
- public int getBitsOfEvent()
- public long getCurrentTimestampCounterMask()
- public long getCurrentTimestampCounterMaskNextBit()
- public long getEventsLost()
- public long getSubBufferCorrupt()
- public JniEvent getCurrentEvent()
- public long getBufferPtr()
- public long getBufferSize()
- public HashMap<Integer, JniMarker> getTracefileMarkersMap()
- public JniTrace getParentTrace()
- public long getTracefilePtr()
-
- public String toString()
- public void printTracefileInformation()
-*/
-
-@SuppressWarnings("nls")
-public class JniTracefileTest extends TestCase {
-
- private final static boolean printLttDebug = false;
-
- private final static String tracepath1 = "traceset/trace-15316events_nolost_newformat";
- private final static String tracefileName1 = "kernel0";
-
- private final static int numberOfMarkersInTracefile = 45;
-
- private final static long firstEventTimestamp = 13589760262237L;
- private final static long secondEventTimestamp = 13589762149621L;
- private final static long thirdEventTimestamp = 13589762917527L;
-
- private final static long timestampToSeekTest1 = 13589807108560L;
- private final static long timestampAfterSeekTest1 = 13589807116344L;
-
- private final static long timestampToSeekLast = 13589906758692L;
-
- private JniTracefile prepareTracefileToTest() {
-
- JniTracefile tmpTracefile = null;
-
- // This trace should be valid
- try {
- tmpTracefile = JniTraceFactory.getJniTrace(tracepath1, null, printLttDebug)
- .requestTracefileByName(tracefileName1);
-
- } catch (JniException e) {
- }
-
- return tmpTracefile;
- }
-
- public void testTracefileConstructors() {
- JniTrace testTrace = null;
-
- // This trace should be valid and will be used in test
- try {
- testTrace = JniTraceFactory.getJniTrace(tracepath1, null, printLttDebug);
- } catch (JniException e) {
- fail("Could not get trace file");
- }
-
- // Test constructor with pointer on a correct pointer
- try {
- testTrace.allocateNewJniTracefile(testTrace.requestEventByName(tracefileName1)
- .getTracefilePtr(), testTrace);
- } catch (JniException e) {
- fail("Construction with correct pointer failed!");
- }
-
- /*
- // Test copy constructor
- try {
- testTracefile1 = new JniTracefile( testTrace.requestEventByName(tracefileName1).getTracefilePtr(), testTrace );
- testTracefile2 = new JniTracefile( testTracefile1);
- }
- catch( JniException e) {
- fail("Copy constructor failed!");
- }
- assertSame("JniTracefile name not same after using copy constructor", testTracefile1.getTracefileName() , testTracefile2.getTracefileName());
- */
-
- }
-
- public void testGetSet() {
-
- JniTracefile testTracefile = prepareTracefileToTest();
-
- // Test that all Get/Set return data
- //boolean getIsCpuOnline will always be sane...
- assertNotSame("getIsCpuOnline() failed", null, testTracefile.getIsCpuOnline());
- assertNotSame("getTracefilePath is empty", "", testTracefile.getTracefilePath());
- assertNotSame("getTracefileName is empty", "", testTracefile.getTracefileName());
- assertNotSame("getCpuNumber is 0", 0, testTracefile.getCpuNumber());
- assertNotSame("getTid is 0", 0, testTracefile.getTid());
- assertNotSame("getPgid is 0", 0, testTracefile.getPgid());
- assertNotSame("getCreation is 0", 0, testTracefile.getCreation());
- assertNotSame("getTracePtr is 0", 0, testTracefile.getTracePtr());
- assertNotSame("getMarkerDataPtr is 0", 0, testTracefile.getMarkerDataPtr());
- assertNotSame("getCFileDescriptor is 0", 0, testTracefile.getCFileDescriptor());
- assertNotSame("getFileSize is 0", 0, testTracefile.getFileSize());
- assertNotSame("getBlocksNumber is 0", 0, testTracefile.getBlocksNumber());
- //boolean getIsBytesOrderReversed will always be sane...
- assertNotSame("getIsBytesOrderReversed() failed", null,
- testTracefile.getIsBytesOrderReversed());
- //boolean getIsFloatWordOrdered will always be sane...
- assertNotSame("getIsFloatWordOrdered() failed", null, testTracefile.getIsFloatWordOrdered());
- assertNotSame("getAlignement is 0", 0, testTracefile.getAlignement());
- assertNotSame("getBufferHeaderSize is 0", 0, testTracefile.getBufferHeaderSize());
- assertNotSame("getBitsOfCurrentTimestampCounter is 0", 0,
- testTracefile.getBitsOfCurrentTimestampCounter());
- assertNotSame("getBitsOfEvent is 0", 0, testTracefile.getBitsOfEvent());
- assertNotSame("getCurrentTimestampCounterMask is 0", 0,
- testTracefile.getCurrentTimestampCounterMask());
- assertNotSame("getCurrentTimestampCounterMaskNextBit is 0", 0,
- testTracefile.getCurrentTimestampCounterMaskNextBit());
- assertNotSame("getEventsLost is 0", 0, testTracefile.getEventsLost());
- assertNotSame("getSubBufferCorrupt is 0", 0, testTracefile.getSubBufferCorrupt());
- // There should be at least 1 event, so it shouldn't be null
- assertNotNull("getCurrentEvent returned null", testTracefile.getCurrentEvent());
-
- assertNotSame("getBufferPtr is 0", 0, testTracefile.getBufferPtr());
- assertNotSame("getBufferSize is 0", 0, testTracefile.getBufferSize());
-
- assertNotSame("getTracefileMarkersMap is null", null,
- testTracefile.getTracefileMarkersMap());
- // Also check that the map contain a certains number of data
- assertSame("getTracefileMarkersMap returned an unexpected number of markers",
- numberOfMarkersInTracefile, testTracefile.getTracefileMarkersMap().size());
-
- assertNotSame("getParentTrace is null", null, testTracefile.getParentTrace());
-
- assertNotSame("getTracefilePtr is 0", 0, testTracefile.getTracefilePtr());
-
- }
-
- public void testPrintAndToString() {
-
- JniTracefile testTracefile = prepareTracefileToTest();
-
- // Test printTraceInformation
- try {
- testTracefile.printTracefileInformation();
- } catch (Exception e) {
- fail("printTraceInformation failed!");
- }
-
- // Test ToString()
- assertNotSame("toString returned empty data", "", testTracefile.toString());
-
- }
-
- public void testEventDisplacement() {
-
- int readValue = -1;
- int seekValue = -1;
- JniTracefile testTracefile = prepareTracefileToTest();
-
- // Test #1 readNextEvent()
- readValue = testTracefile.readNextEvent();
- assertSame("readNextEvent() returned error (test #1)", 0, readValue);
- assertEquals("readNextEvent() event timestamp is incoherent (test #1)",
- secondEventTimestamp, testTracefile.getCurrentEvent().getEventTime()
- .getTime());
-
- // Test #2 readNextEvent()
- readValue = testTracefile.readNextEvent();
- assertSame("readNextEvent() returned error (test #1)", 0, readValue);
- assertEquals("readNextEvent() event timestamp is incoherent (test #1)",
- thirdEventTimestamp, testTracefile.getCurrentEvent().getEventTime()
- .getTime());
-
- // Test #1 of seekToTime()
- seekValue = testTracefile.seekToTime(new JniTime(timestampToSeekTest1));
- assertSame("seekToTime() returned error (test #1)", 0, seekValue);
- // Read SHOULD NOT be performed after a seek!
- assertEquals("readNextEvent() event timestamp is incoherent (test #1)",
- timestampToSeekTest1, testTracefile.getCurrentEvent().getEventTime()
- .getTime());
-
- readValue = testTracefile.readNextEvent();
- assertEquals("readNextEvent() event timestamp is incoherent (test #1)",
- timestampAfterSeekTest1, testTracefile.getCurrentEvent().getEventTime()
- .getTime());
-
- // Test #2 of seekToTime()
- seekValue = testTracefile.seekToTime(new JniTime(timestampToSeekLast));
- assertSame("seekToTime() returned error (test #2)", 0, seekValue);
- // Read SHOULD NOT be performed after a seek!
- assertEquals("readNextEvent() event timestamp is incoherent (test #2)",
- timestampToSeekLast, testTracefile.getCurrentEvent().getEventTime()
- .getTime());
-
- // Read AFTER the last event should bring an error
- readValue = testTracefile.readNextEvent();
- assertNotSame("readNextEvent() AFTER last event should return error (test #2)", 0,
- readValue);
-
- // Test to see if we can seek back
- seekValue = testTracefile.seekToTime(new JniTime(firstEventTimestamp));
- assertSame("seekToTime() returned error (test seek back)", 0, seekValue);
- // Read SHOULD NOT be performed after a seek!
- assertEquals("readNextEvent() event timestamp is incoherent (test seek back)",
- firstEventTimestamp, testTracefile.getCurrentEvent().getEventTime()
- .getTime());
-
- }
-}
diff --git a/lttng/org.eclipse.linuxtools.lttng.core.tests/src/org/eclipse/linuxtools/lttng/core/tests/model/LTTngTreeNodeTest.java b/lttng/org.eclipse.linuxtools.lttng.core.tests/src/org/eclipse/linuxtools/lttng/core/tests/model/LTTngTreeNodeTest.java
deleted file mode 100644
index 4f844d2aac..0000000000
--- a/lttng/org.eclipse.linuxtools.lttng.core.tests/src/org/eclipse/linuxtools/lttng/core/tests/model/LTTngTreeNodeTest.java
+++ /dev/null
@@ -1,271 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2009, 2010 Ericsson
- *
- * All rights reserved. This program and the accompanying materials are
- * made available under the terms of the Eclipse Public License v1.0 which
- * accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Alvaro Sanchez-Leon (alvsan09@gmail.com) - Initial API and implementation
- *******************************************************************************/
-package org.eclipse.linuxtools.lttng.core.tests.model;
-
-import junit.framework.TestCase;
-
-import org.eclipse.linuxtools.internal.lttng.core.model.LTTngTreeNode;
-
-/**
- * @author alvaro
- *
- */
-@SuppressWarnings("nls")
-public class LTTngTreeNodeTest extends TestCase {
- // =======================================================================
- // Data
- // =======================================================================
- LTTngTreeNode node10;
- LTTngTreeNode node20;
- LTTngTreeNode node30;
- LTTngTreeNode node40;
- LTTngTreeNode node50;
- LTTngTreeNode node60;
-
- LTTngTreeNode node15;
- LTTngTreeNode node25;
- LTTngTreeNode node35;
- LTTngTreeNode node45;
- LTTngTreeNode node55;
- LTTngTreeNode node65;
- LTTngTreeNode node67;
-
- // =======================================================================
- // Preparation and Finish
- // =======================================================================
- /* (non-Javadoc)
- * @see junit.framework.TestCase#setUp()
- */
- @Override
- protected void setUp() throws Exception {
- super.setUp();
- // Create state resources and assign a parent
- node10 = new LTTngTreeNode(10L, null, "node10", this);
- node20 = new LTTngTreeNode(20L, node10, "node20", this);
- node30 = new LTTngTreeNode(30L, node20, "node30", this);
- node40 = new LTTngTreeNode(40L, node30, "node40", this);
- node50 = new LTTngTreeNode(50L, node40, "node50", this);
- node60 = new LTTngTreeNode(60L, node50, "node60", this);
-
- //Adding first children
- node10.addChild(node20);
- node20.addChild(node30);
- node30.addChild(node40);
- node40.addChild(node50);
- node50.addChild(node60);
-
- //create additional nodes
- node15 = new LTTngTreeNode(15L, node10, "node15", this);
- node25 = new LTTngTreeNode(25L, node20, "node25", this);
- node35 = new LTTngTreeNode(35L, node30, "node35", this);
- node45 = new LTTngTreeNode(45L, node40, "node45", this);
- node55 = new LTTngTreeNode(55L, node50, "node55", this);
- node65 = new LTTngTreeNode(65L, node60, "node65", this);
- node67 = new LTTngTreeNode(67L, node60, "node67", this);
-
-
- // Add children to instances
- node10.addChild(node15);
- node20.addChild(node25);
- node30.addChild(node35);
- node40.addChild(node45);
- node50.addChild(node55);
- node60.addChild(node65);
- node60.addChild(node67);
-
- }
-
- // =======================================================================
- // Methods
- // =======================================================================
- /* (non-Javadoc)
- * @see junit.framework.TestCase#tearDown()
- */
- @Override
- protected void tearDown() throws Exception {
- super.tearDown();
- }
-
- /**
- * Test method for {@link org.eclipse.linuxtools.internal.lttng.core.model.LTTngTreeNode#getChildren()}.
- */
- public void testGetChildren() {
- LTTngTreeNode[] childrensOf60 = node60.getChildren();
- assertNotNull(childrensOf60);
-
- int size = childrensOf60.length;
- assertEquals(2, size);
-
- LTTngTreeNode child65 = childrensOf60[0];
- LTTngTreeNode child67 = childrensOf60[1];
-
- assertNotNull(child65);
- assertNotNull(child67);
-
- assertEquals("node65", child65.getName());
- assertEquals("node67", child67.getName());
- }
-
- /**
- * Test method for {@link org.eclipse.linuxtools.internal.lttng.core.model.LTTngTreeNodeGeneric#getId()}.
- */
- public void testGetId() {
- assertEquals(15L, node15.getId().longValue());
- }
-
- /**
- * Test method for {@link org.eclipse.linuxtools.internal.lttng.core.model.LTTngTreeNodeGeneric#getType()}.
- */
- public void testGetType() {
- assertEquals(this.getClass(), node15.getNodeType());
- }
-
- /**
- * Test method for {@link org.eclipse.linuxtools.internal.lttng.core.model.LTTngTreeNodeGeneric#getChildByName(java.lang.String)}.
- */
- public void testGetChildByName() {
- LTTngTreeNode child65 = node60.getChildByName("node65");
- LTTngTreeNode child67 = node60.getChildByName("node67");
- assertNotNull(child65);
- assertNotNull(child67);
-
- assertEquals("node65", child65.getName());
- assertEquals("node67", child67.getName());
- }
-
- /**
- * Test method for {@link org.eclipse.linuxtools.internal.lttng.core.model.LTTngTreeNodeGeneric#removeChild(org.eclipse.linuxtools.internal.lttng.core.model.ILTTngTreeNode)}.
- */
- public void testRemoveChild() {
- // Verify node20
- LTTngTreeNode[] childrensOf20 = node20.getChildren();
- assertNotNull(childrensOf20);
-
- int size = childrensOf20.length;
- assertEquals(2, size);
-
- LTTngTreeNode child25 = childrensOf20[0];
- LTTngTreeNode child30 = childrensOf20[1];
-
- assertNotNull(child25);
- assertNotNull(child30);
-
- assertEquals("node25", child25.getName());
- assertEquals("node30", child30.getName());
-
- // Remove a child with unusual values.
- node20.removeChild(null);
- node20.removeChild(node60);
-
- // Remove a valid child
- node20.removeChild(node30);
-
- // Verify consistency
- childrensOf20 = node20.getChildren();
- assertNotNull(childrensOf20);
-
- size = childrensOf20.length;
- assertEquals(1, size);
-
- child25 = childrensOf20[0];
-
- assertNotNull(child25);
-
- assertEquals("node25", child25.getName());
- }
-
- /**
- * Test method for {@link org.eclipse.linuxtools.internal.lttng.core.model.LTTngTreeNodeGeneric#getChildById(java.lang.Integer)}.
- */
- public void testGetChildById() {
- LTTngTreeNode child65 = node60.getChildById(65L);
- LTTngTreeNode child67 = node60.getChildById(67L);
- assertNotNull(child65);
- assertNotNull(child67);
-
- assertEquals("node65", child65.getName());
- assertEquals("node67", child67.getName());
- }
-
- /**
- * Test method for {@link org.eclipse.linuxtools.internal.lttng.core.model.LTTngTreeNodeGeneric#getParent()}.
- */
- public void testGetParent() {
- assertEquals(node60, node67.getParent());
- }
-
- /**
- * Test method for {@link org.eclipse.linuxtools.internal.lttng.core.model.LTTngTreeNodeGeneric#setParent(org.eclipse.linuxtools.internal.lttng.core.model.ILTTngTreeNode)}.
- */
- public void testSetParent() {
- node30.removeChild(node35);
- node60.addChild(node35);
- node35.setParent(node60);
-
- assertEquals(node60, node35.getParent());
- }
-
- /**
- * Test method for {@link org.eclipse.linuxtools.internal.lttng.core.model.LTTngTreeNodeGeneric#hasChildren()}.
- */
- public void testHasChildren() {
- assertEquals(true, node10.hasChildren());
-
- node10.removeChild(node15);
- node10.removeChild(node20);
-
- assertEquals(false, node10.hasChildren());
- }
-
- /**
- * Test method for {@link org.eclipse.linuxtools.internal.lttng.core.model.LTTngTreeNodeGeneric#getName()}.
- */
- public void testGetName() {
- assertEquals("node40", node40.getName());
- }
-
- /**
- * Test method for {@link org.eclipse.linuxtools.internal.lttng.core.model.LTTngTreeNodeGeneric#getPath()}.
- */
- public void testGetPath() {
- String path = node60.getPath();
- assertEquals("/node10/node20/node30/node40/node50/node60", path);
- }
-
- /**
- * Test method for
- * {@link org.eclipse.linuxtools.internal.lttng.core.model.LTTngTreeNodeGeneric#getAdapter()}
- * .
- */
- public void testGetAdapter() {
- Object value = node60.getAdapter(this.getClass());
- assertEquals("Unexpected Adapter reference", this, value);
- }
-
- /**
- * Test method for
- * {@link org.eclipse.linuxtools.internal.lttng.core.model.LTTngTreeNodeGeneric#getAttibute()}
- * .
- */
- public void testGetAttribute() {
- Long lval = Long.valueOf(10L);
- node60.addAttribute("attr1", "Value1");
- node60.addAttribute("attr2", lval);
- node60.addAttribute("attr3", node50);
-
- assertEquals("Value1", node60.getAttribute("attr1", String.class));
- assertEquals(lval, node60.getAttribute("attr2", Long.class));
- assertEquals(node50, node60.getAttribute("attr3", LTTngTreeNode.class));
- assertEquals(null, node60.getAttribute("attr1", LTTngTreeNode.class));
- }
-
-}
diff --git a/lttng/org.eclipse.linuxtools.lttng.core.tests/src/org/eclipse/linuxtools/lttng/core/tests/state/StateManagerFactoryTestSupport.java b/lttng/org.eclipse.linuxtools.lttng.core.tests/src/org/eclipse/linuxtools/lttng/core/tests/state/StateManagerFactoryTestSupport.java
deleted file mode 100644
index e43cacde0e..0000000000
--- a/lttng/org.eclipse.linuxtools.lttng.core.tests/src/org/eclipse/linuxtools/lttng/core/tests/state/StateManagerFactoryTestSupport.java
+++ /dev/null
@@ -1,83 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2009 Ericsson
- *
- * All rights reserved. This program and the accompanying materials are
- * made available under the terms of the Eclipse Public License v1.0 which
- * accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Alvaro Sanchez-Leon (alvsan09@gmail.com) - Initial API and implementation
- *******************************************************************************/
-
-package org.eclipse.linuxtools.lttng.core.tests.state;
-
-import java.util.HashMap;
-import java.util.Map;
-
-import org.eclipse.linuxtools.internal.lttng.core.model.LTTngTreeNode;
-import org.eclipse.linuxtools.internal.lttng.core.state.LttngStateException;
-import org.eclipse.linuxtools.internal.lttng.core.state.trace.IStateTraceManager;
-import org.eclipse.linuxtools.internal.lttng.core.state.trace.StateTraceManager;
-import org.eclipse.linuxtools.tmf.core.trace.ITmfTrace;
-
-/**
- * @author alvaro
- *
- */
-public class StateManagerFactoryTestSupport {
- // ========================================================================
- // Data
- // =======================================================================
-
- private static final Map<String, IStateTraceManager> instanceBook = new HashMap<String, IStateTraceManager>();
-
- // ========================================================================
- // Methods
- // =======================================================================
-
- /**
- * Provide a stateManager instance per trace
- *
- * @return
- */
- public static IStateTraceManager getManager(ITmfTrace trace) {
- String traceUniqueId = trace.getName();
-
- if (traceUniqueId == null) {
- return null;
- }
-
- if (instanceBook.containsKey(traceUniqueId)) {
- return instanceBook.get(traceUniqueId);
- }
-
- // LttngTraceState traceModel =
- // StateModelFactory.getStateEntryInstance();
- IStateTraceManager manager = null;
-
- // catch construction problems
- Long id = 0L;
- LTTngTreeNode parent = null;
-
- try {
- manager = new StateTraceManager(id, parent, traceUniqueId, trace);
- } catch (LttngStateException e) {
- e.printStackTrace();
- }
-
- instanceBook.put(traceUniqueId, manager);
- return manager;
- }
-
- /**
- * Remove previously registered managers
- * @param traceUniqueId
- */
- public static void removeManager(String traceUniqueId) {
- if (traceUniqueId != null && instanceBook.containsKey(traceUniqueId)) {
- instanceBook.remove(traceUniqueId);
- }
- }
-
-}
diff --git a/lttng/org.eclipse.linuxtools.lttng.core.tests/src/org/eclipse/linuxtools/lttng/core/tests/state/TestStateManager.java b/lttng/org.eclipse.linuxtools.lttng.core.tests/src/org/eclipse/linuxtools/lttng/core/tests/state/TestStateManager.java
deleted file mode 100644
index 13ca67a7e5..0000000000
--- a/lttng/org.eclipse.linuxtools.lttng.core.tests/src/org/eclipse/linuxtools/lttng/core/tests/state/TestStateManager.java
+++ /dev/null
@@ -1,59 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2009 Ericsson
- *
- * All rights reserved. This program and the accompanying materials are
- * made available under the terms of the Eclipse Public License v1.0 which
- * accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Alvaro Sanchez-Leon (alvsan09@gmail.com) - Initial API and implementation
- *******************************************************************************/
-
-package org.eclipse.linuxtools.lttng.core.tests.state;
-
-import junit.framework.TestCase;
-
-/**
- * @author alvaro
- *
- */
-public class TestStateManager extends TestCase {
-
- /**
- * TODO: Not used for the time being, for experiment selection test cases
- * for package state.experiment
- */
- public void testSetTraceSelection() {
-// String logName = "traceset/trace-15316events_nolost_newformat";
-
-// LTTngTrace testStream = null;
-// try {
-// testStream = new LTTngTrace(logName, true);
-// } catch (Exception e) {
-// e.printStackTrace();
-// }
-//
-// if (testStream != null) {
-// LTTngTrace[] streamList = new LTTngTrace[1];
-// streamList[0] = testStream;
- // TmfExperiment<LttngEvent> newExp = new
- // TmfExperiment<LttngEvent>(LttngEvent.class, logName, streamList);
-
- //Get the Test StateManager
- // IStateTraceManager manager = StateManagerFactoryTestSupport
- // .getManager(testStream);
- //Start execution.
- // manager.experimentUpdated(new TmfExperimentUpdatedSignal(this,
- // newExp, null), true);
-
- //Print events not handled.
- // Set<String> notHandledEvents = manager.getEventsNotHandled();
- // StringBuilder sb = new StringBuilder();
- // for (String event : notHandledEvents) {
- // sb.append("\n" + event);
- // }
- // TraceDebug.debug("Events not Handled: " + sb.toString());
-// }
- }
-}
diff --git a/lttng/org.eclipse.linuxtools.lttng.core.tests/src/org/eclipse/linuxtools/lttng/core/tests/state/experiment/StateExperimentManagerTextTest.java b/lttng/org.eclipse.linuxtools.lttng.core.tests/src/org/eclipse/linuxtools/lttng/core/tests/state/experiment/StateExperimentManagerTextTest.java
deleted file mode 100644
index c6d09744f2..0000000000
--- a/lttng/org.eclipse.linuxtools.lttng.core.tests/src/org/eclipse/linuxtools/lttng/core/tests/state/experiment/StateExperimentManagerTextTest.java
+++ /dev/null
@@ -1,88 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2010 Ericsson
- *
- * All rights reserved. This program and the accompanying materials are
- * made available under the terms of the Eclipse Public License v1.0 which
- * accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Alvaro Sanchez-Leon (alvsan09@gmail.com) - Initial API and implementation
- *******************************************************************************/
-package org.eclipse.linuxtools.lttng.core.tests.state.experiment;
-
-import org.eclipse.linuxtools.lttng.core.tests.LttngTestPreparation;
-
-/**
- * @author alvaro
- *
- */
-public class StateExperimentManagerTextTest extends LttngTestPreparation {
-
- /**
- * Test method for {@link org.eclipse.linuxtools.internal.lttng.core.state.experiment.StateExperimentManager#experimentSelected_prep(org.eclipse.linuxtools.tmf.experiment.TmfExperiment)}.
- */
- public void testExperimentSelected_text() {
-// System.out.println("testExperimentSelected_text: test removed");
- // make sure a TmfExperiment instance is registered as provider and
- // selected as current
-// TmfExperiment<LttngEvent> experiment = prepareTextExperimentToTest();
-
-// // Create a new Experiment manager
-// IStateExperimentManager expManager = StateManagerFactory
-// .getExperimentManager();
-// expManager.waitForCompletion(true);
-// // Configure the interval to create check points so this can be tested
-// // with medium size files i.e. default is 50000 events
-// StateManagerFactory.setTraceCheckPointInterval(1000L);
-//
-// // preparation
-// expManager.experimentSelected_prep(experiment);
-// // Action trigger
-// expManager.experimentSelected(this, experiment);
-//
-// // Access context tree for Validation
-// // access to the context tree
-// LTTngTreeNode experimentNode = expManager.getSelectedExperiment();
-// StateTraceManager traceManager = (StateTraceManager) experimentNode
-// .getChildById(0L);
-//
-// // validate
-// int numProcesses = traceManager.getCheckPointStateModel().getProcesses().length;
-// assertEquals("Total number of processes created", 276, numProcesses);
-
- }
-
- /**
- * Test method for
- * {@link org.eclipse.linuxtools.internal.lttng.core.state.experiment.StateExperimentManager#experimentSelected_prep(org.eclipse.linuxtools.tmf.experiment.TmfExperiment)}
- * .
- */
- public void testExperimentSelected_real() {
-// System.out.println("testExperimentSelected_real: test removed");
-// // Create a new Experiment manager context
-// IStateExperimentManager expManager = prepareExperimentContext(true);
-// expManager.waitForCompletion(true);
-//
-// // make sure a TmfExperiment instance is registered as provider and
-// // selected as current
-// TmfExperiment<LttngEvent> experiment = prepareExperimentToTest();
-//
-// // preparation
-// expManager.experimentSelected_prep(experiment);
-// // Action trigger
-// expManager.experimentSelected(this, experiment);
-//
-// // Access context tree for Validation
-// // access to the context tree
-// LTTngTreeNode experimentNode = expManager.getSelectedExperiment();
-// StateTraceManager traceManager = (StateTraceManager) experimentNode
-// .getChildById(1L | LttngConstants.STATS_TRACE_NAME_ID);
-//
-// // validate
-// int numProcesses = traceManager.getCheckPointStateModel().getProcesses().length;
-// assertEquals("Total number of processes created", 276, numProcesses);
-
- }
-
-}
diff --git a/lttng/org.eclipse.linuxtools.lttng.core.tests/src/org/eclipse/linuxtools/lttng/core/tests/state/handlers/AbsStateUpdate.java b/lttng/org.eclipse.linuxtools.lttng.core.tests/src/org/eclipse/linuxtools/lttng/core/tests/state/handlers/AbsStateUpdate.java
deleted file mode 100644
index 57e0547da7..0000000000
--- a/lttng/org.eclipse.linuxtools.lttng.core.tests/src/org/eclipse/linuxtools/lttng/core/tests/state/handlers/AbsStateUpdate.java
+++ /dev/null
@@ -1,569 +0,0 @@
-package org.eclipse.linuxtools.lttng.core.tests.state.handlers;
-
-import org.eclipse.linuxtools.internal.lttng.core.TraceDebug;
-import org.eclipse.linuxtools.internal.lttng.core.event.LttngEvent;
-import org.eclipse.linuxtools.internal.lttng.core.event.LttngEventField;
-import org.eclipse.linuxtools.internal.lttng.core.state.StateStrings.Fields;
-import org.eclipse.linuxtools.internal.lttng.core.state.evProcessor.ILttngEventProcessor;
-import org.eclipse.linuxtools.internal.lttng.core.state.model.LttngExecutionState;
-import org.eclipse.linuxtools.internal.lttng.core.state.model.LttngTraceState;
-import org.eclipse.linuxtools.tmf.core.event.TmfEventField;
-
-@SuppressWarnings("nls")
-public abstract class AbsStateUpdate implements ILttngEventProcessor {
-
- // ========================================================================
- // Data
- // =======================================================================
- protected static LttngExecutionState exState = null;
- protected static Long pid = null;
-
- // ========================================================================
- // push and pop from stack
- // =======================================================================
-
-// protected static final Long ANY_CPU = 0L;
-
-
-// protected void push_state(Long cpu, StateStrings.ExecutionMode execMode,
-// String submode, TmfTimestamp eventTime, LttngTraceState traceSt) {
-//
-// LttngProcessState process = traceSt.getRunning_process().get(cpu);
-// LttngExecutionState exe_state = new LttngExecutionState();
-// exe_state.setExec_mode(execMode);
-// exe_state.setExec_submode(submode);
-// exe_state.setEntry_Time(eventTime);
-// exe_state.setChage_Time(eventTime);
-// exe_state.setCum_cpu_time(0L);
-// exe_state.setProc_status(process.getState().getProc_status());
-// process.setState(exe_state);
-//
-// Stack<LttngExecutionState> exe_state_stack = process
-// .getExecution_stack();
-// exe_state_stack.push(exe_state);
-// }
-//
-// protected void pop_state(Long cpu, StateStrings.ExecutionMode execMode,
-// LttngTraceState traceSt, TmfTimestamp eventTime) {
-//
-// LttngProcessState process = traceSt.getRunning_process().get(cpu);
-//
-// if (!process.getState().getExec_mode().equals(execMode)) {
-// // Different execution mode
-// TraceDebug.debug("Different Execution Mode type \n\tTime:"
-// + eventTime.toString() + "\n\tprocess state has: \n\t"
-// + process.getState().getExec_mode().toString()
-// + "\n\twhen pop_int is:\n\t" + execMode.toString());
-// return;
-// }
-//
-// Stack<LttngExecutionState> exe_state_stack = process
-// .getExecution_stack();
-//
-// if (exe_state_stack.size() <= 1) {
-// TraceDebug
-// .debug("Removing last item from execution stack is not allowed");
-// }
-//
-// exe_state_stack.pop();
-// process.setState(exe_state_stack.peek());
-// process.getState().setChage_Time(eventTime);
-// }
-//
-// protected void irq_push_mode(LttngIRQState irqst, IRQMode state) {
-// irqst.getMode_stack().push(state);
-// }
-//
-// protected void irq_set_base_mode(LttngIRQState irqst, IRQMode state) {
-// Stack<IRQMode> irqModeStack = irqst.getMode_stack();
-// irqModeStack.clear();
-// irqModeStack.push(state);
-// }
-//
-// protected void irq_pop_mode(LttngIRQState irqst) {
-// Stack<IRQMode> irq_stack = irqst.getMode_stack();
-// if (irq_stack.size() <= 1)
-// irq_set_base_mode(irqst, IRQMode.LTTV_IRQ_UNKNOWN);
-// else
-// irq_stack.pop();
-// }
-//
-// protected void cpu_push_mode(LTTngCPUState cpust, StateStrings.CpuMode state) {
-// // The initialization (init) creates a LttngCPUState instance per
-// // available cpu in the system
-// Stack<CpuMode> cpuStack = cpust.getMode_stack();
-// cpuStack.push(state);
-// }
-//
-// protected void cpu_pop_mode(LTTngCPUState cpust) {
-// if (cpust.getMode_stack().size() <= 1)
-// cpu_set_base_mode(cpust, StateStrings.CpuMode.LTTV_CPU_UNKNOWN);
-// else
-// cpust.getMode_stack().pop();
-// }
-//
-// /* clears the stack and sets the state passed as argument */
-// protected void cpu_set_base_mode(LTTngCPUState cpust,
-// StateStrings.CpuMode state) {
-// Stack<CpuMode> cpuStack = cpust.getMode_stack();
-// cpuStack.clear();
-// cpuStack.push(state);
-// }
-//
-// protected void bdev_pop_mode(LttngBdevState bdevst) {
-// Stack<BdevMode> bdevModeStack = bdevst.getMode_stack();
-// if (bdevModeStack.size() <= 1) {
-// bdev_set_base_mode(bdevModeStack, BdevMode.LTTV_BDEV_UNKNOWN);
-// } else {
-// bdevModeStack.pop();
-// }
-//
-// }
-//
-// protected void bdev_set_base_mode(Stack<BdevMode> bdevModeStack,
-// BdevMode state) {
-// bdevModeStack.clear();
-// bdevModeStack.push(state);
-// }
-//
-// /**
-// * Push a new received function pointer to the user_stack
-// *
-// * @param traceSt
-// * @param funcptr
-// * @param cpu
-// */
-// protected void push_function(LttngTraceState traceSt, Long funcptr, Long cpu) {
-// // Get the related process
-// LttngProcessState process = traceSt.getRunning_process().get(cpu);
-//
-// // get the user_stack
-// Stack<Long> user_stack = process.getUser_stack();
-//
-// // update stack
-// user_stack.push(funcptr);
-//
-// // update the pointer to the current function on the corresponding
-// // process
-// process.setCurrent_function(funcptr);
-// }
-//
-// protected void pop_function(LttngTraceState traceSt, LttngEvent trcEvent,
-// Long funcptr) {
-// Long cpu = trcEvent.getCpuId();
-// // LttvTraceState *ts = (LttvTraceState*)tfs->parent.t_context;
-// // LttvProcessState *process = ts->running_process[cpu];
-// LttngProcessState process = traceSt.getRunning_process().get(cpu);
-// Long curr_function = process.getCurrent_function();
-// if (curr_function != null && curr_function != funcptr) {
-// TraceDebug.debug("Different functions: " + funcptr + " current: "
-// + curr_function + " time stamp: "
-// + trcEvent.getTimestamp().toString());
-//
-// // g_info("Different functions (%lu.%09lu): ignore it\n",
-// // tfs->parent.timestamp.tv_sec, tfs->parent.timestamp.tv_nsec);
-// // g_info("process state has %" PRIu64 " when pop_function is %"
-// // PRIu64
-// // "\n",
-// // process->current_function, funcptr);
-// // g_info("{ %u, %u, %s, %s, %s }\n",
-// // process->pid,
-// // process->ppid,
-// // g_quark_to_string(process->name),
-// // g_quark_to_string(process->brand),
-// // g_quark_to_string(process->state->s));
-// return;
-// }
-//
-// Stack<Long> user_stack = process.getUser_stack();
-// if (user_stack.size() == 0) {
-// TraceDebug
-// .debug("Trying to pop last function in stack. Ignored. Time Stamp: "
-// + trcEvent.getTimestamp());
-// return;
-// }
-// user_stack.pop();
-// process.setCurrent_function(user_stack.peek());
-// }
-//
-// // ========================================================================
-// // General methods
-// // =======================================================================
-// /**
-// * protected method used when only one Field is expected with Type "Long" if
-// * the number of fields is greater, the first field is returned and a
-// * tracing message is sent Null is returned if the value could not be
-// * extracted.
-// *
-// * @param trcEvent
-// * @param traceSt
-// * @param expectedNumFields
-// * @return
-// */
-// protected Long getDField(LttngEvent trcEvent, LttngTraceState traceSt,
-// Fields expectedField) {
-// Long fieldVal = null;
-// TmfEventField[] fields = trcEvent.getContent().getFields();
-// String[] fieldLabels = trcEvent.getContent().getFormat().getLabels();
-//
-// // Only one field expected
-// if (fields.length != 1 || fieldLabels.length != 1) {
-// StringBuilder sb = new StringBuilder(
-// "Unexpected number of fields received: " + fields.length
-// + " for Event: " + trcEvent.getMarkerName() + "\n\t\tFields: ");
-//
-// for (TmfEventField field : fields) {
-// sb.append(((LttngEventField)field).getName() + " ");
-// }
-//
-// TraceDebug.debug(sb.toString());
-// if (fields.length == 0) {
-// return null;
-// }
-// }
-//
-// LttngEventField field = (LttngEventField) fields[0];
-// String fieldname = field.getName();
-// String expectedFieldName = expectedField.getInName();
-// if (fieldname.equals(expectedFieldName)) {
-// Object fieldObj = field.getValue();
-// if (fieldObj instanceof Long) {
-// // Expected value found
-// fieldVal = (Long) field.getValue();
-// } else {
-// if (TraceDebug.isDEBUG()) {
-// TraceDebug
-// .debug("Unexpected field Type. Expected: Long, Received: "
-// + fieldObj.getClass().getSimpleName());
-// }
-// return null;
-// }
-// } else {
-// TraceDebug.debug("Unexpected field received: " + fieldname
-// + " Expected: " + expectedFieldName);
-// return null;
-// }
-//
-// return fieldVal;
-// }
-//
- /**
- * protected method used when a Field is requested among several available
- * fields and the expected type is Long
- *
- * @param trcEvent
- * @param traceSt
- * @param expectedNumFields
- * @return
- */
- protected Long getAFieldLong(LttngEvent trcEvent, LttngTraceState traceSt,
- Fields expectedField) {
- Long fieldVal = null;
- TmfEventField[] fields = trcEvent.getContent().getFields();
-
- // At least one field expected
- if (fields.length == 0) {
- TraceDebug.debug("Unexpected number of fields received: "
- + fields.length);
- return null;
- }
-
- LttngEventField field;
- String fieldname;
- String expectedFieldName = expectedField.getInName();
- for (int i = 0; i < fields.length; i++) {
- field = (LttngEventField) fields[i];
- fieldname = field.getName();
- if (fieldname.equals(expectedFieldName)) {
- Object fieldObj = field.getValue();
- if (fieldObj instanceof Long) {
- // Expected value found
- fieldVal = (Long) field.getValue();
- // if (expectedField == Fields.LTT_FIELD_TYPE) {
- // TraceDebug.debug("Field Type value is: " + fieldVal);
- // }
- break;
- } else {
- if (TraceDebug.isDEBUG()) {
- TraceDebug
- .debug("Unexpected field Type. Expected: Long, Received: "
- + fieldObj.getClass().getSimpleName());
- }
- return null;
- }
- }
- }
-
- if (fieldVal == null) {
- if (TraceDebug.isDEBUG()) {
- sendNoFieldFoundMsg(fields, expectedFieldName);
- }
- }
- return fieldVal;
- }
-
- /**
- * protected method used when a Field is requested among several available
- * fields and the expected type is String
- *
- * @param trcEvent
- * @param traceSt
- * @param expectedNumFields
- * @return
- */
- protected String getAFieldString(LttngEvent trcEvent,
- LttngTraceState traceSt, Fields expectedField) {
- String fieldVal = null;
- TmfEventField[] fields = trcEvent.getContent().getFields();
-
- // Only one field expected
- if (fields.length == 0) {
- TraceDebug.debug("Unexpected number of fields received: "
- + fields.length);
- return null;
- }
-
- LttngEventField field;
- String fieldname;
- String expectedFieldName = expectedField.getInName();
- for (int i = 0; i < fields.length; i++) {
- field = (LttngEventField) fields[i];
- fieldname = field.getName();
- if (fieldname.equals(expectedFieldName)) {
- Object fieldObj = field.getValue();
- if (fieldObj instanceof String) {
- // Expected value found
- fieldVal = (String) field.getValue();
- break;
- } else {
- if (TraceDebug.isDEBUG()) {
- TraceDebug
- .debug("Unexpected field Type. Expected: String, Received: "
- + fieldObj.getClass().getSimpleName());
- }
- return null;
- }
- }
- }
-
- if (fieldVal == null) {
- if (TraceDebug.isDEBUG()) {
- sendNoFieldFoundMsg(fields, expectedFieldName);
- }
- }
- return fieldVal;
- }
-
- protected void sendNoFieldFoundMsg(TmfEventField[] fields,
- String expectedFieldName) {
- LttngEventField field;
- StringBuilder sb = new StringBuilder("Field not found, requested: "
- + expectedFieldName);
- sb.append(" number of fields: " + fields.length + "Fields: ");
- for (int i = 0; i < fields.length; i++) {
- field = (LttngEventField) fields[i];
- sb.append(field.getName() + " ");
- }
-
- TraceDebug.debug(sb.toString(), 5);
- }
-
-// // Adaption from MKDEV macro
-// protected Long mkdev(Long major, Long minor) {
-// Long result = null;
-// if (major != null && minor != null) {
-// result = (major << 20) | minor;
-// }
-// return result;
-// }
-//
-// /*
-// * FIXME : this function should be called when we receive an event telling
-// * that release_task has been called in the kernel. In happens generally
-// * when the parent waits for its child terminaison, but may also happen in
-// * special cases in the child's exit : when the parent ignores its children
-// * SIGCCHLD or has the flag SA_NOCLDWAIT. It can also happen when the child
-// * is part of a killed thread group, but isn't the leader.
-// */
-// protected boolean exit_process(LttngTraceState ts, LttngProcessState process) {
-// /*
-// * Wait for both schedule with exit dead and process free to happen.
-// * They can happen in any order.
-// */
-// process.incrementFree_events();
-// if (process.getFree_events() < 2) {
-// return false;
-// }
-//
-// process.getExecution_stack().clear();
-// process.getUser_stack().clear();
-// ts.getProcesses().remove(process);
-//
-// return true;
-// }
-//
-// // LttvProcessState *
-// // lttv_state_create_process(LttvTraceState *tcs, LttvProcessState *parent,
-// // guint cpu, guint pid, guint tgid, GQuark name, const LttTime *timestamp)
-// // {
-// // LttvProcessState *process = g_new(LttvProcessState, 1);
-// //
-// // LttvExecutionState *es;
-// //
-// // char buffer[128];
-// //
-// // process->pid = pid;
-// // process->tgid = tgid;
-// // process->cpu = cpu;
-// // process->name = name;
-// // process->brand = LTTV_STATE_UNBRANDED;
-// // //process->last_cpu = tfs->cpu_name;
-// // //process->last_cpu_index =
-// // ltt_tracefile_num(((LttvTracefileContext*)tfs)->tf);
-// // process->type = LTTV_STATE_USER_THREAD;
-// // process->usertrace = ltt_state_usertrace_find(tcs, pid, timestamp);
-// // process->current_function = 0; //function 0x0 by default.
-// //
-// // g_info("Process %u, core %p", process->pid, process);
-// // g_hash_table_insert(tcs->processes, process, process);
-// //
-// // if(parent) {
-// // process->ppid = parent->pid;
-// // process->creation_time = *timestamp;
-// // }
-// //
-// // /* No parent. This process exists but we are missing all information
-// // about
-// // its creation. The birth time is set to zero but we remember the time of
-// // insertion */
-// //
-// // else {
-// // process->ppid = 0;
-// // process->creation_time = ltt_time_zero;
-// // }
-// //
-// // process->insertion_time = *timestamp;
-// // sprintf(buffer,"%d-%lu.%lu",pid, process->creation_time.tv_sec,
-// // process->creation_time.tv_nsec);
-// // process->pid_time = g_quark_from_string(buffer);
-// // process->cpu = cpu;
-// // process->free_events = 0;
-// // //process->last_cpu = tfs->cpu_name;
-// // //process->last_cpu_index =
-// // ltt_tracefile_num(((LttvTracefileContext*)tfs)->tf);
-// // process->execution_stack = g_array_sized_new(FALSE, FALSE,
-// // sizeof(LttvExecutionState), PREALLOCATED_EXECUTION_STACK);
-// // process->execution_stack = g_array_set_size(process->execution_stack, 2);
-// // es = process->state = &g_array_index(process->execution_stack,
-// // LttvExecutionState, 0);
-// // es->t = LTTV_STATE_USER_MODE;
-// // es->n = LTTV_STATE_SUBMODE_NONE;
-// // es->entry = *timestamp;
-// // //g_assert(timestamp->tv_sec != 0);
-// // es->change = *timestamp;
-// // es->cum_cpu_time = ltt_time_zero;
-// // es->s = LTTV_STATE_RUN;
-// //
-// // es = process->state = &g_array_index(process->execution_stack,
-// // LttvExecutionState, 1);
-// // es->t = LTTV_STATE_SYSCALL;
-// // es->n = LTTV_STATE_SUBMODE_NONE;
-// // es->entry = *timestamp;
-// // //g_assert(timestamp->tv_sec != 0);
-// // es->change = *timestamp;
-// // es->cum_cpu_time = ltt_time_zero;
-// // es->s = LTTV_STATE_WAIT_FORK;
-// //
-// // /* Allocate an empty function call stack. If it's empty, use 0x0. */
-// // process->user_stack = g_array_sized_new(FALSE, FALSE,
-// // sizeof(guint64), 0);
-// //
-// // return process;
-// // }
-//
-// /**
-// * Find the process matching the given pid and cpu
-// *
-// * If cpu is 0, the cpu value is not matched and the selection is based on
-// * pid value only
-// *
-// * @param ts
-// * @param cpu
-// * @param pid
-// * @return
-// */
-// protected LttngProcessState lttv_state_find_process(LttngTraceState ts,
-// Long cpu, Long pid) {
-// // Define the return value
-// LttngProcessState process = null;
-//
-// // Obtain the list of available processes
-// List<LttngProcessState> processList = ts.getProcesses();
-//
-// // find the process matching pid and cpu,
-// // TODO: This may need to be improved since the pid may be re-used and
-// // the creation time may need to be considered
-// for (LttngProcessState dprocess : processList) {
-// if (dprocess.getPid() == pid) {
-// if (dprocess.getCpu() == cpu || cpu == 0) {
-// return process;
-// }
-// }
-// }
-//
-// return process;
-// }
-//
-// /**
-// * @param ts
-// * @param cpu
-// * @param pid
-// * @param timestamp
-// * , Used when a new process is needed
-// * @return
-// */
-// protected LttngProcessState lttv_state_find_process_or_create(
-// LttngTraceState ts, Long cpu, Long pid, final TmfTimestamp timestamp) {
-//
-// LttngProcessState process = lttv_state_find_process(ts, cpu, pid);
-// /* Put ltt_time_zero creation time for unexisting processes */
-// if (process == null) {
-// process = create_process(ts, cpu, pid, 0L, timestamp);
-// }
-// return process;
-// }
-//
-// /**
-// * @param traceSt
-// * @param cpu
-// * @param pid
-// * @param tgid
-// * @param timestamp
-// * @return
-// */
-// protected LttngProcessState create_process(LttngTraceState traceSt,
-// Long cpu, Long pid, Long tgid, final TmfTimestamp timestamp) {
-// LttngProcessState process = create_process(traceSt, cpu, pid, tgid,
-// ProcessStatus.LTTV_STATE_UNNAMED.getInName(), timestamp);
-// return process;
-// }
-//
-// /**
-// * @param traceSt
-// * @param cpu
-// * @param pid
-// * @param tgid
-// * @param name
-// * @param timestamp
-// * @return
-// */
-// protected LttngProcessState create_process(LttngTraceState traceSt,
-// Long cpu, Long pid, Long tgid, String name,
-// final TmfTimestamp timestamp) {
-// LttngProcessState process;
-// process = new LttngProcessState(cpu, pid, tgid, name, timestamp);
-// traceSt.getProcesses().add(process);
-// return process;
-// }
-
-} \ No newline at end of file
diff --git a/lttng/org.eclipse.linuxtools.lttng.core.tests/src/org/eclipse/linuxtools/lttng/core/tests/state/handlers/after/StateAfterUpdateFactory.java b/lttng/org.eclipse.linuxtools.lttng.core.tests/src/org/eclipse/linuxtools/lttng/core/tests/state/handlers/after/StateAfterUpdateFactory.java
deleted file mode 100644
index bffd969429..0000000000
--- a/lttng/org.eclipse.linuxtools.lttng.core.tests/src/org/eclipse/linuxtools/lttng/core/tests/state/handlers/after/StateAfterUpdateFactory.java
+++ /dev/null
@@ -1,160 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2009 Ericsson
- *
- * All rights reserved. This program and the accompanying materials are
- * made available under the terms of the Eclipse Public License v1.0 which
- * accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Alvaro Sanchez-Leon (alvsan09@gmail.com) - Initial API and implementation
- *******************************************************************************/
-package org.eclipse.linuxtools.lttng.core.tests.state.handlers.after;
-
-import java.util.HashMap;
-import java.util.Map;
-
-import org.eclipse.linuxtools.internal.lttng.core.state.StateStrings;
-import org.eclipse.linuxtools.internal.lttng.core.state.evProcessor.ILttngEventProcessor;
-
-/**
- * Builds a Map from string event name to a processing handler object, the
- * processors implement the same interface to facilitate transparent methods
- * call,
- *
- * The map key STring is the entry point of the raw events, using a hash speeds
- * up the resolution of the appropriate processor
- *
- * @author alvaro
- *
- */
-public class StateAfterUpdateFactory {
- // ========================================================================
- // Data
- // =======================================================================
- private final Map<String, ILttngEventProcessor> eventNametoProcessor = new HashMap<String, ILttngEventProcessor>();
- private static StateAfterUpdateFactory instance = null;
- private StateAfterUpdateHandlers instantiateHandler = new StateAfterUpdateHandlers();
-
- // ========================================================================
- // Constructors
- // =======================================================================
- private StateAfterUpdateFactory() {
- //create one instance of each individual event handler and add the instance to the map
- eventNametoProcessor.put(StateStrings.Events.LTT_EVENT_SYSCALL_ENTRY
- .getInName(), instantiateHandler.getSyscallEntryHandler());
-
- eventNametoProcessor.put(StateStrings.Events.LTT_EVENT_SYSCALL_EXIT
- .getInName(), instantiateHandler.getsySyscallExitHandler());
-
-// eventNametoProcessor.put(StateStrings.Events.LTT_EVENT_TRAP_ENTRY
-// .getInName(), instantiateHandler.getTrapEntryHandler());
-//
-// eventNametoProcessor.put(StateStrings.Events.LTT_EVENT_TRAP_EXIT
-// .getInName(), instantiateHandler.getTrapExitHandler());
-//
-// eventNametoProcessor.put(StateStrings.Events.LTT_EVENT_PAGE_FAULT_ENTRY
-// .getInName(), instantiateHandler.getTrapEntryHandler());
-//
-// eventNametoProcessor.put(StateStrings.Events.LTT_EVENT_PAGE_FAULT_EXIT
-// .getInName(), instantiateHandler.getTrapExitHandler());
-//
-// eventNametoProcessor.put(StateStrings.Events.LTT_EVENT_PAGE_FAULT_NOSEM_ENTRY
-// .getInName(), instantiateHandler.getTrapEntryHandler());
-//
-// eventNametoProcessor.put(StateStrings.Events.LTT_EVENT_PAGE_FAULT_NOSEM_EXIT
-// .getInName(), instantiateHandler.getTrapExitHandler());
-//
-// eventNametoProcessor.put(StateStrings.Events.LTT_EVENT_IRQ_ENTRY
-// .getInName(), instantiateHandler.getIrqEntryHandler());
-//
-// eventNametoProcessor.put(StateStrings.Events.LTT_EVENT_IRQ_EXIT
-// .getInName(), instantiateHandler.getIrqExitHandler());
-//
-// eventNametoProcessor.put(StateStrings.Events.LTT_EVENT_SOFT_IRQ_RAISE
-// .getInName(), instantiateHandler.getSoftIrqRaiseHandler());
-//
-// eventNametoProcessor.put(StateStrings.Events.LTT_EVENT_SOFT_IRQ_ENTRY
-// .getInName(), instantiateHandler.getSoftIrqEntryHandler());
-//
-// eventNametoProcessor.put(StateStrings.Events.LTT_EVENT_SOFT_IRQ_EXIT
-// .getInName(), instantiateHandler.getSoftIrqExitHandler());
-//
-// eventNametoProcessor.put(StateStrings.Events.LTT_EVENT_LIST_INTERRUPT
-// .getInName(), instantiateHandler.getEnumInterruptHandler());
-//
-// eventNametoProcessor.put(StateStrings.Events.LTT_EVENT_REQUEST_ISSUE
-// .getInName(), instantiateHandler.getBdevRequestIssueHandler());
-//
-// eventNametoProcessor.put(StateStrings.Events.LTT_EVENT_REQUEST_COMPLETE
-// .getInName(), instantiateHandler.getBdevRequestCompleteHandler());
-//
-// eventNametoProcessor.put(StateStrings.Events.LTT_EVENT_FUNCTION_ENTRY
-// .getInName(), instantiateHandler.getFunctionEntryHandler());
-//
-// eventNametoProcessor.put(StateStrings.Events.LTT_EVENT_FUNCTION_EXIT
-// .getInName(), instantiateHandler.getFunctionExitHandler());
-//
-// eventNametoProcessor.put(StateStrings.Events.LTT_EVENT_SYS_CALL_TABLE
-// .getInName(), instantiateHandler.getDumpSyscallHandler());
-//
-// eventNametoProcessor.put(StateStrings.Events.LTT_EVENT_KPROBE_TABLE
-// .getInName(), instantiateHandler.getDumpKprobeHandler());
-//
-// eventNametoProcessor.put(StateStrings.Events.LTT_EVENT_SOFTIRQ_VEC
-// .getInName(), instantiateHandler.getDumpSoftIrqHandler());
-//
-// eventNametoProcessor.put(StateStrings.Events.LTT_EVENT_SCHED_SCHEDULE
-// .getInName(), instantiateHandler.getSchedChangeHandler());
-//
-// eventNametoProcessor.put(StateStrings.Events.LTT_EVENT_PROCESS_FORK
-// .getInName(), instantiateHandler.getProcessForkHandler());
-//
-// eventNametoProcessor.put(StateStrings.Events.LTT_EVENT_KTHREAD_CREATE
-// .getInName(), instantiateHandler.getProcessKernelThreadHandler());
-//
-// eventNametoProcessor.put(StateStrings.Events.LTT_EVENT_PROCESS_EXIT
-// .getInName(), instantiateHandler.getProcessExitHandler());
-//
-// eventNametoProcessor.put(StateStrings.Events.LTT_EVENT_PROCESS_FREE
-// .getInName(), instantiateHandler.getProcessFreeHandler());
-//
-// eventNametoProcessor.put(StateStrings.Events.LTT_EVENT_EXEC
-// .getInName(), instantiateHandler.getProcessExecHandler());
-//
-// eventNametoProcessor.put(StateStrings.Events.LTT_EVENT_THREAD_BRAND
-// .getInName(), instantiateHandler.GetThreadBrandHandler());
-//
-// eventNametoProcessor.put(StateStrings.Events.LTT_EVENT_STATEDUMP_END
-// .getInName(), instantiateHandler.getStateDumpEndHandler());
-//
-// eventNametoProcessor.put(StateStrings.Events.LTT_EVENT_PROCESS_STATE
-// .getInName(), instantiateHandler.getEnumProcessStateHandler());
-
-
- }
-
- // ========================================================================
- // Public methods
- // =======================================================================
- /**
- * The event processors are common to all traces an multiple instances will
- * use more memory unnecessarily
- *
- * @return
- */
- public static StateAfterUpdateFactory getInstance() {
- if (instance == null) {
- instance = new StateAfterUpdateFactory();
- }
- return instance;
- }
-
- /**
- *
- * @return The Event Handler corresponding to the type of event
- */
- public ILttngEventProcessor getEventNametoProcessor(String eventType) {
- return eventNametoProcessor.get(eventType);
- }
-}
diff --git a/lttng/org.eclipse.linuxtools.lttng.core.tests/src/org/eclipse/linuxtools/lttng/core/tests/state/handlers/after/StateAfterUpdateHandlers.java b/lttng/org.eclipse.linuxtools.lttng.core.tests/src/org/eclipse/linuxtools/lttng/core/tests/state/handlers/after/StateAfterUpdateHandlers.java
deleted file mode 100644
index d819238670..0000000000
--- a/lttng/org.eclipse.linuxtools.lttng.core.tests/src/org/eclipse/linuxtools/lttng/core/tests/state/handlers/after/StateAfterUpdateHandlers.java
+++ /dev/null
@@ -1,1615 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2009 Ericsson
- *
- * All rights reserved. This program and the accompanying materials are
- * made available under the terms of the Eclipse Public License v1.0 which
- * accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Alvaro Sanchez-Leon (alvsan09@gmail.com) - Initial API and implementation
- *******************************************************************************/
-package org.eclipse.linuxtools.lttng.core.tests.state.handlers.after;
-
-
-
-import org.eclipse.linuxtools.internal.lttng.core.TraceDebug;
-import org.eclipse.linuxtools.internal.lttng.core.event.LttngEvent;
-import org.eclipse.linuxtools.internal.lttng.core.state.StateStrings.ExecutionMode;
-import org.eclipse.linuxtools.internal.lttng.core.state.evProcessor.ILttngEventProcessor;
-import org.eclipse.linuxtools.internal.lttng.core.state.model.LttngExecutionState;
-import org.eclipse.linuxtools.internal.lttng.core.state.model.LttngProcessState;
-import org.eclipse.linuxtools.internal.lttng.core.state.model.LttngTraceState;
-import org.eclipse.linuxtools.lttng.core.tests.state.handlers.AbsStateUpdate;
-
-/**
- * Process the system call entry event
- *
- * @author alvaro
- *
- */
-@SuppressWarnings("nls")
-class StateAfterUpdateHandlers {
-
- final ILttngEventProcessor getSyscallEntryHandler() {
- AbsStateUpdate handler = new AbsStateUpdate() {
-
- // @Override
- @Override
- public boolean process(LttngEvent trcEvent, LttngTraceState traceSt) {
- // TraceDebug.debug("After event called");
-
- Long cpu = trcEvent.getCpuId();
-
- // No syscall_entry update for initialization process
- LttngProcessState process = traceSt.getRunning_process().get(cpu);
-
- if (pid.equals(process.getPid())) {
- TraceDebug
- .debug("pid values don't match from before and after verification check");
- }
-
- if (process.getPid() == 0L) {
- return true;
- }
-
- // Make sure the top of the stack and the state of the stack are
- // set to the
- // same object.
- LttngExecutionState stackState = process.peekFromExecutionStack();
- if (stackState != process.getState()) {
- TraceDebug
- .debug("The top of the stack does not match to the process state");
- }
-
- if (stackState.getExec_mode().getInName().equals(ExecutionMode.LTTV_STATE_SYSCALL.getInName())) {
- TraceDebug.debug("Unexpected ExecutionMode: "
- + stackState.getExec_mode().getInName()
- + " Expected: "
- + ExecutionMode.LTTV_STATE_SYSCALL.getInName());
- }
-
- if (stackState.getEntry_LttTime() != trcEvent.getTimestamp().getValue()) {
- TraceDebug.debug("Unexpected Entry time: "
- + trcEvent.getTimestamp() + " Expected: "
- + stackState.getEntry_LttTime());
- }
-
- return false;
- }
- };
- return handler;
- }
-
- final ILttngEventProcessor getsySyscallExitHandler() {
- AbsStateUpdate handler = new AbsStateUpdate() {
-
- // @Override
- @Override
- public boolean process(LttngEvent trcEvent, LttngTraceState traceSt) {
-
- // TraceDebug.debug("Syscall Exit After event called");
- Long cpu = trcEvent.getCpuId();
- LttngProcessState process = traceSt.getRunning_process().get(cpu);
-
- /* There can be no system call from PID 0 : unknown state */
- if (process.getPid() == 0L) {
- if (pid != 0L) {
- TraceDebug
- .debug("Unexpected pid from before and after verfication methods, before pid: "
- + pid
- + " after pid: "
- + process.getPid_time());
- }
- return true;
- }
-
- //
- // pop_state(cpu, StateStrings.ExecutionMode.LTTV_STATE_SYSCALL,
- // traceSt, trcEvent.getTimestamp());
- return false;
-
- }
- };
- return handler;
- }
-
- /**
- * Update stacks related to the parsing of an LttngEvent
- *
- * @return
- */
- final ILttngEventProcessor getTrapEntryHandler() {
- AbsStateUpdate handler = new AbsStateUpdate() {
-
- // @Override
- @Override
- public boolean process(LttngEvent trcEvent, LttngTraceState traceSt) {
- // Long cpu = trcEvent.getCpuId();
- //
- // Long trap = getAFieldLong(trcEvent, traceSt,
- // Fields.LTT_FIELD_TRAP_ID);
- // if (trap == null) {
- // return true;
- // }
- //
- // String submode = traceSt.getSyscall_names()
- // .get(trap);
- //
- // if (submode == null) {
- // submode = ExecutionSubMode.LTTV_STATE_SUBMODE_UNKNOWN
- // .getInName();
- // }
- //
- // /* update process state */
- // push_state(cpu, StateStrings.ExecutionMode.LTTV_STATE_TRAP,
- // submode, trcEvent.getTimestamp(), traceSt);
- //
- // /* update cpu status */
- // LTTngCPUState cpust = traceSt.getCpu_states().get(cpu);
- // cpu_push_mode(cpust, StateStrings.CpuMode.LTTV_CPU_TRAP);
- // cpust.setLast_trap(trap); /* update trap status */
- //
- // // update Trap State
- // LttngTrapState trap_state = traceSt.getTrap_states().get(
- // trap);
- // trap_state.incrementRunning();
-
- return false;
-
- }
- };
- return handler;
- }
-
- /**
- *
- * @return
- */
- final ILttngEventProcessor getTrapExitHandler() {
- AbsStateUpdate handler = new AbsStateUpdate() {
-
- // @Override
- @Override
- public boolean process(LttngEvent trcEvent, LttngTraceState traceSt) {
- //
- // Long cpu = trcEvent.getCpuId();
- // LTTngCPUState cpust = traceSt.getCpu_states().get(cpu);
- // Long trap = cpust.getLast_trap();
- //
- // pop_state(cpu, ExecutionMode.LTTV_STATE_TRAP, traceSt,
- // trcEvent
- // .getTimestamp());
- //
- // /* update cpu status */
- // cpu_pop_mode(cpust);
- //
- // /* update trap status */
- // if (trap != -1L) {
- // traceSt.getTrap_states().get(trap).decrementRunning();
- // }
- return false;
-
- }
- };
- return handler;
- }
-
- /**
- *
- * @return
- */
- final ILttngEventProcessor getIrqEntryHandler() {
- AbsStateUpdate handler = new AbsStateUpdate() {
-
- // @Override
- @Override
- public boolean process(LttngEvent trcEvent, LttngTraceState traceSt) {
- //
- // Long cpu = trcEvent.getCpuId();
- //
- // Long irq = getAFieldLong(trcEvent, traceSt,
- // Fields.LTT_FIELD_IRQ_ID);
- // if (irq == null) {
- // return true;
- // }
- //
- // String submode;
- // submode = traceSt.getIrq_names().get(irq);
- //
- // if (submode == null) {
- // submode =
- // ExecutionSubMode.LTTV_STATE_SUBMODE_UNKNOWN.getInName();
- // }
- //
- // /*
- // * Do something with the info about being in user or system
- // mode
- // * when int?
- // */
- // push_state(cpu, ExecutionMode.LTTV_STATE_IRQ, submode,
- // trcEvent
- // .getTimestamp(), traceSt);
- //
- // /* update cpu state */
- // LTTngCPUState cpust = traceSt.getCpu_states().get(cpu);
- // cpu_push_mode(cpust, CpuMode.LTTV_CPU_IRQ); /* mode stack */
- // cpust.setLast_irq(irq); /* last irq */
- //
- // /* udpate irq state */
- // irq_push_mode(traceSt.getIrq_states().get(irq),
- // IRQMode.LTTV_IRQ_BUSY);
- return false;
-
- }
- };
- return handler;
- }
-
- /**
- *
- * @return
- */
- final ILttngEventProcessor getSoftIrqExitHandler() {
- AbsStateUpdate handler = new AbsStateUpdate() {
-
- // @Override
- @Override
- public boolean process(LttngEvent trcEvent, LttngTraceState traceSt) {
- //
- // Long cpu = trcEvent.getCpuId();
- // LTTngCPUState cpust = traceSt.getCpu_states().get(cpu);
- // Long softirq = cpust.getLast_soft_irq();
- // pop_state(cpu, ExecutionMode.LTTV_STATE_SOFT_IRQ, traceSt,
- // trcEvent.getTimestamp());
- //
- // /* update softirq status */
- // if (softirq != -1) {
- // LttngSoftIRQState softIrqstate = traceSt
- // .getSoft_irq_states().get(softirq);
- // softIrqstate.decrementRunning();
- // }
- //
- // /* update cpu status */
- // cpu_pop_mode(cpust);
-
- return false;
- }
- };
- return handler;
- }
-
- /**
- *
- * @return
- */
- final ILttngEventProcessor getIrqExitHandler() {
- AbsStateUpdate handler = new AbsStateUpdate() {
-
- // @Override
- @Override
- public boolean process(LttngEvent trcEvent, LttngTraceState traceSt) {
- //
- // Long cpu = trcEvent.getCpuId();
- //
- // /* update process state */
- // pop_state(cpu, ExecutionMode.LTTV_STATE_IRQ, traceSt,
- // trcEvent
- // .getTimestamp());
- //
- // /* update cpu status */
- // LTTngCPUState cpust = traceSt.getCpu_states().get(cpu);
- // cpu_pop_mode(cpust);
- //
- // /* update irq status */
- // Long last_irq = cpust.getLast_irq();
- // if (last_irq != -1L) {
- // LttngIRQState irq_state = traceSt.getIrq_states().get(
- // last_irq);
- // irq_pop_mode(irq_state);
- // }
-
- return false;
-
- }
- };
- return handler;
- }
-
- /**
- *
- * @return
- */
- final ILttngEventProcessor getSoftIrqRaiseHandler() {
- AbsStateUpdate handler = new AbsStateUpdate() {
-
- // @Override
- @Override
- public boolean process(LttngEvent trcEvent, LttngTraceState traceSt) {
- //
- // // Long cpu = trcEvent.getCpuId();
- //
- // // get event field
- // Long softirq = getAFieldLong(trcEvent, traceSt,
- // Fields.LTT_FIELD_SOFT_IRQ_ID);
- //
- // if (softirq == null) {
- // return true;
- // }
- //
- // // String submode;
- // // String[] softIrqNames = traceSt.getSoft_irq_names();
- // // if (softirq < softIrqNames.length) {
- // // submode = softIrqNames[softirq];
- // // } else {
- // // submode = "softirq " + softirq;
- // // }
- //
- // /* update softirq status */
- // /* a soft irq raises are not cumulative */
- // LttngSoftIRQState irqState =
- // traceSt.getSoft_irq_states().get(
- // softirq);
- // if (irqState != null) {
- // irqState.setPending(1L);
- // } else {
- // TraceDebug
- // .debug("unexpected soft irq id value: " + softirq);
- // }
-
- return false;
-
- }
- };
- return handler;
- }
-
- /**
- *
- * @return
- */
- final ILttngEventProcessor getSoftIrqEntryHandler() {
- AbsStateUpdate handler = new AbsStateUpdate() {
-
- // @Override
- @Override
- public boolean process(LttngEvent trcEvent, LttngTraceState traceSt) {
- //
- // // obtrain cpu
- // Long cpu = trcEvent.getCpuId();
- //
- // // get event field
- // Long softirq = getAFieldLong(trcEvent, traceSt,
- // Fields.LTT_FIELD_SOFT_IRQ_ID);
- //
- // if (softirq == null) {
- // return true;
- // }
- //
- // // obtain submode
- // Map<Long, String> softIrqNames = traceSt.getSoft_irq_names();
- // String submode = softIrqNames.get(softirq);
- // if (submode == null) {
- // submode = "softirq " + softirq;
- // softIrqNames.put(softirq, submode);
- // }
- //
- // /* update softirq status */
- // LttngSoftIRQState irqState =
- // traceSt.getSoft_irq_states().get(
- // softirq);
- // if (irqState != null) {
- // irqState.decrementPending();
- // irqState.incrementRunning();
- // } else {
- // TraceDebug
- // .debug("unexpected soft irq id value: " + softirq);
- // }
- //
- // /* update cpu state */
- // LTTngCPUState cpu_state = traceSt.getCpu_states().get(cpu);
- // cpu_state.setLast_soft_irq(softirq);
- // cpu_push_mode(cpu_state, CpuMode.LTTV_CPU_SOFT_IRQ);
- //
- // /* update process execution mode state stack */
- // push_state(cpu, ExecutionMode.LTTV_STATE_SOFT_IRQ, submode,
- // trcEvent.getTimestamp(), traceSt);
-
- return false;
-
- }
- };
- return handler;
- }
-
- /**
- * Method to handle the event: LTT_EVENT_LIST_INTERRRUPT
- *
- * @return
- */
- final ILttngEventProcessor getEnumInterruptHandler() {
- AbsStateUpdate handler = new AbsStateUpdate() {
-
- // @Override
- @Override
- public boolean process(LttngEvent trcEvent, LttngTraceState traceSt) {
- // String action = getAFieldString(trcEvent, traceSt,
- // Fields.LTT_FIELD_ACTION);
- // Long irq = getAFieldLong(trcEvent, traceSt,
- // Fields.LTT_FIELD_IRQ_ID);
- //
- // Map<Long, String> irq_names = traceSt.getIrq_names();
- //
- // irq_names.put(irq, action);
- return false;
-
- }
- };
- return handler;
- }
-
- /**
- * Handle the event LTT_EVENT_REQUEST_ISSUE
- *
- * @return
- */
- final ILttngEventProcessor getBdevRequestIssueHandler() {
- AbsStateUpdate handler = new AbsStateUpdate() {
-
- // @Override
- @Override
- public boolean process(LttngEvent trcEvent, LttngTraceState traceSt) {
- //
- // // Get Fields
- // Long major = getAFieldLong(trcEvent, traceSt,
- // Fields.LTT_FIELD_MAJOR);
- // Long minor = getAFieldLong(trcEvent, traceSt,
- // Fields.LTT_FIELD_MINOR);
- // Long operation = getAFieldLong(trcEvent, traceSt,
- // Fields.LTT_FIELD_OPERATION);
- //
- // // calculate bdevcode
- // Long devcode = mkdev(major, minor);
- //
- // if (devcode == null) {
- // TraceDebug
- // .debug("incorrect calcualtion of bdevcode input( major: "
- // + major
- // + " minor: "
- // + minor
- // + " operation: " + operation);
- // return true;
- // }
- //
- // Map<Long, LttngBdevState> bdev_states = traceSt
- // .getBdev_states();
- // // Get the instance
- // LttngBdevState bdevState = bdev_states.get(devcode);
- // if (bdevState == null) {
- // bdevState = new LttngBdevState();
- // }
- //
- // // update the mode in the stack
- // if (operation == 0L) {
- // bdevState.getMode_stack().push(
- // BdevMode.LTTV_BDEV_BUSY_READING);
- // } else {
- // bdevState.getMode_stack().push(
- // BdevMode.LTTV_BDEV_BUSY_WRITING);
- // }
- //
- // // make sure it is included in the set
- // bdev_states.put(devcode, bdevState);
- return false;
-
- }
- };
- return handler;
- }
-
- /**
- * <p>
- * Handling event: LTT_EVENT_REQUEST_COMPLETE
- * </p>
- * <p>
- * FIELDS(LTT_FIELD_MAJOR, LTT_FIELD_MINOR, LTT_FIELD_OPERATION
- * </p>
- *
- * @return
- */
- final ILttngEventProcessor getBdevRequestCompleteHandler() {
- AbsStateUpdate handler = new AbsStateUpdate() {
-
- // @Override
- @Override
- public boolean process(LttngEvent trcEvent, LttngTraceState traceSt) {
- //
- // // Get Fields
- // Long major = getAFieldLong(trcEvent, traceSt,
- // Fields.LTT_FIELD_MAJOR);
- // Long minor = getAFieldLong(trcEvent, traceSt,
- // Fields.LTT_FIELD_MINOR);
- // Long operation = getAFieldLong(trcEvent, traceSt,
- // Fields.LTT_FIELD_OPERATION);
- //
- // // calculate bdevcode
- // Long devcode = mkdev(major, minor);
- //
- // if (devcode == null) {
- // TraceDebug
- // .debug("incorrect calcualtion of bdevcode input( major: "
- // + major
- // + " minor: "
- // + minor
- // + " operation: " + operation);
- // return true;
- // }
- //
- // Map<Long, LttngBdevState> bdev_states = traceSt
- // .getBdev_states();
- // // Get the instance
- // LttngBdevState bdevState = bdev_states.get(devcode);
- // if (bdevState == null) {
- // bdevState = new LttngBdevState();
- // }
- //
- // /* update block device */
- // bdev_pop_mode(bdevState);
-
- return false;
-
- }
- };
- return handler;
- }
-
- /**
- * <p>
- * Handles event: LTT_EVENT_FUNCTION_ENTRY
- * </p>
- * <p>
- * FIELDS: LTT_FIELD_THIS_FN, LTT_FIELD_CALL_SITE
- * </p>
- *
- * @return
- */
- final ILttngEventProcessor getFunctionEntryHandler() {
- AbsStateUpdate handler = new AbsStateUpdate() {
-
- // @Override
- @Override
- public boolean process(LttngEvent trcEvent, LttngTraceState traceSt) {
- // Long cpu = trcEvent.getCpuId();
- // Long funcptr = getAFieldLong(trcEvent, traceSt,
- // Fields.LTT_FIELD_THIS_FN);
- //
- // push_function(traceSt, funcptr, cpu);
- return false;
-
- }
- };
- return handler;
- }
-
- /**
- *
- * @return
- */
- final ILttngEventProcessor getFunctionExitHandler() {
- AbsStateUpdate handler = new AbsStateUpdate() {
-
- // @Override
- @Override
- public boolean process(LttngEvent trcEvent, LttngTraceState traceSt) {
- //
- // Long funcptr = getAFieldLong(trcEvent, traceSt,
- // Fields.LTT_FIELD_THIS_FN);
- //
- // pop_function(traceSt, trcEvent, funcptr);
- return false;
-
- }
- };
- return handler;
- }
-
- /**
- * <p>
- * process event: LTT_EVENT_SYS_CALL_TABLE
- * </p>
- * <p>
- * fields: LTT_FIELD_ID, LTT_FIELD_ADDRESS, LTT_FIELD_SYMBOL
- * </p>
- *
- * @return
- */
- final ILttngEventProcessor getDumpSyscallHandler() {
- AbsStateUpdate handler = new AbsStateUpdate() {
-
- // @Override
- @Override
- public boolean process(LttngEvent trcEvent, LttngTraceState traceSt) {
- // // obtain the syscall id
- // Long id = getAFieldLong(trcEvent, traceSt,
- // Fields.LTT_FIELD_ID);
- //
- // // Long address = getAFieldLong(trcEvent, traceSt,
- // // Fields.LTT_FIELD_ADDRESS);
- //
- // // Obtain the symbol
- // String symbol = getAFieldString(trcEvent, traceSt,
- // Fields.LTT_FIELD_SYMBOL);
- //
- // // fill the symbol to the sycall_names collection
- // traceSt.getSyscall_names().put(id, symbol);
-
- return false;
- }
- };
- return handler;
- }
-
- /**
- * <p>
- * Handles event: LTT_EVENT_KPROBE_TABLE
- * </p>
- * <p>
- * Fields: LTT_FIELD_IP, LTT_FIELD_SYMBOL
- * </p>
- *
- * @return
- */
- final ILttngEventProcessor getDumpKprobeHandler() {
- AbsStateUpdate handler = new AbsStateUpdate() {
-
- // @Override
- @Override
- public boolean process(LttngEvent trcEvent, LttngTraceState traceSt) {
- //
- // Long ip = getAFieldLong(trcEvent, traceSt,
- // Fields.LTT_FIELD_IP);
- // String symbol = getAFieldString(trcEvent, traceSt,
- // Fields.LTT_FIELD_SYMBOL);
- //
- // traceSt.getKprobe_table().put(ip, symbol);
-
- return false;
-
- }
- };
- return handler;
- }
-
- /**
- * <p>
- * Handles: LTT_EVENT_SOFTIRQ_VEC
- * </p>
- * <p>
- * Fields: LTT_FIELD_ID, LTT_FIELD_ADDRESS, LTT_FIELD_SYMBOL
- * </p>
- *
- * @return
- */
- final ILttngEventProcessor getDumpSoftIrqHandler() {
- AbsStateUpdate handler = new AbsStateUpdate() {
-
- // @Override
- @Override
- public boolean process(LttngEvent trcEvent, LttngTraceState traceSt) {
- //
- // // Get id
- // Long id = getAFieldLong(trcEvent, traceSt,
- // Fields.LTT_FIELD_ID);
- //
- // // Address not needed
- // // Long address = ltt_event_get_long_unsigned(e,
- // // lttv_trace_get_hook_field(th,
- // // 1));
- //
- // // Get symbol
- // String symbol = getAFieldString(trcEvent, traceSt,
- // Fields.LTT_FIELD_SYMBOL);
- //
- // // Register the soft irq name
- // traceSt.getSoft_irq_names().put(id, symbol);
- return false;
-
- }
- };
- return handler;
- }
-
- /**
- * <p>
- * Handles: LTT_EVENT_SCHED_SCHEDULE
- * </p>
- * <p>
- * Fields: LTT_FIELD_PREV_PID, LTT_FIELD_NEXT_PID, LTT_FIELD_PREV_STATE
- * </p>
- *
- * @return
- */
- final ILttngEventProcessor getSchedChangeHandler() {
- AbsStateUpdate handler = new AbsStateUpdate() {
-
- // @Override
- @Override
- public boolean process(LttngEvent trcEvent, LttngTraceState traceSt) {
- //
- // Long cpu = trcEvent.getCpuId();
- // TmfTimestamp eventTime = trcEvent.getTimestamp();
- //
- // LttngProcessState process = traceSt.getRunning_process().get(
- // cpu);
- //
- // Long pid_out = getAFieldLong(trcEvent, traceSt,
- // Fields.LTT_FIELD_PREV_PID);
- // Long pid_in = getAFieldLong(trcEvent, traceSt,
- // Fields.LTT_FIELD_NEXT_PID);
- // Long state_out = getAFieldLong(trcEvent, traceSt,
- // Fields.LTT_FIELD_PREV_STATE);
- //
- // if (process != null) {
- //
- // /*
- // * We could not know but it was not the idle process
- // * executing. This should only happen at the beginning,
- // * before the first schedule event, and when the initial
- // * information (current process for each CPU) is missing. It
- // * is not obvious how we could, after the fact, compensate
- // * the wrongly attributed statistics.
- // */
- //
- // // This test only makes sense once the state is known and if
- // // there
- // // is no
- // // missing events. We need to silently ignore schedchange
- // // coming
- // // after a
- // // process_free, or it causes glitches. (FIXME)
- // // if(unlikely(process->pid != pid_out)) {
- // // g_assert(process->pid == 0);
- // // }
- // if (process.getPid() == 0
- // && process.getState().getExec_mode() ==
- // ExecutionMode.LTTV_STATE_MODE_UNKNOWN) {
- // if (pid_out == 0) {
- // /*
- // * Scheduling out of pid 0 at beginning of the trace
- // * : we know for sure it is in syscall mode at this
- // * point.
- // */
- // int stackSize = process.getExecution_stack().size();
- // if (stackSize != 1) {
- // TraceDebug
- // .debug("unpexpected process execution stack size, expected 1, received: ");
- // }
- //
- // process.getState().setExec_mode(
- // ExecutionMode.LTTV_STATE_SYSCALL);
- // process.getState().setProc_status(
- // ProcessStatus.LTTV_STATE_WAIT);
- // process.getState().setChage_Time(
- // trcEvent.getTimestamp());
- // process.getState().setEntry_Time(
- // trcEvent.getTimestamp());
- // }
- // } else {
- // if (process.getState().getProc_status() ==
- // ProcessStatus.LTTV_STATE_EXIT) {
- // process.getState().setProc_status(
- // ProcessStatus.LTTV_STATE_ZOMBIE);
- // process.getState().setChage_Time(
- // trcEvent.getTimestamp());
- // } else {
- // if (state_out == 0L) {
- // process.getState().setProc_status(
- // ProcessStatus.LTTV_STATE_WAIT_CPU);
- // } else {
- // process.getState().setProc_status(
- // ProcessStatus.LTTV_STATE_WAIT);
- // }
- //
- // process.getState().setChage_Time(
- // trcEvent.getTimestamp());
- // }
- //
- // if (state_out == 32L || state_out == 64L) { /*
- // * EXIT_DEAD
- // * ||
- // * TASK_DEAD
- // */
- // /* see sched.h for states */
- // if (!exit_process(traceSt, process)) {
- // process.getState().setProc_status(
- // ProcessStatus.LTTV_STATE_DEAD);
- // process.getState().setChage_Time(
- // trcEvent.getTimestamp());
- // }
- // }
- // }
- // }
- // process = lttv_state_find_process_or_create(traceSt, cpu,
- // pid_in, eventTime);
- //
- // traceSt.getRunning_process().put(cpu, process);
- //
- // process.getState().setProc_status(ProcessStatus.LTTV_STATE_RUN);
- // process.getState().setChage_Time(eventTime);
- // process.setCpu(cpu);
- // // process->state->s = LTTV_STATE_RUN;
- // // if(process->usertrace)
- // // process->usertrace->cpu = cpu;
- // // process->last_cpu_index =
- // // ltt_tracefile_num(((LttvTracefileContext*)s)->tf);
- //
- // // process->state->change = s->parent.timestamp;
- //
- // LTTngCPUState cpu_state = traceSt.getCpu_states().get(cpu);
- // /* update cpu status */
- // if (pid_in == 0) {
- //
- // /* going to idle task */
- // cpu_set_base_mode(cpu_state, CpuMode.LTTV_CPU_IDLE);
- // } else {
- // /*
- // * scheduling a real task. we must be careful here: if we
- // * just schedule()'ed to a process that is in a trap, we
- // * must put the cpu in trap mode
- // */
- // cpu_set_base_mode(cpu_state, CpuMode.LTTV_CPU_BUSY);
- // if (process.getState().getExec_mode() ==
- // ExecutionMode.LTTV_STATE_TRAP) {
- // cpu_push_mode(cpu_state, CpuMode.LTTV_CPU_TRAP);
- // }
- // }
- return false;
-
- }
- };
- return handler;
- }
-
- /**
- * <p>
- * Handles: LTT_EVENT_PROCESS_FORK
- * </p>
- * <p>
- * Fields: FIELD_ARRAY(LTT_FIELD_PARENT_PID, LTT_FIELD_CHILD_PID,
- * LTT_FIELD_CHILD_TGID)
- * </p>
- *
- * @return
- */
- final ILttngEventProcessor getProcessForkHandler() {
- AbsStateUpdate handler = new AbsStateUpdate() {
-
- // @Override
- @Override
- public boolean process(LttngEvent trcEvent, LttngTraceState traceSt) {
- //
- // Long cpu = trcEvent.getCpuId();
- // LttngProcessState process = traceSt.getRunning_process().get(
- // cpu);
- // TmfTimestamp timeStamp = trcEvent.getTimestamp();
- //
- // // /* Parent PID */
- // // Long parent_pid = getAFieldLong(trcEvent, traceSt,
- // // Fields.LTT_FIELD_PARENT_PID);
- //
- // /* Child PID */
- // /* In the Linux Kernel, there is one PID per thread. */
- // Long child_pid = getAFieldLong(trcEvent, traceSt,
- // Fields.LTT_FIELD_CHILD_PID);
- //
- // /* Child TGID */
- // /* tgid in the Linux kernel is the "real" POSIX PID. */
- // Long child_tgid = getAFieldLong(trcEvent, traceSt,
- // Fields.LTT_FIELD_CHILD_TGID);
- // if (child_tgid == null) {
- // child_tgid = 0L;
- // }
- //
- // /*
- // * Mathieu : it seems like the process might have been
- // scheduled
- // * in before the fork, and, in a rare case, might be the
- // current
- // * process. This might happen in a SMP case where we don't
- // have
- // * enough precision on the clocks.
- // *
- // * Test reenabled after precision fixes on time. (Mathieu)
- // */
- // // #if 0
- // // zombie_process = lttv_state_find_process(ts, ANY_CPU,
- // // child_pid);
- // //
- // // if(unlikely(zombie_process != NULL)) {
- // // /* Reutilisation of PID. Only now we are sure that the old
- // // PID
- // // * has been released. FIXME : should know when release_task
- // // happens
- // // instead.
- // // */
- // // guint num_cpus = ltt_trace_get_num_cpu(ts->parent.t);
- // // guint i;
- // // for(i=0; i< num_cpus; i++) {
- // // g_assert(zombie_process != ts->running_process[i]);
- // // }
- // //
- // // exit_process(s, zombie_process);
- // // }
- // // #endif //0
- //
- // if (process.getPid() == child_pid) {
- // TraceDebug
- // .debug("Unexpected, process pid equal to child pid: "
- // + child_pid
- // + " Event Time: "
- // + trcEvent.getTimestamp());
- // }
- //
- // // g_assert(process->pid != child_pid);
- // // FIXME : Add this test in the "known state" section
- // // g_assert(process->pid == parent_pid);
- // LttngProcessState child_process = lttv_state_find_process(
- // traceSt, ANY_CPU, child_pid);
- // if (child_process == null) {
- // child_process = create_process(traceSt, cpu, child_pid,
- // child_tgid, timeStamp);
- // } else {
- // /*
- // * The process has already been created : due to time
- // * imprecision between multiple CPUs : it has been scheduled
- // * in before creation. Note that we shouldn't have this kind
- // * of imprecision.
- // *
- // * Simply put a correct parent.
- // */
- // StringBuilder sb = new StringBuilder("Process " + child_pid);
- // sb.append(" has been created at ["
- // + child_process.getCration_time() + "] ");
- // sb.append("and inserted at ["
- // + child_process.getInsertion_time() + "] ");
- // sb.append("before \nfork on cpu " + cpu + " Event time: ["
- // + trcEvent + "]\n.");
- // sb
- // .append("Probably an unsynchronized TSD problem on the traced machine.");
- // TraceDebug.debug(sb.toString());
- //
- // // g_assert(0); /* This is a problematic case : the process
- // // has
- // // beencreated
- // // before the fork event */
- // child_process.setPpid(process.getPid());
- // child_process.setTgid(child_tgid);
- // }
- //
- // if (!child_process.getName().equals(
- // ProcessStatus.LTTV_STATE_UNNAMED.getInName())) {
- // TraceDebug.debug("Unexpected child process status: "
- // + child_process.getName());
- // }
- //
- // child_process.setName(process.getName());
- // child_process.setBrand(process.getBrand());
-
- return false;
-
- }
- };
- return handler;
- }
-
- /**
- * <p>
- * Handles: LTT_EVENT_KTHREAD_CREATE
- * </p>
- * <p>
- * Fields: LTT_FIELD_PID
- * </p>
- *
- * @return
- */
- final ILttngEventProcessor getProcessKernelThreadHandler() {
- AbsStateUpdate handler = new AbsStateUpdate() {
-
- // @Override
- @Override
- public boolean process(LttngEvent trcEvent, LttngTraceState traceSt) {
- // /*
- // * We stamp a newly created process as kernel_thread. The
- // thread
- // * should not be running yet.
- // */
- //
- // LttngExecutionState exState;
- // Long pid;
- // LttngProcessState process;
- //
- // /* PID */
- // pid = getAFieldLong(trcEvent, traceSt, Fields.LTT_FIELD_PID);
- // // s->parent.target_pid = pid;
- //
- // process = lttv_state_find_process_or_create(traceSt, ANY_CPU,
- // pid, new TmfTimestamp());
- //
- // if (!process.getState().getProc_status().equals(
- // ProcessStatus.LTTV_STATE_DEAD)) {
- // // Leave only the first element in the stack with execution
- // // mode to
- // // syscall
- // Stack<LttngExecutionState> processExStack = process
- // .getExecution_stack();
- // exState = processExStack.firstElement();
- // exState.setExec_mode(ExecutionMode.LTTV_STATE_SYSCALL);
- // if (processExStack.size() > 1) {
- // processExStack.clear();
- // processExStack.add(exState);
- // }
- //
- // // update the process state to the only one in the stack
- // process.setState(exState);
- // }
- //
- // process.setType(ProcessType.LTTV_STATE_KERNEL_THREAD);
-
- return false;
-
- }
- };
- return handler;
- }
-
- /**
- * <p>
- * Handles: LTT_EVENT_PROCESS_EXIT
- * </p>
- * <p>
- * LTT_FIELD_PID
- * </p>
- *
- * @return
- */
- final ILttngEventProcessor getProcessExitHandler() {
- AbsStateUpdate handler = new AbsStateUpdate() {
-
- // @Override
- @Override
- public boolean process(LttngEvent trcEvent, LttngTraceState traceSt) {
- //
- // Long pid;
- // LttngProcessState process;
- //
- // pid = getAFieldLong(trcEvent, traceSt,
- // Fields.LTT_FIELD_PID);
- // // s->parent.target_pid = pid;
- //
- // // FIXME : Add this test in the "known state" section
- // // g_assert(process->pid == pid);
- //
- // process = lttv_state_find_process(traceSt, ANY_CPU, pid);
- // if (process != null) {
- // process.getState().setProc_status(
- // ProcessStatus.LTTV_STATE_EXIT);
- // }
- return false;
-
- }
- };
- return handler;
- }
-
- /**
- * <p>
- * Handles: LTT_EVENT_PROCESS_FREE
- * </p>
- * <p>
- * Fields: LTT_FIELD_PID
- * </p>
- *
- * @return
- */
- final ILttngEventProcessor getProcessFreeHandler() {
- AbsStateUpdate handler = new AbsStateUpdate() {
-
- // @Override
- @Override
- public boolean process(LttngEvent trcEvent, LttngTraceState traceSt) {
- //
- // Long release_pid;
- // LttngProcessState process;
- //
- // /* PID of the process to release */
- // release_pid = getAFieldLong(trcEvent, traceSt,
- // Fields.LTT_FIELD_PID);
- // // s->parent.target_pid = release_pid;
- //
- // if (release_pid == 0) {
- // TraceDebug.debug("Unexpected release_pid: 0, Event time: "
- // + trcEvent.getTimestamp());
- // }
- //
- // process = lttv_state_find_process(traceSt, ANY_CPU,
- // release_pid);
- // if (process != null) {
- // exit_process(traceSt, process);
- // }
-
- return false;
- // DISABLED
- // if(process != null) {
- /*
- * release_task is happening at kernel level : we can now safely
- * release the data structure of the process
- */
- // This test is fun, though, as it may happen that
- // at time t : CPU 0 : process_free
- // at time t+150ns : CPU 1 : schedule out
- // Clearly due to time imprecision, we disable it. (Mathieu)
- // If this weird case happen, we have no choice but to put the
- // Currently running process on the cpu to 0.
- // I re-enable it following time precision fixes. (Mathieu)
- // Well, in the case where an process is freed by a process on
- // another
- // CPU
- // and still scheduled, it happens that this is the schedchange
- // that
- // will
- // drop the last reference count. Do not free it here!
-
- // int num_cpus = ltt_trace_get_num_cpu(ts->parent.t);
- // guint i;
- // for(i=0; i< num_cpus; i++) {
- // //g_assert(process != ts->running_process[i]);
- // if(process == ts->running_process[i]) {
- // //ts->running_process[i] = lttv_state_find_process(ts, i, 0);
- // break;
- // }
- // }
- // if(i == num_cpus) /* process is not scheduled */
- // exit_process(s, process);
- // }
- //
- // return false;
-
- }
- };
- return handler;
- }
-
- /**
- * <p>
- * Handles: LTT_EVENT_EXEC
- * </p>
- * <p>
- * FIELDS: LTT_FIELD_FILENAME
- * </p>
- *
- * @return
- */
- final ILttngEventProcessor getProcessExecHandler() {
- AbsStateUpdate handler = new AbsStateUpdate() {
-
- // @Override
- @Override
- public boolean process(LttngEvent trcEvent, LttngTraceState traceSt) {
- //
- // Long cpu = trcEvent.getCpuId();
- // LttngProcessState process = traceSt.getRunning_process().get(
- // cpu);
- //
- // // #if 0//how to use a sequence that must be transformed in a
- // // string
- // // /* PID of the process to release */
- // // guint64 name_len = ltt_event_field_element_number(e,
- // // lttv_trace_get_hook_field(th, 0));
- // // //name = ltt_event_get_string(e,
- // // lttv_trace_get_hook_field(th, 0));
- // // LttField *child = ltt_event_field_element_select(e,
- // // lttv_trace_get_hook_field(th, 0), 0);
- // // gchar *name_begin =
- // // (gchar*)(ltt_event_data(e)+ltt_event_field_offset(e,
- // child));
- // // gchar *null_term_name = g_new(gchar, name_len+1);
- // // memcpy(null_term_name, name_begin, name_len);
- // // null_term_name[name_len] = '\0';
- // // process->name = g_quark_from_string(null_term_name);
- // // #endif //0
- //
- // process.setName(getAFieldString(trcEvent, traceSt,
- // Fields.LTT_FIELD_FILENAME));
- // process.setBrand(StateStrings.LTTV_STATE_UNBRANDED);
- return false;
-
- }
- };
- return handler;
- }
-
- /**
- * <p>
- * LTT_EVENT_THREAD_BRAND
- * </p>
- * <p>
- * FIELDS: LTT_FIELD_NAME
- * </p>
- *
- * @return
- */
- final ILttngEventProcessor GetThreadBrandHandler() {
- AbsStateUpdate handler = new AbsStateUpdate() {
-
- // @Override
- @Override
- public boolean process(LttngEvent trcEvent, LttngTraceState traceSt) {
- //
- // String name;
- // Long cpu = trcEvent.getCpuId();
- // LttngProcessState process = traceSt.getRunning_process().get(
- // cpu);
- //
- // name = getAFieldString(trcEvent, traceSt,
- // Fields.LTT_FIELD_NAME);
- // process.setBrand(name);
- return false;
-
- }
- };
- return handler;
- }
-
- /**
- * @return
- */
- final ILttngEventProcessor getStateDumpEndHandler() {
- AbsStateUpdate handler = new AbsStateUpdate() {
-
- // @Override
- @Override
- public boolean process(LttngEvent trcEvent, LttngTraceState traceSt) {
- //
- // /* For all processes */
- // /*
- // * if kernel thread, if stack[0] is unknown, set to syscall
- // * mode, wait
- // */
- // /* else, if stack[0] is unknown, set to user mode, running */
- // List<LttngProcessState> processes = traceSt.getProcesses();
- // TmfTimestamp time = trcEvent.getTimestamp();
- //
- // for (LttngProcessState process : processes) {
- // fix_process(process, time);
- // }
-
- return false;
-
- }
- };
- return handler;
- }
-
- /**
- * Private method used to establish the first execution state in the stack
- * for a given process
- *
- * @param process
- * @param timestamp
- */
- // private void fix_process(LttngProcessState process,
- // TmfTimestamp timestamp) {
- //
- // LttngExecutionState es;
- // Stack<LttngExecutionState> procStack = process
- // .getExecution_stack();
- //
- // if (process.getType() == ProcessType.LTTV_STATE_KERNEL_THREAD) {
- // es = procStack.firstElement();
- //
- // if (es.getExec_mode() == ExecutionMode.LTTV_STATE_MODE_UNKNOWN) {
- // es.setExec_mode(ExecutionMode.LTTV_STATE_SYSCALL);
- // es
- // .setExec_submode(ExecutionSubMode.LTTV_STATE_SUBMODE_NONE
- // .getInName());
- // es.setEntry_Time(timestamp);
- // es.setChage_Time(timestamp);
- // es.setCum_cpu_time(0L);
- // if (es.getProc_status() == ProcessStatus.LTTV_STATE_UNNAMED) {
- // es.setProc_status(ProcessStatus.LTTV_STATE_WAIT);
- // }
- // }
- // } else {
- // es = procStack.firstElement();
- // if (es.getExec_mode() == ExecutionMode.LTTV_STATE_MODE_UNKNOWN) {
- // es.setExec_mode(ExecutionMode.LTTV_STATE_USER_MODE);
- // es
- // .setExec_submode(ExecutionSubMode.LTTV_STATE_SUBMODE_NONE
- // .getInName());
- // es.setEntry_Time(timestamp);
- // es.setChage_Time(timestamp);
- // es.setCum_cpu_time(0L);
- // if (es.getProc_status() == ProcessStatus.LTTV_STATE_UNNAMED) {
- // es.setProc_status(ProcessStatus.LTTV_STATE_RUN);
- // }
- //
- // if (procStack.size() == 1) {
- // /*
- // * Still in bottom unknown mode, means never did a
- // * system call May be either in user mode, syscall
- // * mode, running or waiting.
- // */
- // /*
- // * FIXME : we may be tagging syscall mode when being
- // * user mode
- // */
- // // Get a new execution State
- // es = new LttngExecutionState();
- //
- // // initialize values
- // es.setExec_mode(ExecutionMode.LTTV_STATE_SYSCALL);
- // es
- // .setExec_submode(ExecutionSubMode.LTTV_STATE_SUBMODE_NONE
- // .getInName());
- // es.setEntry_Time(timestamp);
- // es.setChage_Time(timestamp);
- // es.setCum_cpu_time(0L);
- // es.setProc_status(ProcessStatus.LTTV_STATE_UNNAMED);
- //
- // // Push the new state to the stack
- // procStack.push(es);
- // }
- // }
- // }
- // }
- // };
- // return handler;
- // }
-
- /**
- * <p>
- * Handles: LTT_EVENT_PROCESS_STATE
- * </p>
- * <p>
- * FIELDS: LTT_FIELD_PID, LTT_FIELD_PARENT_PID, LTT_FIELD_NAME,
- * LTT_FIELD_TYPE, LTT_FIELD_MODE, LTT_FIELD_SUBMODE, LTT_FIELD_STATUS,
- * LTT_FIELD_TGID
- * </p>
- *
- * @return
- */
- final ILttngEventProcessor getEnumProcessStateHandler() {
- AbsStateUpdate handler = new AbsStateUpdate() {
-
- // @Override
- @Override
- public boolean process(LttngEvent trcEvent, LttngTraceState traceSt) {
- //
- // Long parent_pid;
- // Long pid;
- // Long tgid;
- // String command;
- // Long cpu = trcEvent.getCpuId();
- // LttngProcessState process = traceSt.getRunning_process().get(
- // cpu);
- // LttngProcessState parent_process;
- // String type;
- // // String mode, submode, status;
- // LttngExecutionState es;
- //
- // /* PID */
- // pid = getAFieldLong(trcEvent, traceSt, Fields.LTT_FIELD_PID);
- //
- // /* Parent PID */
- // parent_pid = getAFieldLong(trcEvent, traceSt,
- // Fields.LTT_FIELD_PARENT_PID);
- //
- // /* Command name */
- // command = getAFieldString(trcEvent, traceSt,
- // Fields.LTT_FIELD_NAME);
- //
- // /* TODO: type field, Values need to be verified */
- // /* type */
- // Long typeVal = getAFieldLong(trcEvent, traceSt,
- // Fields.LTT_FIELD_TYPE);
- // if (typeVal == 0L) {
- // type = ProcessType.LTTV_STATE_KERNEL_THREAD.getInName();
- // } else {
- // type = ProcessType.LTTV_STATE_USER_THREAD.getInName();
- // }
- //
- // // FIXME: type is rarely used, enum must match possible
- // types.
- //
- // // /* mode */
- // // mode = getAFieldString(trcEvent, traceSt,
- // // Fields.LTT_FIELD_MODE);
- // //
- // // /* submode */
- // // submode = getAFieldString(trcEvent, traceSt,
- // // Fields.LTT_FIELD_SUBMODE);
- // //
- // // /* status */
- // // status = getAFieldString(trcEvent, traceSt,
- // // Fields.LTT_FIELD_STATUS);
- //
- // /* TGID */
- // tgid = getAFieldLong(trcEvent, traceSt,
- // Fields.LTT_FIELD_TGID);
- // if (tgid == null) {
- // tgid = 0L;
- // }
- //
- // if (pid == 0) {
- // for (Long acpu : traceSt.getCpu_states().keySet()) {
- // process = lttv_state_find_process(traceSt, acpu, pid);
- // if (process != null) {
- // process.setPpid(parent_pid);
- // process.setTgid(tgid);
- // process.setName(command);
- // process
- // .setType(ProcessType.LTTV_STATE_KERNEL_THREAD);
- // } else {
- // StringBuilder sb = new StringBuilder(
- // "Unexpected, null process read from the TraceState list of processes, event time: "
- // + trcEvent.getTimestamp());
- // TraceDebug.debug(sb.toString());
- // }
- // }
- // } else {
- // /*
- // * The process might exist if a process was forked while
- // * performing the state dump.
- // */
- // process = lttv_state_find_process(traceSt, ANY_CPU, pid);
- // if (process == null) {
- // parent_process = lttv_state_find_process(traceSt,
- // ANY_CPU, parent_pid);
- // process = create_process(traceSt, cpu, pid, tgid,
- // command, trcEvent.getTimestamp());
- // if (parent_process != null) {
- // process.setPpid(parent_process.getPid());
- // }
- //
- // /* Keep the stack bottom : a running user mode */
- // /*
- // * Disabled because of inconsistencies in the current
- // * statedump states.
- // */
- // if (type.equals(ProcessType.LTTV_STATE_KERNEL_THREAD
- // .getInName())) {
- // /*
- // * FIXME Kernel thread : can be in syscall or
- // * interrupt or trap.
- // */
- // /*
- // * Will cause expected trap when in fact being
- // * syscall (even after end of statedump event) Will
- // * cause expected interrupt when being syscall.
- // * (only before end of statedump event)
- // */
- // process
- // .setType(ProcessType.LTTV_STATE_KERNEL_THREAD);
- //
- // // #if 0
- // // es->t = LTTV_STATE_SYSCALL;
- // // es->s = status;
- // // es->n = submode;
- // // #endif //0
- // } else {
- // /*
- // * User space process : bottom : user mode either
- // * currently running or scheduled out. can be
- // * scheduled out because interrupted in (user mode
- // * or in syscall) or because of an explicit call to
- // * the scheduler in syscall. Note that the scheduler
- // * call comes after the irq_exit, so never in
- // * interrupt context.
- // */
- // // temp workaround : set size to 1 : only have user
- // // mode
- // // bottom of stack.
- // // will cause g_info message of expected syscall
- // // mode when
- // // in fact being
- // // in user mode. Can also cause expected trap when
- // // in fact
- // // being user
- // // mode in the event of a page fault reenabling
- // // interrupts
- // // in the handler.
- // // Expected syscall and trap can also happen after
- // // the end
- // // of statedump
- // // This will cause a
- // // "popping last state on stack, ignoring it."
- //
- // // process->execution_stack =
- // // g_array_set_size(process->execution_stack, 1);
- // // es = process->state =
- // // &g_array_index(process->execution_stack,
- // // LttvExecutionState, 0);
- // // a new process must have only one state in the
- // // stack and
- // // be the same as the current state
- // // es = process.getState();
- // // es.setExec_mode(ExecutionMode.LTTV_STATE_MODE_UNKNOWN);
- // // es.setProc_status(ProcessStatus.LTTV_STATE_UNNAMED);
- // // es
- // //
- // .setExec_submode(ExecutionSubMode.LTTV_STATE_SUBMODE_UNKNOWN
- // // .getInName());
- //
- // // #if 0
- // // es->t = LTTV_STATE_USER_MODE;
- // // es->s = status;
- // // es->n = submode;
- // // #endif //0
- // }
- // // TODO: clean up comments above: Moved repeated code
- // // from both
- // // if / else blocks above,
- // // comments left temporarily for easier visualization
- // // and
- // // comparision with c code
- // es = process.getState();
- // es.setExec_mode(ExecutionMode.LTTV_STATE_MODE_UNKNOWN);
- // es.setProc_status(ProcessStatus.LTTV_STATE_UNNAMED);
- // es
- // .setExec_submode(ExecutionSubMode.LTTV_STATE_SUBMODE_UNKNOWN
- // .getInName());
- // // #if 0
- // // /* UNKNOWN STATE */
- // // {
- // // es = process->state =
- // // &g_array_index(process->execution_stack,
- // // LttvExecutionState, 1);
- // // es->t = LTTV_STATE_MODE_UNKNOWN;
- // // es->s = LTTV_STATE_UNNAMED;
- // // es->n = LTTV_STATE_SUBMODE_UNKNOWN;
- // // }
- // // #endif //0
- // } else {
- // /*
- // * The process has already been created : Probably was
- // * forked while dumping the process state or was simply
- // * scheduled in prior to get the state dump event.
- // */
- // process.setPpid(parent_pid);
- // process.setTgid(tgid);
- // process.setName(command);
- // if (type.equals(ProcessType.LTTV_STATE_KERNEL_THREAD
- // .getInName())) {
- // process
- // .setType(ProcessType.LTTV_STATE_KERNEL_THREAD);
- // } else {
- // process.setType(ProcessType.LTTV_STATE_USER_THREAD);
- // }
- //
- // // es =
- // // &g_array_index(process->execution_stack,
- // // LttvExecutionState,
- // // 0);
- // // #if 0
- // // if(es->t == LTTV_STATE_MODE_UNKNOWN) {
- // // if(type == LTTV_STATE_KERNEL_THREAD)
- // // es->t = LTTV_STATE_SYSCALL;
- // // else
- // // es->t = LTTV_STATE_USER_MODE;
- // // }
- // // #endif //0
- // /*
- // * Don't mess around with the stack, it will eventually
- // * become ok after the end of state dump.
- // */
- // }
- // }
-
- return false;
-
- }
- };
- return handler;
- }
-
-}
diff --git a/lttng/org.eclipse.linuxtools.lttng.core.tests/src/org/eclipse/linuxtools/lttng/core/tests/state/handlers/before/StateBeforeUpdateFactory.java b/lttng/org.eclipse.linuxtools.lttng.core.tests/src/org/eclipse/linuxtools/lttng/core/tests/state/handlers/before/StateBeforeUpdateFactory.java
deleted file mode 100644
index 841554ad7a..0000000000
--- a/lttng/org.eclipse.linuxtools.lttng.core.tests/src/org/eclipse/linuxtools/lttng/core/tests/state/handlers/before/StateBeforeUpdateFactory.java
+++ /dev/null
@@ -1,160 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2009 Ericsson
- *
- * All rights reserved. This program and the accompanying materials are
- * made available under the terms of the Eclipse Public License v1.0 which
- * accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Alvaro Sanchez-Leon (alvsan09@gmail.com) - Initial API and implementation
- *******************************************************************************/
-package org.eclipse.linuxtools.lttng.core.tests.state.handlers.before;
-
-import java.util.HashMap;
-import java.util.Map;
-
-import org.eclipse.linuxtools.internal.lttng.core.state.StateStrings;
-import org.eclipse.linuxtools.internal.lttng.core.state.evProcessor.ILttngEventProcessor;
-
-/**
- * Builds a Map from string event name to a processing handler object, the
- * processors implement the same interface to facilitate transparent methods
- * call,
- *
- * The map key STring is the entry point of the raw events, using a hash speeds
- * up the resolution of the appropriate processor
- *
- * @author alvaro
- *
- */
-public class StateBeforeUpdateFactory {
- // ========================================================================
- // Data
- // =======================================================================
- private final Map<String, ILttngEventProcessor> eventNametoProcessor = new HashMap<String, ILttngEventProcessor>();
- private static StateBeforeUpdateFactory instance = null;
- private StateBeforeUpdateHandlers instantiateHandler = new StateBeforeUpdateHandlers();
-
- // ========================================================================
- // Constructors
- // =======================================================================
- private StateBeforeUpdateFactory() {
- //create one instance of each individual event handler and add the instance to the map
- eventNametoProcessor.put(StateStrings.Events.LTT_EVENT_SYSCALL_ENTRY
- .getInName(), instantiateHandler.getSyscallEntryHandler());
-
- eventNametoProcessor.put(StateStrings.Events.LTT_EVENT_SYSCALL_EXIT
- .getInName(), instantiateHandler.getsySyscallExitHandler());
-//
-// eventNametoProcessor.put(StateStrings.Events.LTT_EVENT_TRAP_ENTRY
-// .getInName(), instantiateHandler.getTrapEntryHandler());
-//
-// eventNametoProcessor.put(StateStrings.Events.LTT_EVENT_TRAP_EXIT
-// .getInName(), instantiateHandler.getTrapExitHandler());
-//
-// eventNametoProcessor.put(StateStrings.Events.LTT_EVENT_PAGE_FAULT_ENTRY
-// .getInName(), instantiateHandler.getTrapEntryHandler());
-//
-// eventNametoProcessor.put(StateStrings.Events.LTT_EVENT_PAGE_FAULT_EXIT
-// .getInName(), instantiateHandler.getTrapExitHandler());
-//
-// eventNametoProcessor.put(StateStrings.Events.LTT_EVENT_PAGE_FAULT_NOSEM_ENTRY
-// .getInName(), instantiateHandler.getTrapEntryHandler());
-//
-// eventNametoProcessor.put(StateStrings.Events.LTT_EVENT_PAGE_FAULT_NOSEM_EXIT
-// .getInName(), instantiateHandler.getTrapExitHandler());
-//
-// eventNametoProcessor.put(StateStrings.Events.LTT_EVENT_IRQ_ENTRY
-// .getInName(), instantiateHandler.getIrqEntryHandler());
-//
-// eventNametoProcessor.put(StateStrings.Events.LTT_EVENT_IRQ_EXIT
-// .getInName(), instantiateHandler.getIrqExitHandler());
-//
-// eventNametoProcessor.put(StateStrings.Events.LTT_EVENT_SOFT_IRQ_RAISE
-// .getInName(), instantiateHandler.getSoftIrqRaiseHandler());
-//
-// eventNametoProcessor.put(StateStrings.Events.LTT_EVENT_SOFT_IRQ_ENTRY
-// .getInName(), instantiateHandler.getSoftIrqEntryHandler());
-//
-// eventNametoProcessor.put(StateStrings.Events.LTT_EVENT_SOFT_IRQ_EXIT
-// .getInName(), instantiateHandler.getSoftIrqExitHandler());
-//
-// eventNametoProcessor.put(StateStrings.Events.LTT_EVENT_LIST_INTERRUPT
-// .getInName(), instantiateHandler.getEnumInterruptHandler());
-//
-// eventNametoProcessor.put(StateStrings.Events.LTT_EVENT_REQUEST_ISSUE
-// .getInName(), instantiateHandler.getBdevRequestIssueHandler());
-//
-// eventNametoProcessor.put(StateStrings.Events.LTT_EVENT_REQUEST_COMPLETE
-// .getInName(), instantiateHandler.getBdevRequestCompleteHandler());
-//
-// eventNametoProcessor.put(StateStrings.Events.LTT_EVENT_FUNCTION_ENTRY
-// .getInName(), instantiateHandler.getFunctionEntryHandler());
-//
-// eventNametoProcessor.put(StateStrings.Events.LTT_EVENT_FUNCTION_EXIT
-// .getInName(), instantiateHandler.getFunctionExitHandler());
-//
-// eventNametoProcessor.put(StateStrings.Events.LTT_EVENT_SYS_CALL_TABLE
-// .getInName(), instantiateHandler.getDumpSyscallHandler());
-//
-// eventNametoProcessor.put(StateStrings.Events.LTT_EVENT_KPROBE_TABLE
-// .getInName(), instantiateHandler.getDumpKprobeHandler());
-//
-// eventNametoProcessor.put(StateStrings.Events.LTT_EVENT_SOFTIRQ_VEC
-// .getInName(), instantiateHandler.getDumpSoftIrqHandler());
-//
-// eventNametoProcessor.put(StateStrings.Events.LTT_EVENT_SCHED_SCHEDULE
-// .getInName(), instantiateHandler.getSchedChangeHandler());
-//
-// eventNametoProcessor.put(StateStrings.Events.LTT_EVENT_PROCESS_FORK
-// .getInName(), instantiateHandler.getProcessForkHandler());
-//
-// eventNametoProcessor.put(StateStrings.Events.LTT_EVENT_KTHREAD_CREATE
-// .getInName(), instantiateHandler.getProcessKernelThreadHandler());
-//
-// eventNametoProcessor.put(StateStrings.Events.LTT_EVENT_PROCESS_EXIT
-// .getInName(), instantiateHandler.getProcessExitHandler());
-//
-// eventNametoProcessor.put(StateStrings.Events.LTT_EVENT_PROCESS_FREE
-// .getInName(), instantiateHandler.getProcessFreeHandler());
-//
-// eventNametoProcessor.put(StateStrings.Events.LTT_EVENT_EXEC
-// .getInName(), instantiateHandler.getProcessExecHandler());
-//
-// eventNametoProcessor.put(StateStrings.Events.LTT_EVENT_THREAD_BRAND
-// .getInName(), instantiateHandler.GetThreadBrandHandler());
-//
-// eventNametoProcessor.put(StateStrings.Events.LTT_EVENT_STATEDUMP_END
-// .getInName(), instantiateHandler.getStateDumpEndHandler());
-//
-// eventNametoProcessor.put(StateStrings.Events.LTT_EVENT_PROCESS_STATE
-// .getInName(), instantiateHandler.getEnumProcessStateHandler());
-
-
- }
-
- // ========================================================================
- // Public methods
- // =======================================================================
- /**
- * The event processors are common to all traces an multiple instances will
- * use more memory unnecessarily
- *
- * @return
- */
- public static StateBeforeUpdateFactory getInstance() {
- if (instance == null) {
- instance = new StateBeforeUpdateFactory();
- }
- return instance;
- }
-
- /**
- *
- * @return The Event Handler corresponding to the type of event
- */
- public ILttngEventProcessor getEventNametoProcessor(String eventType) {
- return eventNametoProcessor.get(eventType);
- }
-}
diff --git a/lttng/org.eclipse.linuxtools.lttng.core.tests/src/org/eclipse/linuxtools/lttng/core/tests/state/handlers/before/StateBeforeUpdateHandlers.java b/lttng/org.eclipse.linuxtools.lttng.core.tests/src/org/eclipse/linuxtools/lttng/core/tests/state/handlers/before/StateBeforeUpdateHandlers.java
deleted file mode 100644
index 1aa5bf45ce..0000000000
--- a/lttng/org.eclipse.linuxtools.lttng.core.tests/src/org/eclipse/linuxtools/lttng/core/tests/state/handlers/before/StateBeforeUpdateHandlers.java
+++ /dev/null
@@ -1,1605 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2009 Ericsson
- *
- * All rights reserved. This program and the accompanying materials are
- * made available under the terms of the Eclipse Public License v1.0 which
- * accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Alvaro Sanchez-Leon (alvsan09@gmail.com) - Initial API and implementation
- *******************************************************************************/
-package org.eclipse.linuxtools.lttng.core.tests.state.handlers.before;
-
-import org.eclipse.linuxtools.internal.lttng.core.TraceDebug;
-import org.eclipse.linuxtools.internal.lttng.core.event.LttngEvent;
-import org.eclipse.linuxtools.internal.lttng.core.state.StateStrings.ExecutionMode;
-import org.eclipse.linuxtools.internal.lttng.core.state.StateStrings.ExecutionSubMode;
-import org.eclipse.linuxtools.internal.lttng.core.state.StateStrings.Fields;
-import org.eclipse.linuxtools.internal.lttng.core.state.evProcessor.ILttngEventProcessor;
-import org.eclipse.linuxtools.internal.lttng.core.state.model.LttngExecutionState;
-import org.eclipse.linuxtools.internal.lttng.core.state.model.LttngProcessState;
-import org.eclipse.linuxtools.internal.lttng.core.state.model.LttngTraceState;
-import org.eclipse.linuxtools.lttng.core.tests.state.handlers.AbsStateUpdate;
-
-/**
- * Process the system call entry event
- *
- * @author alvaro
- *
- */
-@SuppressWarnings("nls")
-class StateBeforeUpdateHandlers {
-
- final ILttngEventProcessor getSyscallEntryHandler() {
- AbsStateUpdate handler = new AbsStateUpdate() {
-
- // @Override
- @Override
- public boolean process(LttngEvent trcEvent, LttngTraceState traceSt) {
- // TraceDebug.debug("Before event called");
- //
- Long cpu = trcEvent.getCpuId();
-
- // No syscall_entry update for initialization process
- LttngProcessState process = traceSt.getRunning_process().get(cpu);
-
- pid = process.getPid();
- if (pid == 0L) {
- return true;
- }
-
- // Get the expected event field
- Long syscall = getAFieldLong(trcEvent, traceSt,
- Fields.LTT_FIELD_SYSCALL_ID);
- if (syscall == null) {
- TraceDebug.debug("Syscall Field not found in Event: "
- + trcEvent.getMarkerName());
- return true;
- }
-
- String submode = traceSt.getSyscall_names().get(syscall);
-
- if (submode == null) {
- TraceDebug.debug("Submode not found in Event");
- submode = ExecutionSubMode.LTTV_STATE_SUBMODE_UNKNOWN
- .getInName();
- }
-
- exState = new LttngExecutionState();
- exState.setExec_mode(ExecutionMode.LTTV_STATE_SYSCALL);
- exState.setExec_submode(submode);
- exState.setEntry_Time(trcEvent.getTimestamp().getValue());
- exState.setChange_Time(trcEvent.getTimestamp().getValue());
- exState.setCum_cpu_time(0L);
-
- return false;
- }
- };
- return handler;
- }
-
- final ILttngEventProcessor getsySyscallExitHandler() {
- AbsStateUpdate handler = new AbsStateUpdate() {
-
- // @Override
- @Override
- public boolean process(LttngEvent trcEvent, LttngTraceState traceSt) {
-
- Long cpu = trcEvent.getCpuId();
- LttngProcessState process = traceSt.getRunning_process().get(cpu);
-
- /* There can be no system call from PID 0 : unknown state */
- pid = process.getPid();
- if (pid == 0L) {
- return true;
- }
-
- // pop_state(cpu, StateStrings.ExecutionMode.LTTV_STATE_SYSCALL,
- // traceSt, trcEvent.getTimestamp());
- return false;
-
- }
- };
- return handler;
- }
-
- /**
- * Update stacks related to the parsing of an LttngEvent
- *
- * @return
- */
- final ILttngEventProcessor getTrapEntryHandler() {
- AbsStateUpdate handler = new AbsStateUpdate() {
-
- // @Override
- @Override
- public boolean process(LttngEvent trcEvent, LttngTraceState traceSt) {
- // Long cpu = trcEvent.getCpuId();
- //
- // Long trap = getAFieldLong(trcEvent, traceSt,
- // Fields.LTT_FIELD_TRAP_ID);
- // if (trap == null) {
- // return true;
- // }
- //
- // String submode = traceSt.getSyscall_names()
- // .get(trap);
- //
- // if (submode == null) {
- // submode = ExecutionSubMode.LTTV_STATE_SUBMODE_UNKNOWN
- // .getInName();
- // }
- //
- // /* update process state */
- // push_state(cpu, StateStrings.ExecutionMode.LTTV_STATE_TRAP,
- // submode, trcEvent.getTimestamp(), traceSt);
- //
- // /* update cpu status */
- // LTTngCPUState cpust = traceSt.getCpu_states().get(cpu);
- // cpu_push_mode(cpust, StateStrings.CpuMode.LTTV_CPU_TRAP);
- // cpust.setLast_trap(trap); /* update trap status */
- //
- // // update Trap State
- // LttngTrapState trap_state = traceSt.getTrap_states().get(
- // trap);
- // trap_state.incrementRunning();
-
- return false;
-
- }
- };
- return handler;
- }
-
- /**
- *
- * @return
- */
- final ILttngEventProcessor getTrapExitHandler() {
- AbsStateUpdate handler = new AbsStateUpdate() {
-
- // @Override
- @Override
- public boolean process(LttngEvent trcEvent, LttngTraceState traceSt) {
- //
- // Long cpu = trcEvent.getCpuId();
- // LTTngCPUState cpust = traceSt.getCpu_states().get(cpu);
- // Long trap = cpust.getLast_trap();
- //
- // pop_state(cpu, ExecutionMode.LTTV_STATE_TRAP, traceSt,
- // trcEvent
- // .getTimestamp());
- //
- // /* update cpu status */
- // cpu_pop_mode(cpust);
- //
- // /* update trap status */
- // if (trap != -1L) {
- // traceSt.getTrap_states().get(trap).decrementRunning();
- // }
- return false;
-
- }
- };
- return handler;
- }
-
- /**
- *
- * @return
- */
- final ILttngEventProcessor getIrqEntryHandler() {
- AbsStateUpdate handler = new AbsStateUpdate() {
-
- // @Override
- @Override
- public boolean process(LttngEvent trcEvent, LttngTraceState traceSt) {
- //
- // Long cpu = trcEvent.getCpuId();
- //
- // Long irq = getAFieldLong(trcEvent, traceSt,
- // Fields.LTT_FIELD_IRQ_ID);
- // if (irq == null) {
- // return true;
- // }
- //
- // String submode;
- // submode = traceSt.getIrq_names().get(irq);
- //
- // if (submode == null) {
- // submode =
- // ExecutionSubMode.LTTV_STATE_SUBMODE_UNKNOWN.getInName();
- // }
- //
- // /*
- // * Do something with the info about being in user or system
- // mode
- // * when int?
- // */
- // push_state(cpu, ExecutionMode.LTTV_STATE_IRQ, submode,
- // trcEvent
- // .getTimestamp(), traceSt);
- //
- // /* update cpu state */
- // LTTngCPUState cpust = traceSt.getCpu_states().get(cpu);
- // cpu_push_mode(cpust, CpuMode.LTTV_CPU_IRQ); /* mode stack */
- // cpust.setLast_irq(irq); /* last irq */
- //
- // /* udpate irq state */
- // irq_push_mode(traceSt.getIrq_states().get(irq),
- // IRQMode.LTTV_IRQ_BUSY);
- return false;
-
- }
- };
- return handler;
- }
-
- /**
- *
- * @return
- */
- final ILttngEventProcessor getSoftIrqExitHandler() {
- AbsStateUpdate handler = new AbsStateUpdate() {
-
- // @Override
- @Override
- public boolean process(LttngEvent trcEvent, LttngTraceState traceSt) {
- //
- // Long cpu = trcEvent.getCpuId();
- // LTTngCPUState cpust = traceSt.getCpu_states().get(cpu);
- // Long softirq = cpust.getLast_soft_irq();
- // pop_state(cpu, ExecutionMode.LTTV_STATE_SOFT_IRQ, traceSt,
- // trcEvent.getTimestamp());
- //
- // /* update softirq status */
- // if (softirq != -1) {
- // LttngSoftIRQState softIrqstate = traceSt
- // .getSoft_irq_states().get(softirq);
- // softIrqstate.decrementRunning();
- // }
- //
- // /* update cpu status */
- // cpu_pop_mode(cpust);
-
- return false;
- }
- };
- return handler;
- }
-
- /**
- *
- * @return
- */
- final ILttngEventProcessor getIrqExitHandler() {
- AbsStateUpdate handler = new AbsStateUpdate() {
-
- // @Override
- @Override
- public boolean process(LttngEvent trcEvent, LttngTraceState traceSt) {
- //
- // Long cpu = trcEvent.getCpuId();
- //
- // /* update process state */
- // pop_state(cpu, ExecutionMode.LTTV_STATE_IRQ, traceSt,
- // trcEvent
- // .getTimestamp());
- //
- // /* update cpu status */
- // LTTngCPUState cpust = traceSt.getCpu_states().get(cpu);
- // cpu_pop_mode(cpust);
- //
- // /* update irq status */
- // Long last_irq = cpust.getLast_irq();
- // if (last_irq != -1L) {
- // LttngIRQState irq_state = traceSt.getIrq_states().get(
- // last_irq);
- // irq_pop_mode(irq_state);
- // }
-
- return false;
-
- }
- };
- return handler;
- }
-
- /**
- *
- * @return
- */
- final ILttngEventProcessor getSoftIrqRaiseHandler() {
- AbsStateUpdate handler = new AbsStateUpdate() {
-
- // @Override
- @Override
- public boolean process(LttngEvent trcEvent, LttngTraceState traceSt) {
- //
- // // Long cpu = trcEvent.getCpuId();
- //
- // // get event field
- // Long softirq = getAFieldLong(trcEvent, traceSt,
- // Fields.LTT_FIELD_SOFT_IRQ_ID);
- //
- // if (softirq == null) {
- // return true;
- // }
- //
- // // String submode;
- // // String[] softIrqNames = traceSt.getSoft_irq_names();
- // // if (softirq < softIrqNames.length) {
- // // submode = softIrqNames[softirq];
- // // } else {
- // // submode = "softirq " + softirq;
- // // }
- //
- // /* update softirq status */
- // /* a soft irq raises are not cumulative */
- // LttngSoftIRQState irqState =
- // traceSt.getSoft_irq_states().get(
- // softirq);
- // if (irqState != null) {
- // irqState.setPending(1L);
- // } else {
- // TraceDebug
- // .debug("unexpected soft irq id value: " + softirq);
- // }
-
- return false;
-
- }
- };
- return handler;
- }
-
- /**
- *
- * @return
- */
- final ILttngEventProcessor getSoftIrqEntryHandler() {
- AbsStateUpdate handler = new AbsStateUpdate() {
-
- // @Override
- @Override
- public boolean process(LttngEvent trcEvent, LttngTraceState traceSt) {
- //
- // // obtrain cpu
- // Long cpu = trcEvent.getCpuId();
- //
- // // get event field
- // Long softirq = getAFieldLong(trcEvent, traceSt,
- // Fields.LTT_FIELD_SOFT_IRQ_ID);
- //
- // if (softirq == null) {
- // return true;
- // }
- //
- // // obtain submode
- // Map<Long, String> softIrqNames = traceSt.getSoft_irq_names();
- // String submode = softIrqNames.get(softirq);
- // if (submode == null) {
- // submode = "softirq " + softirq;
- // softIrqNames.put(softirq, submode);
- // }
- //
- // /* update softirq status */
- // LttngSoftIRQState irqState =
- // traceSt.getSoft_irq_states().get(
- // softirq);
- // if (irqState != null) {
- // irqState.decrementPending();
- // irqState.incrementRunning();
- // } else {
- // TraceDebug
- // .debug("unexpected soft irq id value: " + softirq);
- // }
- //
- // /* update cpu state */
- // LTTngCPUState cpu_state = traceSt.getCpu_states().get(cpu);
- // cpu_state.setLast_soft_irq(softirq);
- // cpu_push_mode(cpu_state, CpuMode.LTTV_CPU_SOFT_IRQ);
- //
- // /* update process execution mode state stack */
- // push_state(cpu, ExecutionMode.LTTV_STATE_SOFT_IRQ, submode,
- // trcEvent.getTimestamp(), traceSt);
-
- return false;
-
- }
- };
- return handler;
- }
-
- /**
- * Method to handle the event: LTT_EVENT_LIST_INTERRRUPT
- *
- * @return
- */
- final ILttngEventProcessor getEnumInterruptHandler() {
- AbsStateUpdate handler = new AbsStateUpdate() {
-
- // @Override
- @Override
- public boolean process(LttngEvent trcEvent, LttngTraceState traceSt) {
- // String action = getAFieldString(trcEvent, traceSt,
- // Fields.LTT_FIELD_ACTION);
- // Long irq = getAFieldLong(trcEvent, traceSt,
- // Fields.LTT_FIELD_IRQ_ID);
- //
- // Map<Long, String> irq_names = traceSt.getIrq_names();
- //
- // irq_names.put(irq, action);
- return false;
-
- }
- };
- return handler;
- }
-
- /**
- * Handle the event LTT_EVENT_REQUEST_ISSUE
- *
- * @return
- */
- final ILttngEventProcessor getBdevRequestIssueHandler() {
- AbsStateUpdate handler = new AbsStateUpdate() {
-
- // @Override
- @Override
- public boolean process(LttngEvent trcEvent, LttngTraceState traceSt) {
- //
- // // Get Fields
- // Long major = getAFieldLong(trcEvent, traceSt,
- // Fields.LTT_FIELD_MAJOR);
- // Long minor = getAFieldLong(trcEvent, traceSt,
- // Fields.LTT_FIELD_MINOR);
- // Long operation = getAFieldLong(trcEvent, traceSt,
- // Fields.LTT_FIELD_OPERATION);
- //
- // // calculate bdevcode
- // Long devcode = mkdev(major, minor);
- //
- // if (devcode == null) {
- // TraceDebug
- // .debug("incorrect calcualtion of bdevcode input( major: "
- // + major
- // + " minor: "
- // + minor
- // + " operation: " + operation);
- // return true;
- // }
- //
- // Map<Long, LttngBdevState> bdev_states = traceSt
- // .getBdev_states();
- // // Get the instance
- // LttngBdevState bdevState = bdev_states.get(devcode);
- // if (bdevState == null) {
- // bdevState = new LttngBdevState();
- // }
- //
- // // update the mode in the stack
- // if (operation == 0L) {
- // bdevState.getMode_stack().push(
- // BdevMode.LTTV_BDEV_BUSY_READING);
- // } else {
- // bdevState.getMode_stack().push(
- // BdevMode.LTTV_BDEV_BUSY_WRITING);
- // }
- //
- // // make sure it is included in the set
- // bdev_states.put(devcode, bdevState);
- return false;
-
- }
- };
- return handler;
- }
-
- /**
- * <p>
- * Handling event: LTT_EVENT_REQUEST_COMPLETE
- * </p>
- * <p>
- * FIELDS(LTT_FIELD_MAJOR, LTT_FIELD_MINOR, LTT_FIELD_OPERATION
- * </p>
- *
- * @return
- */
- final ILttngEventProcessor getBdevRequestCompleteHandler() {
- AbsStateUpdate handler = new AbsStateUpdate() {
-
- // @Override
- @Override
- public boolean process(LttngEvent trcEvent, LttngTraceState traceSt) {
- //
- // // Get Fields
- // Long major = getAFieldLong(trcEvent, traceSt,
- // Fields.LTT_FIELD_MAJOR);
- // Long minor = getAFieldLong(trcEvent, traceSt,
- // Fields.LTT_FIELD_MINOR);
- // Long operation = getAFieldLong(trcEvent, traceSt,
- // Fields.LTT_FIELD_OPERATION);
- //
- // // calculate bdevcode
- // Long devcode = mkdev(major, minor);
- //
- // if (devcode == null) {
- // TraceDebug
- // .debug("incorrect calcualtion of bdevcode input( major: "
- // + major
- // + " minor: "
- // + minor
- // + " operation: " + operation);
- // return true;
- // }
- //
- // Map<Long, LttngBdevState> bdev_states = traceSt
- // .getBdev_states();
- // // Get the instance
- // LttngBdevState bdevState = bdev_states.get(devcode);
- // if (bdevState == null) {
- // bdevState = new LttngBdevState();
- // }
- //
- // /* update block device */
- // bdev_pop_mode(bdevState);
-
- return false;
-
- }
- };
- return handler;
- }
-
- /**
- * <p>
- * Handles event: LTT_EVENT_FUNCTION_ENTRY
- * </p>
- * <p>
- * FIELDS: LTT_FIELD_THIS_FN, LTT_FIELD_CALL_SITE
- * </p>
- *
- * @return
- */
- final ILttngEventProcessor getFunctionEntryHandler() {
- AbsStateUpdate handler = new AbsStateUpdate() {
-
- // @Override
- @Override
- public boolean process(LttngEvent trcEvent, LttngTraceState traceSt) {
- // Long cpu = trcEvent.getCpuId();
- // Long funcptr = getAFieldLong(trcEvent, traceSt,
- // Fields.LTT_FIELD_THIS_FN);
- //
- // push_function(traceSt, funcptr, cpu);
- return false;
-
- }
- };
- return handler;
- }
-
- /**
- *
- * @return
- */
- final ILttngEventProcessor getFunctionExitHandler() {
- AbsStateUpdate handler = new AbsStateUpdate() {
-
- // @Override
- @Override
- public boolean process(LttngEvent trcEvent, LttngTraceState traceSt) {
- //
- // Long funcptr = getAFieldLong(trcEvent, traceSt,
- // Fields.LTT_FIELD_THIS_FN);
- //
- // pop_function(traceSt, trcEvent, funcptr);
- return false;
-
- }
- };
- return handler;
- }
-
- /**
- * <p>
- * process event: LTT_EVENT_SYS_CALL_TABLE
- * </p>
- * <p>
- * fields: LTT_FIELD_ID, LTT_FIELD_ADDRESS, LTT_FIELD_SYMBOL
- * </p>
- *
- * @return
- */
- final ILttngEventProcessor getDumpSyscallHandler() {
- AbsStateUpdate handler = new AbsStateUpdate() {
-
- // @Override
- @Override
- public boolean process(LttngEvent trcEvent, LttngTraceState traceSt) {
- // // obtain the syscall id
- // Long id = getAFieldLong(trcEvent, traceSt,
- // Fields.LTT_FIELD_ID);
- //
- // // Long address = getAFieldLong(trcEvent, traceSt,
- // // Fields.LTT_FIELD_ADDRESS);
- //
- // // Obtain the symbol
- // String symbol = getAFieldString(trcEvent, traceSt,
- // Fields.LTT_FIELD_SYMBOL);
- //
- // // fill the symbol to the sycall_names collection
- // traceSt.getSyscall_names().put(id, symbol);
-
- return false;
- }
- };
- return handler;
- }
-
- /**
- * <p>
- * Handles event: LTT_EVENT_KPROBE_TABLE
- * </p>
- * <p>
- * Fields: LTT_FIELD_IP, LTT_FIELD_SYMBOL
- * </p>
- *
- * @return
- */
- final ILttngEventProcessor getDumpKprobeHandler() {
- AbsStateUpdate handler = new AbsStateUpdate() {
-
- // @Override
- @Override
- public boolean process(LttngEvent trcEvent, LttngTraceState traceSt) {
- //
- // Long ip = getAFieldLong(trcEvent, traceSt,
- // Fields.LTT_FIELD_IP);
- // String symbol = getAFieldString(trcEvent, traceSt,
- // Fields.LTT_FIELD_SYMBOL);
- //
- // traceSt.getKprobe_table().put(ip, symbol);
-
- return false;
-
- }
- };
- return handler;
- }
-
- /**
- * <p>
- * Handles: LTT_EVENT_SOFTIRQ_VEC
- * </p>
- * <p>
- * Fields: LTT_FIELD_ID, LTT_FIELD_ADDRESS, LTT_FIELD_SYMBOL
- * </p>
- *
- * @return
- */
- final ILttngEventProcessor getDumpSoftIrqHandler() {
- AbsStateUpdate handler = new AbsStateUpdate() {
-
- // @Override
- @Override
- public boolean process(LttngEvent trcEvent, LttngTraceState traceSt) {
- //
- // // Get id
- // Long id = getAFieldLong(trcEvent, traceSt,
- // Fields.LTT_FIELD_ID);
- //
- // // Address not needed
- // // Long address = ltt_event_get_long_unsigned(e,
- // // lttv_trace_get_hook_field(th,
- // // 1));
- //
- // // Get symbol
- // String symbol = getAFieldString(trcEvent, traceSt,
- // Fields.LTT_FIELD_SYMBOL);
- //
- // // Register the soft irq name
- // traceSt.getSoft_irq_names().put(id, symbol);
- return false;
-
- }
- };
- return handler;
- }
-
- /**
- * <p>
- * Handles: LTT_EVENT_SCHED_SCHEDULE
- * </p>
- * <p>
- * Fields: LTT_FIELD_PREV_PID, LTT_FIELD_NEXT_PID, LTT_FIELD_PREV_STATE
- * </p>
- *
- * @return
- */
- final ILttngEventProcessor getSchedChangeHandler() {
- AbsStateUpdate handler = new AbsStateUpdate() {
-
- // @Override
- @Override
- public boolean process(LttngEvent trcEvent, LttngTraceState traceSt) {
- //
- // Long cpu = trcEvent.getCpuId();
- // TmfTimestamp eventTime = trcEvent.getTimestamp();
- //
- // LttngProcessState process = traceSt.getRunning_process().get(
- // cpu);
- //
- // Long pid_out = getAFieldLong(trcEvent, traceSt,
- // Fields.LTT_FIELD_PREV_PID);
- // Long pid_in = getAFieldLong(trcEvent, traceSt,
- // Fields.LTT_FIELD_NEXT_PID);
- // Long state_out = getAFieldLong(trcEvent, traceSt,
- // Fields.LTT_FIELD_PREV_STATE);
- //
- // if (process != null) {
- //
- // /*
- // * We could not know but it was not the idle process
- // * executing. This should only happen at the beginning,
- // * before the first schedule event, and when the initial
- // * information (current process for each CPU) is missing. It
- // * is not obvious how we could, after the fact, compensate
- // * the wrongly attributed statistics.
- // */
- //
- // // This test only makes sense once the state is known and if
- // // there
- // // is no
- // // missing events. We need to silently ignore schedchange
- // // coming
- // // after a
- // // process_free, or it causes glitches. (FIXME)
- // // if(unlikely(process->pid != pid_out)) {
- // // g_assert(process->pid == 0);
- // // }
- // if (process.getPid() == 0
- // && process.getState().getExec_mode() ==
- // ExecutionMode.LTTV_STATE_MODE_UNKNOWN) {
- // if (pid_out == 0) {
- // /*
- // * Scheduling out of pid 0 at beginning of the trace
- // * : we know for sure it is in syscall mode at this
- // * point.
- // */
- // int stackSize = process.getExecution_stack().size();
- // if (stackSize != 1) {
- // TraceDebug
- // .debug("unpexpected process execution stack size, expected 1, received: ");
- // }
- //
- // process.getState().setExec_mode(
- // ExecutionMode.LTTV_STATE_SYSCALL);
- // process.getState().setProc_status(
- // ProcessStatus.LTTV_STATE_WAIT);
- // process.getState().setChage_Time(
- // trcEvent.getTimestamp());
- // process.getState().setEntry_Time(
- // trcEvent.getTimestamp());
- // }
- // } else {
- // if (process.getState().getProc_status() ==
- // ProcessStatus.LTTV_STATE_EXIT) {
- // process.getState().setProc_status(
- // ProcessStatus.LTTV_STATE_ZOMBIE);
- // process.getState().setChage_Time(
- // trcEvent.getTimestamp());
- // } else {
- // if (state_out == 0L) {
- // process.getState().setProc_status(
- // ProcessStatus.LTTV_STATE_WAIT_CPU);
- // } else {
- // process.getState().setProc_status(
- // ProcessStatus.LTTV_STATE_WAIT);
- // }
- //
- // process.getState().setChage_Time(
- // trcEvent.getTimestamp());
- // }
- //
- // if (state_out == 32L || state_out == 64L) { /*
- // * EXIT_DEAD
- // * ||
- // * TASK_DEAD
- // */
- // /* see sched.h for states */
- // if (!exit_process(traceSt, process)) {
- // process.getState().setProc_status(
- // ProcessStatus.LTTV_STATE_DEAD);
- // process.getState().setChage_Time(
- // trcEvent.getTimestamp());
- // }
- // }
- // }
- // }
- // process = lttv_state_find_process_or_create(traceSt, cpu,
- // pid_in, eventTime);
- //
- // traceSt.getRunning_process().put(cpu, process);
- //
- // process.getState().setProc_status(ProcessStatus.LTTV_STATE_RUN);
- // process.getState().setChage_Time(eventTime);
- // process.setCpu(cpu);
- // // process->state->s = LTTV_STATE_RUN;
- // // if(process->usertrace)
- // // process->usertrace->cpu = cpu;
- // // process->last_cpu_index =
- // // ltt_tracefile_num(((LttvTracefileContext*)s)->tf);
- //
- // // process->state->change = s->parent.timestamp;
- //
- // LTTngCPUState cpu_state = traceSt.getCpu_states().get(cpu);
- // /* update cpu status */
- // if (pid_in == 0) {
- //
- // /* going to idle task */
- // cpu_set_base_mode(cpu_state, CpuMode.LTTV_CPU_IDLE);
- // } else {
- // /*
- // * scheduling a real task. we must be careful here: if we
- // * just schedule()'ed to a process that is in a trap, we
- // * must put the cpu in trap mode
- // */
- // cpu_set_base_mode(cpu_state, CpuMode.LTTV_CPU_BUSY);
- // if (process.getState().getExec_mode() ==
- // ExecutionMode.LTTV_STATE_TRAP) {
- // cpu_push_mode(cpu_state, CpuMode.LTTV_CPU_TRAP);
- // }
- // }
- return false;
-
- }
- };
- return handler;
- }
-
- /**
- * <p>
- * Handles: LTT_EVENT_PROCESS_FORK
- * </p>
- * <p>
- * Fields: FIELD_ARRAY(LTT_FIELD_PARENT_PID, LTT_FIELD_CHILD_PID,
- * LTT_FIELD_CHILD_TGID)
- * </p>
- *
- * @return
- */
- final ILttngEventProcessor getProcessForkHandler() {
- AbsStateUpdate handler = new AbsStateUpdate() {
-
- // @Override
- @Override
- public boolean process(LttngEvent trcEvent, LttngTraceState traceSt) {
- //
- // Long cpu = trcEvent.getCpuId();
- // LttngProcessState process = traceSt.getRunning_process().get(
- // cpu);
- // TmfTimestamp timeStamp = trcEvent.getTimestamp();
- //
- // // /* Parent PID */
- // // Long parent_pid = getAFieldLong(trcEvent, traceSt,
- // // Fields.LTT_FIELD_PARENT_PID);
- //
- // /* Child PID */
- // /* In the Linux Kernel, there is one PID per thread. */
- // Long child_pid = getAFieldLong(trcEvent, traceSt,
- // Fields.LTT_FIELD_CHILD_PID);
- //
- // /* Child TGID */
- // /* tgid in the Linux kernel is the "real" POSIX PID. */
- // Long child_tgid = getAFieldLong(trcEvent, traceSt,
- // Fields.LTT_FIELD_CHILD_TGID);
- // if (child_tgid == null) {
- // child_tgid = 0L;
- // }
- //
- // /*
- // * Mathieu : it seems like the process might have been
- // scheduled
- // * in before the fork, and, in a rare case, might be the
- // current
- // * process. This might happen in a SMP case where we don't
- // have
- // * enough precision on the clocks.
- // *
- // * Test reenabled after precision fixes on time. (Mathieu)
- // */
- // // #if 0
- // // zombie_process = lttv_state_find_process(ts, ANY_CPU,
- // // child_pid);
- // //
- // // if(unlikely(zombie_process != NULL)) {
- // // /* Reutilisation of PID. Only now we are sure that the old
- // // PID
- // // * has been released. FIXME : should know when release_task
- // // happens
- // // instead.
- // // */
- // // guint num_cpus = ltt_trace_get_num_cpu(ts->parent.t);
- // // guint i;
- // // for(i=0; i< num_cpus; i++) {
- // // g_assert(zombie_process != ts->running_process[i]);
- // // }
- // //
- // // exit_process(s, zombie_process);
- // // }
- // // #endif //0
- //
- // if (process.getPid() == child_pid) {
- // TraceDebug
- // .debug("Unexpected, process pid equal to child pid: "
- // + child_pid
- // + " Event Time: "
- // + trcEvent.getTimestamp());
- // }
- //
- // // g_assert(process->pid != child_pid);
- // // FIXME : Add this test in the "known state" section
- // // g_assert(process->pid == parent_pid);
- // LttngProcessState child_process = lttv_state_find_process(
- // traceSt, ANY_CPU, child_pid);
- // if (child_process == null) {
- // child_process = create_process(traceSt, cpu, child_pid,
- // child_tgid, timeStamp);
- // } else {
- // /*
- // * The process has already been created : due to time
- // * imprecision between multiple CPUs : it has been scheduled
- // * in before creation. Note that we shouldn't have this kind
- // * of imprecision.
- // *
- // * Simply put a correct parent.
- // */
- // StringBuilder sb = new StringBuilder("Process " + child_pid);
- // sb.append(" has been created at ["
- // + child_process.getCration_time() + "] ");
- // sb.append("and inserted at ["
- // + child_process.getInsertion_time() + "] ");
- // sb.append("before \nfork on cpu " + cpu + " Event time: ["
- // + trcEvent + "]\n.");
- // sb
- // .append("Probably an unsynchronized TSD problem on the traced machine.");
- // TraceDebug.debug(sb.toString());
- //
- // // g_assert(0); /* This is a problematic case : the process
- // // has
- // // beencreated
- // // before the fork event */
- // child_process.setPpid(process.getPid());
- // child_process.setTgid(child_tgid);
- // }
- //
- // if (!child_process.getName().equals(
- // ProcessStatus.LTTV_STATE_UNNAMED.getInName())) {
- // TraceDebug.debug("Unexpected child process status: "
- // + child_process.getName());
- // }
- //
- // child_process.setName(process.getName());
- // child_process.setBrand(process.getBrand());
-
- return false;
-
- }
- };
- return handler;
- }
-
- /**
- * <p>
- * Handles: LTT_EVENT_KTHREAD_CREATE
- * </p>
- * <p>
- * Fields: LTT_FIELD_PID
- * </p>
- *
- * @return
- */
- final ILttngEventProcessor getProcessKernelThreadHandler() {
- AbsStateUpdate handler = new AbsStateUpdate() {
-
- // @Override
- @Override
- public boolean process(LttngEvent trcEvent, LttngTraceState traceSt) {
- // /*
- // * We stamp a newly created process as kernel_thread. The
- // thread
- // * should not be running yet.
- // */
- //
- // LttngExecutionState exState;
- // Long pid;
- // LttngProcessState process;
- //
- // /* PID */
- // pid = getAFieldLong(trcEvent, traceSt, Fields.LTT_FIELD_PID);
- // // s->parent.target_pid = pid;
- //
- // process = lttv_state_find_process_or_create(traceSt, ANY_CPU,
- // pid, new TmfTimestamp());
- //
- // if (!process.getState().getProc_status().equals(
- // ProcessStatus.LTTV_STATE_DEAD)) {
- // // Leave only the first element in the stack with execution
- // // mode to
- // // syscall
- // Stack<LttngExecutionState> processExStack = process
- // .getExecution_stack();
- // exState = processExStack.firstElement();
- // exState.setExec_mode(ExecutionMode.LTTV_STATE_SYSCALL);
- // if (processExStack.size() > 1) {
- // processExStack.clear();
- // processExStack.add(exState);
- // }
- //
- // // update the process state to the only one in the stack
- // process.setState(exState);
- // }
- //
- // process.setType(ProcessType.LTTV_STATE_KERNEL_THREAD);
-
- return false;
-
- }
- };
- return handler;
- }
-
- /**
- * <p>
- * Handles: LTT_EVENT_PROCESS_EXIT
- * </p>
- * <p>
- * LTT_FIELD_PID
- * </p>
- *
- * @return
- */
- final ILttngEventProcessor getProcessExitHandler() {
- AbsStateUpdate handler = new AbsStateUpdate() {
-
- // @Override
- @Override
- public boolean process(LttngEvent trcEvent, LttngTraceState traceSt) {
- //
- // Long pid;
- // LttngProcessState process;
- //
- // pid = getAFieldLong(trcEvent, traceSt,
- // Fields.LTT_FIELD_PID);
- // // s->parent.target_pid = pid;
- //
- // // FIXME : Add this test in the "known state" section
- // // g_assert(process->pid == pid);
- //
- // process = lttv_state_find_process(traceSt, ANY_CPU, pid);
- // if (process != null) {
- // process.getState().setProc_status(
- // ProcessStatus.LTTV_STATE_EXIT);
- // }
- return false;
-
- }
- };
- return handler;
- }
-
- /**
- * <p>
- * Handles: LTT_EVENT_PROCESS_FREE
- * </p>
- * <p>
- * Fields: LTT_FIELD_PID
- * </p>
- *
- * @return
- */
- final ILttngEventProcessor getProcessFreeHandler() {
- AbsStateUpdate handler = new AbsStateUpdate() {
-
- // @Override
- @Override
- public boolean process(LttngEvent trcEvent, LttngTraceState traceSt) {
- //
- // Long release_pid;
- // LttngProcessState process;
- //
- // /* PID of the process to release */
- // release_pid = getAFieldLong(trcEvent, traceSt,
- // Fields.LTT_FIELD_PID);
- // // s->parent.target_pid = release_pid;
- //
- // if (release_pid == 0) {
- // TraceDebug.debug("Unexpected release_pid: 0, Event time: "
- // + trcEvent.getTimestamp());
- // }
- //
- // process = lttv_state_find_process(traceSt, ANY_CPU,
- // release_pid);
- // if (process != null) {
- // exit_process(traceSt, process);
- // }
-
- return false;
- // DISABLED
- // if(process != null) {
- /*
- * release_task is happening at kernel level : we can now safely
- * release the data structure of the process
- */
- // This test is fun, though, as it may happen that
- // at time t : CPU 0 : process_free
- // at time t+150ns : CPU 1 : schedule out
- // Clearly due to time imprecision, we disable it. (Mathieu)
- // If this weird case happen, we have no choice but to put the
- // Currently running process on the cpu to 0.
- // I re-enable it following time precision fixes. (Mathieu)
- // Well, in the case where an process is freed by a process on
- // another
- // CPU
- // and still scheduled, it happens that this is the schedchange
- // that
- // will
- // drop the last reference count. Do not free it here!
-
- // int num_cpus = ltt_trace_get_num_cpu(ts->parent.t);
- // guint i;
- // for(i=0; i< num_cpus; i++) {
- // //g_assert(process != ts->running_process[i]);
- // if(process == ts->running_process[i]) {
- // //ts->running_process[i] = lttv_state_find_process(ts, i, 0);
- // break;
- // }
- // }
- // if(i == num_cpus) /* process is not scheduled */
- // exit_process(s, process);
- // }
- //
- // return false;
-
- }
- };
- return handler;
- }
-
- /**
- * <p>
- * Handles: LTT_EVENT_EXEC
- * </p>
- * <p>
- * FIELDS: LTT_FIELD_FILENAME
- * </p>
- *
- * @return
- */
- final ILttngEventProcessor getProcessExecHandler() {
- AbsStateUpdate handler = new AbsStateUpdate() {
-
- // @Override
- @Override
- public boolean process(LttngEvent trcEvent, LttngTraceState traceSt) {
- //
- // Long cpu = trcEvent.getCpuId();
- // LttngProcessState process = traceSt.getRunning_process().get(
- // cpu);
- //
- // // #if 0//how to use a sequence that must be transformed in a
- // // string
- // // /* PID of the process to release */
- // // guint64 name_len = ltt_event_field_element_number(e,
- // // lttv_trace_get_hook_field(th, 0));
- // // //name = ltt_event_get_string(e,
- // // lttv_trace_get_hook_field(th, 0));
- // // LttField *child = ltt_event_field_element_select(e,
- // // lttv_trace_get_hook_field(th, 0), 0);
- // // gchar *name_begin =
- // // (gchar*)(ltt_event_data(e)+ltt_event_field_offset(e,
- // child));
- // // gchar *null_term_name = g_new(gchar, name_len+1);
- // // memcpy(null_term_name, name_begin, name_len);
- // // null_term_name[name_len] = '\0';
- // // process->name = g_quark_from_string(null_term_name);
- // // #endif //0
- //
- // process.setName(getAFieldString(trcEvent, traceSt,
- // Fields.LTT_FIELD_FILENAME));
- // process.setBrand(StateStrings.LTTV_STATE_UNBRANDED);
- return false;
-
- }
- };
- return handler;
- }
-
- /**
- * <p>
- * LTT_EVENT_THREAD_BRAND
- * </p>
- * <p>
- * FIELDS: LTT_FIELD_NAME
- * </p>
- *
- * @return
- */
- final ILttngEventProcessor GetThreadBrandHandler() {
- AbsStateUpdate handler = new AbsStateUpdate() {
-
- // @Override
- @Override
- public boolean process(LttngEvent trcEvent, LttngTraceState traceSt) {
- //
- // String name;
- // Long cpu = trcEvent.getCpuId();
- // LttngProcessState process = traceSt.getRunning_process().get(
- // cpu);
- //
- // name = getAFieldString(trcEvent, traceSt,
- // Fields.LTT_FIELD_NAME);
- // process.setBrand(name);
- return false;
-
- }
- };
- return handler;
- }
-
- /**
- * @return
- */
- final ILttngEventProcessor getStateDumpEndHandler() {
- AbsStateUpdate handler = new AbsStateUpdate() {
-
- // @Override
- @Override
- public boolean process(LttngEvent trcEvent, LttngTraceState traceSt) {
- //
- // /* For all processes */
- // /*
- // * if kernel thread, if stack[0] is unknown, set to syscall
- // * mode, wait
- // */
- // /* else, if stack[0] is unknown, set to user mode, running */
- // List<LttngProcessState> processes = traceSt.getProcesses();
- // TmfTimestamp time = trcEvent.getTimestamp();
- //
- // for (LttngProcessState process : processes) {
- // fix_process(process, time);
- // }
-
- return false;
-
- }
- };
- return handler;
- }
-
- /**
- * Private method used to establish the first execution state in the stack
- * for a given process
- *
- * @param process
- * @param timestamp
- */
- // private void fix_process(LttngProcessState process,
- // TmfTimestamp timestamp) {
- //
- // LttngExecutionState es;
- // Stack<LttngExecutionState> procStack = process
- // .getExecution_stack();
- //
- // if (process.getType() == ProcessType.LTTV_STATE_KERNEL_THREAD) {
- // es = procStack.firstElement();
- //
- // if (es.getExec_mode() == ExecutionMode.LTTV_STATE_MODE_UNKNOWN) {
- // es.setExec_mode(ExecutionMode.LTTV_STATE_SYSCALL);
- // es
- // .setExec_submode(ExecutionSubMode.LTTV_STATE_SUBMODE_NONE
- // .getInName());
- // es.setEntry_Time(timestamp);
- // es.setChage_Time(timestamp);
- // es.setCum_cpu_time(0L);
- // if (es.getProc_status() == ProcessStatus.LTTV_STATE_UNNAMED) {
- // es.setProc_status(ProcessStatus.LTTV_STATE_WAIT);
- // }
- // }
- // } else {
- // es = procStack.firstElement();
- // if (es.getExec_mode() == ExecutionMode.LTTV_STATE_MODE_UNKNOWN) {
- // es.setExec_mode(ExecutionMode.LTTV_STATE_USER_MODE);
- // es
- // .setExec_submode(ExecutionSubMode.LTTV_STATE_SUBMODE_NONE
- // .getInName());
- // es.setEntry_Time(timestamp);
- // es.setChage_Time(timestamp);
- // es.setCum_cpu_time(0L);
- // if (es.getProc_status() == ProcessStatus.LTTV_STATE_UNNAMED) {
- // es.setProc_status(ProcessStatus.LTTV_STATE_RUN);
- // }
- //
- // if (procStack.size() == 1) {
- // /*
- // * Still in bottom unknown mode, means never did a
- // * system call May be either in user mode, syscall
- // * mode, running or waiting.
- // */
- // /*
- // * FIXME : we may be tagging syscall mode when being
- // * user mode
- // */
- // // Get a new execution State
- // es = new LttngExecutionState();
- //
- // // initialize values
- // es.setExec_mode(ExecutionMode.LTTV_STATE_SYSCALL);
- // es
- // .setExec_submode(ExecutionSubMode.LTTV_STATE_SUBMODE_NONE
- // .getInName());
- // es.setEntry_Time(timestamp);
- // es.setChage_Time(timestamp);
- // es.setCum_cpu_time(0L);
- // es.setProc_status(ProcessStatus.LTTV_STATE_UNNAMED);
- //
- // // Push the new state to the stack
- // procStack.push(es);
- // }
- // }
- // }
- // }
- // };
- // return handler;
- // }
-
- /**
- * <p>
- * Handles: LTT_EVENT_PROCESS_STATE
- * </p>
- * <p>
- * FIELDS: LTT_FIELD_PID, LTT_FIELD_PARENT_PID, LTT_FIELD_NAME,
- * LTT_FIELD_TYPE, LTT_FIELD_MODE, LTT_FIELD_SUBMODE, LTT_FIELD_STATUS,
- * LTT_FIELD_TGID
- * </p>
- *
- * @return
- */
- final ILttngEventProcessor getEnumProcessStateHandler() {
- AbsStateUpdate handler = new AbsStateUpdate() {
-
- // @Override
- @Override
- public boolean process(LttngEvent trcEvent, LttngTraceState traceSt) {
- //
- // Long parent_pid;
- // Long pid;
- // Long tgid;
- // String command;
- // Long cpu = trcEvent.getCpuId();
- // LttngProcessState process = traceSt.getRunning_process().get(
- // cpu);
- // LttngProcessState parent_process;
- // String type;
- // // String mode, submode, status;
- // LttngExecutionState es;
- //
- // /* PID */
- // pid = getAFieldLong(trcEvent, traceSt, Fields.LTT_FIELD_PID);
- //
- // /* Parent PID */
- // parent_pid = getAFieldLong(trcEvent, traceSt,
- // Fields.LTT_FIELD_PARENT_PID);
- //
- // /* Command name */
- // command = getAFieldString(trcEvent, traceSt,
- // Fields.LTT_FIELD_NAME);
- //
- // /* TODO: type field, Values need to be verified */
- // /* type */
- // Long typeVal = getAFieldLong(trcEvent, traceSt,
- // Fields.LTT_FIELD_TYPE);
- // if (typeVal == 0L) {
- // type = ProcessType.LTTV_STATE_KERNEL_THREAD.getInName();
- // } else {
- // type = ProcessType.LTTV_STATE_USER_THREAD.getInName();
- // }
- //
- // // FIXME: type is rarely used, enum must match possible
- // types.
- //
- // // /* mode */
- // // mode = getAFieldString(trcEvent, traceSt,
- // // Fields.LTT_FIELD_MODE);
- // //
- // // /* submode */
- // // submode = getAFieldString(trcEvent, traceSt,
- // // Fields.LTT_FIELD_SUBMODE);
- // //
- // // /* status */
- // // status = getAFieldString(trcEvent, traceSt,
- // // Fields.LTT_FIELD_STATUS);
- //
- // /* TGID */
- // tgid = getAFieldLong(trcEvent, traceSt,
- // Fields.LTT_FIELD_TGID);
- // if (tgid == null) {
- // tgid = 0L;
- // }
- //
- // if (pid == 0) {
- // for (Long acpu : traceSt.getCpu_states().keySet()) {
- // process = lttv_state_find_process(traceSt, acpu, pid);
- // if (process != null) {
- // process.setPpid(parent_pid);
- // process.setTgid(tgid);
- // process.setName(command);
- // process
- // .setType(ProcessType.LTTV_STATE_KERNEL_THREAD);
- // } else {
- // StringBuilder sb = new StringBuilder(
- // "Unexpected, null process read from the TraceState list of processes, event time: "
- // + trcEvent.getTimestamp());
- // TraceDebug.debug(sb.toString());
- // }
- // }
- // } else {
- // /*
- // * The process might exist if a process was forked while
- // * performing the state dump.
- // */
- // process = lttv_state_find_process(traceSt, ANY_CPU, pid);
- // if (process == null) {
- // parent_process = lttv_state_find_process(traceSt,
- // ANY_CPU, parent_pid);
- // process = create_process(traceSt, cpu, pid, tgid,
- // command, trcEvent.getTimestamp());
- // if (parent_process != null) {
- // process.setPpid(parent_process.getPid());
- // }
- //
- // /* Keep the stack bottom : a running user mode */
- // /*
- // * Disabled because of inconsistencies in the current
- // * statedump states.
- // */
- // if (type.equals(ProcessType.LTTV_STATE_KERNEL_THREAD
- // .getInName())) {
- // /*
- // * FIXME Kernel thread : can be in syscall or
- // * interrupt or trap.
- // */
- // /*
- // * Will cause expected trap when in fact being
- // * syscall (even after end of statedump event) Will
- // * cause expected interrupt when being syscall.
- // * (only before end of statedump event)
- // */
- // process
- // .setType(ProcessType.LTTV_STATE_KERNEL_THREAD);
- //
- // // #if 0
- // // es->t = LTTV_STATE_SYSCALL;
- // // es->s = status;
- // // es->n = submode;
- // // #endif //0
- // } else {
- // /*
- // * User space process : bottom : user mode either
- // * currently running or scheduled out. can be
- // * scheduled out because interrupted in (user mode
- // * or in syscall) or because of an explicit call to
- // * the scheduler in syscall. Note that the scheduler
- // * call comes after the irq_exit, so never in
- // * interrupt context.
- // */
- // // temp workaround : set size to 1 : only have user
- // // mode
- // // bottom of stack.
- // // will cause g_info message of expected syscall
- // // mode when
- // // in fact being
- // // in user mode. Can also cause expected trap when
- // // in fact
- // // being user
- // // mode in the event of a page fault reenabling
- // // interrupts
- // // in the handler.
- // // Expected syscall and trap can also happen after
- // // the end
- // // of statedump
- // // This will cause a
- // // "popping last state on stack, ignoring it."
- //
- // // process->execution_stack =
- // // g_array_set_size(process->execution_stack, 1);
- // // es = process->state =
- // // &g_array_index(process->execution_stack,
- // // LttvExecutionState, 0);
- // // a new process must have only one state in the
- // // stack and
- // // be the same as the current state
- // // es = process.getState();
- // // es.setExec_mode(ExecutionMode.LTTV_STATE_MODE_UNKNOWN);
- // // es.setProc_status(ProcessStatus.LTTV_STATE_UNNAMED);
- // // es
- // //
- // .setExec_submode(ExecutionSubMode.LTTV_STATE_SUBMODE_UNKNOWN
- // // .getInName());
- //
- // // #if 0
- // // es->t = LTTV_STATE_USER_MODE;
- // // es->s = status;
- // // es->n = submode;
- // // #endif //0
- // }
- // // TODO: clean up comments above: Moved repeated code
- // // from both
- // // if / else blocks above,
- // // comments left temporarily for easier visualization
- // // and
- // // comparision with c code
- // es = process.getState();
- // es.setExec_mode(ExecutionMode.LTTV_STATE_MODE_UNKNOWN);
- // es.setProc_status(ProcessStatus.LTTV_STATE_UNNAMED);
- // es
- // .setExec_submode(ExecutionSubMode.LTTV_STATE_SUBMODE_UNKNOWN
- // .getInName());
- // // #if 0
- // // /* UNKNOWN STATE */
- // // {
- // // es = process->state =
- // // &g_array_index(process->execution_stack,
- // // LttvExecutionState, 1);
- // // es->t = LTTV_STATE_MODE_UNKNOWN;
- // // es->s = LTTV_STATE_UNNAMED;
- // // es->n = LTTV_STATE_SUBMODE_UNKNOWN;
- // // }
- // // #endif //0
- // } else {
- // /*
- // * The process has already been created : Probably was
- // * forked while dumping the process state or was simply
- // * scheduled in prior to get the state dump event.
- // */
- // process.setPpid(parent_pid);
- // process.setTgid(tgid);
- // process.setName(command);
- // if (type.equals(ProcessType.LTTV_STATE_KERNEL_THREAD
- // .getInName())) {
- // process
- // .setType(ProcessType.LTTV_STATE_KERNEL_THREAD);
- // } else {
- // process.setType(ProcessType.LTTV_STATE_USER_THREAD);
- // }
- //
- // // es =
- // // &g_array_index(process->execution_stack,
- // // LttvExecutionState,
- // // 0);
- // // #if 0
- // // if(es->t == LTTV_STATE_MODE_UNKNOWN) {
- // // if(type == LTTV_STATE_KERNEL_THREAD)
- // // es->t = LTTV_STATE_SYSCALL;
- // // else
- // // es->t = LTTV_STATE_USER_MODE;
- // // }
- // // #endif //0
- // /*
- // * Don't mess around with the stack, it will eventually
- // * become ok after the end of state dump.
- // */
- // }
- // }
-
- return false;
-
- }
- };
- return handler;
- }
-
-}
diff --git a/lttng/org.eclipse.linuxtools.lttng.core.tests/src/org/eclipse/linuxtools/lttng/core/tests/state/resource/LTTngStateResourceTest.java b/lttng/org.eclipse.linuxtools.lttng.core.tests/src/org/eclipse/linuxtools/lttng/core/tests/state/resource/LTTngStateResourceTest.java
deleted file mode 100644
index a46df49743..0000000000
--- a/lttng/org.eclipse.linuxtools.lttng.core.tests/src/org/eclipse/linuxtools/lttng/core/tests/state/resource/LTTngStateResourceTest.java
+++ /dev/null
@@ -1,193 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2009, 2010 Ericsson
- *
- * All rights reserved. This program and the accompanying materials are
- * made available under the terms of the Eclipse Public License v1.0 which
- * accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Alvaro Sanchez-Leon (alvsan09@gmail.com) - Initial API and implementation
- *******************************************************************************/
-package org.eclipse.linuxtools.lttng.core.tests.state.resource;
-
-import junit.framework.TestCase;
-
-import org.eclipse.linuxtools.internal.lttng.core.state.resource.ILTTngStateResource.GlobalStateMode;
-import org.eclipse.linuxtools.internal.lttng.core.state.resource.ILttngStateContext;
-import org.eclipse.linuxtools.internal.lttng.core.state.resource.LTTngStateResource;
-import org.eclipse.linuxtools.tmf.core.event.TmfTimeRange;
-import org.eclipse.linuxtools.tmf.core.trace.ITmfTrace;
-
-/**
- * For inherited methods see: LTTngTreeNodeTest
- *
- * @author alvaro
- *
- */
-@SuppressWarnings("nls")
-public class LTTngStateResourceTest extends TestCase {
- // =======================================================================
- // Data
- // =======================================================================
-
- // Common context for all tests
- ILttngStateContext context;
-
- LTTngStateResource node10;
- LTTngStateResource node20;
- LTTngStateResource node30;
- LTTngStateResource node40;
- LTTngStateResource node50;
- LTTngStateResource node60;
-
- LTTngStateResource node15;
- LTTngStateResource node25;
- LTTngStateResource node35;
- LTTngStateResource node45;
- LTTngStateResource node55;
- LTTngStateResource node65;
- LTTngStateResource node67;
-
- // ========================================================================
- // Preparations and Finish
- // =======================================================================
- /* (non-Javadoc)
- * @see junit.framework.TestCase#setUp()
- */
- @Override
- protected void setUp() throws Exception {
- super.setUp();
- context = getContext();
- // Create state resources and assign a parent
- node10 = new LTTngStateResource(10L, "node10", context, this);
- node20 = new LTTngStateResource(20L, node10, "node20", context, this);
- node30 = new LTTngStateResource(30L, node20, "node30", context, this);
- node40 = new LTTngStateResource(40L, node30, "node40", context, this);
- node50 = new LTTngStateResource(50L, node40, "node50", context, this);
- node60 = new LTTngStateResource(60L, node50, "node60", context, this);
-
- //Adding first children
- node10.addChild(node20);
- node20.addChild(node30);
- node30.addChild(node40);
- node40.addChild(node50);
- node50.addChild(node60);
-
- //create additional nodes
- node15 = new LTTngStateResource(15L, node10, "node15", context, this);
- node25 = new LTTngStateResource(25L, node20, "node25", context, this);
- node35 = new LTTngStateResource(35L, node30, "node35", context, this);
- node45 = new LTTngStateResource(45L, node40, "node45", context, this);
- node55 = new LTTngStateResource(55L, node50, "node55", context, this);
- node65 = new LTTngStateResource(65L, node60, "node65", context, this);
- node67 = new LTTngStateResource(67L, node60, "node67", context, this);
-
- // Add more children to instances
- node10.addChild(node15);
- node20.addChild(node25);
- node30.addChild(node35);
- node40.addChild(node45);
- node50.addChild(node55);
- node60.addChild(node65);
- node60.addChild(node67);
- }
-
- /**
- * @return
- */
- private ILttngStateContext getContext() {
- return new ILttngStateContext() {
-
- @Override
- public TmfTimeRange getTraceTimeWindow() {
- return null;
- }
-
- @Override
- public ITmfTrace getTraceIdRef() {
- return null;
- }
-
- @Override
- public String getTraceId() {
- return "Test Trace";
- }
-
- @Override
- public int getNumberOfCpus() {
- return 1;
- }
-
- @Override
- public TmfTimeRange getExperimentTimeWindow() {
- return null;
- }
-
- @Override
- public String getExperimentName() {
- return "Test Experiment";
- }
-
- @Override
- public long getIdentifier() {
- return 0;
- }
- };
- }
-
- /* (non-Javadoc)
- * @see junit.framework.TestCase#tearDown()
- */
- @Override
- protected void tearDown() throws Exception {
- super.tearDown();
- }
-
- // ========================================================================
- // Methods
- // =======================================================================
- /**
- * Test method for
- * {@link org.eclipse.linuxtools.internal.lttng.core.state.resource.LTTngStateResource#getChildren()}
- * .
- */
- public void testGetChildren() {
- LTTngStateResource[] childrensOf60 = node60.getChildren();
- assertNotNull(childrensOf60);
-
- int size = childrensOf60.length;
- assertEquals(2, size);
-
- LTTngStateResource child65 = childrensOf60[0];
- LTTngStateResource child67 = childrensOf60[1];
-
- assertNotNull(child65);
- assertNotNull(child67);
-
- assertEquals("node65", child65.getName());
- assertEquals("node67", child67.getName());
- }
-
- /**
- * Test method for
- * {@link org.eclipse.linuxtools.internal.lttng.core.state.resource.LTTngStateResource#getStateMode()}
- */
- public void testStateMode() {
- // check default
- assertEquals("unknown", node60.getStateMode().getInName());
-
- // check setting
- node60.setStateMode(GlobalStateMode.LTT_STATEMODE_WAIT_FORK);
- assertEquals("waitfork", node60.getStateMode().getInName());
-
- }
-
- /**
- * Test method for
- * {@link org.eclipse.linuxtools.internal.lttng.core.state.resource.LTTngStateResource#getContext()}
- */
- public void testContext() {
- assertEquals(context, node60.getContext());
- }
-}
diff --git a/lttng/org.eclipse.linuxtools.lttng.core.tests/src/org/eclipse/linuxtools/lttng/core/tests/state/tests/handlers/AbsStateUpdate.java b/lttng/org.eclipse.linuxtools.lttng.core.tests/src/org/eclipse/linuxtools/lttng/core/tests/state/tests/handlers/AbsStateUpdate.java
deleted file mode 100644
index 45e5526114..0000000000
--- a/lttng/org.eclipse.linuxtools.lttng.core.tests/src/org/eclipse/linuxtools/lttng/core/tests/state/tests/handlers/AbsStateUpdate.java
+++ /dev/null
@@ -1,569 +0,0 @@
-package org.eclipse.linuxtools.lttng.core.tests.state.tests.handlers;
-
-import org.eclipse.linuxtools.internal.lttng.core.TraceDebug;
-import org.eclipse.linuxtools.internal.lttng.core.event.LttngEvent;
-import org.eclipse.linuxtools.internal.lttng.core.event.LttngEventField;
-import org.eclipse.linuxtools.internal.lttng.core.state.StateStrings.Fields;
-import org.eclipse.linuxtools.internal.lttng.core.state.evProcessor.ILttngEventProcessor;
-import org.eclipse.linuxtools.internal.lttng.core.state.model.LttngExecutionState;
-import org.eclipse.linuxtools.internal.lttng.core.state.model.LttngTraceState;
-import org.eclipse.linuxtools.tmf.core.event.TmfEventField;
-
-@SuppressWarnings("nls")
-public abstract class AbsStateUpdate implements ILttngEventProcessor {
-
- // ========================================================================
- // Data
- // =======================================================================
- protected static LttngExecutionState exState = null;
- protected static Long pid = null;
-
- // ========================================================================
- // push and pop from stack
- // =======================================================================
-
-// protected static final Long ANY_CPU = 0L;
-
-
-// protected void push_state(Long cpu, StateStrings.ExecutionMode execMode,
-// String submode, TmfTimestamp eventTime, LttngTraceState traceSt) {
-//
-// LttngProcessState process = traceSt.getRunning_process().get(cpu);
-// LttngExecutionState exe_state = new LttngExecutionState();
-// exe_state.setExec_mode(execMode);
-// exe_state.setExec_submode(submode);
-// exe_state.setEntry_Time(eventTime);
-// exe_state.setChage_Time(eventTime);
-// exe_state.setCum_cpu_time(0L);
-// exe_state.setProc_status(process.getState().getProc_status());
-// process.setState(exe_state);
-//
-// Stack<LttngExecutionState> exe_state_stack = process
-// .getExecution_stack();
-// exe_state_stack.push(exe_state);
-// }
-//
-// protected void pop_state(Long cpu, StateStrings.ExecutionMode execMode,
-// LttngTraceState traceSt, TmfTimestamp eventTime) {
-//
-// LttngProcessState process = traceSt.getRunning_process().get(cpu);
-//
-// if (!process.getState().getExec_mode().equals(execMode)) {
-// // Different execution mode
-// TraceDebug.debug("Different Execution Mode type \n\tTime:"
-// + eventTime.toString() + "\n\tprocess state has: \n\t"
-// + process.getState().getExec_mode().toString()
-// + "\n\twhen pop_int is:\n\t" + execMode.toString());
-// return;
-// }
-//
-// Stack<LttngExecutionState> exe_state_stack = process
-// .getExecution_stack();
-//
-// if (exe_state_stack.size() <= 1) {
-// TraceDebug
-// .debug("Removing last item from execution stack is not allowed");
-// }
-//
-// exe_state_stack.pop();
-// process.setState(exe_state_stack.peek());
-// process.getState().setChage_Time(eventTime);
-// }
-//
-// protected void irq_push_mode(LttngIRQState irqst, IRQMode state) {
-// irqst.getMode_stack().push(state);
-// }
-//
-// protected void irq_set_base_mode(LttngIRQState irqst, IRQMode state) {
-// Stack<IRQMode> irqModeStack = irqst.getMode_stack();
-// irqModeStack.clear();
-// irqModeStack.push(state);
-// }
-//
-// protected void irq_pop_mode(LttngIRQState irqst) {
-// Stack<IRQMode> irq_stack = irqst.getMode_stack();
-// if (irq_stack.size() <= 1)
-// irq_set_base_mode(irqst, IRQMode.LTTV_IRQ_UNKNOWN);
-// else
-// irq_stack.pop();
-// }
-//
-// protected void cpu_push_mode(LTTngCPUState cpust, StateStrings.CpuMode state) {
-// // The initialization (init) creates a LttngCPUState instance per
-// // available cpu in the system
-// Stack<CpuMode> cpuStack = cpust.getMode_stack();
-// cpuStack.push(state);
-// }
-//
-// protected void cpu_pop_mode(LTTngCPUState cpust) {
-// if (cpust.getMode_stack().size() <= 1)
-// cpu_set_base_mode(cpust, StateStrings.CpuMode.LTTV_CPU_UNKNOWN);
-// else
-// cpust.getMode_stack().pop();
-// }
-//
-// /* clears the stack and sets the state passed as argument */
-// protected void cpu_set_base_mode(LTTngCPUState cpust,
-// StateStrings.CpuMode state) {
-// Stack<CpuMode> cpuStack = cpust.getMode_stack();
-// cpuStack.clear();
-// cpuStack.push(state);
-// }
-//
-// protected void bdev_pop_mode(LttngBdevState bdevst) {
-// Stack<BdevMode> bdevModeStack = bdevst.getMode_stack();
-// if (bdevModeStack.size() <= 1) {
-// bdev_set_base_mode(bdevModeStack, BdevMode.LTTV_BDEV_UNKNOWN);
-// } else {
-// bdevModeStack.pop();
-// }
-//
-// }
-//
-// protected void bdev_set_base_mode(Stack<BdevMode> bdevModeStack,
-// BdevMode state) {
-// bdevModeStack.clear();
-// bdevModeStack.push(state);
-// }
-//
-// /**
-// * Push a new received function pointer to the user_stack
-// *
-// * @param traceSt
-// * @param funcptr
-// * @param cpu
-// */
-// protected void push_function(LttngTraceState traceSt, Long funcptr, Long cpu) {
-// // Get the related process
-// LttngProcessState process = traceSt.getRunning_process().get(cpu);
-//
-// // get the user_stack
-// Stack<Long> user_stack = process.getUser_stack();
-//
-// // update stack
-// user_stack.push(funcptr);
-//
-// // update the pointer to the current function on the corresponding
-// // process
-// process.setCurrent_function(funcptr);
-// }
-//
-// protected void pop_function(LttngTraceState traceSt, LttngEvent trcEvent,
-// Long funcptr) {
-// Long cpu = trcEvent.getCpuId();
-// // LttvTraceState *ts = (LttvTraceState*)tfs->parent.t_context;
-// // LttvProcessState *process = ts->running_process[cpu];
-// LttngProcessState process = traceSt.getRunning_process().get(cpu);
-// Long curr_function = process.getCurrent_function();
-// if (curr_function != null && curr_function != funcptr) {
-// TraceDebug.debug("Different functions: " + funcptr + " current: "
-// + curr_function + " time stamp: "
-// + trcEvent.getTimestamp().toString());
-//
-// // g_info("Different functions (%lu.%09lu): ignore it\n",
-// // tfs->parent.timestamp.tv_sec, tfs->parent.timestamp.tv_nsec);
-// // g_info("process state has %" PRIu64 " when pop_function is %"
-// // PRIu64
-// // "\n",
-// // process->current_function, funcptr);
-// // g_info("{ %u, %u, %s, %s, %s }\n",
-// // process->pid,
-// // process->ppid,
-// // g_quark_to_string(process->name),
-// // g_quark_to_string(process->brand),
-// // g_quark_to_string(process->state->s));
-// return;
-// }
-//
-// Stack<Long> user_stack = process.getUser_stack();
-// if (user_stack.size() == 0) {
-// TraceDebug
-// .debug("Trying to pop last function in stack. Ignored. Time Stamp: "
-// + trcEvent.getTimestamp());
-// return;
-// }
-// user_stack.pop();
-// process.setCurrent_function(user_stack.peek());
-// }
-//
-// // ========================================================================
-// // General methods
-// // =======================================================================
-// /**
-// * protected method used when only one Field is expected with Type "Long" if
-// * the number of fields is greater, the first field is returned and a
-// * tracing message is sent Null is returned if the value could not be
-// * extracted.
-// *
-// * @param trcEvent
-// * @param traceSt
-// * @param expectedNumFields
-// * @return
-// */
-// protected Long getDField(LttngEvent trcEvent, LttngTraceState traceSt,
-// Fields expectedField) {
-// Long fieldVal = null;
-// TmfEventField[] fields = trcEvent.getContent().getFields();
-// String[] fieldLabels = trcEvent.getContent().getFormat().getLabels();
-//
-// // Only one field expected
-// if (fields.length != 1 || fieldLabels.length != 1) {
-// StringBuilder sb = new StringBuilder(
-// "Unexpected number of fields received: " + fields.length
-// + " for Event: " + trcEvent.getMarkerName() + "\n\t\tFields: ");
-//
-// for (TmfEventField field : fields) {
-// sb.append(((LttngEventField)field).getName() + " ");
-// }
-//
-// TraceDebug.debug(sb.toString());
-// if (fields.length == 0) {
-// return null;
-// }
-// }
-//
-// LttngEventField field = (LttngEventField) fields[0];
-// String fieldname = field.getName();
-// String expectedFieldName = expectedField.getInName();
-// if (fieldname.equals(expectedFieldName)) {
-// Object fieldObj = field.getValue();
-// if (fieldObj instanceof Long) {
-// // Expected value found
-// fieldVal = (Long) field.getValue();
-// } else {
-// if (TraceDebug.isDEBUG()) {
-// TraceDebug
-// .debug("Unexpected field Type. Expected: Long, Received: "
-// + fieldObj.getClass().getSimpleName());
-// }
-// return null;
-// }
-// } else {
-// TraceDebug.debug("Unexpected field received: " + fieldname
-// + " Expected: " + expectedFieldName);
-// return null;
-// }
-//
-// return fieldVal;
-// }
-//
- /**
- * protected method used when a Field is requested among several available
- * fields and the expected type is Long
- *
- * @param trcEvent
- * @param traceSt
- * @param expectedNumFields
- * @return
- */
- protected Long getAFieldLong(LttngEvent trcEvent, LttngTraceState traceSt,
- Fields expectedField) {
- Long fieldVal = null;
- TmfEventField[] fields = trcEvent.getContent().getFields();
-
- // At least one field expected
- if (fields.length == 0) {
- TraceDebug.debug("Unexpected number of fields received: "
- + fields.length);
- return null;
- }
-
- LttngEventField field;
- String fieldname;
- String expectedFieldName = expectedField.getInName();
- for (int i = 0; i < fields.length; i++) {
- field = (LttngEventField) fields[i];
- fieldname = field.getName();
- if (fieldname.equals(expectedFieldName)) {
- Object fieldObj = field.getValue();
- if (fieldObj instanceof Long) {
- // Expected value found
- fieldVal = (Long) field.getValue();
- // if (expectedField == Fields.LTT_FIELD_TYPE) {
- // TraceDebug.debug("Field Type value is: " + fieldVal);
- // }
- break;
- } else {
- if (TraceDebug.isDEBUG()) {
- TraceDebug
- .debug("Unexpected field Type. Expected: Long, Received: "
- + fieldObj.getClass().getSimpleName());
- }
- return null;
- }
- }
- }
-
- if (fieldVal == null) {
- if (TraceDebug.isDEBUG()) {
- sendNoFieldFoundMsg(fields, expectedFieldName);
- }
- }
- return fieldVal;
- }
-
- /**
- * protected method used when a Field is requested among several available
- * fields and the expected type is String
- *
- * @param trcEvent
- * @param traceSt
- * @param expectedNumFields
- * @return
- */
- protected String getAFieldString(LttngEvent trcEvent,
- LttngTraceState traceSt, Fields expectedField) {
- String fieldVal = null;
- TmfEventField[] fields = trcEvent.getContent().getFields();
-
- // Only one field expected
- if (fields.length == 0) {
- TraceDebug.debug("Unexpected number of fields received: "
- + fields.length);
- return null;
- }
-
- LttngEventField field;
- String fieldname;
- String expectedFieldName = expectedField.getInName();
- for (int i = 0; i < fields.length; i++) {
- field = (LttngEventField) fields[i];
- fieldname = field.getName();
- if (fieldname.equals(expectedFieldName)) {
- Object fieldObj = field.getValue();
- if (fieldObj instanceof String) {
- // Expected value found
- fieldVal = (String) field.getValue();
- break;
- } else {
- if (TraceDebug.isDEBUG()) {
- TraceDebug
- .debug("Unexpected field Type. Expected: String, Received: "
- + fieldObj.getClass().getSimpleName());
- }
- return null;
- }
- }
- }
-
- if (fieldVal == null) {
- if (TraceDebug.isDEBUG()) {
- sendNoFieldFoundMsg(fields, expectedFieldName);
- }
- }
- return fieldVal;
- }
-
- protected void sendNoFieldFoundMsg(TmfEventField[] fields,
- String expectedFieldName) {
- LttngEventField field;
- StringBuilder sb = new StringBuilder("Field not found, requested: "
- + expectedFieldName);
- sb.append(" number of fields: " + fields.length + "Fields: ");
- for (int i = 0; i < fields.length; i++) {
- field = (LttngEventField) fields[i];
- sb.append(field.getName() + " ");
- }
-
- TraceDebug.debug(sb.toString(), 5);
- }
-
-// // Adaption from MKDEV macro
-// protected Long mkdev(Long major, Long minor) {
-// Long result = null;
-// if (major != null && minor != null) {
-// result = (major << 20) | minor;
-// }
-// return result;
-// }
-//
-// /*
-// * FIXME : this function should be called when we receive an event telling
-// * that release_task has been called in the kernel. In happens generally
-// * when the parent waits for its child terminaison, but may also happen in
-// * special cases in the child's exit : when the parent ignores its children
-// * SIGCCHLD or has the flag SA_NOCLDWAIT. It can also happen when the child
-// * is part of a killed thread group, but isn't the leader.
-// */
-// protected boolean exit_process(LttngTraceState ts, LttngProcessState process) {
-// /*
-// * Wait for both schedule with exit dead and process free to happen.
-// * They can happen in any order.
-// */
-// process.incrementFree_events();
-// if (process.getFree_events() < 2) {
-// return false;
-// }
-//
-// process.getExecution_stack().clear();
-// process.getUser_stack().clear();
-// ts.getProcesses().remove(process);
-//
-// return true;
-// }
-//
-// // LttvProcessState *
-// // lttv_state_create_process(LttvTraceState *tcs, LttvProcessState *parent,
-// // guint cpu, guint pid, guint tgid, GQuark name, const LttTime *timestamp)
-// // {
-// // LttvProcessState *process = g_new(LttvProcessState, 1);
-// //
-// // LttvExecutionState *es;
-// //
-// // char buffer[128];
-// //
-// // process->pid = pid;
-// // process->tgid = tgid;
-// // process->cpu = cpu;
-// // process->name = name;
-// // process->brand = LTTV_STATE_UNBRANDED;
-// // //process->last_cpu = tfs->cpu_name;
-// // //process->last_cpu_index =
-// // ltt_tracefile_num(((LttvTracefileContext*)tfs)->tf);
-// // process->type = LTTV_STATE_USER_THREAD;
-// // process->usertrace = ltt_state_usertrace_find(tcs, pid, timestamp);
-// // process->current_function = 0; //function 0x0 by default.
-// //
-// // g_info("Process %u, core %p", process->pid, process);
-// // g_hash_table_insert(tcs->processes, process, process);
-// //
-// // if(parent) {
-// // process->ppid = parent->pid;
-// // process->creation_time = *timestamp;
-// // }
-// //
-// // /* No parent. This process exists but we are missing all information
-// // about
-// // its creation. The birth time is set to zero but we remember the time of
-// // insertion */
-// //
-// // else {
-// // process->ppid = 0;
-// // process->creation_time = ltt_time_zero;
-// // }
-// //
-// // process->insertion_time = *timestamp;
-// // sprintf(buffer,"%d-%lu.%lu",pid, process->creation_time.tv_sec,
-// // process->creation_time.tv_nsec);
-// // process->pid_time = g_quark_from_string(buffer);
-// // process->cpu = cpu;
-// // process->free_events = 0;
-// // //process->last_cpu = tfs->cpu_name;
-// // //process->last_cpu_index =
-// // ltt_tracefile_num(((LttvTracefileContext*)tfs)->tf);
-// // process->execution_stack = g_array_sized_new(FALSE, FALSE,
-// // sizeof(LttvExecutionState), PREALLOCATED_EXECUTION_STACK);
-// // process->execution_stack = g_array_set_size(process->execution_stack, 2);
-// // es = process->state = &g_array_index(process->execution_stack,
-// // LttvExecutionState, 0);
-// // es->t = LTTV_STATE_USER_MODE;
-// // es->n = LTTV_STATE_SUBMODE_NONE;
-// // es->entry = *timestamp;
-// // //g_assert(timestamp->tv_sec != 0);
-// // es->change = *timestamp;
-// // es->cum_cpu_time = ltt_time_zero;
-// // es->s = LTTV_STATE_RUN;
-// //
-// // es = process->state = &g_array_index(process->execution_stack,
-// // LttvExecutionState, 1);
-// // es->t = LTTV_STATE_SYSCALL;
-// // es->n = LTTV_STATE_SUBMODE_NONE;
-// // es->entry = *timestamp;
-// // //g_assert(timestamp->tv_sec != 0);
-// // es->change = *timestamp;
-// // es->cum_cpu_time = ltt_time_zero;
-// // es->s = LTTV_STATE_WAIT_FORK;
-// //
-// // /* Allocate an empty function call stack. If it's empty, use 0x0. */
-// // process->user_stack = g_array_sized_new(FALSE, FALSE,
-// // sizeof(guint64), 0);
-// //
-// // return process;
-// // }
-//
-// /**
-// * Find the process matching the given pid and cpu
-// *
-// * If cpu is 0, the cpu value is not matched and the selection is based on
-// * pid value only
-// *
-// * @param ts
-// * @param cpu
-// * @param pid
-// * @return
-// */
-// protected LttngProcessState lttv_state_find_process(LttngTraceState ts,
-// Long cpu, Long pid) {
-// // Define the return value
-// LttngProcessState process = null;
-//
-// // Obtain the list of available processes
-// List<LttngProcessState> processList = ts.getProcesses();
-//
-// // find the process matching pid and cpu,
-// // TODO: This may need to be improved since the pid may be re-used and
-// // the creation time may need to be considered
-// for (LttngProcessState dprocess : processList) {
-// if (dprocess.getPid() == pid) {
-// if (dprocess.getCpu() == cpu || cpu == 0) {
-// return process;
-// }
-// }
-// }
-//
-// return process;
-// }
-//
-// /**
-// * @param ts
-// * @param cpu
-// * @param pid
-// * @param timestamp
-// * , Used when a new process is needed
-// * @return
-// */
-// protected LttngProcessState lttv_state_find_process_or_create(
-// LttngTraceState ts, Long cpu, Long pid, final TmfTimestamp timestamp) {
-//
-// LttngProcessState process = lttv_state_find_process(ts, cpu, pid);
-// /* Put ltt_time_zero creation time for unexisting processes */
-// if (process == null) {
-// process = create_process(ts, cpu, pid, 0L, timestamp);
-// }
-// return process;
-// }
-//
-// /**
-// * @param traceSt
-// * @param cpu
-// * @param pid
-// * @param tgid
-// * @param timestamp
-// * @return
-// */
-// protected LttngProcessState create_process(LttngTraceState traceSt,
-// Long cpu, Long pid, Long tgid, final TmfTimestamp timestamp) {
-// LttngProcessState process = create_process(traceSt, cpu, pid, tgid,
-// ProcessStatus.LTTV_STATE_UNNAMED.getInName(), timestamp);
-// return process;
-// }
-//
-// /**
-// * @param traceSt
-// * @param cpu
-// * @param pid
-// * @param tgid
-// * @param name
-// * @param timestamp
-// * @return
-// */
-// protected LttngProcessState create_process(LttngTraceState traceSt,
-// Long cpu, Long pid, Long tgid, String name,
-// final TmfTimestamp timestamp) {
-// LttngProcessState process;
-// process = new LttngProcessState(cpu, pid, tgid, name, timestamp);
-// traceSt.getProcesses().add(process);
-// return process;
-// }
-
-} \ No newline at end of file
diff --git a/lttng/org.eclipse.linuxtools.lttng.core.tests/src/org/eclipse/linuxtools/lttng/core/tests/trace/LTTngExperimentTest.java b/lttng/org.eclipse.linuxtools.lttng.core.tests/src/org/eclipse/linuxtools/lttng/core/tests/trace/LTTngExperimentTest.java
deleted file mode 100644
index 32999fa211..0000000000
--- a/lttng/org.eclipse.linuxtools.lttng.core.tests/src/org/eclipse/linuxtools/lttng/core/tests/trace/LTTngExperimentTest.java
+++ /dev/null
@@ -1,126 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2009, 2010 Ericsson
- *
- * All rights reserved. This program and the accompanying materials are
- * made available under the terms of the Eclipse Public License v1.0 which
- * accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Francois Chouinard - Initial API and implementation
- *******************************************************************************/
-
-package org.eclipse.linuxtools.lttng.core.tests.trace;
-
-import java.io.File;
-import java.io.IOException;
-import java.net.URISyntaxException;
-import java.net.URL;
-
-import junit.framework.TestCase;
-
-import org.eclipse.core.runtime.FileLocator;
-import org.eclipse.core.runtime.Path;
-import org.eclipse.linuxtools.internal.lttng.core.event.LttngEvent;
-import org.eclipse.linuxtools.internal.lttng.core.event.LttngTimestamp;
-import org.eclipse.linuxtools.internal.lttng.core.trace.LTTngTrace;
-import org.eclipse.linuxtools.tmf.core.event.TmfTimeRange;
-import org.eclipse.linuxtools.tmf.core.event.TmfTimestamp;
-import org.eclipse.linuxtools.tmf.core.trace.ITmfTrace;
-import org.eclipse.linuxtools.tmf.core.trace.TmfExperiment;
-import org.osgi.framework.FrameworkUtil;
-
-/**
- * <b><u>TmfExperimentTest</u></b>
- * <p>
- * TODO: Implement me. Please.
- */
-@SuppressWarnings("nls")
-public class LTTngExperimentTest extends TestCase {
-
- private static final String DIRECTORY = "traceset";
- private static final String TEST_STREAM = "trace-15316events_nolost_newformat";
- private static final String EXPERIMENT = "MyExperiment";
- private static int NB_EVENTS = 15316;
-
- // Note: Start/end times are for the LTTng *trace*, not the actual events
- private static final TmfTimestamp fStartTime = new LttngTimestamp(13589759412128L);
- private static final TmfTimestamp fEndTime = new LttngTimestamp(13589906758692L);
-
- private static ITmfTrace[] fTestTraces;
- private static TestExperiment fExperiment;
-
- // ------------------------------------------------------------------------
- // Helper class
- // ------------------------------------------------------------------------
-
- private static class TestExperiment extends TmfExperiment {
- public TestExperiment() {
- super(LttngEvent.class, EXPERIMENT, fTestTraces, 1000);
- getIndexer().buildIndex(0, TmfTimeRange.ETERNITY, true);
- }
- }
-
- // ------------------------------------------------------------------------
- // Housekeeping
- // ------------------------------------------------------------------------
-
- private synchronized static ITmfTrace[] setupTrace(final String path) {
- if (fTestTraces == null) {
- fTestTraces = new ITmfTrace[1];
- try {
- final URL location = FileLocator.find(FrameworkUtil.getBundle(LTTngExperimentTest.class), new Path(path), null);
- final File testfile = new File(FileLocator.toFileURL(location).toURI());
- final LTTngTrace trace = new LTTngTrace(null, testfile.getPath(), false);
- fTestTraces[0] = trace;
- } catch (final URISyntaxException e) {
- e.printStackTrace();
- } catch (final IOException e) {
- e.printStackTrace();
- } catch (final Exception e) {
- e.printStackTrace();
- }
- }
- return fTestTraces;
- }
-
- private synchronized static void setupExperiment() {
- if (fExperiment == null) {
- fExperiment = new TestExperiment();
- }
- }
-
- public LTTngExperimentTest(final String name) throws Exception {
- super(name);
- }
-
- @Override
- protected void setUp() throws Exception {
- super.setUp();
- setupTrace(DIRECTORY + File.separator + TEST_STREAM);
- setupExperiment();
- }
-
- @Override
- protected void tearDown() throws Exception {
- super.tearDown();
- }
-
- // ------------------------------------------------------------------------
- // Constructor
- // ------------------------------------------------------------------------
-
- public void testBasicTmfExperimentConstructor() {
-
- assertEquals("GetId", EXPERIMENT, fExperiment.getName());
- assertEquals("GetNbEvents", NB_EVENTS, fExperiment.getNbEvents());
-
- final long nbTraceEvents = fExperiment.getTraces()[0].getNbEvents();
- assertEquals("GetNbEvents", NB_EVENTS, nbTraceEvents);
-
- final TmfTimeRange timeRange = fExperiment.getTimeRange();
- assertEquals("getStartTime", fStartTime, timeRange.getStartTime());
- assertEquals("getEndTime", fEndTime, timeRange.getEndTime());
- }
-
-} \ No newline at end of file
diff --git a/lttng/org.eclipse.linuxtools.lttng.core.tests/src/org/eclipse/linuxtools/lttng/core/tests/trace/LTTngTextTraceTest.java b/lttng/org.eclipse.linuxtools.lttng.core.tests/src/org/eclipse/linuxtools/lttng/core/tests/trace/LTTngTextTraceTest.java
deleted file mode 100644
index 1fdaab28c6..0000000000
--- a/lttng/org.eclipse.linuxtools.lttng.core.tests/src/org/eclipse/linuxtools/lttng/core/tests/trace/LTTngTextTraceTest.java
+++ /dev/null
@@ -1,268 +0,0 @@
-package org.eclipse.linuxtools.lttng.core.tests.trace;
-
-import java.io.File;
-import java.net.URL;
-
-import junit.framework.TestCase;
-
-import org.eclipse.core.runtime.FileLocator;
-import org.eclipse.core.runtime.Path;
-import org.eclipse.linuxtools.internal.lttng.core.trace.LTTngTextTrace;
-import org.eclipse.linuxtools.tmf.core.event.ITmfEvent;
-import org.eclipse.linuxtools.tmf.core.event.TmfTimestamp;
-import org.eclipse.linuxtools.tmf.core.trace.ITmfContext;
-import org.eclipse.linuxtools.tmf.core.trace.TmfContext;
-import org.eclipse.linuxtools.tmf.core.trace.TmfLocation;
-import org.osgi.framework.FrameworkUtil;
-
-/*
- Functions tested here :
- public LTTngTextTrace(String path) throws Exception
- public LTTngTextTrace(String path, boolean skipIndexing) throws Exception
-
- public TmfTraceContext seekLocation(Object location) {
- public TmfTraceContext seekEvent(TmfTimestamp timestamp) {
- public TmfTraceContext seekEvent(long position) {
-
- public TmfEvent getNextEvent(TmfTraceContext context) {
- public Object getCurrentLocation() {
-
- public LttngEvent parseEvent(TmfTraceContext context) {
-
- public int getCpuNumber() {
- */
-
-@SuppressWarnings("nls")
-public class LTTngTextTraceTest extends TestCase {
-
- private final static String tracepath1 = "traceset/trace-15316events_nolost_newformat.txt";
- private final static String wrongTracePath = "/somewhere/that/does/not/exist";
-
- private final static int traceCpuNumber = 1;
-
- private final static boolean skipIndexing = true;
-
- private final static long firstEventTimestamp = 13589759412128L;
- private final static long secondEventTimestamp = 13589759419903L;
- private final static Long locationAfterFirstEvent = 311L;
-
- private final static String tracename = "traceset/trace-15316events_nolost_newformat";
-
- private final static long indexToSeekFirst = 0;
- private final static Long locationToSeekFirst = 0L;
- private final static long contextValueAfterFirstEvent = 13589759412128L;
- private final static String firstEventReference = tracename + "/metadata_0";
-
- private final static long timestampToSeekTest1 = 13589826657302L;
- private final static Long indexToSeekTest1 = 7497L;
- private final static long locationToSeekTest1 = 2177044;
- private final static long contextValueAfterSeekTest1 = 13589826657302L;
- private final static String seek1EventReference = tracename + "/vm_state_0";
-
- private final static long timestampToSeekLast = 13589906758692L;
- private final static Long indexToSeekLast = 15315L;
- private final static long locationToSeekLast = 4420634;
- private final static long contextValueAfterSeekLast = 13589906758692L;
- private final static String seekLastEventReference = tracename + "/kernel_0";
-
- private static LTTngTextTrace testStream = null;
-
- private synchronized LTTngTextTrace prepareStreamToTest() {
- if (testStream == null)
- try {
- final URL location = FileLocator.find(FrameworkUtil.getBundle(this.getClass()), new Path(tracepath1), null);
- final File testfile = new File(FileLocator.toFileURL(location).toURI());
- final LTTngTextTrace tmpStream = new LTTngTextTrace(null, testfile.getPath());
- testStream = tmpStream;
- } catch (final Exception e) {
- System.out.println("ERROR : Could not open " + tracepath1);
- testStream = null;
- }
- else
- testStream.seekEvent(0);
-
- return testStream;
- }
-
- public void testTraceConstructorFailure() {
- // Default constructor
- // Test constructor with argument on a wrong tracepath, skipping
- // indexing
- try {
- final LTTngTextTrace testStream = new LTTngTextTrace(null, wrongTracePath, skipIndexing);
- fail("Construction with wrong tracepath should fail!");
- testStream.dispose();
- } catch (final Exception e) {
- }
- }
- /*
- public void testTraceConstructor() {
- // Test constructor with argument on a correct tracepath, skipping
- // indexing
- try {
- URL location = FileLocator.find(LTTngCoreTestPlugin.getPlugin().getBundle(), new Path(tracepath1), null);
- File testfile = new File(FileLocator.toFileURL(location).toURI());
- LTTngTextTrace testStream = new LTTngTextTrace(testfile.getPath(), skipIndexing);
- testStream.dispose();
- } catch (Exception e) {
- fail("Construction with correct tracepath failed!");
- }
- }
- */
- public void testGetNextEvent() {
- ITmfEvent tmpEvent = null;
- final LTTngTextTrace testStream1 = prepareStreamToTest();
-
- final TmfContext tmpContext = new TmfContext(null, 0);
- // We should be at the beginning of the trace, so we will just read the
- // first event now
- tmpEvent = testStream1.getNext(tmpContext);
- assertNotSame("tmpEvent is null after first getNextEvent()", null, tmpEvent);
- assertEquals("tmpEvent has wrong timestamp after first getNextEvent()", firstEventTimestamp, tmpEvent.getTimestamp().getValue());
-
- // Read the next event as well
- tmpEvent = testStream1.getNext(tmpContext);
- assertNotSame("tmpEvent is null after second getNextEvent()", null, tmpEvent);
- assertEquals("tmpEvent has wrong timestamp after second getNextEvent()", secondEventTimestamp, tmpEvent.getTimestamp().getValue());
- }
-
- public void testParseEvent() {
- ITmfEvent tmpEvent = null;
- final LTTngTextTrace testStream1 = prepareStreamToTest();
-
- final TmfContext tmpContext = new TmfContext(null, 0);
- // We should be at the beginning of the trace, so we will just parse the
- // first event now
- tmpEvent = testStream1.parseEvent(tmpContext);
- assertNotSame("tmpEvent is null after first parseEvent()", null, tmpEvent);
- assertEquals("tmpEvent has wrong timestamp after first parseEvent()", firstEventTimestamp, tmpEvent.getTimestamp().getValue());
-
- // Use parseEvent again. Should be the same event
- tmpEvent = testStream1.parseEvent(tmpContext);
- assertNotSame("tmpEvent is null after first parseEvent()", null, tmpEvent);
- assertEquals("tmpEvent has wrong timestamp after first parseEvent()", firstEventTimestamp, tmpEvent.getTimestamp().getValue());
- }
-
- public void testSeekEventTimestamp() {
- ITmfEvent tmpEvent = null;
- ITmfContext tmpContext = new TmfContext(null, 0);
- final LTTngTextTrace testStream1 = prepareStreamToTest();
-
- // We should be at the beginning of the trace, we will seek at a certain
- // timestamp
- tmpContext = testStream1.seekEvent(new TmfTimestamp(timestampToSeekTest1, (byte) -9, 0));
- tmpEvent = testStream1.getNext(tmpContext);
- assertNotSame("tmpContext is null after first seekEvent()", null, tmpContext);
- assertEquals("tmpContext has wrong timestamp after first seekEvent()", contextValueAfterSeekTest1, tmpEvent.getTimestamp().getValue());
- assertNotSame("tmpEvent is null after first seekEvent()", null, tmpEvent);
- assertTrue("tmpEvent has wrong reference after first seekEvent()", seek1EventReference.contains(tmpEvent.getReference()));
-
- // Seek to the last timestamp
- tmpContext = testStream1.seekEvent(new TmfTimestamp(timestampToSeekLast, (byte) -9, 0));
- tmpEvent = testStream1.getNext(tmpContext);
- assertNotSame("tmpContext is null after seekEvent() to last", null, tmpContext);
- assertEquals("tmpContext has wrong timestamp after seekEvent() to last", contextValueAfterSeekLast, tmpEvent.getTimestamp().getValue());
- assertNotSame("tmpEvent is null after seekEvent() to last ", null, tmpEvent);
- assertTrue("tmpEvent has wrong reference after seekEvent() to last", seekLastEventReference.contains(tmpEvent.getReference()));
-
- // Seek to the first timestamp (startTime)
- tmpContext = testStream1.seekEvent(new TmfTimestamp(firstEventTimestamp, (byte) -9, 0));
- tmpEvent = testStream1.getNext(tmpContext);
- assertNotSame("tmpEvent is null after seekEvent() to start ", null, tmpEvent);
- assertTrue("tmpEvent has wrong reference after seekEvent() to start", firstEventReference.contains(tmpEvent.getReference()));
- assertNotSame("tmpContext is null after seekEvent() to first", null, tmpContext);
- assertEquals("tmpContext has wrong timestamp after seekEvent() to first", contextValueAfterFirstEvent, tmpEvent.getTimestamp().getValue());
- }
-
- public void testSeekEventIndex() {
- ITmfEvent tmpEvent = null;
- ITmfContext tmpContext = new TmfContext(null, 0);
- final LTTngTextTrace testStream1 = prepareStreamToTest();
-
- // We should be at the beginning of the trace, we will seek at a certain
- // timestamp
- tmpContext = testStream1.seekEvent(indexToSeekTest1);
- tmpEvent = testStream1.getNext(tmpContext);
- assertNotSame("tmpContext is null after first seekEvent()", null, tmpContext);
- assertEquals("tmpContext has wrong timestamp after first seekEvent()", contextValueAfterSeekTest1, tmpEvent.getTimestamp().getValue());
- assertNotSame("tmpEvent is null after first seekEvent()", null, tmpEvent);
- assertTrue("tmpEvent has wrong reference after first seekEvent()", seek1EventReference.contains(tmpEvent.getReference()));
-
- // Seek to the last timestamp
- tmpContext = testStream1.seekEvent(indexToSeekLast);
- tmpEvent = testStream1.getNext(tmpContext);
- assertNotSame("tmpContext is null after first seekEvent()", null, tmpContext);
- assertEquals("tmpContext has wrong timestamp after first seekEvent()", contextValueAfterSeekLast, tmpEvent.getTimestamp().getValue());
- assertNotSame("tmpEvent is null after seekEvent() to last ", null, tmpEvent);
- assertTrue("tmpEvent has wrong reference after seekEvent() to last", seekLastEventReference.contains(tmpEvent.getReference()));
-
- // Seek to the first timestamp (startTime)
- tmpContext = testStream1.seekEvent(indexToSeekFirst);
- tmpEvent = testStream1.getNext(tmpContext);
- assertNotSame("tmpContext is null after first seekEvent()", null, tmpContext);
- assertEquals("tmpContext has wrong timestamp after first seekEvent()", contextValueAfterFirstEvent, tmpEvent.getTimestamp().getValue());
- assertNotSame("tmpEvent is null after seekEvent() to start ", null, tmpEvent);
- assertTrue("tmpEvent has wrong reference after seekEvent() to start", firstEventReference.contains(tmpEvent.getReference()));
- }
-
- public void testSeekLocation() {
- ITmfEvent tmpEvent = null;
- TmfContext tmpContext = new TmfContext(null, 0);
- final LTTngTextTrace testStream1 = prepareStreamToTest();
-
- // We should be at the beginning of the trace, we will seek at a certain
- // timestamp
- tmpContext = testStream1.seekEvent(new TmfLocation<Long>(locationToSeekTest1));
- tmpEvent = testStream1.getNext(tmpContext);
- assertNotSame("tmpContext is null after first seekLocation()", null, tmpContext);
- assertEquals("tmpContext has wrong timestamp after first seekLocation()", contextValueAfterSeekTest1, tmpEvent.getTimestamp().getValue());
- assertNotSame("tmpEvent is null after first seekLocation()", null, tmpEvent);
- assertTrue("tmpEvent has wrong reference after first seekLocation()", seek1EventReference.contains(tmpEvent.getReference()));
-
- // Seek to the last timestamp
- tmpContext = testStream1.seekEvent(new TmfLocation<Long>(locationToSeekLast));
- tmpEvent = testStream1.getNext(tmpContext);
- assertNotSame("tmpContext is null after first seekLocation()", null, tmpContext);
- assertEquals("tmpContext has wrong timestamp after first seekLocation()", contextValueAfterSeekLast, tmpEvent.getTimestamp().getValue());
- assertNotSame("tmpEvent is null after seekLocation() to last ", null, tmpEvent);
- assertTrue("tmpEvent has wrong reference after seekLocation() to last", seekLastEventReference.contains(tmpEvent.getReference()));
-
- // Seek to the first timestamp (startTime)
- tmpContext = testStream1.seekEvent(new TmfLocation<Long>(locationToSeekFirst));
- tmpEvent = testStream1.getNext(tmpContext);
- assertNotSame("tmpContext is null after first seekLocation()", null, tmpContext);
- assertEquals("tmpContext has wrong timestamp after first seekLocation()", contextValueAfterFirstEvent, tmpEvent.getTimestamp().getValue());
- assertNotSame("tmpEvent is null after seekLocation() to start ", null, tmpEvent);
- assertTrue("tmpEvent has wrong reference after seekLocation() to start", firstEventReference.contains(tmpEvent.getReference()));
- }
-
- @SuppressWarnings("unchecked")
- public void testGetter() {
- ITmfEvent tmpEvent = null;
- final LTTngTextTrace testStream1 = prepareStreamToTest();
- final TmfContext tmpContext = new TmfContext(null, 0);
-
- // Move to the first event to have something to play with
- tmpEvent = testStream1.parseEvent(tmpContext);
-
- // Test current event
- assertNotSame("tmpEvent is null after first event", null, tmpEvent);
- assertTrue("tmpEvent has wrong reference after first event", firstEventReference.contains(tmpEvent.getReference()));
- assertNotSame("tmpContext is null after first seekEvent()", null, testStream1.getCurrentLocation());
- assertEquals("tmpContext has wrong timestamp after first seekEvent()", locationAfterFirstEvent, ((TmfLocation<Long>) testStream1.getCurrentLocation()).getLocation());
- // Test CPU number of the trace
- assertSame("getCpuNumber() return wrong number of cpu", traceCpuNumber, testStream1.getCpuNumber());
- }
-
- public void testToString() {
- final LTTngTextTrace testStream1 = prepareStreamToTest();
-
- // Move to the first event to have something to play with
- testStream1.parseEvent(new TmfContext(null, 0));
-
- // Just make sure toString() does not return null or the java reference
- assertNotSame("toString returned null", null, testStream1.toString());
- assertNotSame("toString is not overridded!", testStream1.getClass().getName() + '@' + Integer.toHexString(testStream1.hashCode()), testStream1.toString());
- }
-
-}
diff --git a/lttng/org.eclipse.linuxtools.lttng.core.tests/src/org/eclipse/linuxtools/lttng/core/tests/trace/LTTngTraceTest.java b/lttng/org.eclipse.linuxtools.lttng.core.tests/src/org/eclipse/linuxtools/lttng/core/tests/trace/LTTngTraceTest.java
deleted file mode 100644
index 6a2e2f9752..0000000000
--- a/lttng/org.eclipse.linuxtools.lttng.core.tests/src/org/eclipse/linuxtools/lttng/core/tests/trace/LTTngTraceTest.java
+++ /dev/null
@@ -1,548 +0,0 @@
-package org.eclipse.linuxtools.lttng.core.tests.trace;
-
-import java.io.File;
-import java.net.URL;
-
-import junit.framework.TestCase;
-
-import org.eclipse.core.runtime.FileLocator;
-import org.eclipse.core.runtime.Path;
-import org.eclipse.linuxtools.internal.lttng.core.event.LttngLocation;
-import org.eclipse.linuxtools.internal.lttng.core.trace.LTTngTrace;
-import org.eclipse.linuxtools.tmf.core.event.ITmfEvent;
-import org.eclipse.linuxtools.tmf.core.event.TmfEvent;
-import org.eclipse.linuxtools.tmf.core.event.TmfTimestamp;
-import org.eclipse.linuxtools.tmf.core.trace.ITmfContext;
-import org.eclipse.linuxtools.tmf.core.trace.TmfContext;
-import org.osgi.framework.FrameworkUtil;
-
-/*
- Functions tested here :
- public LTTngTrace(String path) throws Exception
- public LTTngTrace(String path, boolean skipIndexing) throws Exception
-
- public TmfTraceContext seekLocation(Object location) {
- public TmfTraceContext seekEvent(TmfTimestamp timestamp) {
- public TmfTraceContext seekEvent(long position) {
-
- public TmfEvent getNextEvent(TmfTraceContext context) {
- public Object getCurrentLocation() {
-
- public LttngEvent parseEvent(TmfTraceContext context) {
-
- public int getCpuNumber() {
- */
-
-@SuppressWarnings("nls")
-public class LTTngTraceTest extends TestCase {
-
- private final static String tracepath1="traceset/trace-15316events_nolost_newformat";
- private final static String wrongTracePath="/somewhere/that/does/not/exist";
-
- private final static int traceCpuNumber=1;
-
- private final static boolean skipIndexing=true;
-
- private final static long firstEventTimestamp = 13589759412128L;
- private final static long secondEventTimestamp = 13589759419903L;
- private final static Long locationAfterFirstEvent = 13589759412128L;
-
- private final static String tracename = "traceset/trace-15316events_nolost_newformat";
-
- private final static long indexToSeekFirst = 0;
- private final static Long locationToSeekFirst = 13589759412128L;
- private final static long contextValueAfterFirstEvent = 13589759412128L;
- private final static String firstEventReference = tracename + "/metadata_0";
-
-
- private final static long timestampToSeekTest1 = 13589826657302L;
- private final static Long indexToSeekTest1 = 7497L;
- private final static long locationToSeekTest1 = 13589826657302L;
- private final static long contextValueAfterSeekTest1 = 13589826657302L;
- private final static String seek1EventReference = tracename + "/vm_state_0";
- private final static long seekTimestamp = 13589826657302L;
- private final static long nextEventTimestamp = 13589826659739L;
- private final static long nextnextEventTimestamp = 13589826662017L;
-
- private final static long timestampToSeekLast = 13589906758692L;
- private final static Long indexToSeekLast = 15315L;
- private final static long locationToSeekLast = 13589906758692L;
- private final static long contextValueAfterSeekLast = 13589906758692L;
- private final static String seekLastEventReference = tracename + "/kernel_0";
-
- private static LTTngTrace testStream = null;
- private LTTngTrace prepareStreamToTest() {
- if (testStream == null)
- try {
- final URL location = FileLocator.find(FrameworkUtil.getBundle(this.getClass()), new Path(tracepath1), null);
- final File testfile = new File(FileLocator.toFileURL(location).toURI());
- final LTTngTrace tmpStream = new LTTngTrace(null, testfile.getPath(), false);
- testStream = tmpStream;
- }
- catch (final Exception e) {
- System.out.println("ERROR : Could not open " + tracepath1);
- testStream = null;
- }
- else
- testStream.seekEvent(0L);
-
-
- return testStream;
- }
-
- public void testTraceConstructors() {
- // Default constructor
- // Test constructor with argument on a wrong tracepath, skipping indexing
- try {
- new LTTngTrace(null, wrongTracePath, skipIndexing);
- fail("Construction with wrong tracepath should fail!");
- }
- catch( final Exception e) {
- }
-
- // Test constructor with argument on a correct tracepath, skipping indexing
- try {
- final URL location = FileLocator.find(FrameworkUtil.getBundle(this.getClass()), new Path(tracepath1), null);
- final File testfile = new File(FileLocator.toFileURL(location).toURI());
- new LTTngTrace(null, testfile.getPath(), skipIndexing);
- }
- catch( final Exception e) {
- fail("Construction with correct tracepath failed!");
- }
- // System.out.println("Test completed");
- }
-
- public void testGetNextEvent() {
- TmfEvent tmpEvent = null;
- final LTTngTrace testStream1 = prepareStreamToTest();
-
- final TmfContext tmpContext = new TmfContext(null, 0);
- // We should be at the beginning of the trace, so we will just read the first event now
- tmpEvent = testStream1.getNext(tmpContext );
- assertNotSame("tmpEvent is null after first getNextEvent()",null,tmpEvent );
- assertEquals("tmpEvent has wrong timestamp after first getNextEvent()",firstEventTimestamp,tmpEvent.getTimestamp().getValue() );
-
- // Read the next event as well
- tmpEvent = testStream1.getNext( tmpContext);
- assertNotSame("tmpEvent is null after second getNextEvent()",null,tmpEvent );
- assertEquals("tmpEvent has wrong timestamp after second getNextEvent()",secondEventTimestamp,tmpEvent.getTimestamp().getValue() );
- }
-
- public void testParseEvent() {
- TmfEvent tmpEvent = null;
- final LTTngTrace testStream1 = prepareStreamToTest();
-
- final TmfContext tmpContext = new TmfContext(null, 0);
- // We should be at the beginning of the trace, so we will just parse the first event now
- tmpEvent = testStream1.parseEvent(tmpContext );
- assertNotSame("tmpEvent is null after first parseEvent()",null,tmpEvent );
- assertEquals("tmpEvent has wrong timestamp after first parseEvent()",firstEventTimestamp,tmpEvent.getTimestamp().getValue() );
-
- // Use parseEvent again. Should be the same event
- tmpEvent = testStream1.parseEvent(tmpContext );
- assertNotSame("tmpEvent is null after first parseEvent()",null,tmpEvent );
- assertEquals("tmpEvent has wrong timestamp after first parseEvent()",firstEventTimestamp,tmpEvent.getTimestamp().getValue() );
- }
-
- public void testSeekEventTimestamp() {
- TmfEvent tmpEvent = null;
- ITmfContext tmpContext = new TmfContext(null, 0);
- final LTTngTrace testStream1 = prepareStreamToTest();
-
- // We should be at the beginning of the trace, we will seek at a certain timestamp
- tmpContext = testStream1.seekEvent(new TmfTimestamp(timestampToSeekTest1, (byte) -9, 0));
- tmpEvent = testStream1.getNext(tmpContext);
- assertNotSame("tmpContext is null after first seekEvent()",null,tmpContext );
- assertEquals("tmpContext has wrong timestamp after first seekEvent()",contextValueAfterSeekTest1,((TmfTimestamp)tmpEvent.getTimestamp()).getValue() );
- assertNotSame("tmpEvent is null after first seekEvent()",null,tmpEvent );
- assertTrue("tmpEvent has wrong reference after first seekEvent()", seek1EventReference.contains(tmpEvent.getReference()));
-
- // Seek to the last timestamp
- tmpContext = testStream1.seekEvent(new TmfTimestamp(timestampToSeekLast, (byte) -9, 0));
- tmpEvent = testStream1.getNext(tmpContext);
- assertNotSame("tmpContext is null after seekEvent() to last",null,tmpContext );
- assertEquals("tmpContext has wrong timestamp after seekEvent() to last",contextValueAfterSeekLast,((TmfTimestamp)tmpEvent.getTimestamp()).getValue() );
- assertNotSame("tmpEvent is null after seekEvent() to last ",null,tmpEvent );
- assertTrue("tmpEvent has wrong reference after seekEvent() to last", seekLastEventReference.contains(tmpEvent.getReference()));
-
- // Seek to the first timestamp (startTime)
- tmpContext = testStream1.seekEvent(new TmfTimestamp(firstEventTimestamp, (byte) -9, 0));
- tmpEvent = testStream1.getNext(tmpContext);
- assertNotSame("tmpEvent is null after seekEvent() to start ",null,tmpEvent );
- assertTrue("tmpEvent has wrong reference after seekEvent() to start", firstEventReference.contains(tmpEvent.getReference()));
- assertNotSame("tmpContext is null after seekEvent() to first",null,tmpContext );
- assertEquals("tmpContext has wrong timestamp after seekEvent() to first",contextValueAfterFirstEvent,((TmfTimestamp)tmpEvent.getTimestamp()).getValue() );
- }
-
- public void testSeekEventIndex() {
- TmfEvent tmpEvent = null;
- ITmfContext tmpContext = new TmfContext(null, 0);
- final LTTngTrace testStream1 = prepareStreamToTest();
-
- // We should be at the beginning of the trace, we will seek at a certain timestamp
- tmpContext = testStream1.seekEvent(indexToSeekTest1);
- tmpEvent = testStream1.getNext(tmpContext);
- assertNotSame("tmpContext is null after first seekEvent()",null,tmpContext );
- assertEquals("tmpContext has wrong timestamp after first seekEvent()",contextValueAfterSeekTest1,((TmfTimestamp)tmpEvent.getTimestamp()).getValue() );
- assertNotSame("tmpEvent is null after first seekEvent()",null,tmpEvent );
- assertTrue("tmpEvent has wrong reference after first seekEvent()", seek1EventReference.contains(tmpEvent.getReference()));
-
- // Seek to the last timestamp
- tmpContext = testStream1.seekEvent(indexToSeekLast);
- tmpEvent = testStream1.getNext(tmpContext);
- assertNotSame("tmpContext is null after first seekEvent()",null,tmpContext );
- assertEquals("tmpContext has wrong timestamp after first seekEvent()",contextValueAfterSeekLast,((TmfTimestamp)tmpEvent.getTimestamp()).getValue() );
- assertNotSame("tmpEvent is null after seekEvent() to last ",null,tmpEvent );
- assertTrue("tmpEvent has wrong reference after seekEvent() to last", seekLastEventReference.contains(tmpEvent.getReference()));
-
- // Seek to the first timestamp (startTime)
- tmpContext = testStream1.seekEvent(indexToSeekFirst);
- tmpEvent = testStream1.getNext(tmpContext);
- assertNotSame("tmpContext is null after first seekEvent()",null,tmpContext );
- assertEquals("tmpContext has wrong timestamp after first seekEvent()",contextValueAfterFirstEvent,((TmfTimestamp)tmpEvent.getTimestamp()).getValue() );
- assertNotSame("tmpEvent is null after seekEvent() to start ",null,tmpEvent );
- assertTrue("tmpEvent has wrong reference after seekEvent() to start", firstEventReference.contains(tmpEvent.getReference()));
- }
-
- public void testSeekLocation() {
- TmfEvent tmpEvent = null;
- ITmfContext tmpContext = new TmfContext(null, 0);
- final LTTngTrace testStream1 = prepareStreamToTest();
-
- // We should be at the beginning of the trace, we will seek at a certain timestamp
- tmpContext = testStream1.seekEvent(new LttngLocation(locationToSeekTest1));
- tmpEvent = testStream1.getNext(tmpContext);
- assertNotSame("tmpContext is null after first seekLocation()",null,tmpContext );
- assertEquals("tmpContext has wrong timestamp after first seekLocation()",contextValueAfterSeekTest1,((TmfTimestamp)tmpEvent.getTimestamp()).getValue() );
- assertNotSame("tmpEvent is null after first seekLocation()",null,tmpEvent );
- assertTrue("tmpEvent has wrong reference after first seekLocation()", seek1EventReference.contains(tmpEvent.getReference()));
-
- // Seek to the last timestamp
- tmpContext = testStream1.seekEvent(new LttngLocation(locationToSeekLast));
- tmpEvent = testStream1.getNext(tmpContext);
- assertNotSame("tmpContext is null after first seekLocation()",null,tmpContext );
- assertEquals("tmpContext has wrong timestamp after first seekLocation()",contextValueAfterSeekLast,((TmfTimestamp)tmpEvent.getTimestamp()).getValue() );
- assertNotSame("tmpEvent is null after seekLocation() to last ",null,tmpEvent );
- assertTrue("tmpEvent has wrong reference after seekLocation() to last", seekLastEventReference.contains(tmpEvent.getReference()));
-
- // Seek to the first timestamp (startTime)
- tmpContext = testStream1.seekEvent(new LttngLocation(locationToSeekFirst));
- tmpEvent = testStream1.getNext(tmpContext);
- assertNotSame("tmpContext is null after first seekLocation()",null,tmpContext );
- assertEquals("tmpContext has wrong timestamp after first seekLocation()",contextValueAfterFirstEvent,((TmfTimestamp)tmpEvent.getTimestamp()).getValue() );
- assertNotSame("tmpEvent is null after seekLocation() to start ",null,tmpEvent );
- assertTrue("tmpEvent has wrong reference after seekLocation() to start", firstEventReference.contains(tmpEvent.getReference()));
- }
-
- public void testLocationOperations() {
- TmfEvent tmpEvent = null;
- ITmfContext tmpContext = new TmfContext(null, 0);
- final LTTngTrace testStream1 = prepareStreamToTest();
-
- // Test LttngLocation after a seek
- tmpContext = testStream1.seekEvent(new LttngLocation(seekTimestamp));
- LttngLocation location = (LttngLocation) tmpContext.getLocation().clone();
- assertTrue("location has wrong flag", location.isLastOperationSeek());
- assertEquals("location has wrong operation time", seekTimestamp, location.getOperationTimeValue());
- tmpContext = testStream1.seekEvent(location);
- tmpEvent = testStream1.getNext(tmpContext);
- assertTrue("tmpContext is null after getNextEvent()", tmpEvent != null);
- assertEquals("tmpEvent has wrong timestamp", seekTimestamp, tmpEvent.getTimestamp().getValue());
-
- // Test LttngLocation after a parse
- tmpContext = testStream1.seekEvent(new LttngLocation(seekTimestamp));
- tmpEvent = testStream.parseEvent(tmpContext);
- assertEquals("tmpEvent has wrong timestamp", seekTimestamp, tmpEvent.getTimestamp().getValue());
- location = (LttngLocation) tmpContext.getLocation().clone();
- assertTrue("location has wrong flag", location.isLastOperationParse());
- assertEquals("location has wrong operation time", seekTimestamp, location.getOperationTimeValue());
- tmpContext = testStream1.seekEvent(location);
- tmpEvent = testStream1.getNext(tmpContext);
- assertTrue("tmpContext is null after getNextEvent()", tmpEvent != null);
- assertEquals("tmpEvent has wrong timestamp", seekTimestamp, tmpEvent.getTimestamp().getValue());
-
- // Test LttngLocation after a getNext
- tmpContext = testStream1.seekEvent(new LttngLocation(seekTimestamp));
- tmpEvent = testStream.getNext(tmpContext);
- assertEquals("tmpEvent has wrong timestamp", seekTimestamp, tmpEvent.getTimestamp().getValue());
- location = (LttngLocation) tmpContext.getLocation().clone();
- assertTrue("location has wrong flag", location.isLastOperationReadNext());
- assertEquals("location has wrong operation time", seekTimestamp, location.getOperationTimeValue());
- tmpContext = testStream1.seekEvent(location);
- tmpEvent = testStream1.getNext(tmpContext);
- assertTrue("tmpContext is null after getNextEvent()", tmpEvent != null);
- assertEquals("tmpEvent has wrong timestamp", nextEventTimestamp, tmpEvent.getTimestamp().getValue());
-
- // Test LttngLocation after a parse and parse
- tmpContext = testStream1.seekEvent(new LttngLocation(seekTimestamp));
- tmpEvent = testStream.parseEvent(tmpContext);
- assertEquals("tmpEvent has wrong timestamp", seekTimestamp, tmpEvent.getTimestamp().getValue());
- tmpEvent = testStream.parseEvent(tmpContext);
- assertEquals("tmpEvent has wrong timestamp", seekTimestamp, tmpEvent.getTimestamp().getValue());
- location = (LttngLocation) tmpContext.getLocation().clone();
- assertTrue("location has wrong flag", location.isLastOperationParse());
- assertEquals("location has wrong operation time", seekTimestamp, location.getOperationTimeValue());
- tmpContext = testStream1.seekEvent(location);
- tmpEvent = testStream1.getNext(tmpContext);
- assertTrue("tmpContext is null after getNextEvent()", tmpEvent != null);
- assertEquals("tmpEvent has wrong timestamp", seekTimestamp, tmpEvent.getTimestamp().getValue());
-
- // Test LttngLocation after a getNext and getNext
- tmpContext = testStream1.seekEvent(new LttngLocation(seekTimestamp));
- tmpEvent = testStream.getNext(tmpContext);
- assertEquals("tmpEvent has wrong timestamp", seekTimestamp, tmpEvent.getTimestamp().getValue());
- tmpEvent = testStream.getNext(tmpContext);
- assertEquals("tmpEvent has wrong timestamp", nextEventTimestamp, tmpEvent.getTimestamp().getValue());
- location = (LttngLocation) tmpContext.getLocation().clone();
- assertTrue("location has wrong flag", location.isLastOperationReadNext());
- assertEquals("location has wrong operation time", nextEventTimestamp, location.getOperationTimeValue());
- tmpContext = testStream1.seekEvent(location);
- tmpEvent = testStream1.getNext(tmpContext);
- assertTrue("tmpContext is null after getNextEvent()", tmpEvent != null);
- assertEquals("tmpEvent has wrong timestamp", nextnextEventTimestamp, tmpEvent.getTimestamp().getValue());
-
- // Test LttngLocation after a getNext and parse
- tmpContext = testStream1.seekEvent(new LttngLocation(seekTimestamp));
- tmpEvent = testStream.getNext(tmpContext);
- assertEquals("tmpEvent has wrong timestamp", seekTimestamp, tmpEvent.getTimestamp().getValue());
- tmpEvent = testStream.parseEvent(tmpContext);
- assertEquals("tmpEvent has wrong timestamp", nextEventTimestamp, tmpEvent.getTimestamp().getValue());
- location = (LttngLocation) tmpContext.getLocation().clone();
- assertTrue("location has wrong flag", location.isLastOperationParse());
- assertEquals("location has wrong operation time", nextEventTimestamp, location.getOperationTimeValue());
- tmpContext = testStream1.seekEvent(location);
- tmpEvent = testStream1.getNext(tmpContext);
- assertTrue("tmpContext is null after getNextEvent()", tmpEvent != null);
- assertEquals("tmpEvent has wrong timestamp", nextEventTimestamp, tmpEvent.getTimestamp().getValue());
-
- // Test LttngLocation after a parse and getNext
- tmpContext = testStream1.seekEvent(new LttngLocation(seekTimestamp));
- tmpEvent = testStream.parseEvent(tmpContext);
- assertEquals("tmpEvent has wrong timestamp", seekTimestamp, tmpEvent.getTimestamp().getValue());
- tmpEvent = testStream.getNext(tmpContext);
- assertEquals("tmpEvent has wrong timestamp", seekTimestamp, tmpEvent.getTimestamp().getValue());
- location = (LttngLocation) tmpContext.getLocation().clone();
- assertTrue("location has wrong flag", location.isLastOperationReadNext());
- assertEquals("location has wrong operation time", seekTimestamp, location.getOperationTimeValue());
- tmpContext = testStream1.seekEvent(location);
- tmpEvent = testStream1.getNext(tmpContext);
- assertTrue("tmpContext is null after getNextEvent()", tmpEvent != null);
- assertEquals("tmpEvent has wrong timestamp", nextEventTimestamp, tmpEvent.getTimestamp().getValue());
-
- // Test LttngLocation after a parse, getNext and parse
- tmpContext = testStream1.seekEvent(new LttngLocation(seekTimestamp));
- tmpEvent = testStream.parseEvent(tmpContext);
- assertEquals("tmpEvent has wrong timestamp", seekTimestamp, tmpEvent.getTimestamp().getValue());
- tmpEvent = testStream.getNext(tmpContext);
- assertEquals("tmpEvent has wrong timestamp", seekTimestamp, tmpEvent.getTimestamp().getValue());
- tmpEvent = testStream.parseEvent(tmpContext);
- assertEquals("tmpEvent has wrong timestamp", nextEventTimestamp, tmpEvent.getTimestamp().getValue());
- location = (LttngLocation) tmpContext.getLocation().clone();
- assertTrue("location has wrong flag", location.isLastOperationParse());
- assertEquals("location has wrong operation time", nextEventTimestamp, location.getOperationTimeValue());
- tmpContext = testStream1.seekEvent(location);
- tmpEvent = testStream1.getNext(tmpContext);
- assertTrue("tmpContext is null after getNextEvent()", tmpEvent != null);
- assertEquals("tmpEvent has wrong timestamp", nextEventTimestamp, tmpEvent.getTimestamp().getValue());
-
- // Test LttngLocation after a parse, getNext and getNext
- tmpContext = testStream1.seekEvent(new LttngLocation(seekTimestamp));
- tmpEvent = testStream.parseEvent(tmpContext);
- assertEquals("tmpEvent has wrong timestamp", seekTimestamp, tmpEvent.getTimestamp().getValue());
- tmpEvent = testStream.getNext(tmpContext);
- assertEquals("tmpEvent has wrong timestamp", seekTimestamp, tmpEvent.getTimestamp().getValue());
- tmpEvent = testStream.getNext(tmpContext);
- assertEquals("tmpEvent has wrong timestamp", nextEventTimestamp, tmpEvent.getTimestamp().getValue());
- location = (LttngLocation) tmpContext.getLocation().clone();
- assertTrue("location has wrong flag", location.isLastOperationReadNext());
- assertEquals("location has wrong operation time", nextEventTimestamp, location.getOperationTimeValue());
- tmpContext = testStream1.seekEvent(location);
- tmpEvent = testStream1.getNext(tmpContext);
- assertTrue("tmpContext is null after getNextEvent()", tmpEvent != null);
- assertEquals("tmpEvent has wrong timestamp", nextnextEventTimestamp, tmpEvent.getTimestamp().getValue());
-
- // Test LttngLocation after a getNext, parse and parse
- tmpContext = testStream1.seekEvent(new LttngLocation(seekTimestamp));
- tmpEvent = testStream.getNext(tmpContext);
- assertEquals("tmpEvent has wrong timestamp", seekTimestamp, tmpEvent.getTimestamp().getValue());
- tmpEvent = testStream.parseEvent(tmpContext);
- assertEquals("tmpEvent has wrong timestamp", nextEventTimestamp, tmpEvent.getTimestamp().getValue());
- tmpEvent = testStream.parseEvent(tmpContext);
- assertEquals("tmpEvent has wrong timestamp", nextEventTimestamp, tmpEvent.getTimestamp().getValue());
- location = (LttngLocation) tmpContext.getLocation().clone();
- assertTrue("location has wrong flag", location.isLastOperationParse());
- assertEquals("location has wrong operation time", nextEventTimestamp, location.getOperationTimeValue());
- tmpContext = testStream1.seekEvent(location);
- tmpEvent = testStream1.getNext(tmpContext);
- assertTrue("tmpContext is null after getNextEvent()", tmpEvent != null);
- assertEquals("tmpEvent has wrong timestamp", nextEventTimestamp, tmpEvent.getTimestamp().getValue());
-
- // Test LttngLocation after a getNext, parse and getNext
- tmpContext = testStream1.seekEvent(new LttngLocation(seekTimestamp));
- tmpEvent = testStream.getNext(tmpContext);
- assertEquals("tmpEvent has wrong timestamp", seekTimestamp, tmpEvent.getTimestamp().getValue());
- tmpEvent = testStream.parseEvent(tmpContext);
- assertEquals("tmpEvent has wrong timestamp", nextEventTimestamp, tmpEvent.getTimestamp().getValue());
- tmpEvent = testStream.getNext(tmpContext);
- assertEquals("tmpEvent has wrong timestamp", nextEventTimestamp, tmpEvent.getTimestamp().getValue());
- location = (LttngLocation) tmpContext.getLocation().clone();
- assertTrue("location has wrong flag", location.isLastOperationReadNext());
- assertEquals("location has wrong operation time", nextEventTimestamp, location.getOperationTimeValue());
- tmpContext = testStream1.seekEvent(location);
- tmpEvent = testStream1.getNext(tmpContext);
- assertTrue("tmpContext is null after getNextEvent()", tmpEvent != null);
- assertEquals("tmpEvent has wrong timestamp", nextnextEventTimestamp, tmpEvent.getTimestamp().getValue());
-
- // Test LttngLocation after a getNext, getNext and parse
- tmpContext = testStream1.seekEvent(new LttngLocation(seekTimestamp));
- tmpEvent = testStream.getNext(tmpContext);
- assertEquals("tmpEvent has wrong timestamp", seekTimestamp, tmpEvent.getTimestamp().getValue());
- tmpEvent = testStream.getNext(tmpContext);
- assertEquals("tmpEvent has wrong timestamp", nextEventTimestamp, tmpEvent.getTimestamp().getValue());
- tmpEvent = testStream.parseEvent(tmpContext);
- assertEquals("tmpEvent has wrong timestamp", nextnextEventTimestamp, tmpEvent.getTimestamp().getValue());
- location = (LttngLocation) tmpContext.getLocation().clone();
- assertTrue("location has wrong flag", location.isLastOperationParse());
- assertEquals("location has wrong operation time", nextnextEventTimestamp, location.getOperationTimeValue());
- tmpContext = testStream1.seekEvent(location);
- tmpEvent = testStream1.getNext(tmpContext);
- assertTrue("tmpContext is null after getNextEvent()", tmpEvent != null);
- assertEquals("tmpEvent has wrong timestamp", nextnextEventTimestamp, tmpEvent.getTimestamp().getValue());
- }
-
- public void testConcurrentOperations() {
- final LTTngTrace testStream = prepareStreamToTest();
- ITmfEvent event1 = null;
- ITmfEvent event2 = null;
- ITmfContext context1;
- ITmfContext context2;
-
- // Test concurrent interference (seek) after a seek
- context1 = testStream.seekEvent(new LttngLocation(seekTimestamp));
- context2 = testStream.seekEvent(new LttngLocation(timestampToSeekLast));
- event1 = testStream.getNext(context1);
- assertTrue("event is null after getNext()", event1 != null);
- assertEquals("event has wrong timestamp", seekTimestamp, event1.getTimestamp().getValue());
-
- // Test concurrent interference (parseEvent) after a seek
- context2 = testStream.seekEvent(new LttngLocation(timestampToSeekLast));
- context1 = testStream.seekEvent(new LttngLocation(seekTimestamp));
- event2 = testStream.parseEvent(context2);
- assertTrue("event is null after parseEvent()", event2 != null);
- assertEquals("event has wrong timestamp", timestampToSeekLast, event2.getTimestamp().getValue());
- event1 = testStream.getNext(context1);
- assertTrue("event is null after getNext()", event1 != null);
- assertEquals("event has wrong timestamp", seekTimestamp, event1.getTimestamp().getValue());
-
- // Test concurrent interference (getNext) after a seek
- context2 = testStream.seekEvent(new LttngLocation(timestampToSeekLast));
- context1 = testStream.seekEvent(new LttngLocation(seekTimestamp));
- event2 = testStream.getNext(context2);
- assertTrue("event is null after getNext()", event2 != null);
- assertEquals("event has wrong timestamp", timestampToSeekLast, event2.getTimestamp().getValue());
- event1 = testStream.getNext(context1);
- assertTrue("event is null after getNext()", event1 != null);
- assertEquals("event has wrong timestamp", seekTimestamp, event1.getTimestamp().getValue());
-
- // Test concurrent interference (seek) after a parseEvent
- context1 = testStream.seekEvent(new LttngLocation(seekTimestamp));
- event1 = testStream.parseEvent(context1);
- assertTrue("event is null after getNext()", event1 != null);
- assertEquals("event has wrong timestamp", seekTimestamp, event1.getTimestamp().getValue());
- context2 = testStream.seekEvent(new LttngLocation(timestampToSeekLast));
- event1 = testStream.getNext(context1);
- assertTrue("event is null after getNext()", event1 != null);
- assertEquals("event has wrong timestamp", seekTimestamp, event1.getTimestamp().getValue());
-
- // Test concurrent interference (parseEvent) after a parseEvent
- context2 = testStream.seekEvent(new LttngLocation(timestampToSeekLast));
- context1 = testStream.seekEvent(new LttngLocation(seekTimestamp));
- event1 = testStream.parseEvent(context1);
- assertTrue("event is null after getNext()", event1 != null);
- assertEquals("event has wrong timestamp", seekTimestamp, event1.getTimestamp().getValue());
- event2 = testStream.parseEvent(context2);
- assertTrue("event is null after parseEvent()", event2 != null);
- assertEquals("event has wrong timestamp", timestampToSeekLast, event2.getTimestamp().getValue());
- event1 = testStream.getNext(context1);
- assertTrue("event is null after getNext()", event1 != null);
- assertEquals("event has wrong timestamp", seekTimestamp, event1.getTimestamp().getValue());
-
- // Test concurrent interference (getNext) after a parseEvent
- context2 = testStream.seekEvent(new LttngLocation(timestampToSeekLast));
- context1 = testStream.seekEvent(new LttngLocation(seekTimestamp));
- event1 = testStream.parseEvent(context1);
- assertTrue("event is null after getNext()", event1 != null);
- assertEquals("event has wrong timestamp", seekTimestamp, event1.getTimestamp().getValue());
- event2 = testStream.getNext(context2);
- assertTrue("event is null after getNext()", event2 != null);
- assertEquals("event has wrong timestamp", timestampToSeekLast, event2.getTimestamp().getValue());
- event1 = testStream.getNext(context1);
- assertTrue("event is null after getNext()", event1 != null);
- assertEquals("event has wrong timestamp", seekTimestamp, event1.getTimestamp().getValue());
-
- // Test concurrent interference (seek) after a getNext
- context1 = testStream.seekEvent(new LttngLocation(seekTimestamp));
- event1 = testStream.getNext(context1);
- assertTrue("event is null after getNext()", event1 != null);
- assertEquals("event has wrong timestamp", seekTimestamp, event1.getTimestamp().getValue());
- context2 = testStream.seekEvent(new LttngLocation(timestampToSeekLast));
- event1 = testStream.getNext(context1);
- assertTrue("event is null after getNext()", event1 != null);
- assertEquals("event has wrong timestamp", nextEventTimestamp, event1.getTimestamp().getValue());
-
- // Test concurrent interference (parseEvent) after a getNext
- context2 = testStream.seekEvent(new LttngLocation(timestampToSeekLast));
- context1 = testStream.seekEvent(new LttngLocation(seekTimestamp));
- event1 = testStream.getNext(context1);
- assertTrue("event is null after getNext()", event1 != null);
- assertEquals("event has wrong timestamp", seekTimestamp, event1.getTimestamp().getValue());
- event2 = testStream.parseEvent(context2);
- assertTrue("event is null after parseEvent()", event2 != null);
- assertEquals("event has wrong timestamp", timestampToSeekLast, event2.getTimestamp().getValue());
- event1 = testStream.getNext(context1);
- assertTrue("event is null after getNext()", event1 != null);
- assertEquals("event has wrong timestamp", nextEventTimestamp, event1.getTimestamp().getValue());
-
- // Test concurrent interference (getNext) after a getNext
- context2 = testStream.seekEvent(new LttngLocation(timestampToSeekLast));
- context1 = testStream.seekEvent(new LttngLocation(seekTimestamp));
- event1 = testStream.getNext(context1);
- assertTrue("event is null after getNext()", event1 != null);
- assertEquals("event has wrong timestamp", seekTimestamp, event1.getTimestamp().getValue());
- event2 = testStream.getNext(context2);
- assertTrue("event is null after getNext()", event2 != null);
- assertEquals("event has wrong timestamp", timestampToSeekLast, event2.getTimestamp().getValue());
- event1 = testStream.getNext(context1);
- assertTrue("event is null after getNext()", event1 != null);
- assertEquals("event has wrong timestamp", nextEventTimestamp, event1.getTimestamp().getValue());
- }
-
- public void testGetter() {
- TmfEvent tmpEvent = null;
- final LTTngTrace testStream1 = prepareStreamToTest();
-
- // Move to the first event to have something to play with
- tmpEvent = testStream1.parseEvent( new TmfContext(null, 0));
-
- // Test current event
- assertNotSame("tmpEvent is null after first event",null,tmpEvent );
- assertTrue("tmpEvent has wrong reference after first event", firstEventReference.contains(tmpEvent.getReference()));
- assertNotSame("tmpContext is null after first seekEvent()",null,testStream1.getCurrentLocation() );
- assertTrue("tmpContext has wrong timestamp after first seekEvent()",locationAfterFirstEvent.equals( ((LttngLocation)testStream1.getCurrentLocation()).getOperationTimeValue()) );
-
- // Test CPU number of the trace
- assertSame("getCpuNumber() return wrong number of cpu",traceCpuNumber ,testStream1.getCpuNumber() );
- }
-
- public void testToString() {
- final LTTngTrace testStream1 = prepareStreamToTest();
-
- // Move to the first event to have something to play with
- testStream1.parseEvent( new TmfContext(null, 0) );
-
- // Just make sure toString() does not return null or the java reference
- assertNotSame("toString returned null",null, testStream1.toString() );
- assertNotSame("toString is not overridded!", testStream1.getClass().getName() + '@' + Integer.toHexString(testStream1.hashCode()), testStream1.toString() );
- }
-
-}
diff --git a/lttng/org.eclipse.linuxtools.lttng.core.tests/traceset/.gitignore b/lttng/org.eclipse.linuxtools.lttng.core.tests/traceset/.gitignore
deleted file mode 100644
index 54d4f552cc..0000000000
--- a/lttng/org.eclipse.linuxtools.lttng.core.tests/traceset/.gitignore
+++ /dev/null
@@ -1,2 +0,0 @@
-/*
-*.tar
diff --git a/lttng/org.eclipse.linuxtools.lttng.core.tests/traceset/trace-15316events_nolost_newformat.tar.gz b/lttng/org.eclipse.linuxtools.lttng.core.tests/traceset/trace-15316events_nolost_newformat.tar.gz
deleted file mode 100644
index 5b26f781ff..0000000000
--- a/lttng/org.eclipse.linuxtools.lttng.core.tests/traceset/trace-15316events_nolost_newformat.tar.gz
+++ /dev/null
Binary files differ
diff --git a/lttng/org.eclipse.linuxtools.lttng.core.tests/traceset/trace-15316events_nolost_newformat.txt b/lttng/org.eclipse.linuxtools.lttng.core.tests/traceset/trace-15316events_nolost_newformat.txt
deleted file mode 100644
index 7bfa8c2fb0..0000000000
--- a/lttng/org.eclipse.linuxtools.lttng.core.tests/traceset/trace-15316events_nolost_newformat.txt
+++ /dev/null
@@ -1,15320 +0,0 @@
-Trace set contains 1 traces
-
-metadata.core_marker_id: 13589.759412128 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "vm_state", name = "vm_map", event_id = 0, int = 4, long = 4, pointer = 4, size_t = 4, alignment = 0 }
-metadata.core_marker_format: 13589.759419903 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "vm_state", name = "vm_map", format = "pid %d start %lu end %lu flags %lu pgoff %lu inode %lu" }
-metadata.core_marker_id: 13589.759422785 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "kernel", name = "page_fault_get_user_entry", event_id = 43, int = 4, long = 4, pointer = 4, size_t = 4, alignment = 0 }
-metadata.core_marker_format: 13589.759425598 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "kernel", name = "page_fault_get_user_entry", format = "address #p%lu write_access #1u%u" }
-metadata.core_marker_id: 13589.759430979 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "mm", name = "swap_out", event_id = 7, int = 4, long = 4, pointer = 4, size_t = 4, alignment = 0 }
-metadata.core_marker_format: 13589.759433694 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "mm", name = "swap_out", format = "pfn %lu filp %p offset %lu" }
-metadata.core_marker_id: 13589.759436212 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "block", name = "unplug_io", event_id = 20, int = 4, long = 4, pointer = 4, size_t = 4, alignment = 0 }
-metadata.core_marker_format: 13589.759438797 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "block", name = "unplug_io", format = "pdu %u" }
-metadata.core_marker_id: 13589.759441253 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "block", name = "bio_frontmerge", event_id = 13, int = 4, long = 4, pointer = 4, size_t = 4, alignment = 0 }
-metadata.core_marker_format: 13589.759444795 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "block", name = "bio_frontmerge", format = "sector %llu size %u rw(FAILFAST_DRIVER,FAILFAST_TRANSPORT,FAILFAST_DEV,DISCARD,META,SYNC,BARRIER,AHEAD,RW) %lX not_uptodate #1u%d" }
-metadata.core_marker_id: 13589.759447800 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "block", name = "bio_complete", event_id = 11, int = 4, long = 4, pointer = 4, size_t = 4, alignment = 0 }
-metadata.core_marker_format: 13589.759450836 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "block", name = "bio_complete", format = "sector %llu size %u rw(FAILFAST_DRIVER,FAILFAST_TRANSPORT,FAILFAST_DEV,DISCARD,META,SYNC,BARRIER,AHEAD,RW) %lX not_uptodate #1u%d" }
-metadata.core_marker_id: 13589.759453835 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "block", name = "rq_issue_fs", event_id = 5, int = 4, long = 4, pointer = 4, size_t = 4, alignment = 0 }
-metadata.core_marker_format: 13589.759459351 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "block", name = "rq_issue_fs", format = "hard_sector %llu rw %d errors %d" }
-metadata.core_marker_id: 13589.759464411 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "fs", name = "llseek", event_id = 7, int = 4, long = 4, pointer = 4, size_t = 4, alignment = 0 }
-metadata.core_marker_format: 13589.759467021 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "fs", name = "llseek", format = "fd %u offset %lld origin %u" }
-metadata.core_marker_id: 13589.759469668 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "net", name = "socket_getpeername", event_id = 8, int = 4, long = 4, pointer = 4, size_t = 4, alignment = 0 }
-metadata.core_marker_format: 13589.759474938 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "net", name = "socket_getpeername", format = "fd %d usockaddr %p usockaddr_len %p ret %d" }
-metadata.core_marker_id: 13589.759477536 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "block", name = "getrq_bio", event_id = 15, int = 4, long = 4, pointer = 4, size_t = 4, alignment = 0 }
-metadata.core_marker_format: 13589.759480485 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "block", name = "getrq_bio", format = "sector %llu size %u rw(FAILFAST_DRIVER,FAILFAST_TRANSPORT,FAILFAST_DEV,DISCARD,META,SYNC,BARRIER,AHEAD,RW) %lX not_uptodate #1u%d" }
-metadata.core_marker_id: 13589.759483682 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "netif_state", name = "insert_ifa_ipv4", event_id = 0, int = 4, long = 4, pointer = 4, size_t = 4, alignment = 0 }
-metadata.core_marker_format: 13589.759486434 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "netif_state", name = "insert_ifa_ipv4", format = "label %s address #4u%u" }
-metadata.core_marker_id: 13589.759489395 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "net", name = "socket_socketpair", event_id = 9, int = 4, long = 4, pointer = 4, size_t = 4, alignment = 0 }
-metadata.core_marker_format: 13589.759495029 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "net", name = "socket_socketpair", format = "family %d type %d protocol %d usockvec %p ret %d" }
-metadata.core_marker_id: 13589.759497793 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "kernel", name = "process_wait", event_id = 24, int = 4, long = 4, pointer = 4, size_t = 4, alignment = 0 }
-metadata.core_marker_format: 13589.759500410 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "kernel", name = "process_wait", format = "pid %d" }
-metadata.core_marker_id: 13589.759502996 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "block", name = "split", event_id = 22, int = 4, long = 4, pointer = 4, size_t = 4, alignment = 0 }
-metadata.core_marker_format: 13589.759505945 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "block", name = "split", format = "sector %llu size %u rw(FAILFAST_DRIVER,FAILFAST_TRANSPORT,FAILFAST_DEV,DISCARD,META,SYNC,BARRIER,AHEAD,RW) %lX not_uptodate #1u%d pdu %u" }
-metadata.core_marker_id: 13589.759508950 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "fd_state", name = "file_descriptor", event_id = 0, int = 4, long = 4, pointer = 4, size_t = 4, alignment = 0 }
-metadata.core_marker_format: 13589.759511640 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "fd_state", name = "file_descriptor", format = "filename %s pid %d fd %u" }
-metadata.core_marker_id: 13589.759514145 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "kernel", name = "page_fault_nosem_exit", event_id = 42, int = 4, long = 4, pointer = 4, size_t = 4, alignment = 0 }
-metadata.core_marker_format: 13589.759516725 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "kernel", name = "page_fault_nosem_exit", format = " " }
-metadata.core_marker_id: 13589.759519199 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "kernel", name = "page_fault_entry", event_id = 39, int = 4, long = 4, pointer = 4, size_t = 4, alignment = 0 }
-metadata.core_marker_format: 13589.759522006 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "kernel", name = "page_fault_entry", format = "ip #p%lu address #p%lu trap_id #2u%u write_access #1u%u" }
-metadata.core_marker_id: 13589.759524704 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "kernel", name = "timer_set", event_id = 29, int = 4, long = 4, pointer = 4, size_t = 4, alignment = 0 }
-metadata.core_marker_format: 13589.759527295 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "kernel", name = "timer_set", format = "expires %lu function %p data %lu" }
-metadata.core_marker_id: 13589.759529806 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "kernel", name = "irq_entry", event_id = 4, int = 4, long = 4, pointer = 4, size_t = 4, alignment = 0 }
-metadata.core_marker_format: 13589.759535453 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "kernel", name = "irq_entry", format = "ip %lu handler %p irq_id #2u%u kernel_mode #1u%u" }
-metadata.core_marker_id: 13589.759538112 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "block", name = "unplug_timer", event_id = 21, int = 4, long = 4, pointer = 4, size_t = 4, alignment = 0 }
-metadata.core_marker_format: 13589.759540802 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "block", name = "unplug_timer", format = "pdu %u" }
-metadata.core_marker_id: 13589.759543370 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "kernel", name = "timer_itimer_set", event_id = 28, int = 4, long = 4, pointer = 4, size_t = 4, alignment = 0 }
-metadata.core_marker_format: 13589.759546128 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "kernel", name = "timer_itimer_set", format = "which %d interval_sec %ld interval_usec %ld value_sec %ld value_usec %ld" }
-metadata.core_marker_id: 13589.759548842 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "block", name = "bio_backmerge", event_id = 12, int = 4, long = 4, pointer = 4, size_t = 4, alignment = 0 }
-metadata.core_marker_format: 13589.759551748 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "block", name = "bio_backmerge", format = "sector %llu size %u rw(FAILFAST_DRIVER,FAILFAST_TRANSPORT,FAILFAST_DEV,DISCARD,META,SYNC,BARRIER,AHEAD,RW) %lX not_uptodate #1u%d" }
-metadata.core_marker_id: 13589.759554878 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "kernel", name = "irq_exit", event_id = 6, int = 4, long = 4, pointer = 4, size_t = 4, alignment = 0 }
-metadata.core_marker_format: 13589.759557420 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "kernel", name = "irq_exit", format = "handled #1u%u" }
-metadata.core_marker_id: 13589.759559869 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "net", name = "socket_getsockopt", event_id = 13, int = 4, long = 4, pointer = 4, size_t = 4, alignment = 0 }
-metadata.core_marker_format: 13589.759565429 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "net", name = "socket_getsockopt", format = "fd %d level %d optname %d optval %p optlen %p ret %d" }
-metadata.core_marker_id: 13589.759568187 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "kernel", name = "tasklet_high_entry", event_id = 12, int = 4, long = 4, pointer = 4, size_t = 4, alignment = 0 }
-metadata.core_marker_format: 13589.759570859 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "kernel", name = "tasklet_high_entry", format = "func %p data %lu" }
-metadata.core_marker_id: 13589.759573309 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "mm", name = "huge_page_alloc", event_id = 3, int = 4, long = 4, pointer = 4, size_t = 4, alignment = 0 }
-metadata.core_marker_format: 13589.759576246 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "mm", name = "huge_page_alloc", format = "pfn %lu" }
-metadata.core_marker_id: 13589.759578652 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "kernel", name = "send_signal", event_id = 21, int = 4, long = 4, pointer = 4, size_t = 4, alignment = 0 }
-metadata.core_marker_format: 13589.759581200 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "kernel", name = "send_signal", format = "pid %d signal %d" }
-metadata.core_marker_id: 13589.759583663 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "block", name = "rq_issue_pc", event_id = 4, int = 4, long = 4, pointer = 4, size_t = 4, alignment = 0 }
-metadata.core_marker_format: 13589.759586310 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "block", name = "rq_issue_pc", format = "data_len %u rw %d errors %d" }
-metadata.core_marker_id: 13589.759588926 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "rcu", name = "tree_call_rcu_bh", event_id = 2, int = 4, long = 4, pointer = 4, size_t = 4, alignment = 0 }
-metadata.core_marker_format: 13589.759591555 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "rcu", name = "tree_call_rcu_bh", format = "func %p ip 0x%lX" }
-metadata.core_marker_id: 13589.759593987 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "block", name = "rq_abort_pc", event_id = 0, int = 4, long = 4, pointer = 4, size_t = 4, alignment = 0 }
-metadata.core_marker_format: 13589.759596609 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "block", name = "rq_abort_pc", format = "data_len %u rw %d errors %d" }
-metadata.core_marker_id: 13589.759599237 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "kernel", name = "trap_entry", event_id = 0, int = 4, long = 4, pointer = 4, size_t = 4, alignment = 0 }
-metadata.core_marker_format: 13589.759601810 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "kernel", name = "trap_entry", format = "ip #p%ld trap_id #2u%u" }
-metadata.core_marker_id: 13589.759604284 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "mm", name = "page_free", event_id = 4, int = 4, long = 4, pointer = 4, size_t = 4, alignment = 0 }
-metadata.core_marker_format: 13589.759606784 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "mm", name = "page_free", format = "pfn %lu order %u" }
-metadata.core_marker_id: 13589.759609178 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "fs", name = "pwrite64", event_id = 11, int = 4, long = 4, pointer = 4, size_t = 4, alignment = 0 }
-metadata.core_marker_format: 13589.759611874 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "fs", name = "pwrite64", format = "fd %u count %zu pos %llu" }
-metadata.core_marker_id: 13589.759614280 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "fs", name = "pread64", event_id = 10, int = 4, long = 4, pointer = 4, size_t = 4, alignment = 0 }
-metadata.core_marker_format: 13589.759617163 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "fs", name = "pread64", format = "fd %u count %zu pos %llu" }
-metadata.core_marker_id: 13589.759619618 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "fs", name = "open", event_id = 4, int = 4, long = 4, pointer = 4, size_t = 4, alignment = 0 }
-metadata.core_marker_format: 13589.759622080 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "fs", name = "open", format = "fd %d filename %s" }
-metadata.core_marker_id: 13589.759624444 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "block", name = "remap", event_id = 23, int = 4, long = 4, pointer = 4, size_t = 4, alignment = 0 }
-metadata.core_marker_format: 13589.759627394 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "block", name = "remap", format = "device_from %lu sector_from %llu device_to %lu size %u rw(FAILFAST_DRIVER,FAILFAST_TRANSPORT,FAILFAST_DEV,DISCARD,META,SYNC,BARRIER,AHEAD,RW) %lX not_uptodate #1u%d" }
-metadata.core_marker_id: 13589.759630398 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "block", name = "rq_complete_fs", event_id = 9, int = 4, long = 4, pointer = 4, size_t = 4, alignment = 0 }
-metadata.core_marker_format: 13589.759633070 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "block", name = "rq_complete_fs", format = "hard_sector %llu rw %d errors %d" }
-metadata.core_marker_id: 13589.759635693 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "kernel", name = "panic", event_id = 36, int = 4, long = 4, pointer = 4, size_t = 4, alignment = 0 }
-metadata.core_marker_format: 13589.759638161 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "kernel", name = "panic", format = "info %s" }
-metadata.core_marker_id: 13589.759640518 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "kernel", name = "softirq_raise", event_id = 9, int = 4, long = 4, pointer = 4, size_t = 4, alignment = 0 }
-metadata.core_marker_format: 13589.759643091 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "kernel", name = "softirq_raise", format = "softirq_id #1u%u" }
-metadata.core_marker_id: 13589.759645566 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "kernel", name = "trap_exit", event_id = 1, int = 4, long = 4, pointer = 4, size_t = 4, alignment = 0 }
-metadata.core_marker_format: 13589.759648182 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "kernel", name = "trap_exit", format = " " }
-metadata.core_marker_id: 13589.759650595 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "rcu", name = "tree_call_rcu", event_id = 1, int = 4, long = 4, pointer = 4, size_t = 4, alignment = 0 }
-metadata.core_marker_format: 13589.759653125 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "rcu", name = "tree_call_rcu", format = "func %p ip 0x%lX" }
-metadata.core_marker_id: 13589.759655555 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "block", name = "rq_requeue_fs", event_id = 7, int = 4, long = 4, pointer = 4, size_t = 4, alignment = 0 }
-metadata.core_marker_format: 13589.759658592 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "block", name = "rq_requeue_fs", format = "hard_sector %llu rw %d errors %d" }
-metadata.core_marker_id: 13589.759661140 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "kernel", name = "tasklet_low_entry", event_id = 10, int = 4, long = 4, pointer = 4, size_t = 4, alignment = 0 }
-metadata.core_marker_format: 13589.759663719 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "kernel", name = "tasklet_low_entry", format = "func %p data %lu" }
-metadata.core_marker_id: 13589.759666637 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "mm", name = "remove_from_page_cache", event_id = 11, int = 4, long = 4, pointer = 4, size_t = 4, alignment = 0 }
-metadata.core_marker_format: 13589.759669359 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "mm", name = "remove_from_page_cache", format = "inode %lu sdev %u" }
-metadata.core_marker_id: 13589.759671833 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "mm", name = "swap_file_close", event_id = 8, int = 4, long = 4, pointer = 4, size_t = 4, alignment = 0 }
-metadata.core_marker_format: 13589.759674320 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "mm", name = "swap_file_close", format = "filp %p" }
-metadata.core_marker_id: 13589.759676678 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "fs", name = "lseek", event_id = 6, int = 4, long = 4, pointer = 4, size_t = 4, alignment = 0 }
-metadata.core_marker_format: 13589.759679201 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "fs", name = "lseek", format = "fd %u offset %ld origin %u" }
-metadata.core_marker_id: 13589.759681608 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "ipc", name = "call", event_id = 3, int = 4, long = 4, pointer = 4, size_t = 4, alignment = 0 }
-metadata.core_marker_format: 13589.759684168 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "ipc", name = "call", format = "call %u first %d" }
-metadata.core_marker_id: 13589.759686551 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "block", name = "bio_queue", event_id = 14, int = 4, long = 4, pointer = 4, size_t = 4, alignment = 0 }
-metadata.core_marker_format: 13589.759689537 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "block", name = "bio_queue", format = "sector %llu size %u rw(FAILFAST_DRIVER,FAILFAST_TRANSPORT,FAILFAST_DEV,DISCARD,META,SYNC,BARRIER,AHEAD,RW) %lX not_uptodate #1u%d" }
-metadata.core_marker_id: 13589.759692505 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "kernel", name = "timer_update_time", event_id = 30, int = 4, long = 4, pointer = 4, size_t = 4, alignment = 0 }
-metadata.core_marker_format: 13589.759695455 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "kernel", name = "timer_update_time", format = "jiffies #8u%llu xtime_sec %ld xtime_nsec %ld walltomonotonic_sec %ld walltomonotonic_nsec %ld" }
-metadata.core_marker_id: 13589.759698299 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "net", name = "socket_bind", event_id = 3, int = 4, long = 4, pointer = 4, size_t = 4, alignment = 0 }
-metadata.core_marker_format: 13589.759701286 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "net", name = "socket_bind", format = "fd %d umyaddr %p addrlen %d ret %d" }
-metadata.core_marker_id: 13589.759703772 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "block", name = "bio_bounce", event_id = 10, int = 4, long = 4, pointer = 4, size_t = 4, alignment = 0 }
-metadata.core_marker_format: 13589.759706660 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "block", name = "bio_bounce", format = "sector %llu size %u rw(FAILFAST_DRIVER,FAILFAST_TRANSPORT,FAILFAST_DEV,DISCARD,META,SYNC,BARRIER,AHEAD,RW) %lX not_uptodate #1u%d" }
-metadata.core_marker_id: 13589.759709536 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "block", name = "rq_complete_pc", event_id = 8, int = 4, long = 4, pointer = 4, size_t = 4, alignment = 0 }
-metadata.core_marker_format: 13589.759712090 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "block", name = "rq_complete_pc", format = "data_len %u rw %d errors %d" }
-metadata.core_marker_id: 13589.759714706 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "kernel", name = "tasklet_low_exit", event_id = 11, int = 4, long = 4, pointer = 4, size_t = 4, alignment = 0 }
-metadata.core_marker_format: 13589.759717311 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "kernel", name = "tasklet_low_exit", format = "func %p data %lu" }
-metadata.core_marker_id: 13589.759719785 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "jbd2", name = "end_commit", event_id = 2, int = 4, long = 4, pointer = 4, size_t = 4, alignment = 0 }
-metadata.core_marker_format: 13589.759722420 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "jbd2", name = "end_commit", format = "dev %s transaction %d head %d" }
-metadata.core_marker_id: 13589.759725005 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "fs", name = "readv", event_id = 12, int = 4, long = 4, pointer = 4, size_t = 4, alignment = 0 }
-metadata.core_marker_format: 13589.759727548 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "fs", name = "readv", format = "fd %lu vlen %lu" }
-metadata.core_marker_id: 13589.759729954 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "net", name = "socket_listen", event_id = 5, int = 4, long = 4, pointer = 4, size_t = 4, alignment = 0 }
-metadata.core_marker_format: 13589.759732478 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "net", name = "socket_listen", format = "fd %d backlog %d ret %d" }
-metadata.core_marker_id: 13589.759735087 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "mm", name = "huge_page_free", event_id = 2, int = 4, long = 4, pointer = 4, size_t = 4, alignment = 0 }
-metadata.core_marker_format: 13589.759737643 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "mm", name = "huge_page_free", format = "pfn %lu" }
-metadata.core_marker_id: 13589.759740000 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "block", name = "getrq", event_id = 16, int = 4, long = 4, pointer = 4, size_t = 4, alignment = 0 }
-metadata.core_marker_format: 13589.759742875 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "block", name = "getrq", format = "rw %d" }
-metadata.core_marker_id: 13589.759745319 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "kernel", name = "module_load", event_id = 35, int = 4, long = 4, pointer = 4, size_t = 4, alignment = 0 }
-metadata.core_marker_format: 13589.759747830 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "kernel", name = "module_load", format = "name %s" }
-metadata.core_marker_id: 13589.759750200 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "net", name = "dev_xmit", event_id = 0, int = 4, long = 4, pointer = 4, size_t = 4, alignment = 0 }
-metadata.core_marker_format: 13589.759752779 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "net", name = "dev_xmit", format = "skb %p protocol #n2u%hu" }
-metadata.core_marker_id: 13589.759755340 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "kernel", name = "softirq_exit", event_id = 8, int = 4, long = 4, pointer = 4, size_t = 4, alignment = 0 }
-metadata.core_marker_format: 13589.759757919 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "kernel", name = "softirq_exit", format = "softirq_id #1u%lu" }
-metadata.core_marker_id: 13589.759760369 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "fs", name = "select", event_id = 14, int = 4, long = 4, pointer = 4, size_t = 4, alignment = 0 }
-metadata.core_marker_format: 13589.759765607 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "fs", name = "select", format = "fd %d end_time_sec %ld end_time_nsec %ld" }
-metadata.core_marker_id: 13589.759768162 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "block", name = "rq_requeue_pc", event_id = 6, int = 4, long = 4, pointer = 4, size_t = 4, alignment = 0 }
-metadata.core_marker_format: 13589.759770760 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "block", name = "rq_requeue_pc", format = "data_len %u rw %d errors %d" }
-metadata.core_marker_id: 13589.759773259 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "pm", name = "idle_exit", event_id = 1, int = 4, long = 4, pointer = 4, size_t = 4, alignment = 0 }
-metadata.core_marker_format: 13589.759775893 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "pm", name = "idle_exit", format = "irqstate #1%d" }
-metadata.core_marker_id: 13589.759778350 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "kernel", name = "timer_itimer_expired", event_id = 27, int = 4, long = 4, pointer = 4, size_t = 4, alignment = 0 }
-metadata.core_marker_format: 13589.759780935 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "kernel", name = "timer_itimer_expired", format = "pid %d" }
-metadata.core_marker_id: 13589.759783761 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "kernel", name = "sched_wait_task", event_id = 16, int = 4, long = 4, pointer = 4, size_t = 4, alignment = 0 }
-metadata.core_marker_format: 13589.759786489 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "kernel", name = "sched_wait_task", format = "pid %d state #2d%ld" }
-metadata.core_marker_id: 13589.759788988 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "kernel", name = "syscall_exit", event_id = 3, int = 4, long = 4, pointer = 4, size_t = 4, alignment = 0 }
-metadata.core_marker_format: 13589.759791517 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "kernel", name = "syscall_exit", format = "ret %ld" }
-metadata.core_marker_id: 13589.759794116 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "swap_state", name = "statedump_swap_files", event_id = 0, int = 4, long = 4, pointer = 4, size_t = 4, alignment = 0 }
-metadata.core_marker_format: 13589.759796849 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "swap_state", name = "statedump_swap_files", format = "filp %p vfsmount %p dname %s" }
-metadata.core_marker_id: 13589.759799502 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "kernel", name = "printk", event_id = 32, int = 4, long = 4, pointer = 4, size_t = 4, alignment = 0 }
-metadata.core_marker_format: 13589.759802081 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "kernel", name = "printk", format = "ip 0x%lX" }
-metadata.core_marker_id: 13589.759804444 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "pm", name = "idle_entry", event_id = 0, int = 4, long = 4, pointer = 4, size_t = 4, alignment = 0 }
-metadata.core_marker_format: 13589.759806932 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "pm", name = "idle_entry", format = "irqstate #1%d" }
-metadata.core_marker_id: 13589.759809344 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "net", name = "socket_shutdown", event_id = 14, int = 4, long = 4, pointer = 4, size_t = 4, alignment = 0 }
-metadata.core_marker_format: 13589.759811979 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "net", name = "socket_shutdown", format = "fd %d how %d ret %d" }
-metadata.core_marker_id: 13589.759814447 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "kernel", name = "kthread_stop_ret", event_id = 15, int = 4, long = 4, pointer = 4, size_t = 4, alignment = 0 }
-metadata.core_marker_format: 13589.759817051 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "kernel", name = "kthread_stop_ret", format = "ret %d" }
-metadata.core_marker_id: 13589.759819587 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "kernel", name = "kthread_stop", event_id = 14, int = 4, long = 4, pointer = 4, size_t = 4, alignment = 0 }
-metadata.core_marker_format: 13589.759822105 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "kernel", name = "kthread_stop", format = "pid %d" }
-metadata.core_marker_id: 13589.759824857 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "fs", name = "close", event_id = 5, int = 4, long = 4, pointer = 4, size_t = 4, alignment = 0 }
-metadata.core_marker_format: 13589.759827295 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "fs", name = "close", format = "fd %u" }
-metadata.core_marker_id: 13589.759829633 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "net", name = "socket_create", event_id = 2, int = 4, long = 4, pointer = 4, size_t = 4, alignment = 0 }
-metadata.core_marker_format: 13589.759832274 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "net", name = "socket_create", format = "family %d type %d protocol %d sock %p ret %d" }
-metadata.core_marker_id: 13589.759835051 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "mm", name = "swap_in", event_id = 6, int = 4, long = 4, pointer = 4, size_t = 4, alignment = 0 }
-metadata.core_marker_format: 13589.759837561 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "mm", name = "swap_in", format = "pfn %lu filp %p offset %lu" }
-metadata.core_marker_id: 13589.759840018 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "mm", name = "wait_on_page_start", event_id = 0, int = 4, long = 4, pointer = 4, size_t = 4, alignment = 0 }
-metadata.core_marker_format: 13589.759842603 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "mm", name = "wait_on_page_start", format = "pfn %lu bit_nr %d" }
-metadata.core_marker_id: 13589.759845065 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "fs", name = "buffer_wait_start", event_id = 0, int = 4, long = 4, pointer = 4, size_t = 4, alignment = 0 }
-metadata.core_marker_format: 13589.759847682 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "fs", name = "buffer_wait_start", format = "bh %p" }
-metadata.core_marker_id: 13589.759850088 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "net", name = "socket_recvmsg", event_id = 11, int = 4, long = 4, pointer = 4, size_t = 4, alignment = 0 }
-metadata.core_marker_format: 13589.759852828 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "net", name = "socket_recvmsg", format = "sock %p msg %p size %zu flags %d ret %d" }
-metadata.core_marker_id: 13589.759855530 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "irq_state", name = "idt_table", event_id = 1, int = 4, long = 4, pointer = 4, size_t = 4, alignment = 0 }
-metadata.core_marker_format: 13589.759875961 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "irq_state", name = "idt_table", format = "irq %d address %p symbol %s" }
-metadata.core_marker_id: 13589.759878596 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "mm", name = "swap_file_open", event_id = 9, int = 4, long = 4, pointer = 4, size_t = 4, alignment = 0 }
-metadata.core_marker_format: 13589.759881398 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "mm", name = "swap_file_open", format = "filp %p filename %s" }
-metadata.core_marker_id: 13589.759884316 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "mm", name = "page_alloc", event_id = 5, int = 4, long = 4, pointer = 4, size_t = 4, alignment = 0 }
-metadata.core_marker_format: 13589.759886902 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "mm", name = "page_alloc", format = "pfn %lu order %u" }
-metadata.core_marker_id: 13589.759889338 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "block", name = "rq_abort_fs", event_id = 1, int = 4, long = 4, pointer = 4, size_t = 4, alignment = 0 }
-metadata.core_marker_format: 13589.759891986 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "block", name = "rq_abort_fs", format = "hard_sector %llu rw %d errors %d" }
-metadata.core_marker_id: 13589.759894769 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "irq_state", name = "interrupt", event_id = 0, int = 4, long = 4, pointer = 4, size_t = 4, alignment = 0 }
-metadata.core_marker_format: 13589.759897422 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "irq_state", name = "interrupt", format = "name %s action %s irq_id %u" }
-metadata.core_marker_id: 13589.759900002 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "kernel", name = "module_free", event_id = 34, int = 4, long = 4, pointer = 4, size_t = 4, alignment = 0 }
-metadata.core_marker_format: 13589.759902637 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "kernel", name = "module_free", format = "name %s" }
-metadata.core_marker_id: 13589.759905135 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "mm", name = "wait_on_page_end", event_id = 1, int = 4, long = 4, pointer = 4, size_t = 4, alignment = 0 }
-metadata.core_marker_format: 13589.759907802 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "mm", name = "wait_on_page_end", format = "pfn %lu bit_nr %d" }
-metadata.core_marker_id: 13589.759910325 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "kernel", name = "vprintk", event_id = 33, int = 4, long = 4, pointer = 4, size_t = 4, alignment = 0 }
-metadata.core_marker_format: 13589.759913071 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "kernel", name = "vprintk", format = "loglevel #1u%u string %s ip 0x%lX" }
-metadata.core_marker_id: 13589.759915613 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "fs", name = "exec", event_id = 2, int = 4, long = 4, pointer = 4, size_t = 4, alignment = 0 }
-metadata.core_marker_format: 13589.759918261 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "fs", name = "exec", format = "filename %s" }
-metadata.core_marker_id: 13589.759920766 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "net", name = "udpv4_rcv", event_id = 17, int = 4, long = 4, pointer = 4, size_t = 4, alignment = 0 }
-metadata.core_marker_format: 13589.759923456 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "net", name = "udpv4_rcv", format = "skb %p" }
-metadata.core_marker_id: 13589.759926362 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "net", name = "socket_call", event_id = 15, int = 4, long = 4, pointer = 4, size_t = 4, alignment = 0 }
-metadata.core_marker_format: 13589.759928973 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "net", name = "socket_call", format = "call %d a0 %lu" }
-metadata.core_marker_id: 13589.759931558 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "ipc", name = "shm_create", event_id = 2, int = 4, long = 4, pointer = 4, size_t = 4, alignment = 0 }
-metadata.core_marker_format: 13589.759934156 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "ipc", name = "shm_create", format = "id %ld flags %d" }
-metadata.core_marker_id: 13589.759936605 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "net", name = "socket_connect", event_id = 4, int = 4, long = 4, pointer = 4, size_t = 4, alignment = 0 }
-metadata.core_marker_format: 13589.759939363 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "net", name = "socket_connect", format = "fd %d uservaddr %p addrlen %d ret %d" }
-metadata.core_marker_id: 13589.759941968 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "netif_state", name = "insert_ifa_ipv6", event_id = 2, int = 4, long = 4, pointer = 4, size_t = 4, alignment = 0 }
-metadata.core_marker_format: 13589.759945312 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "netif_state", name = "insert_ifa_ipv6", format = "label %s a15 #1x%c a14 #1x%c a13 #1x%c a12 #1x%c a11 #1x%c a10 #1x%c a9 #1x%c a8 #1x%c a7 #1x%c a6 #1x%c a5 #1x%c a4 #1x%c a3 #1x%c a2 #1x%c a1 #1x%c a0 #1x%c" }
-metadata.core_marker_id: 13589.759948410 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "pm", name = "suspend_entry", event_id = 2, int = 4, long = 4, pointer = 4, size_t = 4, alignment = 0 }
-metadata.core_marker_format: 13589.759951076 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "pm", name = "suspend_entry", format = "irqstate #1%d" }
-metadata.core_marker_id: 13589.759953624 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "block", name = "sleeprq_bio", event_id = 17, int = 4, long = 4, pointer = 4, size_t = 4, alignment = 0 }
-metadata.core_marker_format: 13589.759956604 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "block", name = "sleeprq_bio", format = "sector %llu size %u rw(FAILFAST_DRIVER,FAILFAST_TRANSPORT,FAILFAST_DEV,DISCARD,META,SYNC,BARRIER,AHEAD,RW) %lX not_uptodate #1u%d" }
-metadata.core_marker_id: 13589.759963052 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "block", name = "rq_insert_fs", event_id = 3, int = 4, long = 4, pointer = 4, size_t = 4, alignment = 0 }
-metadata.core_marker_format: 13589.759965847 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "block", name = "rq_insert_fs", format = "hard_sector %llu rw %d errors %d" }
-metadata.core_marker_id: 13589.759968526 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "kernel", name = "timer_timeout", event_id = 31, int = 4, long = 4, pointer = 4, size_t = 4, alignment = 0 }
-metadata.core_marker_format: 13589.759971488 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "kernel", name = "timer_timeout", format = "pid %d" }
-metadata.core_marker_id: 13589.759974122 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "metadata", name = "core_marker_format", event_id = 1, int = 4, long = 4, pointer = 4, size_t = 4, alignment = 0 }
-metadata.core_marker_format: 13589.759977053 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "metadata", name = "core_marker_format", format = "channel %s name %s format %s" }
-metadata.core_marker_id: 13589.759979799 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "kernel", name = "sched_schedule", event_id = 19, int = 4, long = 4, pointer = 4, size_t = 4, alignment = 0 }
-metadata.core_marker_format: 13589.759982588 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "kernel", name = "sched_schedule", format = "prev_pid %d next_pid %d prev_state #2d%ld" }
-metadata.core_marker_id: 13589.759985278 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "kernel", name = "kthread_create", event_id = 26, int = 4, long = 4, pointer = 4, size_t = 4, alignment = 0 }
-metadata.core_marker_format: 13589.759987919 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "kernel", name = "kthread_create", format = "fn %p pid %d" }
-metadata.core_marker_id: 13589.759990339 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "fs", name = "write", event_id = 9, int = 4, long = 4, pointer = 4, size_t = 4, alignment = 0 }
-metadata.core_marker_format: 13589.759992776 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "fs", name = "write", format = "count %zu fd %u" }
-metadata.core_marker_id: 13589.759995114 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "fs", name = "ioctl", event_id = 3, int = 4, long = 4, pointer = 4, size_t = 4, alignment = 0 }
-metadata.core_marker_format: 13589.759997552 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "fs", name = "ioctl", format = "fd %u cmd %u arg %lu" }
-metadata.core_marker_id: 13589.759999946 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "jbd2", name = "checkpoint", event_id = 0, int = 4, long = 4, pointer = 4, size_t = 4, alignment = 0 }
-metadata.core_marker_format: 13589.760002667 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "jbd2", name = "checkpoint", format = "dev %s need_checkpoint %d" }
-metadata.core_marker_id: 13589.760005203 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "softirq_state", name = "softirq_vec", event_id = 0, int = 4, long = 4, pointer = 4, size_t = 4, alignment = 0 }
-metadata.core_marker_format: 13589.760007912 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "softirq_state", name = "softirq_vec", format = "id %d address %p symbol %s" }
-metadata.core_marker_id: 13589.760010424 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "net", name = "napi_complete", event_id = 20, int = 4, long = 4, pointer = 4, size_t = 4, alignment = 0 }
-metadata.core_marker_format: 13589.760013330 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "net", name = "napi_complete", format = "napi_struct %p name %s" }
-metadata.core_marker_id: 13589.760015952 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "kernel", name = "page_fault_get_user_exit", event_id = 44, int = 4, long = 4, pointer = 4, size_t = 4, alignment = 0 }
-metadata.core_marker_format: 13589.760018631 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "kernel", name = "page_fault_get_user_exit", format = "res %d" }
-metadata.core_marker_id: 13589.760021130 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "net", name = "socket_setsockopt", event_id = 12, int = 4, long = 4, pointer = 4, size_t = 4, alignment = 0 }
-metadata.core_marker_format: 13589.760023900 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "net", name = "socket_setsockopt", format = "fd %d level %d optname %d optval %p optlen %d ret %d" }
-metadata.core_marker_id: 13589.760026522 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "net", name = "socket_accept", event_id = 6, int = 4, long = 4, pointer = 4, size_t = 4, alignment = 0 }
-metadata.core_marker_format: 13589.760029243 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "net", name = "socket_accept", format = "fd %d upeer_sockaddr %p upeer_addrlen %p flags %d ret %d" }
-metadata.core_marker_id: 13589.760031885 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "kernel", name = "process_exit", event_id = 23, int = 4, long = 4, pointer = 4, size_t = 4, alignment = 0 }
-metadata.core_marker_format: 13589.760034439 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "kernel", name = "process_exit", format = "pid %d" }
-metadata.core_marker_id: 13589.760036895 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "metadata", name = "core_marker_id", event_id = 0, int = 4, long = 4, pointer = 4, size_t = 4, alignment = 0 }
-metadata.core_marker_format: 13589.760039790 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "metadata", name = "core_marker_id", format = "channel %s name %s event_id %hu int #1u%zu long #1u%zu pointer #1u%zu size_t #1u%zu alignment #1u%u" }
-metadata.core_marker_id: 13589.760042578 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "block", name = "sleeprq", event_id = 18, int = 4, long = 4, pointer = 4, size_t = 4, alignment = 0 }
-metadata.core_marker_format: 13589.760045040 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "block", name = "sleeprq", format = "rw %d" }
-metadata.core_marker_id: 13589.760047453 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "kernel", name = "sched_wakeup_new_task", event_id = 18, int = 4, long = 4, pointer = 4, size_t = 4, alignment = 0 }
-metadata.core_marker_format: 13589.760050138 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "kernel", name = "sched_wakeup_new_task", format = "pid %d state #2d%ld cpu_id %u" }
-metadata.core_marker_id: 13589.760052711 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "kernel", name = "irq_next_handler", event_id = 5, int = 4, long = 4, pointer = 4, size_t = 4, alignment = 0 }
-metadata.core_marker_format: 13589.760055691 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "kernel", name = "irq_next_handler", format = "handler %p prev_ret #1u%u" }
-metadata.core_marker_id: 13589.760058202 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "net", name = "napi_poll", event_id = 19, int = 4, long = 4, pointer = 4, size_t = 4, alignment = 0 }
-metadata.core_marker_format: 13589.760060775 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "net", name = "napi_poll", format = "napi_struct %p name %s" }
-metadata.core_marker_id: 13589.760063305 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "global_state", name = "statedump_end", event_id = 0, int = 4, long = 4, pointer = 4, size_t = 4, alignment = 0 }
-metadata.core_marker_format: 13589.760065989 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "global_state", name = "statedump_end", format = " " }
-metadata.core_marker_id: 13589.760068439 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "task_state", name = "process_state", event_id = 0, int = 4, long = 4, pointer = 4, size_t = 4, alignment = 0 }
-metadata.core_marker_format: 13589.760071216 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "task_state", name = "process_state", format = "pid %d parent_pid %d name %s type %d mode %d submode %d status %d tgid %d" }
-metadata.core_marker_id: 13589.760073956 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "fs", name = "buffer_wait_end", event_id = 1, int = 4, long = 4, pointer = 4, size_t = 4, alignment = 0 }
-metadata.core_marker_format: 13589.760076677 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "fs", name = "buffer_wait_end", format = "bh %p" }
-metadata.core_marker_id: 13589.760079052 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "net", name = "dev_receive", event_id = 1, int = 4, long = 4, pointer = 4, size_t = 4, alignment = 0 }
-metadata.core_marker_format: 13589.760081638 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "net", name = "dev_receive", format = "skb %p protocol #n2u%hu" }
-metadata.core_marker_id: 13589.760084322 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "syscall_state", name = "sys_call_table", event_id = 0, int = 4, long = 4, pointer = 4, size_t = 4, alignment = 0 }
-metadata.core_marker_format: 13589.760086950 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "syscall_state", name = "sys_call_table", format = "id %d address %p symbol %s" }
-metadata.core_marker_id: 13589.760089610 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "net", name = "socket_getsockname", event_id = 7, int = 4, long = 4, pointer = 4, size_t = 4, alignment = 0 }
-metadata.core_marker_format: 13589.760092344 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "net", name = "socket_getsockname", format = "fd %d usockaddr %p usockaddr_len %p ret %d" }
-metadata.core_marker_id: 13589.760095003 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "fs", name = "pollfd", event_id = 15, int = 4, long = 4, pointer = 4, size_t = 4, alignment = 0 }
-metadata.core_marker_format: 13589.760097829 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "fs", name = "pollfd", format = "fd %d" }
-metadata.core_marker_id: 13589.760100149 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "fs", name = "writev", event_id = 13, int = 4, long = 4, pointer = 4, size_t = 4, alignment = 0 }
-metadata.core_marker_format: 13589.760102605 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "fs", name = "writev", format = "fd %lu vlen %lu" }
-metadata.core_marker_id: 13589.760105000 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "net", name = "tcpv4_rcv", event_id = 16, int = 4, long = 4, pointer = 4, size_t = 4, alignment = 0 }
-metadata.core_marker_format: 13589.760107474 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "net", name = "tcpv4_rcv", format = "skb %p" }
-metadata.core_marker_id: 13589.760109850 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "net", name = "socket_sendmsg", event_id = 10, int = 4, long = 4, pointer = 4, size_t = 4, alignment = 0 }
-metadata.core_marker_format: 13589.760112527 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "net", name = "socket_sendmsg", format = "sock %p msg %p size %zu ret %d" }
-metadata.core_marker_id: 13589.760115187 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "netif_state", name = "network_ip_interface", event_id = 4, int = 4, long = 4, pointer = 4, size_t = 4, alignment = 0 }
-metadata.core_marker_format: 13589.760117865 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "netif_state", name = "network_ip_interface", format = "name %s address #n4u%lu up %d" }
-metadata.core_marker_id: 13589.760120445 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "netif_state", name = "del_ifa_ipv4", event_id = 1, int = 4, long = 4, pointer = 4, size_t = 4, alignment = 0 }
-metadata.core_marker_format: 13589.760123104 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "netif_state", name = "del_ifa_ipv4", format = "label %s address #4u%u" }
-metadata.core_marker_id: 13589.760125572 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "userspace", name = "event", event_id = 0, int = 4, long = 4, pointer = 4, size_t = 4, alignment = 0 }
-metadata.core_marker_format: 13589.760128077 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "userspace", name = "event", format = "string %s" }
-metadata.core_marker_id: 13589.760130528 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "kernel", name = "page_fault_nosem_entry", event_id = 41, int = 4, long = 4, pointer = 4, size_t = 4, alignment = 0 }
-metadata.core_marker_format: 13589.760133230 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "kernel", name = "page_fault_nosem_entry", format = "ip #p%lu address #p%lu trap_id #2u%u" }
-metadata.core_marker_id: 13589.760135809 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "kernel", name = "crash_kexec", event_id = 38, int = 4, long = 4, pointer = 4, size_t = 4, alignment = 0 }
-metadata.core_marker_format: 13589.760138758 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "kernel", name = "crash_kexec", format = "image %p ip %p" }
-metadata.core_marker_id: 13589.760141258 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "pm", name = "suspend_exit", event_id = 3, int = 4, long = 4, pointer = 4, size_t = 4, alignment = 0 }
-metadata.core_marker_format: 13589.760143825 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "pm", name = "suspend_exit", format = "irqstate #1%d" }
-metadata.core_marker_id: 13589.760146299 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "kernel", name = "page_fault_exit", event_id = 40, int = 4, long = 4, pointer = 4, size_t = 4, alignment = 0 }
-metadata.core_marker_format: 13589.760148859 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "kernel", name = "page_fault_exit", format = "res %d" }
-metadata.core_marker_id: 13589.760151309 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "net", name = "napi_schedule", event_id = 18, int = 4, long = 4, pointer = 4, size_t = 4, alignment = 0 }
-metadata.core_marker_format: 13589.760153877 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "net", name = "napi_schedule", format = "napi_struct %p name %s" }
-metadata.core_marker_id: 13589.760156382 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "kernel", name = "kernel_kexec", event_id = 37, int = 4, long = 4, pointer = 4, size_t = 4, alignment = 0 }
-metadata.core_marker_format: 13589.760158936 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "kernel", name = "kernel_kexec", format = "image %p" }
-metadata.core_marker_id: 13589.760161374 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "kernel", name = "process_fork", event_id = 25, int = 4, long = 4, pointer = 4, size_t = 4, alignment = 0 }
-metadata.core_marker_format: 13589.760164083 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "kernel", name = "process_fork", format = "parent_pid %d child_pid %d child_tgid %d" }
-metadata.core_marker_id: 13589.760166600 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "jbd2", name = "start_commit", event_id = 1, int = 4, long = 4, pointer = 4, size_t = 4, alignment = 0 }
-metadata.core_marker_format: 13589.760169272 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "jbd2", name = "start_commit", format = "dev %s transaction %d" }
-metadata.core_marker_id: 13589.760171746 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "kernel", name = "sched_try_wakeup", event_id = 17, int = 4, long = 4, pointer = 4, size_t = 4, alignment = 0 }
-metadata.core_marker_format: 13589.760174357 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "kernel", name = "sched_try_wakeup", format = "pid %d cpu_id %u state #2d%ld" }
-metadata.core_marker_id: 13589.760176886 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "input", name = "input_event", event_id = 0, int = 4, long = 4, pointer = 4, size_t = 4, alignment = 0 }
-metadata.core_marker_format: 13589.760179916 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "input", name = "input_event", format = "type %u code %u value %d" }
-metadata.core_marker_id: 13589.760182619 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "ipc", name = "sem_create", event_id = 1, int = 4, long = 4, pointer = 4, size_t = 4, alignment = 0 }
-metadata.core_marker_format: 13589.760188320 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "ipc", name = "sem_create", format = "id %ld flags %d" }
-metadata.core_marker_id: 13589.760190788 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "block", name = "plug", event_id = 19, int = 4, long = 4, pointer = 4, size_t = 4, alignment = 0 }
-metadata.core_marker_format: 13589.760193484 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "block", name = "plug", format = " " }
-metadata.core_marker_id: 13589.760195984 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "block", name = "rq_insert_pc", event_id = 2, int = 4, long = 4, pointer = 4, size_t = 4, alignment = 0 }
-metadata.core_marker_format: 13589.760198742 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "block", name = "rq_insert_pc", format = "data_len %u rw %d errors %d" }
-metadata.core_marker_id: 13589.760201371 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "kernel", name = "process_free", event_id = 22, int = 4, long = 4, pointer = 4, size_t = 4, alignment = 0 }
-metadata.core_marker_format: 13589.760204006 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "kernel", name = "process_free", format = "pid %d" }
-metadata.core_marker_id: 13589.760206511 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "kernel", name = "sched_migrate_task", event_id = 20, int = 4, long = 4, pointer = 4, size_t = 4, alignment = 0 }
-metadata.core_marker_format: 13589.760209226 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "kernel", name = "sched_migrate_task", format = "pid %d state #2d%ld dest_cpu %d" }
-metadata.core_marker_id: 13589.760211922 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "kernel", name = "softirq_entry", event_id = 7, int = 4, long = 4, pointer = 4, size_t = 4, alignment = 0 }
-metadata.core_marker_format: 13589.760214595 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "kernel", name = "softirq_entry", format = "softirq_id #1u%lu" }
-metadata.core_marker_id: 13589.760217248 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "mm", name = "add_to_page_cache", event_id = 10, int = 4, long = 4, pointer = 4, size_t = 4, alignment = 0 }
-metadata.core_marker_format: 13589.760220012 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "mm", name = "add_to_page_cache", format = "inode %lu sdev %u" }
-metadata.core_marker_id: 13589.760222820 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "fs", name = "read", event_id = 8, int = 4, long = 4, pointer = 4, size_t = 4, alignment = 0 }
-metadata.core_marker_format: 13589.760225331 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "fs", name = "read", format = "count %zu fd %u" }
-metadata.core_marker_id: 13589.760227769 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "netif_state", name = "network_ipv4_interface", event_id = 3, int = 4, long = 4, pointer = 4, size_t = 4, alignment = 0 }
-metadata.core_marker_format: 13589.760233420 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "netif_state", name = "network_ipv4_interface", format = "name %s address #n4u%lu up %d" }
-metadata.core_marker_id: 13589.760236037 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "kernel", name = "tasklet_high_exit", event_id = 13, int = 4, long = 4, pointer = 4, size_t = 4, alignment = 0 }
-metadata.core_marker_format: 13589.760238746 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "kernel", name = "tasklet_high_exit", format = "func %p data %lu" }
-metadata.core_marker_id: 13589.760241263 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "rcu", name = "tree_callback", event_id = 0, int = 4, long = 4, pointer = 4, size_t = 4, alignment = 0 }
-metadata.core_marker_format: 13589.760243818 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "rcu", name = "tree_callback", format = "func %p" }
-metadata.core_marker_id: 13589.760246398 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "kernel", name = "syscall_entry", event_id = 2, int = 4, long = 4, pointer = 4, size_t = 4, alignment = 0 }
-metadata.core_marker_format: 13589.760249131 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "kernel", name = "syscall_entry", format = "ip #p%ld syscall_id #2u%u" }
-metadata.core_marker_id: 13589.760251765 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "ipc", name = "msg_create", event_id = 0, int = 4, long = 4, pointer = 4, size_t = 4, alignment = 0 }
-metadata.core_marker_format: 13589.760254333 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "ipc", name = "msg_create", format = "id %ld flags %d" }
-metadata.core_marker_id: 13589.760257054 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "module_state", name = "list_module", event_id = 0, int = 4, long = 4, pointer = 4, size_t = 4, alignment = 0 }
-metadata.core_marker_format: 13589.760259756 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/metadata_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { channel = "module_state", name = "list_module", format = "name %s state %d refcount %lu" }
-kernel.printk: 13589.760262237 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/kernel_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { ip = 0xC1421750 }
-kernel.vprintk: 13589.762149621 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/kernel_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { loglevel = 7, string = "LTT state dump begin", ip = 0xC158363B }
-kernel.printk: 13589.762917527 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/kernel_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { ip = 0xC142176D }
-kernel.vprintk: 13589.762922351 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/kernel_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { loglevel = 7, string = "LTT state dump thread start", ip = 0xC158363B }
-task_state.process_state: 13589.762937702 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { pid = 1, parent_pid = 0, name = "init", type = 0, mode = 5, submode = 0, status = 5, tgid = 1 }
-task_state.process_state: 13589.762941602 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { pid = 2, parent_pid = 0, name = "kthreadd", type = 1, mode = 5, submode = 0, status = 5, tgid = 2 }
-task_state.process_state: 13589.762944355 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { pid = 3, parent_pid = 2, name = "ksoftirqd/0", type = 1, mode = 5, submode = 0, status = 5, tgid = 3 }
-task_state.process_state: 13589.762947096 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { pid = 4, parent_pid = 2, name = "watchdog/0", type = 1, mode = 5, submode = 0, status = 5, tgid = 4 }
-task_state.process_state: 13589.762949776 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { pid = 5, parent_pid = 2, name = "events/0", type = 1, mode = 5, submode = 0, status = 5, tgid = 5 }
-task_state.process_state: 13589.762952461 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { pid = 6, parent_pid = 2, name = "cpuset", type = 1, mode = 5, submode = 0, status = 5, tgid = 6 }
-task_state.process_state: 13589.762955129 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { pid = 7, parent_pid = 2, name = "khelper", type = 1, mode = 5, submode = 0, status = 5, tgid = 7 }
-task_state.process_state: 13589.762958031 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { pid = 10, parent_pid = 2, name = "netns", type = 1, mode = 5, submode = 0, status = 5, tgid = 10 }
-task_state.process_state: 13589.762960833 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { pid = 13, parent_pid = 2, name = "async/mgr", type = 1, mode = 5, submode = 0, status = 5, tgid = 13 }
-task_state.process_state: 13589.762963840 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { pid = 122, parent_pid = 2, name = "sync_supers", type = 1, mode = 5, submode = 0, status = 5, tgid = 122 }
-task_state.process_state: 13589.762967253 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { pid = 124, parent_pid = 2, name = "bdi-default", type = 1, mode = 5, submode = 0, status = 5, tgid = 124 }
-task_state.process_state: 13589.762970111 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { pid = 126, parent_pid = 2, name = "kblockd/0", type = 1, mode = 5, submode = 0, status = 5, tgid = 126 }
-task_state.process_state: 13589.762972741 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { pid = 128, parent_pid = 2, name = "kacpid", type = 1, mode = 5, submode = 0, status = 5, tgid = 128 }
-task_state.process_state: 13589.762975612 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { pid = 129, parent_pid = 2, name = "kacpi_notify", type = 1, mode = 5, submode = 0, status = 5, tgid = 129 }
-task_state.process_state: 13589.762978538 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { pid = 130, parent_pid = 2, name = "kacpi_hotplug", type = 1, mode = 5, submode = 0, status = 5, tgid = 130 }
-task_state.process_state: 13589.762981686 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { pid = 171, parent_pid = 2, name = "kseriod", type = 1, mode = 5, submode = 0, status = 5, tgid = 171 }
-task_state.process_state: 13589.762984674 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { pid = 178, parent_pid = 2, name = "kslowd", type = 1, mode = 5, submode = 0, status = 5, tgid = 178 }
-task_state.process_state: 13589.762987754 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { pid = 179, parent_pid = 2, name = "kslowd", type = 1, mode = 5, submode = 0, status = 5, tgid = 179 }
-task_state.process_state: 13589.762990477 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { pid = 199, parent_pid = 2, name = "rpciod/0", type = 1, mode = 5, submode = 0, status = 5, tgid = 199 }
-task_state.process_state: 13589.762993299 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { pid = 216, parent_pid = 2, name = "khungtaskd", type = 1, mode = 5, submode = 0, status = 5, tgid = 216 }
-task_state.process_state: 13589.762996009 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { pid = 217, parent_pid = 2, name = "kswapd0", type = 1, mode = 5, submode = 0, status = 5, tgid = 217 }
-task_state.process_state: 13589.762998652 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { pid = 218, parent_pid = 2, name = "aio/0", type = 1, mode = 5, submode = 0, status = 5, tgid = 218 }
-task_state.process_state: 13589.763001516 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { pid = 228, parent_pid = 2, name = "nfsiod", type = 1, mode = 5, submode = 0, status = 5, tgid = 228 }
-task_state.process_state: 13589.763004238 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { pid = 233, parent_pid = 2, name = "jfsIO", type = 1, mode = 5, submode = 0, status = 5, tgid = 233 }
-task_state.process_state: 13589.763007098 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { pid = 234, parent_pid = 2, name = "jfsCommit", type = 1, mode = 5, submode = 0, status = 5, tgid = 234 }
-task_state.process_state: 13589.763010177 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { pid = 235, parent_pid = 2, name = "jfsSync", type = 1, mode = 5, submode = 0, status = 5, tgid = 235 }
-task_state.process_state: 13589.763013295 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { pid = 236, parent_pid = 2, name = "xfs_mru_cache", type = 1, mode = 5, submode = 0, status = 5, tgid = 236 }
-task_state.process_state: 13589.763016030 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { pid = 237, parent_pid = 2, name = "xfslogd/0", type = 1, mode = 5, submode = 0, status = 5, tgid = 237 }
-task_state.process_state: 13589.763018900 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { pid = 238, parent_pid = 2, name = "xfsdatad/0", type = 1, mode = 5, submode = 0, status = 5, tgid = 238 }
-task_state.process_state: 13589.763021641 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { pid = 239, parent_pid = 2, name = "xfsconvertd/0", type = 1, mode = 5, submode = 0, status = 5, tgid = 239 }
-task_state.process_state: 13589.763024303 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { pid = 240, parent_pid = 2, name = "ocfs2_wq", type = 1, mode = 5, submode = 0, status = 5, tgid = 240 }
-task_state.process_state: 13589.763027106 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { pid = 241, parent_pid = 2, name = "o2quot/0", type = 1, mode = 5, submode = 0, status = 5, tgid = 241 }
-task_state.process_state: 13589.763029767 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { pid = 244, parent_pid = 2, name = "user_dlm", type = 1, mode = 5, submode = 0, status = 5, tgid = 244 }
-task_state.process_state: 13589.763032453 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { pid = 246, parent_pid = 2, name = "glock_workqueue", type = 1, mode = 5, submode = 0, status = 5, tgid = 246 }
-task_state.process_state: 13589.763035335 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { pid = 247, parent_pid = 2, name = "delete_workqueu", type = 1, mode = 5, submode = 0, status = 5, tgid = 247 }
-task_state.process_state: 13589.763038090 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { pid = 248, parent_pid = 2, name = "crypto/0", type = 1, mode = 5, submode = 0, status = 5, tgid = 248 }
-task_state.process_state: 13589.763040973 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { pid = 394, parent_pid = 2, name = "krxrpcd/0", type = 1, mode = 5, submode = 0, status = 5, tgid = 394 }
-task_state.process_state: 13589.763043929 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { pid = 551, parent_pid = 2, name = "ksuspend_usbd", type = 1, mode = 5, submode = 0, status = 5, tgid = 551 }
-task_state.process_state: 13589.763046579 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { pid = 556, parent_pid = 2, name = "khubd", type = 1, mode = 5, submode = 0, status = 5, tgid = 556 }
-task_state.process_state: 13589.763049246 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { pid = 563, parent_pid = 2, name = "ata/0", type = 1, mode = 5, submode = 0, status = 5, tgid = 563 }
-task_state.process_state: 13589.763052141 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { pid = 564, parent_pid = 2, name = "ata_aux", type = 1, mode = 5, submode = 0, status = 5, tgid = 564 }
-task_state.process_state: 13589.763054938 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { pid = 569, parent_pid = 2, name = "scsi_eh_0", type = 1, mode = 5, submode = 0, status = 5, tgid = 569 }
-task_state.process_state: 13589.763057994 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { pid = 601, parent_pid = 2, name = "kjournald", type = 1, mode = 5, submode = 0, status = 5, tgid = 601 }
-task_state.process_state: 13589.763060993 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { pid = 730, parent_pid = 2, name = "kpsmoused", type = 1, mode = 5, submode = 0, status = 5, tgid = 730 }
-task_state.process_state: 13589.763063920 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { pid = 1007, parent_pid = 2, name = "flush-3:0", type = 1, mode = 5, submode = 0, status = 5, tgid = 1007 }
-task_state.process_state: 13589.763066637 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { pid = 1195, parent_pid = 1, name = "dhclient3", type = 0, mode = 5, submode = 0, status = 5, tgid = 1195 }
-task_state.process_state: 13589.763069723 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { pid = 1220, parent_pid = 2, name = "cifsd", type = 1, mode = 5, submode = 0, status = 5, tgid = 1220 }
-task_state.process_state: 13589.763072415 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { pid = 1238, parent_pid = 1, name = "dirmngr", type = 0, mode = 5, submode = 0, status = 5, tgid = 1238 }
-task_state.process_state: 13589.763075051 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { pid = 1280, parent_pid = 1, name = "rsyslogd", type = 0, mode = 5, submode = 0, status = 5, tgid = 1280 }
-task_state.process_state: 13589.763078064 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { pid = 1282, parent_pid = 1, name = "rsyslogd", type = 0, mode = 5, submode = 0, status = 5, tgid = 1280 }
-task_state.process_state: 13589.763080799 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { pid = 1283, parent_pid = 1, name = "rsyslogd", type = 0, mode = 5, submode = 0, status = 5, tgid = 1280 }
-task_state.process_state: 13589.763083497 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { pid = 16858, parent_pid = 1, name = "rsyslogd", type = 0, mode = 5, submode = 0, status = 5, tgid = 1280 }
-task_state.process_state: 13589.763086356 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { pid = 1336, parent_pid = 1, name = "xfstt", type = 0, mode = 5, submode = 0, status = 5, tgid = 1336 }
-task_state.process_state: 13589.763089189 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { pid = 1368, parent_pid = 1, name = "cron", type = 0, mode = 5, submode = 0, status = 5, tgid = 1368 }
-task_state.process_state: 13589.763091924 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { pid = 1378, parent_pid = 1, name = "dbus-daemon", type = 0, mode = 5, submode = 0, status = 5, tgid = 1378 }
-task_state.process_state: 13589.763094875 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { pid = 1387, parent_pid = 1, name = "gpm", type = 0, mode = 5, submode = 0, status = 5, tgid = 1387 }
-task_state.process_state: 13589.763097740 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { pid = 1417, parent_pid = 1, name = "mysqld_safe", type = 0, mode = 5, submode = 0, status = 5, tgid = 1417 }
-task_state.process_state: 13589.763100530 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { pid = 1539, parent_pid = 1417, name = "mysqld", type = 0, mode = 5, submode = 0, status = 5, tgid = 1539 }
-task_state.process_state: 13589.763103697 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { pid = 1552, parent_pid = 1417, name = "mysqld", type = 0, mode = 5, submode = 0, status = 5, tgid = 1539 }
-task_state.process_state: 13589.763106401 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { pid = 1553, parent_pid = 1417, name = "mysqld", type = 0, mode = 5, submode = 0, status = 5, tgid = 1539 }
-task_state.process_state: 13589.763109093 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { pid = 1554, parent_pid = 1417, name = "mysqld", type = 0, mode = 5, submode = 0, status = 5, tgid = 1539 }
-task_state.process_state: 13589.763112068 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { pid = 1555, parent_pid = 1417, name = "mysqld", type = 0, mode = 5, submode = 0, status = 5, tgid = 1539 }
-task_state.process_state: 13589.763114767 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { pid = 1557, parent_pid = 1417, name = "mysqld", type = 0, mode = 5, submode = 0, status = 5, tgid = 1539 }
-task_state.process_state: 13589.763117490 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { pid = 1558, parent_pid = 1417, name = "mysqld", type = 0, mode = 5, submode = 0, status = 5, tgid = 1539 }
-task_state.process_state: 13589.763120342 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { pid = 1559, parent_pid = 1417, name = "mysqld", type = 0, mode = 5, submode = 0, status = 5, tgid = 1539 }
-task_state.process_state: 13589.763123058 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { pid = 1560, parent_pid = 1417, name = "mysqld", type = 0, mode = 5, submode = 0, status = 5, tgid = 1539 }
-task_state.process_state: 13589.763125862 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { pid = 1563, parent_pid = 1417, name = "mysqld", type = 0, mode = 5, submode = 0, status = 5, tgid = 1539 }
-task_state.process_state: 13589.763128954 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { pid = 1540, parent_pid = 1417, name = "logger", type = 0, mode = 5, submode = 0, status = 5, tgid = 1540 }
-task_state.process_state: 13589.763131744 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { pid = 1637, parent_pid = 1, name = "vboxadd-service", type = 0, mode = 5, submode = 0, status = 5, tgid = 1637 }
-task_state.process_state: 13589.763134479 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { pid = 1638, parent_pid = 1, name = "vboxadd-service", type = 0, mode = 5, submode = 0, status = 5, tgid = 1637 }
-task_state.process_state: 13589.763137375 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { pid = 1658, parent_pid = 1, name = "console-kit-dae", type = 0, mode = 5, submode = 0, status = 5, tgid = 1658 }
-task_state.process_state: 13589.763140086 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { pid = 1659, parent_pid = 1, name = "console-kit-dae", type = 0, mode = 5, submode = 0, status = 5, tgid = 1658 }
-task_state.process_state: 13589.763142820 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { pid = 1660, parent_pid = 1, name = "console-kit-dae", type = 0, mode = 5, submode = 0, status = 5, tgid = 1658 }
-task_state.process_state: 13589.763145772 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { pid = 1661, parent_pid = 1, name = "console-kit-dae", type = 0, mode = 5, submode = 0, status = 5, tgid = 1658 }
-task_state.process_state: 13589.763148926 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { pid = 1662, parent_pid = 1, name = "console-kit-dae", type = 0, mode = 5, submode = 0, status = 5, tgid = 1658 }
-task_state.process_state: 13589.763151747 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { pid = 1663, parent_pid = 1, name = "console-kit-dae", type = 0, mode = 5, submode = 0, status = 5, tgid = 1658 }
-task_state.process_state: 13589.763154557 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { pid = 1664, parent_pid = 1, name = "console-kit-dae", type = 0, mode = 5, submode = 0, status = 5, tgid = 1658 }
-task_state.process_state: 13589.763157321 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { pid = 1666, parent_pid = 1, name = "console-kit-dae", type = 0, mode = 5, submode = 0, status = 5, tgid = 1658 }
-task_state.process_state: 13589.763160057 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { pid = 1667, parent_pid = 1, name = "console-kit-dae", type = 0, mode = 5, submode = 0, status = 5, tgid = 1658 }
-task_state.process_state: 13589.763162823 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { pid = 1668, parent_pid = 1, name = "console-kit-dae", type = 0, mode = 5, submode = 0, status = 5, tgid = 1658 }
-task_state.process_state: 13589.763165725 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { pid = 1669, parent_pid = 1, name = "console-kit-dae", type = 0, mode = 5, submode = 0, status = 5, tgid = 1658 }
-task_state.process_state: 13589.763168793 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { pid = 1670, parent_pid = 1, name = "console-kit-dae", type = 0, mode = 5, submode = 0, status = 5, tgid = 1658 }
-task_state.process_state: 13589.763171885 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { pid = 1671, parent_pid = 1, name = "console-kit-dae", type = 0, mode = 5, submode = 0, status = 5, tgid = 1658 }
-task_state.process_state: 13589.763174663 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { pid = 1672, parent_pid = 1, name = "console-kit-dae", type = 0, mode = 5, submode = 0, status = 5, tgid = 1658 }
-task_state.process_state: 13589.763177436 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { pid = 1673, parent_pid = 1, name = "console-kit-dae", type = 0, mode = 5, submode = 0, status = 5, tgid = 1658 }
-task_state.process_state: 13589.763180306 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { pid = 1674, parent_pid = 1, name = "console-kit-dae", type = 0, mode = 5, submode = 0, status = 5, tgid = 1658 }
-task_state.process_state: 13589.763183035 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { pid = 1675, parent_pid = 1, name = "console-kit-dae", type = 0, mode = 5, submode = 0, status = 5, tgid = 1658 }
-task_state.process_state: 13589.763185948 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { pid = 1676, parent_pid = 1, name = "console-kit-dae", type = 0, mode = 5, submode = 0, status = 5, tgid = 1658 }
-task_state.process_state: 13589.763188801 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { pid = 1677, parent_pid = 1, name = "console-kit-dae", type = 0, mode = 5, submode = 0, status = 5, tgid = 1658 }
-task_state.process_state: 13589.763191641 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { pid = 1678, parent_pid = 1, name = "console-kit-dae", type = 0, mode = 5, submode = 0, status = 5, tgid = 1658 }
-task_state.process_state: 13589.763194678 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { pid = 1679, parent_pid = 1, name = "console-kit-dae", type = 0, mode = 5, submode = 0, status = 5, tgid = 1658 }
-task_state.process_state: 13589.763197530 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { pid = 1680, parent_pid = 1, name = "console-kit-dae", type = 0, mode = 5, submode = 0, status = 5, tgid = 1658 }
-task_state.process_state: 13589.763200278 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { pid = 1681, parent_pid = 1, name = "console-kit-dae", type = 0, mode = 5, submode = 0, status = 5, tgid = 1658 }
-task_state.process_state: 13589.763203074 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { pid = 1682, parent_pid = 1, name = "console-kit-dae", type = 0, mode = 5, submode = 0, status = 5, tgid = 1658 }
-task_state.process_state: 13589.763206037 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { pid = 1683, parent_pid = 1, name = "console-kit-dae", type = 0, mode = 5, submode = 0, status = 5, tgid = 1658 }
-task_state.process_state: 13589.763208890 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { pid = 1684, parent_pid = 1, name = "console-kit-dae", type = 0, mode = 5, submode = 0, status = 5, tgid = 1658 }
-task_state.process_state: 13589.763211693 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { pid = 1685, parent_pid = 1, name = "console-kit-dae", type = 0, mode = 5, submode = 0, status = 5, tgid = 1658 }
-task_state.process_state: 13589.763214575 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { pid = 1686, parent_pid = 1, name = "console-kit-dae", type = 0, mode = 5, submode = 0, status = 5, tgid = 1658 }
-task_state.process_state: 13589.763217490 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { pid = 1687, parent_pid = 1, name = "console-kit-dae", type = 0, mode = 5, submode = 0, status = 5, tgid = 1658 }
-task_state.process_state: 13589.763220286 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { pid = 1688, parent_pid = 1, name = "console-kit-dae", type = 0, mode = 5, submode = 0, status = 5, tgid = 1658 }
-task_state.process_state: 13589.763222990 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { pid = 1689, parent_pid = 1, name = "console-kit-dae", type = 0, mode = 5, submode = 0, status = 5, tgid = 1658 }
-task_state.process_state: 13589.763225892 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { pid = 1690, parent_pid = 1, name = "console-kit-dae", type = 0, mode = 5, submode = 0, status = 5, tgid = 1658 }
-task_state.process_state: 13589.763228738 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { pid = 1691, parent_pid = 1, name = "console-kit-dae", type = 0, mode = 5, submode = 0, status = 5, tgid = 1658 }
-task_state.process_state: 13589.763231621 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { pid = 1692, parent_pid = 1, name = "console-kit-dae", type = 0, mode = 5, submode = 0, status = 5, tgid = 1658 }
-task_state.process_state: 13589.763234596 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { pid = 1693, parent_pid = 1, name = "console-kit-dae", type = 0, mode = 5, submode = 0, status = 5, tgid = 1658 }
-task_state.process_state: 13589.763237380 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { pid = 1694, parent_pid = 1, name = "console-kit-dae", type = 0, mode = 5, submode = 0, status = 5, tgid = 1658 }
-task_state.process_state: 13589.763240683 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { pid = 1695, parent_pid = 1, name = "console-kit-dae", type = 0, mode = 5, submode = 0, status = 5, tgid = 1658 }
-task_state.process_state: 13589.763243541 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { pid = 1696, parent_pid = 1, name = "console-kit-dae", type = 0, mode = 5, submode = 0, status = 5, tgid = 1658 }
-task_state.process_state: 13589.763246387 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { pid = 1697, parent_pid = 1, name = "console-kit-dae", type = 0, mode = 5, submode = 0, status = 5, tgid = 1658 }
-task_state.process_state: 13589.763249215 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { pid = 1698, parent_pid = 1, name = "console-kit-dae", type = 0, mode = 5, submode = 0, status = 5, tgid = 1658 }
-task_state.process_state: 13589.763251919 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { pid = 1699, parent_pid = 1, name = "console-kit-dae", type = 0, mode = 5, submode = 0, status = 5, tgid = 1658 }
-task_state.process_state: 13589.763254740 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { pid = 1700, parent_pid = 1, name = "console-kit-dae", type = 0, mode = 5, submode = 0, status = 5, tgid = 1658 }
-task_state.process_state: 13589.763257427 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { pid = 1701, parent_pid = 1, name = "console-kit-dae", type = 0, mode = 5, submode = 0, status = 5, tgid = 1658 }
-task_state.process_state: 13589.763260162 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { pid = 1702, parent_pid = 1, name = "console-kit-dae", type = 0, mode = 5, submode = 0, status = 5, tgid = 1658 }
-task_state.process_state: 13589.763263186 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { pid = 1703, parent_pid = 1, name = "console-kit-dae", type = 0, mode = 5, submode = 0, status = 5, tgid = 1658 }
-task_state.process_state: 13589.763265952 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { pid = 1704, parent_pid = 1, name = "console-kit-dae", type = 0, mode = 5, submode = 0, status = 5, tgid = 1658 }
-task_state.process_state: 13589.763268682 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { pid = 1705, parent_pid = 1, name = "console-kit-dae", type = 0, mode = 5, submode = 0, status = 5, tgid = 1658 }
-task_state.process_state: 13589.763271497 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { pid = 1706, parent_pid = 1, name = "console-kit-dae", type = 0, mode = 5, submode = 0, status = 5, tgid = 1658 }
-task_state.process_state: 13589.763274170 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { pid = 1707, parent_pid = 1, name = "console-kit-dae", type = 0, mode = 5, submode = 0, status = 5, tgid = 1658 }
-task_state.process_state: 13589.763276857 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { pid = 1708, parent_pid = 1, name = "console-kit-dae", type = 0, mode = 5, submode = 0, status = 5, tgid = 1658 }
-task_state.process_state: 13589.763279844 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { pid = 1709, parent_pid = 1, name = "console-kit-dae", type = 0, mode = 5, submode = 0, status = 5, tgid = 1658 }
-task_state.process_state: 13589.763282591 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { pid = 1710, parent_pid = 1, name = "console-kit-dae", type = 0, mode = 5, submode = 0, status = 5, tgid = 1658 }
-task_state.process_state: 13589.763285671 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { pid = 1711, parent_pid = 1, name = "console-kit-dae", type = 0, mode = 5, submode = 0, status = 5, tgid = 1658 }
-task_state.process_state: 13589.763288543 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { pid = 1712, parent_pid = 1, name = "console-kit-dae", type = 0, mode = 5, submode = 0, status = 5, tgid = 1658 }
-task_state.process_state: 13589.763291253 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { pid = 1713, parent_pid = 1, name = "console-kit-dae", type = 0, mode = 5, submode = 0, status = 5, tgid = 1658 }
-task_state.process_state: 13589.763293994 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { pid = 1714, parent_pid = 1, name = "console-kit-dae", type = 0, mode = 5, submode = 0, status = 5, tgid = 1658 }
-task_state.process_state: 13589.763296958 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { pid = 1715, parent_pid = 1, name = "console-kit-dae", type = 0, mode = 5, submode = 0, status = 5, tgid = 1658 }
-task_state.process_state: 13589.763299951 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { pid = 1716, parent_pid = 1, name = "console-kit-dae", type = 0, mode = 5, submode = 0, status = 5, tgid = 1658 }
-task_state.process_state: 13589.763302705 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { pid = 1717, parent_pid = 1, name = "console-kit-dae", type = 0, mode = 5, submode = 0, status = 5, tgid = 1658 }
-task_state.process_state: 13589.763305569 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { pid = 1718, parent_pid = 1, name = "console-kit-dae", type = 0, mode = 5, submode = 0, status = 5, tgid = 1658 }
-task_state.process_state: 13589.763308408 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { pid = 1719, parent_pid = 1, name = "console-kit-dae", type = 0, mode = 5, submode = 0, status = 5, tgid = 1658 }
-task_state.process_state: 13589.763311095 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { pid = 1720, parent_pid = 1, name = "console-kit-dae", type = 0, mode = 5, submode = 0, status = 5, tgid = 1658 }
-task_state.process_state: 13589.763313972 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { pid = 1723, parent_pid = 1, name = "console-kit-dae", type = 0, mode = 5, submode = 0, status = 5, tgid = 1658 }
-task_state.process_state: 13589.763316780 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { pid = 1865, parent_pid = 1, name = "console-kit-dae", type = 0, mode = 5, submode = 0, status = 5, tgid = 1658 }
-task_state.process_state: 13589.763319523 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { pid = 1848, parent_pid = 1, name = "kdm", type = 0, mode = 5, submode = 0, status = 5, tgid = 1848 }
-task_state.process_state: 13589.763322183 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { pid = 1852, parent_pid = 1848, name = "Xorg", type = 0, mode = 5, submode = 0, status = 1, tgid = 1852 }
-task_state.process_state: 13589.763325017 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { pid = 1883, parent_pid = 1, name = "gdm-emulatord", type = 0, mode = 5, submode = 0, status = 5, tgid = 1883 }
-task_state.process_state: 13589.763327764 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { pid = 1906, parent_pid = 1, name = "getty", type = 0, mode = 5, submode = 0, status = 5, tgid = 1906 }
-task_state.process_state: 13589.763330987 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { pid = 1907, parent_pid = 1, name = "getty", type = 0, mode = 5, submode = 0, status = 5, tgid = 1907 }
-task_state.process_state: 13589.763333894 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { pid = 1908, parent_pid = 1, name = "getty", type = 0, mode = 5, submode = 0, status = 5, tgid = 1908 }
-task_state.process_state: 13589.763336715 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { pid = 1909, parent_pid = 1, name = "getty", type = 0, mode = 5, submode = 0, status = 5, tgid = 1909 }
-task_state.process_state: 13589.763339592 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { pid = 1910, parent_pid = 1, name = "getty", type = 0, mode = 5, submode = 0, status = 5, tgid = 1910 }
-task_state.process_state: 13589.763342303 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { pid = 1911, parent_pid = 1, name = "getty", type = 0, mode = 5, submode = 0, status = 5, tgid = 1911 }
-task_state.process_state: 13589.763345136 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { pid = 1913, parent_pid = 1848, name = "kdm", type = 0, mode = 5, submode = 0, status = 5, tgid = 1913 }
-task_state.process_state: 13589.763348025 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { pid = 1921, parent_pid = 1, name = "dbus-launch", type = 0, mode = 5, submode = 0, status = 5, tgid = 1921 }
-task_state.process_state: 13589.763350724 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { pid = 1922, parent_pid = 1, name = "dbus-daemon", type = 0, mode = 5, submode = 0, status = 5, tgid = 1922 }
-task_state.process_state: 13589.763353508 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { pid = 1928, parent_pid = 1368, name = "cron", type = 0, mode = 5, submode = 0, status = 5, tgid = 1928 }
-task_state.process_state: 13589.763356422 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { pid = 1935, parent_pid = 1928, name = "NetCheck.sh", type = 1, mode = 5, submode = 0, status = 4, tgid = 1935 }
-task_state.process_state: 13589.763359089 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { pid = 1938, parent_pid = 1928, name = "sendmail", type = 0, mode = 5, submode = 0, status = 5, tgid = 1938 }
-task_state.process_state: 13589.763361825 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { pid = 1963, parent_pid = 1, name = "ssh", type = 0, mode = 5, submode = 0, status = 5, tgid = 1963 }
-task_state.process_state: 13589.763364880 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { pid = 1973, parent_pid = 1, name = "ssh", type = 0, mode = 5, submode = 0, status = 5, tgid = 1973 }
-task_state.process_state: 13589.763367763 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { pid = 1989, parent_pid = 1, name = "ssh", type = 0, mode = 5, submode = 0, status = 5, tgid = 1989 }
-task_state.process_state: 13589.763370363 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { pid = 2043, parent_pid = 1913, name = "startkde", type = 0, mode = 5, submode = 0, status = 5, tgid = 2043 }
-task_state.process_state: 13589.763373271 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { pid = 2103, parent_pid = 1, name = "VBoxClient", type = 0, mode = 5, submode = 0, status = 5, tgid = 2103 }
-task_state.process_state: 13589.763376363 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { pid = 2104, parent_pid = 1, name = "VBoxClient", type = 0, mode = 5, submode = 0, status = 5, tgid = 2103 }
-task_state.process_state: 13589.763379036 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { pid = 2109, parent_pid = 1, name = "VBoxClient", type = 0, mode = 5, submode = 0, status = 5, tgid = 2109 }
-task_state.process_state: 13589.763381784 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { pid = 2142, parent_pid = 1, name = "VBoxClient", type = 0, mode = 5, submode = 0, status = 5, tgid = 2109 }
-task_state.process_state: 13589.763384624 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { pid = 2113, parent_pid = 1, name = "VBoxClient", type = 0, mode = 5, submode = 0, status = 5, tgid = 2113 }
-task_state.process_state: 13589.763387433 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { pid = 2114, parent_pid = 1, name = "VBoxClient", type = 0, mode = 5, submode = 0, status = 5, tgid = 2113 }
-task_state.process_state: 13589.763390544 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0, 0, , , 0, 0x0, MODE_UNKNOWN { pid = 2118, parent_pid = 2043, name = "ssh-agent", type = 0, mode = 5, submode = 0, status = 5, tgid = 2118 }
-task_state.process_state: 13589.763393212 (/home/william/workspace-virgin/org.eclipse.linuxtools.lttng.tests/traceset/trace-15316events_nolost_newformat/task_state_0), 0,