Rob. [message #568899] |
Sat, 29 May 2010 09:52  |
Eclipse User |
|
|
|
Hi,
Having got eclipse installed and working and oprofiler running from the command line, I've been trying to install the plugin.
(I think) I've followed the instructions in http://wiki.eclipse.org/Linux_Tools_Project/OProfile/User_Gu ide, including building opxml and installing it as it wasn't on my system at all.
When I try to profile c++ in Eclipse I get the error: "An error occurred with opxml The xml output could not be read..."
Running opxml info gives:
"oprofile: could not open unit mask description file /usr/local/share/oprofile//x64-64/hammer/unit masks"
and indeed there is no oprofile directory in /usr/local/share.
Any ideas how to proceed? What have I missed?
|
|
|
|
|
Re: opxml installation [message #569012 is a reply to message #568998] |
Thu, 03 June 2010 11:26   |
Eclipse User |
|
|
|
Robert Simpson wrote on Thu, 03 June 2010 00:22
> It works fine from the command line (except I had to 'sudo' the opcontrol commands).
>
> I think I did a make install but can you tell me the directory? If I missed it out can I just go back and do a make install or do I need to recompile everything?
There should be an oprofile directory created in /usr/local/share by default after running make install. You could try looking on your system if by any chance it may be somewhere else, but if you did just a basic ./configure, without adding any flags like --prefix, or --datadir then there's no reason for it to be anywhere else. In fact, I think that even if you did, oprofile should use the values you specified when searching.
Also, after starting opcontrol, executing your binary, then stopping it, does running 'opxml sessions' show a session named "current" under some event name in the xml. If so, then does running opxml model-data [event_name] [session_name] output xml data on that session?
|
|
|
|
Re: opxml installation [message #569721 is a reply to message #569024] |
Thu, 08 July 2010 11:45  |
Eclipse User |
|
|
|
I had the same problem after building oprofile-devel from source in Ubuntu. I soft linked /usr/local/share/oprofile to /usr/share/oprofile (the install of Ubuntu's build) to fix the problem, though I expect this could result in build inconsistencies.
Note that it's looking for the files in usr/local - not sure you had it the same way round in your post Roland.
|
|
|
Powered by
FUDForum. Page generated in 0.05630 seconds