This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE : ocfs2 functions probe not working like ext4 ones ?


________________________________________
De : Mark Wielaard [mjw@redhat.com]
Date d'envoi : lundi 25 janvier 2010 13:13
À : Damien HARDY
Cc : systemtap@sources.redhat.com
Objet : Re: ocfs2 functions probe not working like ext4 ones ?

> > On Mon, 2010-01-25 at 12:41 +0100, Damien HARDY wrote:
> > So I try to do some changelog for some filesystem under ocfs2.
> > I add probe on the function "ocfs2_create" in the file
> > "fs/ocfs2/namei.c" to log creation of a new file.
> > [...]
> > When I execute this script I get the error :
> >    semantic error: no match while resolving probe point
> > kernel.function("ocfs2_create@fs/ocfs2/namei.c")
> >
> > I have done some test for ext4 based filesystem and the analog script
> > work well ... I get the name of the file "test" I created on the ext4
> > filesystem.

> The difference might be that ext4 is compiled into the kernel, but ocfs2
> is build as a module. If so change kernel.function to module.function:
> probe module.function("ocfs2_create@fs/ocfs2/namei.c")

> Also, you don't need to give the source file name explicitly, stap
> should be able to figure that out itself:
> probe module.function("ocfs2_create")

> Cheers,

> Mark

Thank you for answers Mark and Eugeniy,

I change my script with :
   probe module("ocfs2").function("ocfs2_create")

Now the error is :
WARNING: cannot find module ocfs2 debuginfo: No DWARF information found
semantic error: no match while resolving probe point module("ocfs2").function("ocfs2_create")


I run on ubuntu 9.10, kernel recompiled (default options, just creation of /CurrentlyBuilding) to get the "debug" kernel image :
root@acblock01:~# dpkg -l linux-image* | grep `uname -r`
ii  linux-image-2.6.31-17-server       2.6.31-17.54                      Linux kernel image for version 2.6.31 on x86
ii  linux-image-debug-2.6.31-17-server 2.6.31-17.54                      Linux kernel debug image for version 2.6.31

the linux-image-debug contains files about ocfs2 :
root@acblock01:~# dpkg -L linux-image-debug-2.6.31-17-server | grep ocfs2
/usr/lib/debug/lib/modules/2.6.31-17-server/kernel/fs/ocfs2
/usr/lib/debug/lib/modules/2.6.31-17-server/kernel/fs/ocfs2/ocfs2_stackglue.ko
/usr/lib/debug/lib/modules/2.6.31-17-server/kernel/fs/ocfs2/dlm
/usr/lib/debug/lib/modules/2.6.31-17-server/kernel/fs/ocfs2/dlm/ocfs2_dlmfs.ko
/usr/lib/debug/lib/modules/2.6.31-17-server/kernel/fs/ocfs2/dlm/ocfs2_dlm.ko
/usr/lib/debug/lib/modules/2.6.31-17-server/kernel/fs/ocfs2/ocfs2_stack_o2cb.ko
/usr/lib/debug/lib/modules/2.6.31-17-server/kernel/fs/ocfs2/cluster
/usr/lib/debug/lib/modules/2.6.31-17-server/kernel/fs/ocfs2/cluster/ocfs2_nodemanager.ko
/usr/lib/debug/lib/modules/2.6.31-17-server/kernel/fs/ocfs2/ocfs2.ko
/usr/lib/debug/lib/modules/2.6.31-17-server/kernel/fs/ocfs2/ocfs2_stack_user.ko

What's wrong ?

Cheers

-- 
Damien


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]