Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lttng/org.eclipse.linuxtools.lttng2.kernel.core/src/org/eclipse/linuxtools/internal/lttng2/kernel/core/stateprovider/CTFKernelHandler.java4
-rw-r--r--lttng/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/ctfadaptor/CtfTmfEvent.java4
-rw-r--r--lttng/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/ctfadaptor/CtfTmfEventField.java7
3 files changed, 10 insertions, 5 deletions
diff --git a/lttng/org.eclipse.linuxtools.lttng2.kernel.core/src/org/eclipse/linuxtools/internal/lttng2/kernel/core/stateprovider/CTFKernelHandler.java b/lttng/org.eclipse.linuxtools.lttng2.kernel.core/src/org/eclipse/linuxtools/internal/lttng2/kernel/core/stateprovider/CTFKernelHandler.java
index c0fb8c4ae8..b0e5c3f17e 100644
--- a/lttng/org.eclipse.linuxtools.lttng2.kernel.core/src/org/eclipse/linuxtools/internal/lttng2/kernel/core/stateprovider/CTFKernelHandler.java
+++ b/lttng/org.eclipse.linuxtools.lttng2.kernel.core/src/org/eclipse/linuxtools/internal/lttng2/kernel/core/stateprovider/CTFKernelHandler.java
@@ -76,7 +76,7 @@ class CTFKernelHandler implements Runnable {
try {
event = inQueue.take();
- while (event.getTimestamp() != null) {
+ while (event.getTimestampValue() != -1) {
processEvent(event);
event = inQueue.take();
}
@@ -109,7 +109,7 @@ class CTFKernelHandler implements Runnable {
private void processEvent(CtfTmfEvent event) {
currentEvent = event;
ITmfEventField content = event.getContent();
- String eventName = event.getType().getName();
+ String eventName = event.getSource();
long ts = event.getTimestamp().getValue();
int quark;
diff --git a/lttng/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/ctfadaptor/CtfTmfEvent.java b/lttng/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/ctfadaptor/CtfTmfEvent.java
index 65e1e02d9e..f54556b0b3 100644
--- a/lttng/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/ctfadaptor/CtfTmfEvent.java
+++ b/lttng/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/ctfadaptor/CtfTmfEvent.java
@@ -250,8 +250,8 @@ public final class CtfTmfEvent implements ITmfEvent {
@Override
public String getSource() {
- // TODO Auto-generated method stub
- return null;
+ // TODO Returns eventName for now
+ return eventName;
}
@Override
diff --git a/lttng/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/ctfadaptor/CtfTmfEventField.java b/lttng/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/ctfadaptor/CtfTmfEventField.java
index bf33ef2bc0..88c55e1004 100644
--- a/lttng/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/ctfadaptor/CtfTmfEventField.java
+++ b/lttng/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/ctfadaptor/CtfTmfEventField.java
@@ -38,7 +38,12 @@ public abstract class CtfTmfEventField implements ITmfEventField {
// ------------------------------------------------------------------------
protected CtfTmfEventField(String name) {
- this.name = name;
+ /* Strip the damn underscores, screw you CTF */
+ if ( name.startsWith("_") ) { //$NON-NLS-1$
+ this.name = name.substring(1);
+ } else {
+ this.name = name;
+ }
}
// ------------------------------------------------------------------------

Back to the top