Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'lttng/org.eclipse.linuxtools.lttng2.ui/src/org/eclipse/linuxtools/internal/lttng2/ui/views/control/model/impl/TraceChannelComponent.java')
-rw-r--r--lttng/org.eclipse.linuxtools.lttng2.ui/src/org/eclipse/linuxtools/internal/lttng2/ui/views/control/model/impl/TraceChannelComponent.java30
1 files changed, 25 insertions, 5 deletions
diff --git a/lttng/org.eclipse.linuxtools.lttng2.ui/src/org/eclipse/linuxtools/internal/lttng2/ui/views/control/model/impl/TraceChannelComponent.java b/lttng/org.eclipse.linuxtools.lttng2.ui/src/org/eclipse/linuxtools/internal/lttng2/ui/views/control/model/impl/TraceChannelComponent.java
index 39ae17e0bc..ce0855357c 100644
--- a/lttng/org.eclipse.linuxtools.lttng2.ui/src/org/eclipse/linuxtools/internal/lttng2/ui/views/control/model/impl/TraceChannelComponent.java
+++ b/lttng/org.eclipse.linuxtools.lttng2.ui/src/org/eclipse/linuxtools/internal/lttng2/ui/views/control/model/impl/TraceChannelComponent.java
@@ -286,7 +286,23 @@ public class TraceChannelComponent extends TraceControlComponent {
* If the command fails
*/
public void enableEvents(List<String> eventNames, IProgressMonitor monitor) throws ExecutionException {
- getControlService().enableEvents(getSessionName(), getName(), eventNames, isKernel(), monitor);
+ enableEvents(eventNames, null, monitor);
+ }
+
+ /**
+ * Enables a list of events with no additional parameters.
+ *
+ * @param eventNames
+ * - a list of event names to enabled.
+ * @param filterExpression
+ * - a filter expression
+ * @param monitor
+ * - a progress monitor
+ * @throws ExecutionException
+ * If the command fails
+ */
+ public void enableEvents(List<String> eventNames, String filterExpression, IProgressMonitor monitor) throws ExecutionException {
+ getControlService().enableEvents(getSessionName(), getName(), eventNames, isKernel(), filterExpression, monitor);
}
/**
@@ -356,12 +372,14 @@ public class TraceChannelComponent extends TraceControlComponent {
* - a log level type
* @param level
* - a log level
+ * @param filterExpression
+ * - a filter expression
* @throws ExecutionException
* If the command fails
*/
public void enableLogLevel(String eventName, LogLevelType logLevelType,
- TraceLogLevel level) throws ExecutionException {
- enableLogLevel(eventName, logLevelType, level, new NullProgressMonitor());
+ TraceLogLevel level, String filterExpression) throws ExecutionException {
+ enableLogLevel(eventName, logLevelType, level, filterExpression, new NullProgressMonitor());
}
/**
@@ -373,15 +391,17 @@ public class TraceChannelComponent extends TraceControlComponent {
* - a log level type
* @param level
* - a log level
+ * @param filterExpression
+ * - a filter expression
* @param monitor
* - a progress monitor
* @throws ExecutionException
* If the command fails
*/
public void enableLogLevel(String eventName, LogLevelType logLevelType,
- TraceLogLevel level, IProgressMonitor monitor)
+ TraceLogLevel level, String filterExpression, IProgressMonitor monitor)
throws ExecutionException {
- getControlService().enableLogLevel(getSessionName(), getName(), eventName, logLevelType, level, monitor);
+ getControlService().enableLogLevel(getSessionName(), getName(), eventName, logLevelType, level, filterExpression, monitor);
}
/**

Back to the top