os.linux: Fix CPU state when Softirq is interrupted
[deliverable/tracecompass.git] / analysis / org.eclipse.tracecompass.analysis.os.linux.core / src / org / eclipse / tracecompass / internal / analysis / os / linux / core / kernel / KernelStateProvider.java
index 9ceba92b9bbf8b40c2de94669774a5ae3f1e057b..93c187bb8400455a21aafe3bf7f40ebce3cf2880 100644 (file)
@@ -44,10 +44,8 @@ import org.eclipse.tracecompass.tmf.core.trace.ITmfTrace;
 import com.google.common.collect.ImmutableMap;
 
 /**
- * This is the state change input plugin for TMF's state system which handles
- * the LTTng 2.0 kernel traces in CTF format.
- *
- * It uses the reference handler defined in CTFKernelHandler.java.
+ * This is the state change input plugin for the state system which handles the
+ * kernel traces.
  *
  * @author Alexandre Montplaisir
  */
@@ -61,7 +59,7 @@ public class KernelStateProvider extends AbstractTmfStateProvider {
      * Version number of this state provider. Please bump this if you modify the
      * contents of the generated state history in some way.
      */
-    private static final int VERSION = 10;
+    private static final int VERSION = 15;
 
     // ------------------------------------------------------------------------
     // Fields
@@ -122,7 +120,7 @@ public class KernelStateProvider extends AbstractTmfStateProvider {
             builder.put(eventSchedWakeup, new SchedWakeupHandler(layout));
         }
 
-        return NonNullUtils.checkNotNull(builder.build());
+        return builder.build();
     }
 
     // ------------------------------------------------------------------------
@@ -189,13 +187,14 @@ public class KernelStateProvider extends AbstractTmfStateProvider {
         }
     }
 
-    private boolean isSyscallEntry(@Nullable String eventName) {
-        return (eventName != null) && (eventName.startsWith(fLayout.eventSyscallEntryPrefix())
+    private boolean isSyscallEntry(String eventName) {
+        return (eventName.startsWith(fLayout.eventSyscallEntryPrefix())
                 || eventName.startsWith(fLayout.eventCompatSyscallEntryPrefix()));
     }
 
-    private boolean isSyscallExit(@Nullable String eventName) {
-        return (eventName != null) && (eventName.startsWith(fLayout.eventSyscallExitPrefix()));
+    private boolean isSyscallExit(String eventName) {
+        return (eventName.startsWith(fLayout.eventSyscallExitPrefix()) ||
+                eventName.startsWith(fLayout.eventCompatSyscallExitPrefix()));
     }
 
 }
This page took 0.025034 seconds and 5 git commands to generate.