os.tests: Add a kernel stub trace class and use that in unit tests
[deliverable/tracecompass.git] / analysis / org.eclipse.tracecompass.analysis.os.linux.core / src / org / eclipse / tracecompass / analysis / os / linux / core / trace / DefaultEventLayout.java
index 7a59d87e07c0196c459029d599cd18f612f79103..b593e94995f7d44cb99077385b81a7a0c085ca93 100644 (file)
@@ -30,7 +30,7 @@ import com.google.common.collect.ImmutableList;
  * @author Alexandre Montplaisir
  * @since 1.0
  */
-public class DefaultEventLayout implements IKernelAnalysisEventLayout{
+public class DefaultEventLayout implements IKernelAnalysisEventLayout {
 
     /* Event names */
     private static final String IRQ_HANDLER_ENTRY = "irq_handler_entry"; //$NON-NLS-1$
@@ -87,8 +87,13 @@ public class DefaultEventLayout implements IKernelAnalysisEventLayout{
     private static final String NOW = "now"; //$NON-NLS-1$
     private static final String SOFT_EXPIRES = "softexpires"; //$NON-NLS-1$
 
-    /** All instances are the same. Only provide a static instance getter */
-    private DefaultEventLayout() {
+    /**
+     * Constructor, to be used by classes extending this one. To get an instance
+     * of this class, INSTANCE should be used.
+     *
+     * @since 2.0
+     */
+    protected DefaultEventLayout() {
     }
 
     /**
@@ -181,6 +186,12 @@ public class DefaultEventLayout implements IKernelAnalysisEventLayout{
         return SYSCALL_EXIT_PREFIX;
     }
 
+    /** @since 2.0 */
+    @Override
+    public String eventCompatSyscallExitPrefix() {
+        return SYSCALL_EXIT_PREFIX;
+    }
+
     // ------------------------------------------------------------------------
     // Event field names
     // ------------------------------------------------------------------------
This page took 0.025134 seconds and 5 git commands to generate.