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 ?


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


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