From owner-svn-src-head@FreeBSD.ORG Tue Mar 27 22:37:29 2012 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 3DD4D106564A; Tue, 27 Mar 2012 22:37:29 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from mail.ebusiness-leidinger.de (mail.ebusiness-leidinger.de [217.11.53.44]) by mx1.freebsd.org (Postfix) with ESMTP id E7C338FC16; Tue, 27 Mar 2012 22:37:28 +0000 (UTC) Received: from outgoing.leidinger.net (p4FC43B8B.dip.t-dialin.net [79.196.59.139]) by mail.ebusiness-leidinger.de (Postfix) with ESMTPSA id 1F6618442DE; Wed, 28 Mar 2012 00:27:58 +0200 (CEST) Received: from unknown (IO.Leidinger.net [192.168.1.12]) by outgoing.leidinger.net (Postfix) with ESMTPS id 604212A43; Wed, 28 Mar 2012 00:27:55 +0200 (CEST) Date: Wed, 28 Mar 2012 00:27:56 +0200 From: Alexander Leidinger To: Ryan Stone Message-ID: <20120328002756.0000118e@unknown> In-Reply-To: <201203271507.q2RF7hO2091110@svn.freebsd.org> References: <201203271507.q2RF7hO2091110@svn.freebsd.org> X-Mailer: Claws Mail 3.7.10cvs42 (GTK+ 2.16.6; i586-pc-mingw32msvc) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-EBL-MailScanner-Information: Please contact the ISP for more information X-EBL-MailScanner-ID: 1F6618442DE.A3356 X-EBL-MailScanner: Found to be clean X-EBL-MailScanner-SpamCheck: not spam, spamhaus-ZEN, SpamAssassin (not cached, score=-0.024, required 6, autolearn=disabled, ALL_TRUSTED -1.00, AWL -0.29, J_CHICKENPOX_32 0.60, J_CHICKENPOX_52 0.60, TW_SV 0.08, T_RP_MATCHES_RCVD -0.01) X-EBL-MailScanner-From: alexander@leidinger.net X-EBL-MailScanner-Watermark: 1333492079.32643@Vfr9MOMRcGe2bA3LfqaOVQ X-EBL-Spam-Status: No Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r233552 - in head/sys: cddl/dev/sdt kern sys X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Mar 2012 22:37:29 -0000 On Tue, 27 Mar 2012 15:07:43 +0000 (UTC) Ryan Stone wrote: > Author: rstone > Date: Tue Mar 27 15:07:43 2012 > New Revision: 233552 > URL: http://svn.freebsd.org/changeset/base/233552 > > Log: > Instead of only iterating over the set of known SDT probes when > sdt.ko is loaded and unloaded, also have sdt.ko register callbacks > with kern_sdt.c that will be called when a newly loaded KLD module > adds more probes or a module with probes is unloaded. Great! Is this automatic, or do I need to do something in the newly loaded KLD? > This makes it possible to create SDT probes in KLD modules, > although there are still two caveats: first, any SDT probes in a KLD > module must be part of a DTrace provider that is defined in that > module. To make sure I understand it correctly: If I have the provider "linuxulator", all probes for this provider need to be within the KLD. No other KLD is allowed to reference this provider. To stay with the linuxulator example: if a module which depends upon linux.ko wants to have some SDT probes, it has to use a different provider. Bye, Alexander. -- http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137