Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'oprofile/org.eclipse.linuxtools.oprofile.core/src/org/eclipse/linuxtools/internal/oprofile/core/IOpcontrolProvider.java')
-rw-r--r--oprofile/org.eclipse.linuxtools.oprofile.core/src/org/eclipse/linuxtools/internal/oprofile/core/IOpcontrolProvider.java13
1 files changed, 12 insertions, 1 deletions
diff --git a/oprofile/org.eclipse.linuxtools.oprofile.core/src/org/eclipse/linuxtools/internal/oprofile/core/IOpcontrolProvider.java b/oprofile/org.eclipse.linuxtools.oprofile.core/src/org/eclipse/linuxtools/internal/oprofile/core/IOpcontrolProvider.java
index 82a97087dd..2f34b05ccf 100644
--- a/oprofile/org.eclipse.linuxtools.oprofile.core/src/org/eclipse/linuxtools/internal/oprofile/core/IOpcontrolProvider.java
+++ b/oprofile/org.eclipse.linuxtools.oprofile.core/src/org/eclipse/linuxtools/internal/oprofile/core/IOpcontrolProvider.java
@@ -85,12 +85,23 @@ public interface IOpcontrolProvider {
/**
* Delete the session with the specified name for the specified event
* @param sessionName The name of the session to delete
- * @param eventName The name of the event containing the session
+ * @param sessionEvent The name of the event containing the session
* @throws OpcontrolException
*/
public void deleteSession (String sessionName, String sessionEvent) throws OpcontrolException;
+ /**
+ * Check if the user has permission to run opcontrol
+ * @param project The project to be run
+ * @return true if the user has sudo permission to run opcontrol, otherwise false
+ * @throws OpcontrolException
+ */
public boolean hasPermissions(IProject project) throws OpcontrolException;
+ /**
+ * Check status and return true if any status was returned
+ * @return true if any status was returned, otherwise false
+ * @throws OpcontrolException
+ */
public boolean status() throws OpcontrolException;
}

Back to the top