lttng: Add configuration files to call LTTng-Analyses scripts
[deliverable/tracecompass.git] / lttng / org.eclipse.tracecompass.lttng2.kernel.core / src / org / eclipse / tracecompass / internal / lttng2 / kernel / core / Activator.java
index eea384b965ef33d53d5619cae6b5e2fec32ea552..a270bb839f4e44870da20aab9061c0fab3dfcd7b 100644 (file)
 
 package org.eclipse.tracecompass.internal.lttng2.kernel.core;
 
+import java.io.IOException;
+
 import org.eclipse.core.runtime.IStatus;
 import org.eclipse.core.runtime.Plugin;
 import org.eclipse.core.runtime.Status;
 import org.eclipse.jdt.annotation.NonNullByDefault;
 import org.eclipse.tracecompass.internal.lttng2.kernel.core.event.matching.TcpEventMatching;
 import org.eclipse.tracecompass.internal.lttng2.kernel.core.event.matching.TcpLttngEventMatching;
+import org.eclipse.tracecompass.internal.provisional.analysis.lami.core.module.ConfigFileLamiAnalysisFactory.ConfigFileLamiAnalysisFactoryException;
 import org.eclipse.tracecompass.tmf.core.event.matching.TmfEventMatching;
 import org.osgi.framework.BundleContext;
 
@@ -76,6 +79,13 @@ public class Activator extends Plugin {
         plugin = this;
         TmfEventMatching.registerMatchObject(new TcpEventMatching());
         TmfEventMatching.registerMatchObject(new TcpLttngEventMatching());
+
+        try {
+            LttngAnalysesLoader.load();
+        } catch (ConfigFileLamiAnalysisFactoryException | IOException e) {
+            // Not the end of the world if the analyses are not available
+            logWarning("Cannot find LTTng analyses configuration files: " + e.getMessage()); //$NON-NLS-1$
+        }
     }
 
     @Override
This page took 0.025936 seconds and 5 git commands to generate.