From owner-freebsd-current@FreeBSD.ORG Fri Nov 28 16:21:43 2008 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E498D106564A; Fri, 28 Nov 2008 16:21:43 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from redbull.bpaserver.net (redbullneu.bpaserver.net [213.198.78.217]) by mx1.freebsd.org (Postfix) with ESMTP id 92DE68FC14; Fri, 28 Nov 2008 16:21:43 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from outgoing.leidinger.net (pD9E2CE0A.dip.t-dialin.net [217.226.206.10]) by redbull.bpaserver.net (Postfix) with ESMTP id CFEDB2E1FB; Fri, 28 Nov 2008 17:21:35 +0100 (CET) Received: from webmail.leidinger.net (webmail.leidinger.net [192.168.1.102]) by outgoing.leidinger.net (Postfix) with ESMTP id 5F93C18721; Fri, 28 Nov 2008 17:21:27 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=Leidinger.net; s=outgoing-alex; t=1227889287; bh=zYE1obnN3hypoy9K5972k8Xitj8GjhnAP hCK+44JRRk=; h=Message-ID:Date:From:To:Cc:Subject:References: In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=SgIRBkbI8msTTPQbDlutV9Wq+84sfWJhuGsLgKARsGp7eEPmhJQjrzp50owmM2Kfq E+jMjemQYu8Y6xkfo8mBNGhG30lL4gLXjQEyAJvILO4TVKCaZQvjZHt4/+z8mRof+Fw k61N8kMTidYEHaHUf0nJVNnVTNSsMXPiDRN+z143UBZPsOrvvCszWDv3KgXl2HCSkCL pCVw+QjmCndAnHKdN8VqQ55P0B0IIN3owGyQ4epQIf9WsTxIue3WTMpVmAoYRNSKYlx w59FA5yelwU1jHVBPryoKPNlrtfl4pGLsoUIt684+Sm80IUlp31o/i9zJcpaJAvDORW fycbevYWA== Received: (from www@localhost) by webmail.leidinger.net (8.14.2/8.13.8/Submit) id mASGLRAr057286; Fri, 28 Nov 2008 17:21:27 +0100 (CET) (envelope-from Alexander@Leidinger.net) Received: from pslux.cec.eu.int (pslux.cec.eu.int [158.169.9.14]) by webmail.leidinger.net (Horde Framework) with HTTP; Fri, 28 Nov 2008 17:21:26 +0100 Message-ID: <20081128172126.453467ea7w6jb5c8@webmail.leidinger.net> X-Priority: 3 (Normal) Date: Fri, 28 Nov 2008 17:21:26 +0100 From: Alexander Leidinger To: Ivan Voras References: <20081128154514.82247fe47bn83lkw@webmail.leidinger.net> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) H3 (4.3) / FreeBSD-8.0 X-BPAnet-MailScanner-Information: Please contact the ISP for more information X-MailScanner-ID: CFEDB2E1FB.83E11 X-BPAnet-MailScanner: Found to be clean X-BPAnet-MailScanner-SpamCheck: not spam, ORDB-RBL, SpamAssassin (not cached, score=-14.9, required 6, BAYES_00 -15.00, DKIM_SIGNED 0.00, DKIM_VERIFIED -0.00, RDNS_DYNAMIC 0.10) X-BPAnet-MailScanner-From: alexander@leidinger.net X-Spam-Status: No Cc: freebsd-current@freebsd.org Subject: Re: HOWTO in wiki: adding custom dtrace probes in the kernel X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Nov 2008 16:21:44 -0000 Quoting Ivan Voras (from Fri, 28 Nov 2008 15:59:23 +0100): > Can you document a bit more the construction of the probe: > > SDT_PROBE_DEFINE(foobar, source_file1, foo, entry); > SDT_PROBE_ARGTYPE(foobar, source_file1, foo, entry, 0, "int"); > SDT_PROBE_ARGTYPE(foobar, source_file1, foo, entry, 1, "const char *"); > SDT_PROBE_DEFINE(foobar, source_file1, foo, return); > SDT_PROBE_ARGTYPE(foobar, source_file1, foo, return, 0, "int"); > > What is the meaning of "source_file1" and "foo"? In case you reloaded the wiki page and it does not contain a reference to GEOM, reload it again. I added GEOM as an example how the module name could be constructed. BTW: Everyone is invited to improve the page. Bye, Alexander. -- Money may buy friendship but money cannot buy love. http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137