Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Linux Tools Project » Can't use oprofile anymore
Can't use oprofile anymore [message #10171] Thu, 18 June 2009 07:17 Go to next message
Gianluca Borello is currently offline Gianluca Borello
Messages: 10
Registered: July 2009
Junior Member
Hi, with latest version, I can't use oprofile in eclipse.

Some information:

~/eclipse/plugins/org.eclipse.linuxtools.oprofile.core.linux .x86_0.2.0.200906180007/os/linux/x86$
/opxml info
oprofile: parse error in /usr/share/oprofile//i386/core_2/events, line 6
invalid event name

~/eclipse/plugins/org.eclipse.linuxtools.oprofile.core.linux .x86_0.2.0.200906180007/os/linux/x86$
uname -a
Linux trid 2.6.28-13-generic #44-Ubuntu SMP Tue Jun 2 07:57:31 UTC 2009
i686 GNU/Linux

The OS is Ubuntu 9.04

Thanks for your work.
Re: Can't use oprofile anymore [message #12246 is a reply to message #10171] Thu, 18 June 2009 14:58 Go to previous messageGo to next message
Kent Sebastian is currently offline Kent Sebastian
Messages: 32
Registered: July 2009
Member
Gianluca Borello wrote:
> Hi, with latest version, I can't use oprofile in eclipse.
>
> Some information:
>
> ~/eclipse/plugins/org.eclipse.linuxtools.oprofile.core.linux .x86_0.2.0.200906180007/os/linux/x86$
> /opxml info
> oprofile: parse error in /usr/share/oprofile//i386/core_2/events, line 6
> invalid event name
>
> ~/eclipse/plugins/org.eclipse.linuxtools.oprofile.core.linux .x86_0.2.0.200906180007/os/linux/x86$
> uname -a
> Linux trid 2.6.28-13-generic #44-Ubuntu SMP Tue Jun 2 07:57:31 UTC 2009
> i686 GNU/Linux
>
> The OS is Ubuntu 9.04
>
> Thanks for your work.
>

Hi,

Hmm odd.. that is an error from oprofile internally. What happens when
you run `ophelp`? What version of oprofile, eclipse and the oprofile
plugin are you using?


Thanks,

Kent
Re: Can't use oprofile anymore [message #12258 is a reply to message #12246] Thu, 18 June 2009 17:27 Go to previous messageGo to next message
Gianluca Borello is currently offline Gianluca Borello
Messages: 10
Registered: July 2009
Junior Member
> Hmm odd.. that is an error from oprofile internally. What happens when
> you run `ophelp`? What version of oprofile, eclipse and the oprofile
> plugin are you using?

$ ophelp
oprofile: available events for CPU type "Core 2"

See Intel Architecture Developer's Manual Volume 3, Appendix A and
Intel Architecture Optimization Reference Manual (730795-001)

CPU_CLK_UNHALTED: (counter: all)
Clock cycles when not halted (min count: 6000)
Unit masks (default 0x0)
...
...
...


oprofile 0.9.3 compiled on Feb 25 2009 10:54:30
eclipse version 3.4.2
oprofile plugin 0.2.0.20090618007

It stopped working after last update of the plugin. No other component has
been updated.
Re: Can't use oprofile anymore [message #12269 is a reply to message #12258] Mon, 22 June 2009 14:11 Go to previous messageGo to next message
Kent Sebastian is currently offline Kent Sebastian
Messages: 32
Registered: July 2009
Member
Gianluca Borello wrote:
>> Hmm odd.. that is an error from oprofile internally. What happens when
>> you run `ophelp`? What version of oprofile, eclipse and the oprofile
>> plugin are you using?
>
> $ ophelp oprofile: available events for CPU type "Core 2"
>
> See Intel Architecture Developer's Manual Volume 3, Appendix A and
> Intel Architecture Optimization Reference Manual (730795-001)
>
> CPU_CLK_UNHALTED: (counter: all)
> Clock cycles when not halted (min count: 6000)
> Unit masks (default 0x0)
> ..
> ..
> ..
>
>
> oprofile 0.9.3 compiled on Feb 25 2009 10:54:30
> eclipse version 3.4.2
> oprofile plugin 0.2.0.20090618007
>
> It stopped working after last update of the plugin. No other component
> has been updated.
>

