From owner-freebsd-current@FreeBSD.ORG Sat Nov 29 17:44:40 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 66CF31065670; Sat, 29 Nov 2008 17:44:40 +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 1296A8FC08; Sat, 29 Nov 2008 17:44:39 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from outgoing.leidinger.net (pD9E2CD6C.dip.t-dialin.net [217.226.205.108]) by redbull.bpaserver.net (Postfix) with ESMTP id EA5902E0B5; Sat, 29 Nov 2008 18:44:33 +0100 (CET) Received: from deskjail (deskjail.Leidinger.net [192.168.1.109]) by outgoing.leidinger.net (Postfix) with ESMTP id 2166D29AC; Sat, 29 Nov 2008 18:44:27 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=Leidinger.net; s=outgoing-alex; t=1227980667; bh=yGlqrR7BmE2rQs9NkJkIqeaDy2uKdjxMc W6gVUg+tRM=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To: References:Mime-Version:Content-Type:Content-Transfer-Encoding; b=3afFuCT0XFswapMK9qFa8IHycGtAtc3qCU0S/I3Tfqxt3TCB5qHJEiRH0DhFwYEbN ToeyDFPs7Y63eUZ+EUQ0JAzCA1uCURQq3wQ8PRLbIvE0zq8OSG5MmD6xmGWmQhqOC8T Ae+2u4hnUn26oUAZ2o4NBISIEvgn8aQh1BMs0sh/jCXakfwpVXvezwYj33McqT929k/ UtKlHHncHyVS2csn+/PeVziQCUiySrhpWHnmuR4ZR2/PbsQ4+OcfbjBcKvcNikpVbnE KcC2DaQrchvj5pRUXiiptMwUlus95xzt9E2vrXVSyc59bGXOI/aF/iSXODbPr9usLe7 WvIwpRrfg== Date: Sat, 29 Nov 2008 18:44:31 +0100 From: Alexander Leidinger To: "Marius =?UTF-8?B?TsO8bm5lcmljaA==?=" Message-ID: <20081129184431.7a201a3a@deskjail> In-Reply-To: References: <20081128154514.82247fe47bn83lkw@webmail.leidinger.net> <20081128172126.453467ea7w6jb5c8@webmail.leidinger.net> X-Mailer: Claws Mail 3.5.0 (GTK+ 2.12.11; i686-portbld-freebsd8.0) Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-BPAnet-MailScanner-Information: Please contact the ISP for more information X-MailScanner-ID: EA5902E0B5.D0F77 X-BPAnet-MailScanner: Found to be clean X-BPAnet-MailScanner-SpamCheck: not spam, ORDB-RBL, SpamAssassin (not cached, score=-14.6, required 6, BAYES_00 -15.00, DKIM_SIGNED 0.00, DKIM_VERIFIED -0.00, MIME_8BIT_HEADER 0.30, RDNS_DYNAMIC 0.10) X-BPAnet-MailScanner-From: alexander@leidinger.net X-Spam-Status: No Cc: freebsd-current@freebsd.org, Ivan Voras 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: Sat, 29 Nov 2008 17:44:40 -0000 Quoting "Marius N=C3=BCnnerich" (Fri, 28 Nov 2008 19:4= 7:21 +0100): > What is the intention of adding function entry and return providers > with SDT? Isn't that what FBT is for? To make it more easy for the dtrace script writter. If you want to trace all linuxulator specific stuff, you can use the wildcard linuxulator:::entry { ... } Or if you want to trace everything specific to linux file related stuff you use the wildcard linuxulator:file::entry { ... } With the fbt, this is much more difficult to do. You have to find out all related functions and specify them. This may not be hard for a kernel developer, but an user with a problem just wants to solve the problem, and getting an idea what is going on is more easy with the entry and return probes from the sdt, as they have a more narrow semantic meaning than the similar probe from the fbt (the fbt just tells you it's a kernel function, whereas the linuxulator probe provides you with the information that it is a function which belongs to the linuxulator and it's corresponding module grouping (like file related, ioctl related, ...)). No need to hunt down this info in the kernel yourself. Bye, Alexander. --=20 Ferengi Rule of Acquisition #263: Never let doubt interfere with your lust for latinum. -- ST:DS9, "Bar Association" http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID =3D B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID =3D 72077137