aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCorey Ashford2011-03-29 17:40:10 (EDT)
committerAndrew Overholt2011-04-13 15:33:40 (EDT)
commit99a2ea3eb8585630e08cae96cc95c04b9fe912d6 (patch)
treea34a7dec30ea250b48903098f5a8b83e27ac0829
parent0613f9841045eeaa527f181df9a7695c3d486803 (diff)
downloadorg.eclipse.linuxtools-99a2ea3eb8585630e08cae96cc95c04b9fe912d6.zip
org.eclipse.linuxtools-99a2ea3eb8585630e08cae96cc95c04b9fe912d6.tar.gz
org.eclipse.linuxtools-99a2ea3eb8585630e08cae96cc95c04b9fe912d6.tar.bz2
linuxtools, oprofile: Improve error message when opcontrol returns a non-zero error code
Add extra verbiage to give a clue as to what might have gone wrong if opcontrol returns a non-zero exit status, particularly for the case when /usr/bin/consolehelper is not installed on the system (e.g. consolehelper is not in the SuSE distro). Signed-off-by: Corey Ashford <cjashfor@linux.vnet.ibm.com>
-rw-r--r--oprofile/org.eclipse.linuxtools.oprofile.core/src/org/eclipse/linuxtools/oprofile/core/oprofile.properties2
1 files changed, 1 insertions, 1 deletions
diff --git a/oprofile/org.eclipse.linuxtools.oprofile.core/src/org/eclipse/linuxtools/oprofile/core/oprofile.properties b/oprofile/org.eclipse.linuxtools.oprofile.core/src/org/eclipse/linuxtools/oprofile/core/oprofile.properties
index d5533d6..d2ac0e1 100644
--- a/oprofile/org.eclipse.linuxtools.oprofile.core/src/org/eclipse/linuxtools/oprofile/core/oprofile.properties
+++ b/oprofile/org.eclipse.linuxtools.oprofile.core/src/org/eclipse/linuxtools/oprofile/core/oprofile.properties
@@ -18,7 +18,7 @@ oprofileInit.error.dialog.title=Error initializing OProfile
oprofileInit.error.dialog.message=FATAL: The OProfile kernel module could not be loaded.
opcontrolRun.error.statusMessage=Error during run of opcontrol
-opcontrolNonZeroExitCode.error.statusMessage=Exit code of opcontrol indicates failure
+opcontrolNonZeroExitCode.error.statusMessage=Exit code of opcontrol indicates failure.\nIf this system does not have /usr/bin/consolehelper, make sure you have added\nthe following line to /etc/sudoers:\n<username> ALL=(ALL) NOPASSWD: <path to opcontrol, e.g. /usr/bin/opcontrol>
opcontrolProvider.error.statusMessage=Could not find an OpcontrolProvider, or no opcontrol binary exists.\n\nPlease ensure you have run the install script as the root user. The install script will be in the org.eclipse.linuxtools.oprofile.core plugin, which may be located in one of a few places. You can locate it with the following command (type in a terminal):\n\nfind <~/.eclipse OR the location from which you're running eclipse> \ \n-name 'org.eclipse.linuxtools.oprofile.core_*'\n\nWhen you have found the location of the plugin, as root, run the install script contained therein:\n\ncd <path to org.eclipse.linuxtools.oprofile.core>/natives/linux/scripts\nsh install.sh\n\nYou may need to set the script as executable before running this command; do this with:\n\nchmod u+x install.sh