public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* Problem with modules
@ 2006-08-03 22:26 Ranieri Romera
  2006-08-04  1:02 ` Frank Ch. Eigler
  0 siblings, 1 reply; 4+ messages in thread
From: Ranieri Romera @ 2006-08-03 22:26 UTC (permalink / raw)
  To: systemtap

Hi,

I´m trying to write a systemtap to get informtation about
nfs module, but the stap return a semantic problem :(

I can get the information of the kernel.fuction("*"), but if I
modules ip_tables, nfs, ext3 and other, always return a semantic error

Any idea how to make it work ? Is missing anything ?

TIA,

Ranieri

[root@alcala ~]# stap -p2 -e 'probe 
module("nfs").function("*") {}' -vvv
Created temporary directory "/tmp/stapLg0z8M"
Searched 
'/usr/share/systemtap/tapset/2.6.9-34.EL.tlxsmp/i686/*.stp', match count 0
Searched '/usr/share/systemtap/tapset/2.6.9-34.EL.tlxsmp/*.stp', match count 0
Searched '/usr/share/systemtap/tapset/2.6.9/i686/*.stp', match count 0
Searched '/usr/share/systemtap/tapset/2.6.9/*.stp', match count 0
Searched '/usr/share/systemtap/tapset/2.6/i686/*.stp', match count 0
Searched '/usr/share/systemtap/tapset/2.6/*.stp', match count 0
Searched '/usr/share/systemtap/tapset/i686/*.stp', match count 1
Searched '/usr/share/systemtap/tapset/*.stp', match count 10
Pass 1: parsed user script and 11 library script(s) in 90usr/0sys/92real ms.
parsed '*' -> func '*'
pattern 'nfs' matches module 'nfs'
focused on module 'nfs' = [f8ac7000-f8afa329, bias 0]
semantic error: cannot find module nfs debuginfo: invalid section index
semantic error: no match for probe point
          while: resolving probe point module("nfs").function("*")
Pass 2: analyzed script: 0 probe(s), 0 
function(s), 0 global(s) in 0usr/0sys/7real ms.
Pass 2: analysis failed.
Running rm -rf /tmp/stapLg0z8M



[root@alcala ~]# stap -p2 -e 'probe 
module("nfs").function("nfs_readdir") {}' -vvv
Created temporary directory "/tmp/stapzoDjLO"
Searched 
'/usr/share/systemtap/tapset/2.6.9-34.EL.tlxsmp/i686/*.stp', match count 0
Searched '/usr/share/systemtap/tapset/2.6.9-34.EL.tlxsmp/*.stp', match count 0
Searched '/usr/share/systemtap/tapset/2.6.9/i686/*.stp', match count 0
Searched '/usr/share/systemtap/tapset/2.6.9/*.stp', match count 0
Searched '/usr/share/systemtap/tapset/2.6/i686/*.stp', match count 0
Searched '/usr/share/systemtap/tapset/2.6/*.stp', match count 0
Searched '/usr/share/systemtap/tapset/i686/*.stp', match count 1
Searched '/usr/share/systemtap/tapset/*.stp', match count 10
Pass 1: parsed user script and 11 library script(s) in 80usr/0sys/92real ms.
parsed 'nfs_readdir' -> func 'nfs_readdir'
pattern 'nfs' matches module 'nfs'
focused on module 'nfs' = [f8ac7000-f8afa329, bias 0]
semantic error: cannot find module nfs debuginfo: invalid section index
semantic error: no match for probe point
          while: resolving probe point module("nfs").function("nfs_readdir")
Pass 2: analyzed script: 0 probe(s), 0 
function(s), 0 global(s) in 10usr/0sys/7real ms.
Pass 2: analysis failed.
Running rm -rf /tmp/stapzoDjLO



[root@alcala ~]# stap -p2 -e 'probe 
module("ext3").function("*") {}' -vvv
Created temporary directory "/tmp/stapiILye6"
Searched 
'/usr/share/systemtap/tapset/2.6.9-34.EL.tlxsmp/i686/*.stp', match count 0
Searched '/usr/share/systemtap/tapset/2.6.9-34.EL.tlxsmp/*.stp', match count 0
Searched '/usr/share/systemtap/tapset/2.6.9/i686/*.stp', match count 0
Searched '/usr/share/systemtap/tapset/2.6.9/*.stp', match count 0
Searched '/usr/share/systemtap/tapset/2.6/i686/*.stp', match count 0
Searched '/usr/share/systemtap/tapset/2.6/*.stp', match count 0
Searched '/usr/share/systemtap/tapset/i686/*.stp', match count 1
Searched '/usr/share/systemtap/tapset/*.stp', match count 10
Pass 1: parsed user script and 11 library script(s) in 90usr/0sys/91real ms.
parsed '*' -> func '*'
pattern 'ext3' matches module 'ext3'
focused on module 'ext3' = [f88a0000-f88bcfc9, bias 0]
semantic error: cannot find module ext3 
debuginfo: relocation refers to undefined symbol
semantic error: no match for probe point
          while: resolving probe point module("ext3").function("*")
Pass 2: analyzed script: 0 probe(s), 0 
function(s), 0 global(s) in 0usr/0sys/8real ms.
Pass 2: analysis failed.
Running rm -rf /tmp/stapiILye6
[root@alcala ~]#

Working with kernel

[root@alcala ~]# stap -p2 -e 'probe 
module("kernel").function("sys_get_thread_area") {}' -vvv
Created temporary directory "/tmp/stapS8ngaj"
Searched 
'/usr/share/systemtap/tapset/2.6.9-34.EL.tlxsmp/i686/*.stp', match count 0
Searched '/usr/share/systemtap/tapset/2.6.9-34.EL.tlxsmp/*.stp', match count 0
Searched '/usr/share/systemtap/tapset/2.6.9/i686/*.stp', match count 0
Searched '/usr/share/systemtap/tapset/2.6.9/*.stp', match count 0
Searched '/usr/share/systemtap/tapset/2.6/i686/*.stp', match count 0
Searched '/usr/share/systemtap/tapset/2.6/*.stp', match count 0
Searched '/usr/share/systemtap/tapset/i686/*.stp', match count 1
Searched '/usr/share/systemtap/tapset/*.stp', match count 10
Pass 1: parsed user script and 11 library script(s) in 90usr/0sys/92real ms.
parsed 'sys_get_thread_area' -> func 'sys_get_thread_area'
pattern 'kernel' matches module 'kernel'
focused on module 'kernel' = [c0100000-c046d9bc, bias 0]
pattern 'sys_get_thread_area' matches function 'sys_get_thread_area'
selected function sys_get_thread_area
finding prologue for 'sys_get_thread_area' entrypc=0xc0104c91 highpc=0xc0104df3
# probes
kernel.function("sys_get_thread_area@arch/i386/kernel/process.c:844")
{
}
Pass 2: analyzed script: 1 probe(s), 0 
function(s), 0 global(s) in 160usr/20sys/185real ms.
Running rm -rf /tmp/stapS8ngaj

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

* Re: Problem with modules
  2006-08-03 22:26 Problem with modules Ranieri Romera
@ 2006-08-04  1:02 ` Frank Ch. Eigler
  2006-08-04 19:19   ` Ranieri Romera
  0 siblings, 1 reply; 4+ messages in thread
From: Frank Ch. Eigler @ 2006-08-04  1:02 UTC (permalink / raw)
  To: Ranieri Romera; +Cc: systemtap

Ranieri Romera <rromera@terra.com.br> writes:

> [...] I can get the information of the kernel.fuction("*"), but if I
> modules ip_tables, nfs, ext3 and other, always return a semantic
> error [...]

This suggests a problem with the modules' debugging information, or
with systemtap's attempts to process it.  There is a known
elfutils-related problem that may kick in if systemtap is installed in
an unusual place, and LD_LIBRARY_PATH is unset.

By the way, the wiki page http://sourceware.org/systemtap/wiki/HowToReportBugs
will gradually contain more relevant advice about such problems.  Nevertheless,
including basic data like "stap -V" is good general practice.

- FChE

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

* Re: Problem with modules
  2006-08-04  1:02 ` Frank Ch. Eigler
