os.linux: Rename the "kernelanalysis" package to just "kernel"
[deliverable/tracecompass.git] / analysis / org.eclipse.tracecompass.analysis.os.linux.core / src / org / eclipse / tracecompass / analysis / os / linux / core / latency / SystemCallLatencyAnalysis.java
index 1f12df8f839a2937736b566e8a04bac92e1227f0..5a4d3934802809663839b2a443d1996ddbfcf8cb 100644 (file)
@@ -1,5 +1,5 @@
 /*******************************************************************************
- * Copyright (c) 2015 EfficiOS Inc., Ericsson
+ * Copyright (c) 2015, 2016 EfficiOS Inc., Ericsson
  *
  * All rights reserved. This program and the accompanying materials
  * are made available under the terms of the Eclipse Public License v1.0
@@ -22,10 +22,10 @@ import java.util.stream.Collectors;
 
 import org.eclipse.jdt.annotation.NonNull;
 import org.eclipse.jdt.annotation.Nullable;
-import org.eclipse.tracecompass.analysis.os.linux.core.kernelanalysis.KernelTidAspect;
+import org.eclipse.tracecompass.analysis.os.linux.core.kernel.KernelTidAspect;
 import org.eclipse.tracecompass.analysis.os.linux.core.trace.IKernelAnalysisEventLayout;
 import org.eclipse.tracecompass.analysis.os.linux.core.trace.IKernelTrace;
-import org.eclipse.tracecompass.analysis.timing.core.segmentstore.AbstractSegmentStoreAnalysisModule;
+import org.eclipse.tracecompass.analysis.timing.core.segmentstore.AbstractSegmentStoreAnalysisEventBasedModule;
 import org.eclipse.tracecompass.segmentstore.core.ISegment;
 import org.eclipse.tracecompass.segmentstore.core.ISegmentStore;
 import org.eclipse.tracecompass.tmf.core.event.ITmfEvent;
@@ -37,7 +37,7 @@ import com.google.common.collect.ImmutableList;
  * @author Alexandre Montplaisir
  * @since 2.0
  */
-public class SystemCallLatencyAnalysis extends AbstractSegmentStoreAnalysisModule {
+public class SystemCallLatencyAnalysis extends AbstractSegmentStoreAnalysisEventBasedModule {
 
     /**
      * The ID of this analysis
@@ -47,7 +47,7 @@ public class SystemCallLatencyAnalysis extends AbstractSegmentStoreAnalysisModul
     private static final String DATA_FILENAME = "latency-analysis.dat"; //$NON-NLS-1$
 
     private static final Collection<ISegmentAspect> BASE_ASPECTS =
-            checkNotNull(ImmutableList.of(SyscallNameAspect.INSTANCE));
+            ImmutableList.of(SyscallNameAspect.INSTANCE);
 
     @Override
     public String getId() {
@@ -88,7 +88,7 @@ public class SystemCallLatencyAnalysis extends AbstractSegmentStoreAnalysisModul
             super.handleData(event);
             IKernelAnalysisEventLayout layout = fLayout;
             if (layout == null) {
-                IKernelTrace trace = checkNotNull((IKernelTrace) event.getTrace());
+                IKernelTrace trace = (IKernelTrace) event.getTrace();
                 layout = trace.getKernelEventLayout();
                 fLayout = layout;
             }
This page took 0.037401 seconds and 5 git commands to generate.