How did you install/update the plugin? The 0.2.0 release of the plugin
does not have that datestamp (20090618007). Try re-installing the plugin
from the stable update site:

http://download.eclipse.org/technology/linuxtools/update

If the problem still persists, try rebuilding opxml by following these
instructions:

http://wiki.eclipse.org/Linux_Tools_Project/OProfile/User_Gu ide#Rebuilding_opxml

Let me know how it goes, thanks for trying out the plugin :)


-Kent
Re: Can't use oprofile anymore [message #12280 is a reply to message #12269] Wed, 24 June 2009 15:34 Go to previous messageGo to next message
Gianluca Borello is currently offline Gianluca Borello
Messages: 10
Registered: July 2009
Junior Member
Kent Sebastian wrote:

> How did you install/update the plugin? The 0.2.0 release of the plugin
> does not have that datestamp (20090618007). Try re-installing the plugin
> from the stable update site:

I was using nightly build due to a known issue related to valgrind +
debian (already reported in bugzilla).
Is there a stable version compatible with galileo?
I take this opportunity to compliment you, your plugins are extremely
useful and greatly improve the hard life of a C developer. Keep up the
good work :-)
Re: Can't use oprofile anymore [message #12291 is a reply to message #12280] Wed, 24 June 2009 16:36 Go to previous messageGo to next message
Kent Sebastian is currently offline Kent Sebastian
Messages: 32
Registered: July 2009
Member
Gianluca Borello wrote:
> Kent Sebastian wrote:
>
>> How did you install/update the plugin? The 0.2.0 release of the plugin
>> does not have that datestamp (20090618007). Try re-installing the plugin
>> from the stable update site:
>
> I was using nightly build due to a known issue related to valgrind +
> debian (already reported in bugzilla).
> Is there a stable version compatible with galileo?

The issue with valgrind & debian is isolated to the valgrind plugin. The
stable update site now has that fix.

I have tested the 0.2.0 release with Galileo and it is working. However
you may notice that there are some missing features from the 0.2.0 vs
nightly (eg manual profiling launch). But you'd probably just want to
rebuild opxml. If problems continue I'll set up a virtual machine and
try to reproduce it.

> I take this opportunity to compliment you, your plugins are extremely
> useful and greatly improve the hard life of a C developer. Keep up the
> good work :-)
>

Thanks :) and thank you for trying out the plugin :)


-Kent
Re: Can't use oprofile anymore [message #12301 is a reply to message #12291] Thu, 25 June 2009 13:31 Go to previous messageGo to next message
Gianluca Borello is currently offline Gianluca Borello
Messages: 10
Registered: July 2009
Junior Member
Kent Sebastian wrote:

> I have tested the 0.2.0 release with Galileo and it is working.

With a default install of Galileo, I can't install the latest stable
version:
Missing requirement: Valgrind Tools Integration (Incubation)
0.2.1.200905251648 (org.eclipse.linuxtools.valgrind.feature.feature.group
0.2.1.200905251648) requires 'org.eclipse.birt.chart 2.3.1' but it could
not be found

Galileo includes (through repository sources) BIRT 2.5
Re: Can't use oprofile anymore [message #12312 is a reply to message #12301] Thu, 25 June 2009 13:49 Go to previous messageGo to next message
Elliott Baron is currently offline Elliott Baron
Messages: 28
Registered: July 2009
Junior Member
Hi Gianluca,

On 25/06/09 01:31 PM, Gianluca Borello wrote:
> With a default install of Galileo, I can't install the latest stable
> version:
> Missing requirement: Valgrind Tools Integration (Incubation)
> 0.2.1.200905251648
> (org.eclipse.linuxtools.valgrind.feature.feature.group
> 0.2.1.200905251648) requires 'org.eclipse.birt.chart 2.3.1' but it could
> not be found
>
> Galileo includes (through repository sources) BIRT 2.5
>

The birt.chart plugin seems to have been removed in BIRT 2.5. Our 0.2
release was targeted towards Ganymede, but the builds on our nightly
update site are targeted towards Galileo. If you'd like to try that, the
nightly URL is
http://download.eclipse.org/technology/linuxtools/updates-ni ghtly

