This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: ocfs2 functions probe not working like ext4 ones ?
- From: Mark Wielaard <mjw at redhat dot com>
- To: Damien HARDY <Damien dot HARDY at adenclassifieds dot com>
- Cc: "systemtap at sources dot redhat dot com" <systemtap at sources dot redhat dot com>
- Date: Mon, 25 Jan 2010 13:13:38 +0100
- Subject: Re: ocfs2 functions probe not working like ext4 ones ?
- References: <331ECF9A0EF4164AB63D01FEE5E05FCA16BC7EE4AE@EXCHMBX.adencf.local>
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