@ 2006-08-04 19:19   ` Ranieri Romera
  2006-08-04 22:24     ` Frank Ch. Eigler
  0 siblings, 1 reply; 4+ messages in thread
From: Ranieri Romera @ 2006-08-04 19:19 UTC (permalink / raw)
  To: Frank Ch. Eigler; +Cc: systemtap

At 22:02 3/8/2006, Frank Ch. Eigler wrote:
>Ranieri Romera <rromera@terra.com.br> writes:
>
> > [...] I can get the information of the kernel.fuction("*"), but if I
> > modules ip_tables, nfs, ext3 and other, always return a semantic
> > error [...]
>
>This suggests a problem with the modules' debugging information, or
>with systemtap's attempts to process it.  There is a known
>elfutils-related problem that may kick in if systemtap is installed in
>an unusual place, and LD_LIBRARY_PATH is unset.
>
>By the way, the wiki page http://sourceware.org/systemtap/wiki/HowToReportBugs
>will gradually contain more relevant advice 
>about such problems.  Nevertheless,
>including basic data like "stap -V" is good general practice.
>
>- FChE

In first test I´m using the elfutil 0.97-7 (the version provided in RHAS4).
After this response I get the version 0.122-0.4 and get the same error.

[root@alcala ~]# stap -p2 -e 'probe 
module("nfs").function("nfs_readdir") {}' -vvv
Created temporary directory "/tmp/stapVj0t29"
Searched 
'/usr/share/systemtap/tapset/2.6.9-34.EL.tlxsmp/i686/*.stp', match count 0
Searched '/usr/share/systemtap/tapset/2.6.9-34.EL.tlxsmp/*.stp', match count 0
Searched '/usr/share/systemtap/tapset/2.6.9/i686/*.stp', match count 0
Searched '/usr/share/systemtap/tapset/2.6.9/*.stp', match count 0
Searched '/usr/share/systemtap/tapset/2.6/i686/*.stp', match count 0
Searched '/usr/share/systemtap/tapset/2.6/*.stp', match count 0
Searched '/usr/share/systemtap/tapset/i686/*.stp', match count 1
Searched '/usr/share/systemtap/tapset/*.stp', match count 10
Pass 1: parsed user script and 11 library script(s) in 90usr/0sys/92real ms.
parsed 'nfs_readdir' -> func 'nfs_readdir'
pattern 'nfs' matches module 'nfs'
focused on module 'nfs' = [f8ac7000-f8afa329, bias 0]
semantic error: cannot find module nfs debuginfo: invalid section index
semantic error: no match for probe point
          while: resolving probe point module("nfs").function("nfs_readdir")