Thanks,
Elliott
Re: Can't use oprofile anymore [message #12323 is a reply to message #12312] Mon, 29 June 2009 03:51 Go to previous messageGo to next message
Gianluca Borello is currently offline Gianluca Borello
Messages: 10
Registered: July 2009
Junior Member
Elliott Baron wrote:

> The birt.chart plugin seems to have been removed in BIRT 2.5. Our 0.2
> release was targeted towards Ganymede, but the builds on our nightly
> update site are targeted towards Galileo. If you'd like to try that, the
> nightly URL is
> http://download.eclipse.org/technology/linuxtools/updates-ni ghtly

Everything seems to work fine with Galileo + nightly builds, so for now I
will not stress you anymore. Thanks again for your work!
Re: Can't use oprofile anymore [message #12330 is a reply to message #12323] Mon, 29 June 2009 09:33 Go to previous messageGo to next message
Elliott Baron is currently offline Elliott Baron
Messages: 28
Registered: July 2009
Junior Member
On 29/06/09 03:51 AM, Gianluca Borello wrote:
> Everything seems to work fine with Galileo + nightly builds, so for now
> I will not stress you anymore. Thanks again for your work!

Good to hear and thanks,
Elliott
Re: Can't use oprofile anymore [message #482680 is a reply to message #12330] Thu, 27 August 2009 10:13 Go to previous messageGo to next message
Ingo Assenmacher is currently offline Ingo Assenmacher
Messages: 4
Registered: August 2009
Junior Member
Hi!

I basically have the same problems, nightly build does not solve it.
My configuration is as follows:

* Eclipse Gallileo (build-id: 20090619-0625) (installed by extracting the tar-ball)
* ubuntu 8.10 (intrepid) x86_64 (core_2)
* oprofile 0.9.3-1.1ubuntu2
* linuxtools plugin installed from nightly build (0.3.0.200908190856)

Installing of the linuxtools using the install.sh script worked as described on the webpage.

When I ran opxml and got the error described above in this thread (error in line 6), I checked the code from oprofile in op_events.c (from oprofile 0.9.3, though), in line 336/337 the error "invalid event name" is uttered. According to the source file, the error is given when the name contains a slash ("/"). This was not the case, so I guess that source and binary does not match in my case. However, in line 6, the original event name was:

name:INST_RETIRED.ANY_P

I replaced the "." against a "_" which lead to the same error in a different line (83 in that case of the core_2/events file). Again a "." in the name. I replaced all dots in all event names (only a few) and opxml info produces a lot of xml output.

Btw. the ophelp utility always produced output and no error, maybe they use a different parsing routine there.

I still can not start the oprofile, looking at the log, an exception is thrown (I abbreviate the output, just showing stack top):

java.lang.NoClassDefFoundError: Could not initialize class org.eclipse.linuxtools.oprofile.core.Oprofile
at org.eclipse.linuxtools.oprofile.launch.configuration.Oprofil eCounter.getCounters(OprofileCounter.java:64)
at org.eclipse.linuxtools.oprofile.launch.configuration.Oprofil eEventConfigTab. <init>(OprofileEventConfigTab.java:68)
<snip>

<old>
Any ideas? (I see that this error is already inspected in another thread in this forum)
</old>

<old2>
I uninstalled the plugin, re-installed the plugin from the "updates" link (same version?), ran install.sh again, restarted the workbench and now it seems to work until a dialog appears: "The password you typed is invalid". But I was not prompted for a password. Any ideas?
</old2>

<new>
Sorry for all the fuzz... this time I made sure that I only use *one* of the authentication methods described in the installation guide (consolehelper did not work for me, so I chose the noconsolehelper.sh). Authentication seems to work now, even launching the application, but still no profiling results. Well... maybe a reboot is needed Wink
</new>

Thanks for the good work!

Regards,

Ingo

[Updated on: Thu, 27 August 2009 10:46]

Report message to a moderator

Re: Can't use oprofile anymore [message #494403 is a reply to message #482680] Fri, 30 October 2009 10:32 Go to previous messageGo to next message
Andrew Overholt is currently offline Andrew Overholt
Messages: 55
Registered: July 2009
Member
Hi Ingo,

