import org.eclipse.core.commands.ExecutionException;
import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.core.runtime.NullProgressMonitor;
import org.eclipse.linuxtools.internal.lttng2.core.control.model.IChannelInfo;
import org.eclipse.linuxtools.internal.lttng2.core.control.model.IEventInfo;
import org.eclipse.linuxtools.internal.lttng2.core.control.model.LogLevelType;
// ------------------------------------------------------------------------
// Operations
// ------------------------------------------------------------------------
- /**
- * Enables a list of events with no additional parameters.
- *
- * @param eventNames
- * - a list of event names to enabled.
- * @throws ExecutionException
- * If the command fails
- */
- public void enableEvents(List<String> eventNames) throws ExecutionException {
- enableEvents(eventNames, new NullProgressMonitor());
- }
/**
* Enables a list of events with no additional parameters.
getControlService().enableEvents(getSessionName(), getName(), eventNames, isKernel(), filterExpression, monitor);
}
- /**
- * Enables all syscalls (for kernel domain)
- *
- * @throws ExecutionException
- * If the command fails
- */
- public void enableSyscalls() throws ExecutionException {
- enableSyscalls(new NullProgressMonitor());
- }
-
/**
* Enables all syscalls (for kernel domain)
*
getControlService().enableSyscalls(getSessionName(), getName(), monitor);
}
- /**
- * Enables a dynamic probe (for kernel domain)
- *
- * @param eventName
- * - event name for probe
- * @param isFunction
- * - true for dynamic function entry/return probe else false
- * @param probe
- * - the actual probe
- * @throws ExecutionException
- * If the command fails
- */
- public void enableProbe(String eventName, boolean isFunction, String probe)
- throws ExecutionException {
- enableProbe(eventName, isFunction, probe, new NullProgressMonitor());
- }
-
/**
* Enables a dynamic probe (for kernel domain)
*
getControlService().enableProbe(getSessionName(), getName(), eventName, isFunction, probe, monitor);
}
- /**
- * Enables events using log level.
- *
- * @param eventName
- * - a event name
- * @param logLevelType
- * - 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, String filterExpression) throws ExecutionException {
- enableLogLevel(eventName, logLevelType, level, filterExpression, new NullProgressMonitor());
- }
-
/**
* Enables events using log level.
*
getControlService().enableLogLevel(getSessionName(), getName(), eventName, logLevelType, level, filterExpression, monitor);
}
- /**
- * Enables a list of events with no additional parameters.
- *
- * @param eventNames
- * - a list of event names to enabled.
- * @throws ExecutionException
- * If the command fails
- */
- public void disableEvent(List<String> eventNames) throws ExecutionException {
- disableEvent(eventNames, new NullProgressMonitor());
- }
-
/**
* Enables a list of events with no additional parameters.
*
getName(), eventNames, isKernel(), monitor);
}
- /**
- * Add contexts to given channels and or events
- *
- * @param contexts
- * - a list of contexts to add
- * @throws ExecutionException
- * If the command fails
- */
- public void addContexts(List<String> contexts) throws ExecutionException {
- addContexts(contexts, new NullProgressMonitor());
- }
-
/**
* Add contexts to given channels and or events
*
import org.eclipse.core.commands.ExecutionException;
import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.core.runtime.NullProgressMonitor;
import org.eclipse.linuxtools.internal.lttng2.core.control.model.IChannelInfo;
import org.eclipse.linuxtools.internal.lttng2.core.control.model.IDomainInfo;
import org.eclipse.linuxtools.internal.lttng2.core.control.model.LogLevelType;
// Operations
// ------------------------------------------------------------------------
- /**
- * Retrieves the session configuration from the node.
- *
- * @throws ExecutionException
- * If the command fails
- */
- public void getConfigurationFromNode() throws ExecutionException {
- getConfigurationFromNode(new NullProgressMonitor());
- }
-
/**
* Retrieves the session configuration from the node.
*
session.getConfigurationFromNode(monitor);
}
- /**
- * Enables channels with given names which are part of this domain. If a
- * given channel doesn't exists it creates a new channel with the given
- * parameters (or default values if given parameter is null).
- *
- * @param channelNames
- * - a list of channel names to enable on this domain
- * @param info
- * - channel information to set for the channel (use null for
- * default)
- * @throws ExecutionException
- * If the command fails
- */
- public void enableChannels(List<String> channelNames, IChannelInfo info) throws ExecutionException {
- enableChannels(channelNames, info, new NullProgressMonitor());
- }
-
/**
* Enables channels with given names which are part of this domain. If a
* given channel doesn't exists it creates a new channel with the given
isKernel(), info, monitor);
}
- /**
- * Disables channels with given names which are part of this domain.
- *
- * @param channelNames
- * - a list of channel names to enable on this domain
- * @throws ExecutionException
- * If the command fails
- */
- public void disableChannels(List<String> channelNames)
- throws ExecutionException {
- disableChannels(channelNames, new NullProgressMonitor());
- }
-
/**
* Disables channels with given names which are part of this domain.
*
isKernel(), null, monitor);
}
- /**
- * Enables all syscalls (for kernel domain)
- *
- * @throws ExecutionException
- * If the command fails
- */
- public void enableSyscalls() throws ExecutionException {
- enableSyscalls(new NullProgressMonitor());
- }
-
/**
* Enables all syscalls (for kernel domain)
*
getControlService().enableSyscalls(getSessionName(), null, monitor);
}
- /**
- * Enables a dynamic probe (for kernel domain)
- *
- * @param eventName
- * - event name for probe
- * @param isFunction
- * - true for dynamic function entry/return probe else false
- * @param probe
- * - the actual probe
- * @throws ExecutionException
- * If the command fails
- */
- public void enableProbe(String eventName, boolean isFunction, String probe)
- throws ExecutionException {
- enableProbe(eventName, isFunction, probe, new NullProgressMonitor());
- }
-
/**
* Enables a dynamic probe (for kernel domain)
*
isFunction, probe, monitor);
}
- /**
- * Enables events using log level.
- *
- * @param eventName
- * - a event name
- * @param logLevelType
- * - 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, String filterExpression) throws ExecutionException {
- enableLogLevel(eventName, logLevelType, level, filterExpression,
- new NullProgressMonitor());
- }
-
/**
* Enables events using log level.
*
logLevelType, level, filterExpression, monitor);
}
- /**
- * Add contexts to given channels and or events
- *
- * @param contexts
- * - a list of contexts to add
- * @throws ExecutionException
- * If the command fails
- */
- public void addContexts(List<String> contexts) throws ExecutionException {
- addContexts(contexts, new NullProgressMonitor());
- }
-
/**
* Add contexts to given channels and or events
*
isKernel(), contexts, monitor);
}
- /**
- * Executes calibrate command to quantify LTTng overhead.
- *
- * @throws ExecutionException
- * If the command fails
- */
- public void calibrate() throws ExecutionException {
- calibrate(new NullProgressMonitor());
- }
-
/**
* Executes calibrate command to quantify LTTng overhead.
*
import org.eclipse.core.commands.ExecutionException;
import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.core.runtime.NullProgressMonitor;
import org.eclipse.linuxtools.internal.lttng2.core.control.model.IEventInfo;
import org.eclipse.linuxtools.internal.lttng2.core.control.model.TraceEnablement;
import org.eclipse.linuxtools.internal.lttng2.core.control.model.TraceEventType;
// Operations
// ------------------------------------------------------------------------
- /**
- * Add contexts to given channels and or events
- *
- * @param contexts
- * - a list of contexts to add
- * @throws ExecutionException
- * If the command fails
- */
- public void addContexts(List<String> contexts) throws ExecutionException {
- addContexts(contexts, new NullProgressMonitor());
- }
-
/**
* Add contexts to given channels and or events
*
import org.eclipse.core.commands.ExecutionException;
import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.core.runtime.NullProgressMonitor;
import org.eclipse.linuxtools.internal.lttng2.core.control.model.IBaseEventInfo;
import org.eclipse.linuxtools.internal.lttng2.core.control.model.IUstProviderInfo;
import org.eclipse.linuxtools.internal.lttng2.ui.views.control.messages.Messages;
// Operations
// ------------------------------------------------------------------------
- /**
- * Gets the provider information from the target node.
- * @throws ExecutionException If the command fails
- */
- public void getProviderFromNode() throws ExecutionException {
- getProviderFromNode(new NullProgressMonitor());
- }
-
/**
* Gets the provider information from the target node.
* @param monitor - a progress monitor
import org.eclipse.core.commands.ExecutionException;
import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.core.runtime.NullProgressMonitor;
import org.eclipse.linuxtools.internal.lttng2.core.control.model.IChannelInfo;
import org.eclipse.linuxtools.internal.lttng2.core.control.model.IDomainInfo;
import org.eclipse.linuxtools.internal.lttng2.core.control.model.ISessionInfo;
// Operations
// ------------------------------------------------------------------------
- /**
- * Retrieves the session configuration from the node.
- *
- * @throws ExecutionException
- * If the command fails
- */
- public void getConfigurationFromNode() throws ExecutionException {
- getConfigurationFromNode(new NullProgressMonitor());
- }
-
/**
* Retrieves the session configuration from the node.
*
}
}
- /**
- * Starts the session.
- *
- * @throws ExecutionException
- * If the command fails
- */
- public void startSession() throws ExecutionException {
- startSession(new NullProgressMonitor());
- }
-
/**
* Starts the session.
*
getControlService().startSession(getName(), monitor);
}
- /**
- * Starts the session.
- *
- * @throws ExecutionException
- * If the command fails
- */
- public void stopSession() throws ExecutionException {
- startSession(new NullProgressMonitor());
- }
-
/**
* Starts the session.
*
getControlService().stopSession(getName(), monitor);
}
- /**
- * Enables channels with given names which are part of this domain. If a
- * given channel doesn't exists it creates a new channel with the given
- * parameters (or default values if given parameter is null).
- *
- * @param channelNames
- * - a list of channel names to enable on this domain
- * @param info
- * - channel information to set for the channel (use null for
- * default)
- * @param isKernel
- * - a flag for indicating kernel or UST.
- * @throws ExecutionException
- * If the command fails
- */
- public void enableChannels(List<String> channelNames, IChannelInfo info,
- boolean isKernel) throws ExecutionException {
- enableChannels(channelNames, info, isKernel, new NullProgressMonitor());
- }
-
/**
* Enables channels with given names which are part of this domain. If a
* given channel doesn't exists it creates a new channel with the given
info, monitor);
}
- /**
- * Enables a list of events with no additional parameters.
- *
- * @param eventNames
- * - a list of event names to enabled.
- * @param isKernel
- * - a flag for indicating kernel or UST.
- * @param filterExpression
- * - a filter expression
- * @throws ExecutionException
- * If the command fails
- */
- public void enableEvent(List<String> eventNames, boolean isKernel, String filterExpression)
- throws ExecutionException {
- enableEvents(eventNames, isKernel, filterExpression, new NullProgressMonitor());
- }
-
/**
* Enables a list of events with no additional parameters.
*
filterExpression, monitor);
}
- /**
- * Enables all syscalls (for kernel domain)
- *
- * @throws ExecutionException
- * If the command fails
- */
- public void enableSyscalls() throws ExecutionException {
- enableSyscalls(new NullProgressMonitor());
- }
-
/**
* Enables all syscalls (for kernel domain)
*
getControlService().enableSyscalls(getName(), null, monitor);
}
- /**
- * Enables a dynamic probe (for kernel domain)
- *
- * @param eventName
- * - event name for probe
- * @param isFunction
- * - true for dynamic function entry/return probe else false
- * @param probe
- * - the actual probe
- * @throws ExecutionException
- * If the command fails
- */
- public void enableProbe(String eventName, boolean isFunction, String probe)
- throws ExecutionException {
- enableProbe(eventName, isFunction, probe, new NullProgressMonitor());
- }
-
/**
* Enables a dynamic probe (for kernel domain)
*
probe, monitor);
}
- /**
- * Enables events using log level.
- *
- * @param eventName
- * - a event name
- * @param logLevelType
- * - 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, String filterExpression) throws ExecutionException {
- enableLogLevel(eventName, logLevelType, level, filterExpression,
- new NullProgressMonitor());
- }
-
/**
* Enables events using log level.
*
logLevelType, level, null, monitor);
}
- /**
- * Gets all available contexts to be added to channels/events.
- *
- * @return the list of available contexts
- * @throws ExecutionException
- * If the command fails
- */
- public List<String> getContextList() throws ExecutionException {
- return getContextList(new NullProgressMonitor());
- }
-
/**
* Gets all available contexts to be added to channels/events.
*
}
}
- /**
- * Creates a session with given session name and location.
- *
- * @param sessionName
- * - a session name to create
- * @param sessionPath
- * - a path for storing the traces (use null for default)
- * @throws ExecutionException
- * If the command fails
- */
- public void createSession(String sessionName, String sessionPath) throws ExecutionException {
- createSession(sessionName, sessionPath, new NullProgressMonitor());
- }
-
/**
* Creates a session with given session name and location.
*
}
}
- /**
- * Creates a session with given session name and location.
- *
- * @param sessionName
- * - a session name to create
- * @param networkUrl
- * - a network URL for common definition of data and control channel
- * or null if separate definition of data and control channel
- * @param controlUrl
- * - a URL for control channel (networkUrl has to be null, dataUrl has to be set)
- * @param dataUrl
- * - a URL for data channel (networkUrl has to be null, controlUrl has to be set)
- * @throws ExecutionException
- * If the command fails
- */
- public void createSession(String sessionName, String networkUrl, String controlUrl, String dataUrl) throws ExecutionException {
- createSession(sessionName, networkUrl, controlUrl, dataUrl, new NullProgressMonitor());
- }
-
/**
* Creates a session with given session name and location.
*
}
}
- /**
- * Destroys a session with given session name.
- *
- * @param session
- * - a session component to destroy
- * @throws ExecutionException
- * If the command fails
- */
- public void destroySession(TraceSessionComponent session)
- throws ExecutionException {
- destroySession(session, new NullProgressMonitor());
- }
-
/**
* Destroys a session with given session name.
*