Pass 2: analyzed script: 0 probe(s), 0 
function(s), 0 global(s) in 0usr/0sys/8real ms.
Pass 2: analysis failed.
Running rm -rf /tmp/stapVj0t29
[root@alcala ~]#

See more information obout my environment:

[root@alcala ~]# rpm -qi systemtap
Name        : systemtap                    Relocations: (not relocatable)
Version     : 0.5.4                             Vendor: Terra
Release     : 0.EL4                         Build 
Date: Fri 07 Apr 2006 05:44:30 PM BRT
Install Date: Wed 02 Aug 2006 06:30:06 PM 
BRT      Build Host: mueru.terra.com.br
Group       : 
Development/System            Source RPM: systemtap-0.5.4-0.EL4.src.rpm
Size        : 1598199                          License: GPL
Signature   : DSA/SHA1, Wed 12 Apr 2006 03:26:52 
PM BRT, Key ID e99a23e1b2b8f4b0
Packager    : Terra Linux <trratlas@terra.com.br>
URL         : http://sourceware.org/systemtap/
Summary     : Instrumentation System
Description :
SystemTap is an instrumentation system for systems running Linux 2.6.
Developers can write instrumentation to collect data on the operation
of the system.

[root@alcala ~]# stap -V
SystemTap translator/driver (version 0.5.4 built 2006-04-07)
Copyright (C) 2005-2006 Red Hat, Inc. and others
This is free software; see the source for copying conditions.
[root@alcala ~]#

[root@alcala ~]# rpm -ql systemtap |while read 
line ; do if [ -d "${line}" ] ; then echo "${line}" ; fi ; done
/usr/lib/systemtap
/usr/share/doc/systemtap-0.5.4
/usr/share/systemtap
/usr/share/systemtap/runtime
/usr/share/systemtap/runtime/probes
/usr/share/systemtap/runtime/probes/agg
/usr/share/systemtap/runtime/probes/bench
/usr/share/systemtap/runtime/probes/os_timer
/usr/share/systemtap/runtime/probes/scf
/usr/share/systemtap/runtime/probes/shellsnoop
/usr/share/systemtap/runtime/probes/tasklet
/usr/share/systemtap/runtime/probes/test4
/usr/share/systemtap/runtime/probes/where_func
/usr/share/systemtap/runtime/relayfs
/usr/share/systemtap/runtime/relayfs/linux
/usr/share/systemtap/runtime/transport
/usr/share/systemtap/tapset
/usr/share/systemtap/tapset/i686
/usr/share/systemtap/tapset/x86_64
/var/cache/systemtap
[root@alcala ~]#