I just noticed your post in this thread. Can you please file a bug?

https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Linux Tools&component=OProfile

Thanks,

Andrew
Re: Can't use oprofile anymore [message #501004 is a reply to message #494403] Mon, 30 November 2009 11:29 Go to previous message
Ingo Assenmacher is currently offline Ingo Assenmacher
Messages: 4
Registered: August 2009
Junior Member
Andrew Overholt wrote on Fri, 30 October 2009 10:32
Hi Ingo,

I just noticed your post in this thread. Can you please file a bug?

https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Linux Tools&component=OProfile




Hi!

Sorry, I was somehow busy lately. Yes, I will go and file a bug. I suppose you refer to the parsing stuff? It may take me some more days, though, as many things piled up before x-mas.

Ingo.
Re: Can't use oprofile anymore [message #566629 is a reply to message #10171] Thu, 18 June 2009 14:58 Go to previous message
Kent Sebastian is currently offline Kent Sebastian
Messages: 32
Registered: July 2009
Member
Gianluca Borello wrote:
> Hi, with latest version, I can't use oprofile in eclipse.
>
> Some information:
>
> ~/eclipse/plugins/org.eclipse.linuxtools.oprofile.core.linux .x86_0.2.0.200906180007/os/linux/x86$
> /opxml info
> oprofile: parse error in /usr/share/oprofile//i386/core_2/events, line 6
> invalid event name
>
> ~/eclipse/plugins/org.eclipse.linuxtools.oprofile.core.linux .x86_0.2.0.200906180007/os/linux/x86$
> uname -a
> Linux trid 2.6.28-13-generic #44-Ubuntu SMP Tue Jun 2 07:57:31 UTC 2009
> i686 GNU/Linux
>
> The OS is Ubuntu 9.04
>
> Thanks for your work.
>

Hi,

Hmm odd.. that is an error from oprofile internally. What happens when
you run `ophelp`? What version of oprofile, eclipse and the oprofile
plugin are you using?


Thanks,

Kent
Re: Can't use oprofile anymore [message #566655 is a reply to message #12246] Thu, 18 June 2009 17:27 Go to previous message
Gianluca Borello is currently offline Gianluca Borello
Messages: 10
Registered: July 2009
Junior Member
> Hmm odd.. that is an error from oprofile internally. What happens when
> you run `ophelp`? What version of oprofile, eclipse and the oprofile
> plugin are you using?

$ ophelp
oprofile: available events for CPU type "Core 2"

See Intel Architecture Developer's Manual Volume 3, Appendix A and
Intel Architecture Optimization Reference Manual (730795-001)

CPU_CLK_UNHALTED: (counter: all)
Clock cycles when not halted (min count: 6000)
Unit masks (default 0x0)
...
...
...


oprofile 0.9.3 compiled on Feb 25 2009 10:54:30
eclipse version 3.4.2
oprofile plugin 0.2.0.20090618007

It stopped working after last update of the plugin. No other component has
been updated.
Re: Can't use oprofile anymore [message #566672 is a reply to message #12258] Mon, 22 June 2009 14:11 Go to previous message
Kent Sebastian is currently offline Kent Sebastian
Messages: 32
Registered: July 2009
Member
Gianluca Borello wrote:
>> Hmm odd.. that is an error from oprofile internally. What happens when
>> you run `ophelp`? What version of oprofile, eclipse and the oprofile
>> plugin are you using?
>
> $ ophelp oprofile: available events for CPU type "Core 2"
>
> See Intel Architecture Developer's Manual Volume 3, Appendix A and
> Intel Architecture Optimization Reference Manual (730795-001)
>
> CPU_CLK_UNHALTED: (counter: all)
> Clock cycles when not halted (min count: 6000)
> Unit masks (default 0x0)
> ..
> ..
> ..
>
>
> oprofile 0.9.3 compiled on Feb 25 2009 10:54:30
> eclipse version 3.4.2
> oprofile plugin 0.2.0.20090618007
>
> It stopped working after last update of the plugin. No other component
> has been updated.
>

How did you install/update the plugin? The 0.2.0 release of the plugin
does not have that datestamp (20090618007). Try re-installing the plugin
from the stable update site:

http://download.eclipse.org/technology/linuxtools/update

