public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* Re: Systemtap scripts unable to compile on RHEL4 U2
@ 2005-09-28 11:05 Frank Ch. Eigler
  0 siblings, 0 replies; 8+ messages in thread
From: Frank Ch. Eigler @ 2005-09-28 11:05 UTC (permalink / raw)
  To: systemtap

Hi -

wcohen wrote:

> [...] SystemTap should be a bit more vocal when it is unable to find
> any debuginfo for the kernel being instrumented [...]

That's true.  At one point, it used to say so.


parasadav wrote:

> 1) Is it not a good idea as part of the very first check translator
> can do a version check between the debug info it is using and the
> version of the binary where it is going to insert probes?

While such a check would be prudent, at the moment it will never fail,
as systemtap/elfutils can select only the debuginfo for the currently
running kernel version/release.  It doesn't matter if other debuginfo
versions are installed - they won't be looked at.  (But see bug
#1145.)

> 2) If a customer upgrades the OS release how do we make sure the
> corresponding debug info matches without corresponding debug RPM's
> shipped.

We can't make sure of such a thing.  Users will need to update their
debuginfo's along with their kernels.  Users of RH packages may wish
to subscribe to this bug, until debuginfo distribution problems are
solved: https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=139767


- FChE

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Systemtap scripts unable to compile on RHEL4 U2
  2005-09-27 19:15 ` William Cohen
@ 2005-09-28  1:00   ` Vara Prasad
  0 siblings, 0 replies; 8+ messages in thread
From: Vara Prasad @ 2005-09-28  1:00 UTC (permalink / raw)
  To: William Cohen; +Cc: Keshavamurthy, Anil S, Guang Lei Li, systemtap

William Cohen wrote:

> Keshavamurthy, Anil S wrote:
>
> <...>
>
>> The above procedure is okay for the developers, but not advisable for
>> end users I think.
>> If Systemtap RPM is installed then all its dependencies should be met
>> else I think there is some bug and people get confused.
>
>
> Having a dependency on kernel-debuginfo is not going to work. It 
> breaks the way that the distribution set of rpms is computed. Red Hat 
> doesn't currently ship the kernel-debuginfo.
>
> Also there is no guarantee that the kernel-debuginfo installed is the 
> one for the kernel being instrumented. It is quite possible to get 
> messages saying "no match for probe point" even with a 
> kernel-debuginfo installed if it doesn't match the kernel being 
> instrumented.
>
> SystemTap should be a bit more vocal when it is unable to find any 
> debuginfo for the kernel being instrumented, rather than having the 
> developer determine whether the debug information is missing or 
> whether the developer mis-typed the function name.
>
> -Will
>
This brings up couple of questions.

1) Is it not a good idea as part of the very first check translator can 
do a version check between the debug info it is using and the version of 
the binary where it is going to insert probes?

2) If a customer upgrades the OS release how do we make sure the 
corresponding debug info matches without corresponding debug RPM's shipped.


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Systemtap scripts unable to compile on RHEL4 U2
  2005-09-27 18:18 Keshavamurthy, Anil S
@ 2005-09-27 19:15 ` William Cohen
  2005-09-28  1:00   ` Vara Prasad
  0 siblings, 1 reply; 8+ messages in thread
From: William Cohen @ 2005-09-27 19:15 UTC (permalink / raw)
  To: Keshavamurthy, Anil S; +Cc: Guang Lei Li, systemtap

Keshavamurthy, Anil S wrote:

<...>

> The above procedure is okay for the developers, but not advisable for
> end users I think.
> If Systemtap RPM is installed then all its dependencies should be met
> else I think there is some 
> bug and people get confused.

Having a dependency on kernel-debuginfo is not going to work. It breaks 
the way that the distribution set of rpms is computed. Red Hat doesn't 
currently ship the kernel-debuginfo.

Also there is no guarantee that the kernel-debuginfo installed is the 
one for the kernel being instrumented. It is quite possible to get 
messages saying "no match for probe point" even with a kernel-debuginfo 
installed if it doesn't match the kernel being instrumented.

