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

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