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>
package org.eclipse.tracecompass.internal.lttng2.kernel.core.trace.layout;
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.
/**
* This file defines all the known event and field names for LTTng kernel
* traces, for versions of lttng-modules 2.8 and above.
*/
public class Lttng28EventLayout extends Lttng27EventLayout {
*/
public class Lttng28EventLayout extends Lttng27EventLayout {
+ private final Collection<String> fSchedWakeupEvents28;
+
/**
* Constructor
*/
protected Lttng28EventLayout() {
/**
* Constructor
*/
protected Lttng28EventLayout() {
+ fSchedWakeupEvents28 = ImmutableList.<String> builder()
+ .addAll(super.eventsSchedWakeup())
+ .add(eventSchedProcessWaking())
+ .build();
}
private static final Lttng28EventLayout INSTANCE = new Lttng28EventLayout();
}
private static final Lttng28EventLayout INSTANCE = new Lttng28EventLayout();
return "sched_waking"; //$NON-NLS-1$
}
return "sched_waking"; //$NON-NLS-1$
}
+ @Override
+ public Collection<String> eventsSchedWakeup() {
+ return fSchedWakeupEvents28;
+ }
+