SystemTap should be a bit more vocal when it is unable to find any 
debuginfo for the kernel being instrumented, rather than having the 
developer determine whether the debug information is missing or whether 
the developer mis-typed the function name.

-Will

^ permalink raw reply	[flat|nested] 8+ messages in thread

* RE: Systemtap scripts unable to compile on RHEL4 U2
@ 2005-09-27 18:18 Keshavamurthy, Anil S
  2005-09-27 19:15 ` William Cohen
  0 siblings, 1 reply; 8+ messages in thread
From: Keshavamurthy, Anil S @ 2005-09-27 18:18 UTC (permalink / raw)
  To: Guang Lei Li; +Cc: systemtap


Please see my comments below.

-Anil

>systemtap-owner@sources.redhat.com wrote on 2005-09-27 05:30:48:
>
>> Hi,
>>    I did a full install of the latest and greatest RHEL4
>> U2(2.6.9-20.ELsmp) 
>> on x86_64 box. Trying to compile a simple tap script and 
>seeing errors.
>> 
>> Parsed 'do_fork' -> func 'do_fork'
>> Semantic error: no match for probe point
>>    while: resolving probe point kernel.function("do_fork");
>> Pass 2: analysis failed. Try again ......
>> 
>> 
>> Am I missing anything here? Does this have any dependencies on
>> kernel-debuginfo RPM?
>> Also I did not find kernel-debuginfo RPM on RHEL4 U2 Beta CD's.
>> 
>
>You need kernel-debuginfo RPM.
>
>You can download the kernel src RPM package from 
>rhn.redhat.com, and then:
>  1. install the rpm package
>  2. build the rpm src package:  #cd /usr/src/redhat; rpmbuild -ba 
>SPECS/kernel-2.6.spec --target=x86_64
>    to save your time, you can edit 
>/usr/src/redhat/SPECS/kernel-2.6.spec 
>to comment one or more of the following defines:
>                #define buildup 0
>                #define buildsmp 1
>                #define buildsource 0
>                #define buildhugemem 0
>                #define builddoc 0
>                #define kabi 1
>   finally, rpmbuild will generate kernel-debuginfo, kernel, 
>kernel-devel 
>RPMs in /usr/src/redhat/RPMS/x86_64
>

The above procedure is okay for the developers, but not advisable for
end users I think.
If Systemtap RPM is installed then all its dependencies should be met
else I think there is some 
bug and people get confused.



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Systemtap scripts unable to compile on RHEL4 U2
  2005-09-26 21:30 Keshavamurthy, Anil S
  2005-09-26 22:23 ` Frank Ch. Eigler
