Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsOpxmlProvider problem
https://www.eclipse.org/forums/index.php/mv/msg/201385/643221/#msg_643221
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!]]>Ben 2010-12-06T05:13:05-00:00Re: OpxmlProvider problem
https://www.eclipse.org/forums/index.php/mv/msg/201385/643463/#msg_643463
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:
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
Cheers,
Severin]]>Severin Gehwolf2010-12-06T23:20:31-00:00Re: OpxmlProvider problem
https://www.eclipse.org/forums/index.php/mv/msg/201385/643571/#msg_643571
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]]>Ben 2010-12-07T13:43:39-00:00