If the problem still persists, try rebuilding opxml by following these
instructions:

http://wiki.eclipse.org/Linux_Tools_Project/OProfile/User_Gu ide#Rebuilding_opxml

Let me know how it goes, thanks for trying out the plugin :)


-Kent
Re: Can't use oprofile anymore [message #566687 is a reply to message #12269] Wed, 24 June 2009 15:34 Go to previous message
Gianluca Borello is currently offline Gianluca Borello
Messages: 10
Registered: July 2009
Junior Member
Kent Sebastian wrote:

> How did you install/update the plugin? The 0.2.0 release of the plugin
> does not have that datestamp (20090618007). Try re-installing the plugin
> from the stable update site:

I was using nightly build due to a known issue related to valgrind +
debian (already reported in bugzilla).
Is there a stable version compatible with galileo?
I take this opportunity to compliment you, your plugins are extremely
useful and greatly improve the hard life of a C developer. Keep up the
good work :-)
Re: Can't use oprofile anymore [message #566705 is a reply to message #12280] Wed, 24 June 2009 16:36 Go to previous message
Kent Sebastian is currently offline Kent Sebastian
Messages: 32
Registered: July 2009
Member
Gianluca Borello wrote:
> Kent Sebastian wrote:
>
>> How did you install/update the plugin? The 0.2.0 release of the plugin
>> does not have that datestamp (20090618007). Try re-installing the plugin
>> from the stable update site:
>
> I was using nightly build due to a known issue related to valgrind +
> debian (already reported in bugzilla).
> Is there a stable version compatible with galileo?

The issue with valgrind & debian is isolated to the valgrind plugin. The
stable update site now has that fix.

I have tested the 0.2.0 release with Galileo and it is working. However
you may notice that there are some missing features from the 0.2.0 vs
nightly (eg manual profiling launch). But you'd probably just want to
rebuild opxml. If problems continue I'll set up a virtual machine and
try to reproduce it.

> I take this opportunity to compliment you, your plugins are extremely
> useful and greatly improve the hard life of a C developer. Keep up the
> good work :-)
>

Thanks :) and thank you for trying out the plugin :)


-Kent
Re: Can't use oprofile anymore [message #566726 is a reply to message #12291] Thu, 25 June 2009 13:31 Go to previous message
Gianluca Borello is currently offline Gianluca Borello
Messages: 10
Registered: July 2009
Junior Member
Kent Sebastian wrote:

> I have tested the 0.2.0 release with Galileo and it is working.

With a default install of Galileo, I can't install the latest stable
version:
Missing requirement: Valgrind Tools Integration (Incubation)
0.2.1.200905251648 (org.eclipse.linuxtools.valgrind.feature.feature.group
0.2.1.200905251648) requires 'org.eclipse.birt.chart 2.3.1' but it could
not be found

Galileo includes (through repository sources) BIRT 2.5
Re: Can't use oprofile anymore [message #566753 is a reply to message #12301] Thu, 25 June 2009 13:49 Go to previous message
Elliott Baron is currently offline Elliott Baron
Messages: 28
Registered: July 2009
Junior Member
Hi Gianluca,

On 25/06/09 01:31 PM, Gianluca Borello wrote:
> With a default install of Galileo, I can't install the latest stable
> version:
> Missing requirement: Valgrind Tools Integration (Incubation)
> 0.2.1.200905251648
> (org.eclipse.linuxtools.valgrind.feature.feature.group
> 0.2.1.200905251648) requires 'org.eclipse.birt.chart 2.3.1' but it could
> not be found
>
> Galileo includes (through repository sources) BIRT 2.5
>

The birt.chart plugin seems to have been removed in BIRT 2.5. Our 0.2
release was targeted towards Ganymede, but the builds on our nightly
update site are targeted towards Galileo. If you'd like to try that, the
nightly URL is
http://download.eclipse.org/technology/linuxtools/updates-ni ghtly

Thanks,
Elliott
Re: Can't use oprofile anymore [message #566776 is a reply to message #12312] Mon, 29 June 2009 03:51 Go to previous message
Gianluca Borello is currently offline Gianluca Borello
Messages: 10
Registered: July 2009
Junior Member
Elliott Baron wrote:

