lttng: Also apply the wakeup handler to sched_waking
authorAlexandre Montplaisir <alexmonthy@efficios.com>
Fri, 25 Nov 2016 20:43:14 +0000 (15:43 -0500)
committerAlexandre Montplaisir <alexmonthy@efficios.com>
Fri, 25 Nov 2016 21:57:51 +0000 (16:57 -0500)
LTTng 2.8 (and kernels around that time) introduced the
sched_waking event. This event has the same fields as the
sched_wakeup one, and should cause the same state changes.

Change-Id: Idf9eaf1ecba0346b22283adfbe71ad56d52b045f
Signed-off-by: Alexandre Montplaisir <alexmonthy@efficios.com>
lttng/org.eclipse.tracecompass.lttng2.kernel.core/src/org/eclipse/tracecompass/internal/lttng2/kernel/core/trace/layout/Lttng28EventLayout.java

index cd3a9e175c420084f06d1c5e101c2b9c794a9849..1aafba6941297f513fa9615d58a513e854d21817 100644 (file)
@@ -9,6 +9,10 @@
 
 package org.eclipse.tracecompass.internal.lttng2.kernel.core.trace.layout;
 
+import java.util.Collection;
+
+import com.google.common.collect.ImmutableList;
+
 /**
  * This file defines all the known event and field names for LTTng kernel
  * traces, for versions of lttng-modules 2.8 and above.
@@ -17,10 +21,16 @@ package org.eclipse.tracecompass.internal.lttng2.kernel.core.trace.layout;
  */
 public class Lttng28EventLayout extends Lttng27EventLayout {
 
+    private final Collection<String> fSchedWakeupEvents28;
+
     /**
      * Constructor
      */
     protected Lttng28EventLayout() {
+        fSchedWakeupEvents28 = ImmutableList.<String> builder()
+                .addAll(super.eventsSchedWakeup())
+                .add(eventSchedProcessWaking())
+                .build();
     }
 
     private static final Lttng28EventLayout INSTANCE = new Lttng28EventLayout();
@@ -44,4 +54,9 @@ public class Lttng28EventLayout extends Lttng27EventLayout {
         return "sched_waking"; //$NON-NLS-1$
     }
 
+    @Override
+    public Collection<String> eventsSchedWakeup() {
+        return fSchedWakeupEvents28;
+    }
+
 }
This page took 0.025935 seconds and 5 git commands to generate.