org.eclipse.core.resources,
org.eclipse.tracecompass.common.core;bundle-version="0.1.0",
org.eclipse.tracecompass.tmf.core;bundle-version="0.1.0"
-Import-Package: com.google.common.collect
+Import-Package: com.google.common.collect,
+ com.google.common.hash;version="15.0.0"
Export-Package: org.eclipse.tracecompass.analysis.os.linux.core.cpuusage,
org.eclipse.tracecompass.analysis.os.linux.core.kernelanalysis,
+ org.eclipse.tracecompass.analysis.os.linux.core.model,
org.eclipse.tracecompass.analysis.os.linux.core.trace,
org.eclipse.tracecompass.internal.analysis.os.linux.core;x-internal:=true
--- /dev/null
+/*******************************************************************************
+ * Copyright (c) 2014 École Polytechnique de Montréal
+ *
+ * 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:
+ * Geneviève Bastien - Initial API and implementation
+ *******************************************************************************/
+
+package org.eclipse.tracecompass.analysis.os.linux.core.model;
+
+import org.eclipse.jdt.annotation.Nullable;
+import org.eclipse.tracecompass.common.core.NonNullUtils;
+
+import com.google.common.hash.HashFunction;
+import com.google.common.hash.Hashing;
+
+/**
+ * This class represents a thread from a specific host. Many machines in an
+ * experiment can have the same thread IDs. This class differentiates the
+ * threads by adding the host ID it belongs to.
+ *
+ * @author Geneviève Bastien
+ */
+public class HostThread {
+
+ private static final HashFunction HF = NonNullUtils.checkNotNull(Hashing.goodFastHash(32));
+
+ private final String fHost;
+ private final Integer fTid;
+
+ /**
+ * Constructor
+ *
+ * @param host
+ * The host this thread belongs to
+ * @param tid
+ * The thread ID of this thread
+ */
+ public HostThread(String host, Integer tid) {
+ fHost = host;
+ fTid = tid;
+ }
+
+ @Override
+ public int hashCode() {
+ return HF.newHasher()
+ .putUnencodedChars(fHost)
+ .putInt(fTid).hash().asInt();
+ }
+
+ @Override
+ public boolean equals(@Nullable Object o) {
+ if (o instanceof HostThread) {
+ HostThread hostTid = (HostThread) o;
+ if (fTid.equals(hostTid.fTid) &&
+ fHost.equals(hostTid.fHost)) {
+ return true;
+ }
+ }
+ return false;
+ }
+
+ @Override
+ public String toString() {
+ return "HostTid: [" + fHost + ',' + fTid + ']'; //$NON-NLS-1$
+ }
+
+ /**
+ * Get the thread ID of this thread
+ *
+ * @return The thread ID of this thread
+ */
+ public Integer getTid() {
+ return fTid;
+ }
+
+ /**
+ * Get the host ID of the machine this thread belongs to
+ *
+ * @return The host ID this thread belongs to
+ */
+ public String getHost() {
+ return fHost;
+ }
+
+}
\ No newline at end of file
--- /dev/null
+/*******************************************************************************
+ * Copyright (c) 2015 École Polytechnique de Montréal
+ *
+ * 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:
+ * École Polytechnique de Montréal - Initial API and implementation
+ *******************************************************************************/
+
+@org.eclipse.jdt.annotation.NonNullByDefault
+package org.eclipse.tracecompass.analysis.os.linux.core.model;
+++ /dev/null
-/*******************************************************************************
- * Copyright (c) 2014 École Polytechnique de Montréal
- *
- * 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:
- * Geneviève Bastien - Initial API and implementation
- *******************************************************************************/
-
-package org.eclipse.tracecompass.internal.lttng2.kernel.core.analysis.vm.model;
-
-import org.eclipse.jdt.annotation.Nullable;
-import org.eclipse.tracecompass.common.core.NonNullUtils;
-
-import com.google.common.hash.HashFunction;
-import com.google.common.hash.Hashing;
-
-/**
- * This class represents a thread from a specific host. Many machines in an
- * experiment can have the same thread IDs. This class differentiates the
- * threads by adding the host ID it belongs to.
- *
- * @author Geneviève Bastien
- */
-public class HostThread {
-
- private static final HashFunction HF = NonNullUtils.checkNotNull(Hashing.goodFastHash(32));
-
- private final String fHost;
- private final Integer fTid;
-
- /**
- * Constructor
- *
- * @param host
- * The host this thread belongs to
- * @param tid
- * The thread ID of this thread
- */
- public HostThread(String host, Integer tid) {
- fHost = host;
- fTid = tid;
- }
-
- @Override
- public int hashCode() {
- return HF.newHasher()
- .putUnencodedChars(fHost)
- .putInt(fTid).hash().asInt();
- }
-
- @Override
- public boolean equals(@Nullable Object o) {
- if (o instanceof HostThread) {
- HostThread hostTid = (HostThread) o;
- if (fTid.equals(hostTid.fTid) &&
- fHost.equals(hostTid.fHost)) {
- return true;
- }
- }
- return false;
- }
-
- @Override
- public String toString() {
- return "HostTid: [" + fHost + ',' + fTid + ']'; //$NON-NLS-1$
- }
-
- /**
- * Get the thread ID of this thread
- *
- * @return The thread ID of this thread
- */
- public Integer getTid() {
- return fTid;
- }
-
- /**
- * Get the host ID of the machine this thread belongs to
- *
- * @return The host ID this thread belongs to
- */
- public String getHost() {
- return fHost;
- }
-
-}
\ No newline at end of file
import java.util.Set;
import org.eclipse.jdt.annotation.Nullable;
+import org.eclipse.tracecompass.analysis.os.linux.core.model.HostThread;
import org.eclipse.tracecompass.tmf.core.event.ITmfEvent;
/**
import org.eclipse.jdt.annotation.Nullable;
import org.eclipse.tracecompass.analysis.os.linux.core.kernelanalysis.KernelAnalysis;
import org.eclipse.tracecompass.analysis.os.linux.core.kernelanalysis.KernelThreadInformationProvider;
+import org.eclipse.tracecompass.analysis.os.linux.core.model.HostThread;
import org.eclipse.tracecompass.common.core.NonNullUtils;
-import org.eclipse.tracecompass.internal.lttng2.kernel.core.analysis.vm.model.HostThread;
import org.eclipse.tracecompass.internal.lttng2.kernel.core.analysis.vm.model.IVirtualMachineModel;
import org.eclipse.tracecompass.internal.lttng2.kernel.core.analysis.vm.model.VirtualCPU;
import org.eclipse.tracecompass.internal.lttng2.kernel.core.analysis.vm.model.VirtualMachine;
import org.eclipse.jdt.annotation.Nullable;
import org.eclipse.tracecompass.analysis.os.linux.core.kernelanalysis.KernelAnalysis;
import org.eclipse.tracecompass.analysis.os.linux.core.kernelanalysis.KernelThreadInformationProvider;
+import org.eclipse.tracecompass.analysis.os.linux.core.model.HostThread;
import org.eclipse.tracecompass.analysis.os.linux.core.trace.IKernelAnalysisEventLayout;
import org.eclipse.tracecompass.common.core.NonNullUtils;
import org.eclipse.tracecompass.internal.lttng2.kernel.core.Activator;
import org.eclipse.tracecompass.internal.lttng2.kernel.core.analysis.vm.VcpuStateValues;
import org.eclipse.tracecompass.internal.lttng2.kernel.core.analysis.vm.VmAttributes;
-import org.eclipse.tracecompass.internal.lttng2.kernel.core.analysis.vm.model.HostThread;
import org.eclipse.tracecompass.internal.lttng2.kernel.core.analysis.vm.model.IVirtualMachineModel;
import org.eclipse.tracecompass.internal.lttng2.kernel.core.analysis.vm.model.VirtualCPU;
import org.eclipse.tracecompass.internal.lttng2.kernel.core.analysis.vm.model.VirtualMachine;