From: Matthew Khouzam Date: Tue, 10 Apr 2012 22:04:29 +0000 (-0400) Subject: Add support for offsets in event creation X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=2a2f1379624a9bb163b071c35fd4532ba2bf9cca;p=deliverable%2Ftracecompass.git Add support for offsets in event creation --- diff --git a/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/ctfadaptor/CtfTmfEvent.java b/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/ctfadaptor/CtfTmfEvent.java index 76a325e0a5..76d337ea0e 100644 --- a/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/ctfadaptor/CtfTmfEvent.java +++ b/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/ctfadaptor/CtfTmfEvent.java @@ -80,9 +80,7 @@ public final class CtfTmfEvent implements ITmfEvent { } /* Read the base event info */ - // FIXME restore once the CTF parser with clocks gets merged - //Long offset = originTrace.getCTFTrace().getOffset(); - Long offset = 0L; + Long offset = originTrace.getCTFTrace().getOffset(); this.timestamp = eventDef.timestamp + offset; this.sourceCPU = eventDef.getCPU(); this.typeId = eventDef.getDeclaration().getId();