> The birt.chart plugin seems to have been removed in BIRT 2.5. Our 0.2
> release was targeted towards Ganymede, but the builds on our nightly
> update site are targeted towards Galileo. If you'd like to try that, the
> nightly URL is
> http://download.eclipse.org/technology/linuxtools/updates-ni ghtly

Everything seems to work fine with Galileo + nightly builds, so for now I
will not stress you anymore. Thanks again for your work!
Re: Can't use oprofile anymore [message #566791 is a reply to message #12323] Mon, 29 June 2009 09:33 Go to previous message
Elliott Baron is currently offline Elliott Baron
Messages: 28
Registered: July 2009
Junior Member
On 29/06/09 03:51 AM, Gianluca Borello wrote:
> Everything seems to work fine with Galileo + nightly builds, so for now
> I will not stress you anymore. Thanks again for your work!

Good to hear and thanks,
Elliott
Re: Can't use oprofile anymore [message #566971 is a reply to message #12330] Thu, 27 August 2009 10:13 Go to previous message
Ingo Assenmacher is currently offline Ingo Assenmacher
Messages: 4
Registered: August 2009
Junior Member
Hi!

I basically have the same problems, nightly build does not solve it.
My configuration is as follows:

* Eclipse Gallileo (build-id: 20090619-0625) (installed by extracting the tar-ball)
* ubuntu 8.10 (intrepid) x86_64 (core_2)
* oprofile 0.9.3-1.1ubuntu2
* linuxtools plugin installed from nightly build (0.3.0.200908190856)

Installing of the linuxtools using the install.sh script worked as described on the webpage.

When I ran opxml and got the error described above in this thread (error in line 6), I checked the code from oprofile in op_events.c (from oprofile 0.9.3, though), in line 336/337 the error "invalid event name" is uttered. According to the source file, the error is given when the name contains a slash ("/"). This was not the case, so I guess that source and binary does not match in my case. However, in line 6, the original event name was:

name:INST_RETIRED.ANY_P

I replaced the "." against a "_" which lead to the same error in a different line (83 in that case of the core_2/events file). Again a "." in the name. I replaced all dots in all event names (only a few) and opxml info produces a lot of xml output.

Btw. the ophelp utility always produced output and no error, maybe they use a different parsing routine there.

I still can not start the oprofile, looking at the log, an exception is thrown (I abbreviate the output, just showing stack top):

java.lang.NoClassDefFoundError: Could not initialize class org.eclipse.linuxtools.oprofile.core.Oprofile
at org.eclipse.linuxtools.oprofile.launch.configuration.Oprofil eCounter.getCounters(OprofileCounter.java:64)
at org.eclipse.linuxtools.oprofile.launch.configuration.Oprofil eEventConfigTab. <init>(OprofileEventConfigTab.java:68)
<snip>

Any ideas? (I see that this error is already inspected in another thread in this forum)

Thanks for the good work!

Regards,

Ingo
Re: Can't use oprofile anymore [message #567340 is a reply to message #566971] Fri, 30 October 2009 10:32 Go to previous message
Andrew Overholt is currently offline Andrew Overholt
Messages: 55
Registered: July 2009
Member
Hi Ingo,

I just noticed your post in this thread. Can you please file a bug?

https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Linux Tools&component=OProfile

Thanks,

Andrew
Re: Can't use oprofile anymore [message #567507 is a reply to message #567340] Mon, 30 November 2009 11:29 Go to previous message
Ingo Assenmacher is currently offline Ingo Assenmacher
Messages: 4
Registered: August 2009
Junior Member
Andrew Overholt wrote on Fri, 30 October 2009 10:32
> Hi Ingo,
>
> I just noticed your post in this thread. Can you please file a bug?
>
> https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Linux Tools&component=OProfile


Hi!

Sorry, I was somehow busy lately. Yes, I will go and file a bug. I suppose you refer to the parsing stuff? It may take me some more days, though, as many things piled up before x-mas.

Ingo.
Previous Topic:Announcing Linux Tools 0.4.0
Next Topic:ubuntu launching Eclipse
Goto Forum:
  


Current Time: Sun Aug 31 02:35:27 EDT 2014

Powered by FUDForum. Page generated in 0.02421 seconds