X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=org.eclipse.linuxtools.tmf.core%2Fsrc%2Forg%2Feclipse%2Flinuxtools%2Ftmf%2Fcore%2Fctfadaptor%2FCtfTmfEvent.java;h=4fc75aa137c11f4849f17e2866877ccea38cb03f;hb=9907d2efd4f66c77b602b4ab8c99b0c535d2fc03;hp=9de76d1eb44e2cd161498d534f28033ffb9c37a8;hpb=063f0d27815a0660075d3c114cc3175704dd72b4;p=deliverable%2Ftracecompass.git 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 9de76d1eb4..4fc75aa137 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 @@ -28,7 +28,7 @@ import org.eclipse.linuxtools.tmf.core.event.ITmfTimestamp; /** * A wrapper class around CTF's Event Definition/Declaration that maps all * types of Declaration to native Java types. - * + * * @version 1.0 * @author Alexandre Montplaisir */ @@ -85,8 +85,7 @@ public final class CtfTmfEvent implements ITmfEvent, Cloneable { } /* Read the base event info */ - Long offset = originTrace.getCTFTrace().getOffset(); - this.timestamp = eventDef.getTimestamp() + offset; + this.timestamp = this.getTrace().getCTFTrace().timestampCyclesToNanos(eventDef.getTimestamp()); this.sourceCPU = eventDef.getCPU(); this.typeId = eventDef.getDeclaration().getId(); this.eventName = eventDef.getDeclaration().getName(); @@ -144,6 +143,7 @@ public final class CtfTmfEvent implements ITmfEvent, Cloneable { /* Copy the fields over */ this.fContent = (CtfTmfContent) other.fContent.clone(); + this.fTimestamp = other.fTimestamp.clone(); } /**