@ 2005-09-27  1:31 ` Guang Lei Li
  1 sibling, 0 replies; 8+ messages in thread
From: Guang Lei Li @ 2005-09-27  1:31 UTC (permalink / raw)
  To: Keshavamurthy, Anil S; +Cc: systemtap

systemtap-owner@sources.redhat.com wrote on 2005-09-27 05:30:48:

> Hi,
>    I did a full install of the latest and greatest RHEL4
> U2(2.6.9-20.ELsmp) 
> on x86_64 box. Trying to compile a simple tap script and seeing errors.
> 
> Parsed 'do_fork' -> func 'do_fork'
> Semantic error: no match for probe point
>    while: resolving probe point kernel.function("do_fork");
> Pass 2: analysis failed. Try again ......
> 
> 
> Am I missing anything here? Does this have any dependencies on
> kernel-debuginfo RPM?
> Also I did not find kernel-debuginfo RPM on RHEL4 U2 Beta CD's.
> 

You need kernel-debuginfo RPM.

You can download the kernel src RPM package from rhn.redhat.com, and then:
  1. install the rpm package
  2. build the rpm src package:  #cd /usr/src/redhat; rpmbuild -ba 
SPECS/kernel-2.6.spec --target=x86_64
    to save your time, you can edit /usr/src/redhat/SPECS/kernel-2.6.spec 
to comment one or more of the following defines:
                #define buildup 0
                #define buildsmp 1
                #define buildsource 0
                #define buildhugemem 0
                #define builddoc 0
                #define kabi 1
   finally, rpmbuild will generate kernel-debuginfo, kernel, kernel-devel 
RPMs in /usr/src/redhat/RPMS/x86_64

> 
> Any help is highly appreciated.
> 
> Thanks,
> 
> -Anil Keshavamurthy
> Sr. Software Engineer
> Open Source Technology Center/SSG
> Intel Corp.
> (w) 503-712-4476

^ permalink raw reply	[flat|nested] 8+ messages in thread

* RE: Systemtap scripts unable to compile on RHEL4 U2
@ 2005-09-26 22:59 Keshavamurthy, Anil S
  0 siblings, 0 replies; 8+ messages in thread
From: Keshavamurthy, Anil S @ 2005-09-26 22:59 UTC (permalink / raw)
  To: fche; +Cc: systemtap

>I can make a copy informally available for
>download in a couple of hours.

I am using RHEL4 U2  on x86_64 with the kernel version 2.6.9-20.Elsmp,
Don't worry, I will build the debug kernel myself as I have the kernel
sources with me.

-thanks,
Anil









^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Systemtap scripts unable to compile on RHEL4 U2
  2005-09-26 21:30 Keshavamurthy, Anil S
@ 2005-09-26 22:23 ` Frank Ch. Eigler
  2005-09-27  1:31 ` Guang Lei Li
  1 sibling, 0 replies; 8+ messages in thread
From: Frank Ch. Eigler @ 2005-09-26 22:23 UTC (permalink / raw)
  To: Keshavamurthy, Anil S; +Cc: systemtap


"Keshavamurthy, Anil S" <anil.s.keshavamurthy@intel.com> writes:

> [...]
> Am I missing anything here? Does this have any dependencies on
> kernel-debuginfo RPM?

Yes.  Our release engineering folks requested that we remove the
explicit "kernel-debuginfo" dependency within the RPM.  Nevertheless,
you need it to make probes like yours work.

> Also I did not find kernel-debuginfo RPM on RHEL4 U2 Beta CD's.

Unfortunately, we're still trying to work out how best to distribute
these rather bulky files.  If you tell me your exact kernel
version/architecture, I can make a copy informally available for
download in a couple of hours.

- FChE

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Systemtap scripts unable to compile on RHEL4 U2
@ 2005-09-26 21:30 Keshavamurthy, Anil S
  2005-09-26 22:23 ` Frank Ch. Eigler
  2005-09-27  1:31 ` Guang Lei Li
  0 siblings, 2 replies; 8+ messages in thread
From: Keshavamurthy, Anil S @ 2005-09-26 21:30 UTC (permalink / raw)
  To: systemtap

Hi,
	I did a full install of the latest and greatest RHEL4
U2(2.6.9-20.ELsmp) 
on x86_64 box. Trying to compile a simple tap script and seeing errors.

Parsed 'do_fork' -> func 'do_fork'
Semantic error: no match for probe point
	while: resolving probe point kernel.function("do_fork");
Pass 2: analysis failed. Try again ......


Am I missing anything here? Does this have any dependencies on
kernel-debuginfo RPM?
Also I did not find kernel-debuginfo RPM on RHEL4 U2 Beta CD's.


Any help is highly appreciated.

Thanks,

-Anil Keshavamurthy
Sr. Software Engineer
Open Source Technology Center/SSG
Intel Corp.
(w) 503-712-4476

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2005-09-28 11:05 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-09-28 11:05 Systemtap scripts unable to compile on RHEL4 U2 Frank Ch. Eigler
  -- strict thread matches above, loose matches on Subject: below --
2005-09-27 18:18 Keshavamurthy, Anil S
2005-09-27 19:15 ` William Cohen
2005-09-28  1:00   ` Vara Prasad
2005-09-26 22:59 Keshavamurthy, Anil S
2005-09-26 21:30 Keshavamurthy, Anil S
2005-09-26 22:23 ` Frank Ch. Eigler
2005-09-27  1:31 ` Guang Lei Li

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).