Skip to main content



      Home
Home » Eclipse Projects » Linux Tools Project » Any luck w/ oprofile plugin on Ubuntu Lucid w/ Eclipse Galileo
Any luck w/ oprofile plugin on Ubuntu Lucid w/ Eclipse Galileo [message #569190] Fri, 11 June 2010 14:39 Go to next message
Eclipse UserFriend
Hi -
I followed all the directions on the install page and just can't seem to make the oprofile plugin for eclipse work. I'm trying to get it going on Ubuntu Lucid (10.04), w/ Eclipse Galileo (3.5). I was having problems as in the previous post, made the symlink as suggested, but now I get an error that says:

FATAL: An error occurred running opcontrol

Reason:
Error code of opcontrol indicates failure

Thoughts? Help?

Also - any chance this will ever work remotely?

M
Re: Any luck w/ oprofile plugin on Ubuntu Lucid w/ Eclipse Galileo [message #569220 is a reply to message #569190] Fri, 11 June 2010 15:26 Go to previous messageGo to next message
Eclipse UserFriend
On Fri, 11 Jun 2010 14:39:27 -0400, MedZed <medvedm@zin-tech.com>
wrote:
> Also - any chance this will ever work remotely?

See http://bugs.eclipse.org/315505 We'd love help with it :) .

Andrew
Re: Any luck w/ oprofile plugin on Ubuntu Lucid w/ Eclipse Galileo [message #569273 is a reply to message #569190] Fri, 11 June 2010 17:16 Go to previous messageGo to next message
Eclipse UserFriend
MedZed wrote on Fri, 11 June 2010 14:39
> Hi -
> I followed all the directions on the install page and just can't seem to make the oprofile plugin for eclipse work. I'm trying to get it going on Ubuntu Lucid (10.04), w/ Eclipse Galileo (3.5). I was having problems as in the previous post, made the symlink as suggested, but now I get an error that says:
>
> FATAL: An error occurred running opcontrol
>
> Reason:
> Error code of opcontrol indicates failure
>
> Thoughts? Help?
>
> Also - any chance this will ever work remotely?
>
> M


Are you able to run opcontrol from the command line ?

opcontrol --image=/path/to/the/binary
opcontrol --start
/path/to/the/binary
opcontrol --stop

Does opreport -l give back any data about the run ?
Re: Any luck w/ oprofile plugin on Ubuntu Lucid w/ Eclipse Galileo [message #569286 is a reply to message #569190] Sun, 13 June 2010 17:04 Go to previous messageGo to next message
Eclipse UserFriend
After doing an install of the needed oprofile components on Ubuntu 10.04 as per this page : http://wiki.eclipse.org/Linux_Tools_Project/OProfile/User_Gu ide (specifically the Ubuntu extra build requirements), I was able to reproduce the error you are seeing.

In my case I traced the problem to an authentication issue (sudo: no tty present and no askpass program specified)

Specifically, If consolehelper is not installed, and after running the install-noconsolehelper install script (and adding yourself to the sudoers file with permission for running /usr/bin/opcontrol), any attempt to profile fails. Adding either :

Defaults visiblepw
or
Defaults askpass=/usr/bin/ssh-askpass

to the sudoers file fixed this for me. The former will prompt you for a password in the terminal that eclipse was started. The latter will use the use a gui prompt to ask you for your password (probably nicer). Hope this helps.
Re: Any luck w/ oprofile plugin on Ubuntu Lucid w/ Eclipse Galileo [message #569376 is a reply to message #569286] Sun, 20 June 2010 02:47 Go to previous message
Eclipse UserFriend
Having rebuilt oprofile following my previous issue, I've now run into this problem as well. Your fix didn't work for me, I still get the same error.

The situation is pretty much the same as last time. Eclipse works fine except for profiling. Oprofile works fine from the command line. The plugin refuses to work

I noticed your opcontrol is in /usr/bin. Mine is in /usr/local/bin. Is this right?

I'm running Lucid 64. I understand this isn't as well supported as the 32 bit version. Which one are you using?

Thanks,

Rob.
Previous Topic:oprofile problem: "No profiling data is on the system"
Next Topic:Refresh coverage
Goto Forum:
  


Current Time: Fri Jul 04 22:48:05 EDT 2025

Powered by FUDForum. Page generated in 0.04123 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top