X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=org.eclipse.tracecompass.lttng2.kernel.core%2Fsrc%2Forg%2Feclipse%2Ftracecompass%2Finternal%2Flttng2%2Fkernel%2Fcore%2Fanalysis%2Fvm%2Fmodel%2Fqemukvm%2FQemuKvmVmModel.java;h=b4798645e5b66e9ec303a2aef570025bef7bd804;hb=e363eae1dfc9cc2ea56d8965defadac1b86ef44b;hp=698f6c2d436437e1b63bc2f960b87137e7e4aa43;hpb=d223183981e3227f1095c76f5f14acb39b87ce22;p=deliverable%2Ftracecompass.git diff --git a/org.eclipse.tracecompass.lttng2.kernel.core/src/org/eclipse/tracecompass/internal/lttng2/kernel/core/analysis/vm/model/qemukvm/QemuKvmVmModel.java b/org.eclipse.tracecompass.lttng2.kernel.core/src/org/eclipse/tracecompass/internal/lttng2/kernel/core/analysis/vm/model/qemukvm/QemuKvmVmModel.java index 698f6c2d43..b4798645e5 100644 --- a/org.eclipse.tracecompass.lttng2.kernel.core/src/org/eclipse/tracecompass/internal/lttng2/kernel/core/analysis/vm/model/qemukvm/QemuKvmVmModel.java +++ b/org.eclipse.tracecompass.lttng2.kernel.core/src/org/eclipse/tracecompass/internal/lttng2/kernel/core/analysis/vm/model/qemukvm/QemuKvmVmModel.java @@ -19,13 +19,13 @@ import java.util.Map.Entry; import java.util.Set; 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.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.tracecompass.lttng2.kernel.core.analysis.kernel.LttngKernelAnalysis; -import org.eclipse.tracecompass.lttng2.kernel.core.analysis.kernel.LttngKernelThreadInformationProvider; import org.eclipse.tracecompass.tmf.core.event.ITmfEvent; import org.eclipse.tracecompass.tmf.core.event.ITmfEventField; import org.eclipse.tracecompass.tmf.core.event.TmfEventField; @@ -124,12 +124,12 @@ public class QemuKvmVmModel implements IVirtualMachineModel { * Maybe the parent of the current thread has a VM associated, see if we * can infer the VM for this thread */ - LttngKernelAnalysis module = getLttngKernelModuleFor(ht.getHost()); + KernelAnalysis module = getLttngKernelModuleFor(ht.getHost()); if (module == null) { return null; } - Integer ppid = LttngKernelThreadInformationProvider.getParentPid(module, ht.getTid(), event.getTimestamp().getValue()); + Integer ppid = KernelThreadInformationProvider.getParentPid(module, ht.getTid(), event.getTimestamp().getValue()); if (ppid == null) { return null; } @@ -235,11 +235,11 @@ public class QemuKvmVmModel implements IVirtualMachineModel { * We found the VM being run, let's associate it with the thread * ID */ - LttngKernelAnalysis module = getLttngKernelModuleFor(hostId); + KernelAnalysis module = getLttngKernelModuleFor(hostId); if (module == null) { break; } - Integer tid = LttngKernelThreadInformationProvider.getThreadOnCpu(module, cpu, ts); + Integer tid = KernelThreadInformationProvider.getThreadOnCpu(module, cpu, ts); if (tid == null) { /* * We do not know which process is running at this point. It @@ -254,7 +254,7 @@ public class QemuKvmVmModel implements IVirtualMachineModel { * To make sure siblings are also associated with this VM, also * add an entry for the parent TID */ - Integer ppid = LttngKernelThreadInformationProvider.getParentPid(module, tid, ts); + Integer ppid = KernelThreadInformationProvider.getParentPid(module, tid, ts); if (ppid != null) { HostThread parentHt = new HostThread(hostId, ppid); fTidToVm.put(parentHt, entry.getValue()); @@ -263,8 +263,8 @@ public class QemuKvmVmModel implements IVirtualMachineModel { } } - private @Nullable LttngKernelAnalysis getLttngKernelModuleFor(String hostId) { - return TmfExperimentUtils.getAnalysisModuleOfClassForHost(fExperiment, hostId, LttngKernelAnalysis.class); + private @Nullable KernelAnalysis getLttngKernelModuleFor(String hostId) { + return TmfExperimentUtils.getAnalysisModuleOfClassForHost(fExperiment, hostId, KernelAnalysis.class); } }