control: command support for enabling all tracepoints/syscalls
[deliverable/tracecompass.git] / lttng / org.eclipse.tracecompass.lttng2.control.ui / src / org / eclipse / tracecompass / internal / lttng2 / control / ui / views / service / ILttngControlService.java
index 0e23d0fed2c0d7a52084415542ade246b6a24aa3..3f89b19bcc20fb71bc8c7e1a4ee2bd157b264241 100644 (file)
@@ -12,6 +12,7 @@
  **********************************************************************/
 package org.eclipse.tracecompass.internal.lttng2.control.ui.views.service;
 
+import java.util.Collections;
 import java.util.List;
 
 import org.eclipse.core.commands.ExecutionException;
@@ -36,6 +37,12 @@ import org.eclipse.tracecompass.internal.lttng2.control.core.model.TraceLogLevel
 */
 public interface ILttngControlService {
 
+
+    /**
+     * List to enable all events
+     */
+    @NonNull List<String> ALL_EVENTS = Collections.singletonList("*");  //$NON-NLS-1$
+
     /**
      * @return the LTTng version object
      */
@@ -362,19 +369,6 @@ public interface ILttngControlService {
             String eventName, boolean isKernel, List<String> contexts,
             IProgressMonitor monitor) throws ExecutionException;
 
-    /**
-     * Executes calibrate command to quantify LTTng overhead.
-     *
-     * @param isKernel
-     *            - a flag for indicating kernel or UST.
-     * @param monitor
-     *            - a progress monitor
-     * @throws ExecutionException
-     *             If the command fails
-     */
-    void calibrate(boolean isKernel, IProgressMonitor monitor)
-            throws ExecutionException;
-
     /**
      * Records a snapshot.
      *
@@ -415,4 +409,21 @@ public interface ILttngControlService {
      */
     void loadSession(@Nullable String inputPath, boolean isForce, IProgressMonitor monitor)
             throws ExecutionException;
+
+    /**
+     * Save all or a given session.
+     *
+     * @param session
+     *            a session name to save or null for all
+     * @param outputPath
+     *            a path to save session or null for default location
+     * @param isForce
+     *            flag whether to overwrite existing or not
+     * @param monitor
+     *            a progress monitor
+     * @throws ExecutionException
+     *             If the command fails
+     */
+    void saveSession(@Nullable String session, @Nullable String outputPath, boolean isForce, IProgressMonitor monitor)
+            throws ExecutionException;
 }
This page took 0.024773 seconds and 5 git commands to generate.