From owner-svn-src-all@FreeBSD.ORG Wed Mar 28 17:21:37 2012 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 64390106564A; Wed, 28 Mar 2012 17:21:37 +0000 (UTC) (envelope-from rysto32@gmail.com) Received: from mail-wg0-f50.google.com (mail-wg0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id 766E58FC0A; Wed, 28 Mar 2012 17:21:36 +0000 (UTC) Received: by wgbds12 with SMTP id ds12so1156490wgb.31 for ; Wed, 28 Mar 2012 10:21:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=r7ITcT70u4163+SMU1Ok3rE575By0DLSOWebieu9bCE=; b=o6egFRTIqHZVVLECGx1tqRDqoLeeVHpKy+yY1uuQ5ImT80RdMq8YuOI0t4YxMFptEq wWQsrO1a4QLRZxkfvIYTyPs7UYz8Sm5od2q+z4zjmLCjUU4Y5cwGGk0HOHTdiqb+pcLH ecrS5b8XeM8mXoeNp9bCwQNi2aTyk7W54mZzXuIiL94VsmmTTg2p8jAMnUFHfUZhZoAR AU8gnNnRex1bsHkqLF3ny+ZYE1svhx5ILvPH1XQxmn7rYuCIqZ3whj0eCNztNvrXEK7a uP/+DA8vmSGPabqggV98ACSTSbXtw0Ln4bZFuWdGxzHlh+Smq/F9uBcxDfz2BnmJJn7B 7tZQ== MIME-Version: 1.0 Received: by 10.180.81.37 with SMTP id w5mr8913504wix.16.1332955295228; Wed, 28 Mar 2012 10:21:35 -0700 (PDT) Received: by 10.180.79.137 with HTTP; Wed, 28 Mar 2012 10:21:35 -0700 (PDT) In-Reply-To: <20120328002756.0000118e@unknown> References: <201203271507.q2RF7hO2091110@svn.freebsd.org> <20120328002756.0000118e@unknown> Date: Wed, 28 Mar 2012 13:21:35 -0400 Message-ID: From: Ryan Stone To: Alexander Leidinger Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: svn-src-head@freebsd.org, Ryan Stone , src-committers@freebsd.org, svn-src-all@freebsd.org Subject: Re: svn commit: r233552 - in head/sys: cddl/dev/sdt kern sys X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Mar 2012 17:21:37 -0000 On Tue, Mar 27, 2012 at 6:27 PM, Alexander Leidinger wrote: > Great! > Is this automatic, or do I need to do something in the newly loaded KLD? Nothing special. You can follow exactly the same set of steps as for adding probes to the kernel itself: http://wiki.freebsd.org/DTrace/HowToAddSDTProbes >> =A0 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. Exactly correct.