ctf: Move plugins to their own sub-directory
[deliverable/tracecompass.git] / org.eclipse.tracecompass.lttng2.kernel.core / src / org / eclipse / tracecompass / internal / lttng2 / kernel / core / trace / layout / LttngEventLayout.java
index caae5710d46630c7cb239be55194529e6ac2ab5a..13a9fbf62b2a610064ca50b8cdd2c853514c7bb8 100644 (file)
@@ -1,5 +1,5 @@
 /*******************************************************************************
- * Copyright (c) 2012, 2014 Ericsson
+ * Copyright (c) 2012, 2015 Ericsson
  *
  * All rights reserved. This program and the accompanying materials are
  * made available under the terms of the Eclipse Public License v1.0 which
 
 package org.eclipse.tracecompass.internal.lttng2.kernel.core.trace.layout;
 
+import static org.eclipse.tracecompass.common.core.NonNullUtils.checkNotNull;
+
 import java.util.Collection;
 
 import org.eclipse.jdt.annotation.NonNull;
+import org.eclipse.tracecompass.analysis.os.linux.core.trace.IKernelAnalysisEventLayout;
 
 import com.google.common.collect.ImmutableList;
 
@@ -38,9 +41,10 @@ public class LttngEventLayout implements IKernelAnalysisEventLayout {
     private static final String SOFTIRQ_EXIT = "softirq_exit";
     private static final String SOFTIRQ_RAISE = "softirq_raise";
     private static final String SCHED_SWITCH = "sched_switch";
+    private static final String SCHED_PI_SETPRIO = "sched_pi_setprio";
 
-    @SuppressWarnings("null")
-    private static final @NonNull Collection<String> SCHED_WAKEUP_EVENTS = ImmutableList.of("sched_wakeup", "sched_wakeup_new");
+    private static final Collection<String> SCHED_WAKEUP_EVENTS =
+            checkNotNull(ImmutableList.of("sched_wakeup", "sched_wakeup_new"));
 
     private static final String SCHED_PROCESS_FORK = "sched_process_fork";
     private static final String SCHED_PROCESS_EXIT = "sched_process_exit";
@@ -62,6 +66,9 @@ public class LttngEventLayout implements IKernelAnalysisEventLayout {
     private static final String PARENT_TID = "parent_tid";
     private static final String CHILD_COMM = "child_comm";
     private static final String CHILD_TID = "child_tid";
+    private static final String PRIO = "prio";
+    private static final String NEXT_PRIO = "next_prio";
+    private static final String NEW_PRIO = "newprio";
 
     /** All instances are the same. Only provide a static instance getter */
     protected LttngEventLayout() {
@@ -115,6 +122,11 @@ public class LttngEventLayout implements IKernelAnalysisEventLayout {
         return SCHED_SWITCH;
     }
 
+    @Override
+    public String eventSchedPiSetprio() {
+        return SCHED_PI_SETPRIO;
+    }
+
     @Override
     public Collection<String> eventsSchedWakeup() {
         return SCHED_WAKEUP_EVENTS;
@@ -136,7 +148,7 @@ public class LttngEventLayout implements IKernelAnalysisEventLayout {
     }
 
     @Override
-    public String eventStatedumpProcessState() {
+    public @NonNull String eventStatedumpProcessState() {
         return STATEDUMP_PROCESS_STATE;
     }
 
@@ -209,4 +221,19 @@ public class LttngEventLayout implements IKernelAnalysisEventLayout {
         return CHILD_TID;
     }
 
+    @Override
+    public String fieldPrio() {
+        return PRIO;
+    }
+
+    @Override
+    public String fieldNewPrio() {
+        return NEW_PRIO;
+    }
+
+    @Override
+    public String fieldNextPrio() {
+        return NEXT_PRIO;
+    }
+
 }
This page took 0.040913 seconds and 5 git commands to generate.