List Info

Thread: systemtap, anyone?




systemtap, anyone?
user name
2007-08-01 09:55:20
Has anyone tried to use systemtap on SUSE SLES10? I was able
to run a
simple "hello world" script but I always get
errors when trying to
access kernel functions. For example, this script:

<<<
global reads

probe begin {
  printf("probe beginningn")
}

probe syscall.read {
  reads [execname()] <<< count
}

probe end {
  foreach (prog_name in reads) {
    printf("Name: %s, # Reads: %d, Total Bytes: %d,
Avg: %dn",
            prog_name, count(reads[prog_name]),
            sum(reads[prog_name]), avg(reads[prog_name]))
  }
}
>>>

Gives the following error:

semantic error: libdwfl failure
(dwfl_linux_kernel_report_offline): No
such file or directory while resolving probe point
kernel.function("sys_read")
semantic error: no match for probe point while resolving
probe point
syscall.read
Pass 2: analysis failed.  Try again with more '-v' (verbose)
options.

Am I missing some package?

Thank you. Kind regards,

-- 
Cristian Veronesi - C.R.P.A. S.p.A. - Reggio Emilia, Italy

I dieci comandamenti dell'E-Mail: http://it.wik
ipedia.org/wiki/Netiquette

-- 
To unsubscribe, email: suse-oracle-unsubscribesuse.com
For additional commands, email: suse-oracle-helpsuse.com
Please see http://www.suse.com/oracl
e/ before posting


Re: systemtap, anyone?
user name
2007-08-01 14:11:01
Hi Cristian,

Check If you have installed kernel debuginfo
(kernel-default-debuginfo-*.rpm) package. 

PS: suse-sles-esuse.com has better experts for these
types of questions.

-Arun

>>> On 8/1/2007 at 7:55 AM, Cristian Veronesi
<c.veronesicrpa.it> wrote:
> Has anyone tried to use systemtap on SUSE SLES10? I was
able to run a
> simple "hello world" script but I always get
errors when trying to
> access kernel functions. For example, this script:
> 
> <<<
> global reads
> 
> probe begin {
>   printf("probe beginningn")
> }
> 
> probe syscall.read {
>   reads [execname()] <<< count
> }
> 
> probe end {
>   foreach (prog_name in reads) {
>     printf("Name: %s, # Reads: %d, Total Bytes:
%d, Avg: %dn",
>             prog_name, count(reads[prog_name]),
>             sum(reads[prog_name]), avg(reads[prog_name]))
>   }
> }
>>>>
> 
> Gives the following error:
> 
> semantic error: libdwfl failure
(dwfl_linux_kernel_report_offline): No
> such file or directory while resolving probe point
> kernel.function("sys_read")
> semantic error: no match for probe point while
resolving probe point
> syscall.read
> Pass 2: analysis failed.  Try again with more '-v'
(verbose) options.
> 
> Am I missing some package?
> 
> Thank you. Kind regards,





--
To unsubscribe, email: suse-oracle-unsubscribesuse.com
For additional commands, email: suse-oracle-helpsuse.com
Please see http://www.suse.com/oracl
e/ before posting


Re: systemtap, anyone?
user name
2007-08-02 03:01:33
Arun Singh wrote:

> Hi Cristian,

Hello Arun,

> Check If you have installed kernel debuginfo
(kernel-default-debuginfo-*.rpm) package. 

Where can I find this package? It's not present in the yast2
repository.

> PS: suse-sles-esuse.com has better experts for these
types of questions.

Just a typing mistake, sorry....

Thank you. Kind regards,

-- 
Cristian Veronesi - C.R.P.A. S.p.A. - Reggio Emilia, Italy

I dieci comandamenti dell'E-Mail: http://it.wik
ipedia.org/wiki/Netiquette

-- 
To unsubscribe, email: suse-oracle-unsubscribesuse.com
For additional commands, email: suse-oracle-helpsuse.com
Please see http://www.suse.com/oracl
e/ before posting


Re: systemtap, anyone?
user name
2007-08-02 09:59:25
Hi Cristian,

>>> On 8/2/2007 at 1:01 AM, Cristian Veronesi
<c.veronesicrpa.it> wrote:
...
>> Check If you have installed kernel debuginfo
(kernel-default-debuginfo-*.rpm) 
> package. 
> 
> Where can I find this package? It's not present in the
yast2 repository.

Try following document to add debuginfo channel (Doc ID:
3074997):

 http://
www.novell.com/support/search.do?cmd=displayKC&docType=k
c&externalId=3074997&sliceId=SAL_Public&dialogID
=42376113&stateId=0%200%2042372780 

Regards,
Arun


--
To unsubscribe, email: suse-oracle-unsubscribesuse.com
For additional commands, email: suse-oracle-helpsuse.com
Please see http://www.suse.com/oracl
e/ before posting


[1-4]

about | contact  Other archives ( Real Estate discussion Medical topics )