[root@alcala ~]# echo -e 
"\npath=[${PATH}]\n\nld-library-path=[${LD_LIBRARY_PATH}]\n"

path=[/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin]

ld-library-path=[]

[root@alcala ~]#

[root@alcala ~]# locate stap
/usr/share/man/man1/stap.1.gz
/usr/share/man/man5/stapprobes.5.gz
/usr/share/man/man5/stapfuncs.5.gz
/usr/share/man/man5/stapex.5.gz
/usr/bin/stap
[root@alcala ~]#

[root@alcala ~]# gcc --version
gcc (GCC) 3.4.5 20051201 (Red Hat 3.4.5-2)
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

[root@alcala ~]#

[root@alcala ~]# uname -a
Linux alcala.hst.terra.com.br 2.6.9-34.EL.tlxsmp 
#1 SMP Sat Mar 18 22:05:04 BRT 2006 i686 i686 i386 GNU/Linux
[root@alcala ~]#

[root@alcala ~]# dmesg |head
Linux version 2.6.9-34.EL.tlxsmp 
(tlx@mueru.terra.com.br) (gcc version 3.4.5 
20051201 (Red Hat 3.4.5-2)) #1 SMP Sat Mar 18 22:05:04 BRT 2006
BIOS-provided physical RAM map:
  BIOS-e820: 0000000000000000 - 00000000000a0000 (usable)
  BIOS-e820: 0000000000100000 - 00000000cfbc0000 (usable)
  BIOS-e820: 00000000cfbc0000 - 00000000cfbcfc00 (ACPI data)
  BIOS-e820: 00000000cfbcfc00 - 00000000cfbff000 (reserved)
  BIOS-e820: 00000000cfc00000 - 00000000d0000000 (reserved)
  BIOS-e820: 00000000e0000000 - 00000000fec90000 (reserved)
  BIOS-e820: 00000000fed00000 - 00000000fed00400 (reserved)
  BIOS-e820: 00000000fee00000 - 00000000fee10000 (reserved)
[root@alcala ~]#

The machine is a dell 6850 (i686) with 4 
processors (SMP) HT enable, and 8G of ram.

[root@alcala ~]# cat /proc/cpuinfo
processor       : 0
vendor_id       : GenuineIntel
cpu family      : 15
model           : 4
model name      : Intel(R) Xeon(TM) MP CPU 3.33GHz
stepping        : 1
cpu MHz         : 3325.665
cache size      : 1024 KB
physical id     : 0
siblings        : 2
core id         : 0
cpu cores       : 1
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 5
wp              : yes
flags           : fpu vme de pse tsc msr pae mce 
cx8 apic sep mtrr pge mca cmov pat pse36 clflush 
dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm pni 
monitor ds_cpl est tm2 cid xtpr
bogomips        : 6655.64

processor       : 1
vendor_id       : GenuineIntel
cpu family      : 15
model           : 4
model name      : Intel(R) Xeon(TM) MP CPU 3.33GHz
stepping        : 1
cpu MHz         : 3325.665
cache size      : 1024 KB
physical id     : 0
siblings        : 2
core id         : 0
cpu cores       : 1
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 5
wp              : yes
flags           : fpu vme de pse tsc msr pae mce 
cx8 apic sep mtrr pge mca cmov pat pse36 clflush 
dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm pni 
monitor ds_cpl est tm2 cid xtpr
bogomips        : 6650.15

processor       : 2
vendor_id       : GenuineIntel
cpu family      : 15
model           : 4
model name      : Intel(R) Xeon(TM) MP CPU 3.33GHz
stepping        : 1
cpu MHz         : 3325.665
cache size      : 1024 KB
physical id     : 3
siblings        : 2
core id         : 3
cpu cores       : 1
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 5
wp              : yes
flags           : fpu vme de pse tsc msr pae mce 
cx8 apic sep mtrr pge mca cmov pat pse36 clflush 
dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm pni 
monitor ds_cpl est tm2 cid xtpr
bogomips        : 6650.30

processor       : 3
vendor_id       : GenuineIntel
cpu family      : 15
model           : 4
model name      : Intel(R) Xeon(TM) MP CPU 3.33GHz
stepping        : 1
cpu MHz         : 3325.665
cache size      : 1024 KB
physical id     : 3
siblings        : 2
core id         : 3
cpu cores       : 1
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 5
wp              : yes
flags           : fpu vme de pse tsc msr pae mce 
cx8 apic sep mtrr pge mca cmov pat pse36 clflush 
dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm pni 
monitor ds_cpl est tm2 cid xtpr
bogomips        : 6650.37

