Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Linux Tools Project » OpxmlProvider problem(can't instantiate LinuxOpxmlProvider32.class)
OpxmlProvider problem [message #643221] Mon, 06 December 2010 05:13 Go to next message
Ben  is currently offline Ben Friend
Messages: 4
Registered: December 2010
Junior Member
Hello all!
OProfile with Eclipse is not working inside my Ubuntu910 box (kernel 2.6.31-22-generic). If anybody could shed some light on this I'd be very thankful!

I've tried to run OProfile and have done the following:
Recompiled oprofile9.6 (./configure --with-kernel-support)
Compiled and installed OPXML.
Installed the plugin using install-noconsolehelper.sh.
Up to this point all went fine.
When I tried profiling with OProfile from Eclipse I get this message:


Could not find an OpxmlProvider, or no opxml binary exists. Please fix the issue before continuing.
Plug-in "org.eclipse.linuxtools.oprofile.core" was unable to instantiate class " org.eclipse.linuxtools.oprofile.core.linux.x86.LinuxOpxmlPro vider32 ".
Could not find an OpxmlProvider, or no opxml binary exists. Please fix the issue before continuing.


When I go to the command line and run opcontrol, run my executable, stop opcontrol, then run opxml sessions and get
<?xml version="1.0" encoding="UTF-8"?>
<sessions>
<event name="CPU_CLK_UNHALTED">
<session name="current">
</session>
</event>
</sessions>

Then I run opxml model-data CPU_CLK_UNHALTED current and get
<?xml version="1.0" encoding="UTF-8"?>
<model-data>
<image name="<PATH TO EXECUTABLE>/<EXECUTABLE>" count="121">
<symbols>
<symbol name="main" file="<PATH TO EXECUTABLE>/../main.cpp" count="57">
<sample>
<count>3</count>
<line>38</line>
</sample>
<sample>
<count>3</count>
<line>270</line>
</sample>
.
.
.
<sample>
<count>1</count>
<line>263</line>
</sample>
<sample>
<count>1</count>
<line>266</line>
</sample>
</symbol>
<symbol name=".plt" file="<PATH TO EXECUTABLE>/<EXECUTABLE>" count="6">
<sample>
<count>6</count>
<line>0</line>
</sample>
</symbol>
<symbol name="gcov_exit" file="main.cpp" count="2">
<sample>
<count>2</count>
<line>0</line>
</sample>
</symbol>
<symbol name="__gcov_merge_add" file="" count="1">
<sample>
<count>1</count>
<line>0</line>
</sample>
</symbol>
</symbols>
<dependent count="55">
<image name="[vdso]" count="29">
</image>
<image name="[vdso]" count="26">
</image>
</dependent>
</image>
</model-data>


So apparently the class LinuxOpxmlProvider32.class located in <ECLIPSE PATH> /plugins/org.eclipse.linuxtools.oprofile.core.linux.x86_0.3. 0.201009101021/org/eclipse/linuxtools/oprofile/core/linux/x8 6 cannot be used, somehow...
Any help would be appreciated!
Re: OpxmlProvider problem [message #643463 is a reply to message #643221] Mon, 06 December 2010 23:20 Go to previous messageGo to next message
Severin Gehwolf is currently offline Severin GehwolfFriend
Messages: 40
Registered: June 2010
Member
Hi Ben,

It looks like opxml isn't at the right place where the oprofile plug-in expects it. Let's try to confirm that theory.

First, find out where the plug-in is. You could use something like the following to guide you:

$ sudo updatedb
$ locate org.eclipse.linuxtools.oprofile.core.linux.x86


Then, change directory to the location of this folder and see if opxml is there

$ cd path/to/org.eclipse.linuxtools.oprofile.core.linux.x86
$ find ./ -name opxml


The above command should find opxml. If it gives you zero results, opxml isn't at the right place. Please move it there and try again. The plug-in expects the opxml binary at
path/to/org.eclipse.linuxtools.oprofile.core.linux.x86/os/linux/x86


Let me know how it goes.

Cheers,
Severin
Re: OpxmlProvider problem [message #643571 is a reply to message #643463] Tue, 07 December 2010 13:43 Go to previous message
Ben  is currently offline Ben Friend
Messages: 4
Registered: December 2010
Junior Member
Hi Severin:
Thanks a lot! I followed your hint and it fixed my problem all right!!! Now OProfile is working fine.
I much appreciate your kind and productive advice!
Regards,
Ben
Previous Topic:opxml installation
Next Topic:How to use Callgraph / SystemTap on Debian Squeeze ?
Goto Forum:
  


Current Time: Wed Apr 24 16:17:33 GMT 2024

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

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

Back to the top