From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28329 invoked by alias); 25 Jan 2010 12:13:47 -0000 Received: (qmail 28320 invoked by uid 22791); 25 Jan 2010 12:13:46 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 25 Jan 2010 12:13:42 +0000 Received: from int-mx03.intmail.prod.int.phx2.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.16]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o0PCDep9029389 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 25 Jan 2010 07:13:40 -0500 Received: from [127.0.0.1] (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx03.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o0PCDcS5004912; Mon, 25 Jan 2010 07:13:39 -0500 Subject: Re: ocfs2 functions probe not working like ext4 ones ? From: Mark Wielaard To: Damien HARDY Cc: "systemtap@sources.redhat.com" In-Reply-To: <331ECF9A0EF4164AB63D01FEE5E05FCA16BC7EE4AE@EXCHMBX.adencf.local> References: <331ECF9A0EF4164AB63D01FEE5E05FCA16BC7EE4AE@EXCHMBX.adencf.local> Content-Type: text/plain; charset="UTF-8" Date: Mon, 25 Jan 2010 12:13:00 -0000 Message-ID: <1264421618.4487.2.camel@springer.wildebeest.org> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Mailing-List: contact systemtap-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: systemtap-owner@sourceware.org X-SW-Source: 2010-q1/txt/msg00252.txt.bz2 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