processor       : 4
vendor_id       : GenuineIntel
cpu family      : 15
model           : 4
model name      : Intel(R) Xeon(TM) MP CPU 3.33GHz
stepping        : 1
cpu MHz         : 3325.665
cache size      : 1024 KB
physical id     : 4
siblings        : 2
core id         : 4
cpu cores       : 1
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 5
wp              : yes
flags           : fpu vme de pse tsc msr pae mce 
cx8 apic sep mtrr pge mca cmov pat pse36 clflush 
dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm pni 
monitor ds_cpl est tm2 cid xtpr
bogomips        : 6650.43

processor       : 5
vendor_id       : GenuineIntel
cpu family      : 15
model           : 4
model name      : Intel(R) Xeon(TM) MP CPU 3.33GHz
stepping        : 1
cpu MHz         : 3325.665
cache size      : 1024 KB
physical id     : 4
siblings        : 2
core id         : 4
cpu cores       : 1
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 5
wp              : yes
flags           : fpu vme de pse tsc msr pae mce 
cx8 apic sep mtrr pge mca cmov pat pse36 clflush 
dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm pni 
monitor ds_cpl est tm2 cid xtpr
bogomips        : 6650.58

processor       : 6
vendor_id       : GenuineIntel
cpu family      : 15
model           : 4
model name      : Intel(R) Xeon(TM) MP CPU 3.33GHz
stepping        : 1
cpu MHz         : 3325.665
cache size      : 1024 KB
physical id     : 7
siblings        : 2
core id         : 7
cpu cores       : 1
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 5
wp              : yes
flags           : fpu vme de pse tsc msr pae mce 
cx8 apic sep mtrr pge mca cmov pat pse36 clflush 
dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm pni 
monitor ds_cpl est tm2 cid xtpr
bogomips        : 6650.53

processor       : 7
vendor_id       : GenuineIntel
cpu family      : 15
model           : 4
model name      : Intel(R) Xeon(TM) MP CPU 3.33GHz
stepping        : 1
cpu MHz         : 3325.665
cache size      : 1024 KB
physical id     : 7
siblings        : 2
core id         : 7
cpu cores       : 1
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 5
wp              : yes
flags           : fpu vme de pse tsc msr pae mce 
cx8 apic sep mtrr pge mca cmov pat pse36 clflush 
dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm pni 
monitor ds_cpl est tm2 cid xtpr
bogomips        : 6579.30


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

* Re: Problem with modules
  2006-08-04 19:19   ` Ranieri Romera
@ 2006-08-04 22:24     ` Frank Ch. Eigler
  0 siblings, 0 replies; 4+ messages in thread
From: Frank Ch. Eigler @ 2006-08-04 22:24 UTC (permalink / raw)
  To: Ranieri Romera; +Cc: systemtap

[-- Attachment #1: Type: text/plain, Size: 1307 bytes --]

Hi -

Ranieri Romera <rromera@terra.com.br> wrote:

> [...] focused on module 'nfs' =3D [f8ac7000-f8afa329, bias 0]
> semantic error: cannot find module nfs debuginfo: invalid section index
> semantic error: no match for probe point
>          while: resolving probe point module("nfs").function("nfs_readdir")
> [...]

> Name        : systemtap                    Relocations: (not relocatable)
> Version     : 0.5.4                             Vendor: Terra
> Release     : 0.EL4                         Build=20
> [...]

This is a rather old snapshot, and upgrading system elfutils won't do
anything for systemtap (since it contains its own copy internally).
This may help: try "LD_LIBRARY_PATH=/usr/lib/systemtap".
If it does not, you may need strace the I/O attempted by the
stap process, to see if it is finding the debugging information,
and whether it's finding the elfutils auxiliary shared libraries.

If these all fail, you may wish to try with a newer snapshot.  You may
find a usable .src.rpm in fedora someplace, or build your own directly
from CVS sources.


> gcc (GCC) 3.4.5 20051201 (Red Hat 3.4.5-2)
> [...]
> Linux alcala.hst.terra.com.br 2.6.9-34.EL.tlxsmp=20
> [...]

Ah, this appears to be an RHEL rebuild with good taste in
compilers/kernels.  These should not be a problem.

- FChE

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

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

end of thread, other threads:[~2006-08-04 22:24 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-08-03 22:26 Problem with modules Ranieri Romera
2006-08-04  1:02 ` Frank Ch. Eigler
2006-08-04 19:19   ` Ranieri Romera
2006-08-04 22:24     ` Frank Ch. Eigler

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).