From owner-freebsd-stable@FreeBSD.ORG Tue Mar 9 08:27:20 2010 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F34D21065670; Tue, 9 Mar 2010 08:27:19 +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 786368FC14; Tue, 9 Mar 2010 08:27:19 +0000 (UTC) Received: from outgoing.leidinger.net (pD9E2C358.dip.t-dialin.net [217.226.195.88]) by mail.ebusiness-leidinger.de (Postfix) with ESMTPSA id 2332F844482; Tue, 9 Mar 2010 09:27:13 +0100 (CET) Received: from webmail.leidinger.net (webmail.leidinger.net [192.168.1.102]) by outgoing.leidinger.net (Postfix) with ESMTP id 324E65274; Tue, 9 Mar 2010 09:27:10 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=Leidinger.net; s=outgoing-alex; t=1268123230; bh=nrvQ0OrG6NtXRBKbYj32uFjjOlhoOR6ctUOQcVy/rms=; h=Message-ID:Date:From:To:Cc:Subject:References:In-Reply-To: MIME-Version:Content-Type:Content-Transfer-Encoding; b=B7pLfbEcQ4cV25WQNQxdzBk2HUQ29K+EVdK8XH27WHdGxUCdHTTW8WCEBlApyZaFR F1lBRnDd39Dvne+LD8pSmXFJSwouRurHYtTRyTm77RdiM+wy26gtHeiZ6sesQ3ZYAc oVj0ysInoX6WuxSpYq1HwGnaWgXk69Z0a837I/9rn3Aqvdn5kXZJHX++FVPFpTNSRL 6/CBwRgJtofY7F/bv9Qn1zUUbNoyy0IypFGSgP3RtOxc9uvqMdYmS3ptyygNt1SCyO qoYLWjCRqzcgwOZpqQWHKrIrPW+a3JgrWpV+S6pooFGVrbKDNiuFVVCXQ3b+J5E0eg 8RBs8XV3zi5RQ== Received: (from www@localhost) by webmail.leidinger.net (8.14.3/8.13.8/Submit) id o298R9ep001911; Tue, 9 Mar 2010 09:27:09 +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; Tue, 09 Mar 2010 09:27:09 +0100 Message-ID: <20100309092709.16456y55vq0kaa88@webmail.leidinger.net> Date: Tue, 09 Mar 2010 09:27:09 +0100 From: Alexander Leidinger To: John Baldwin References: <20100306164451.00001999@unknown> <201003081000.12656.jhb@freebsd.org> In-Reply-To: <201003081000.12656.jhb@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Dynamic Internet Messaging Program (DIMP) H3 (1.1.4) X-EBL-MailScanner-Information: Please contact the ISP for more information X-EBL-MailScanner-ID: 2332F844482.E042E X-EBL-MailScanner: Found to be clean X-EBL-MailScanner-SpamCheck: not spam, spamhaus-ZEN, SpamAssassin (not cached, score=-1.44, required 6, autolearn=disabled, ALL_TRUSTED -1.44, DKIM_SIGNED 0.00, DKIM_VERIFIED -0.00) X-EBL-MailScanner-From: alexander@leidinger.net X-EBL-MailScanner-Watermark: 1268728035.05964@zZ0jkXE+o1bopUDkIU/TQw X-EBL-Spam-Status: No Cc: freebsd-stable@freebsd.org, Robert Watson Subject: Re: is dtrace usable? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Mar 2010 08:27:20 -0000 Quoting John Baldwin (from Mon, 8 Mar 2010 10:00:12 -0500): > On Saturday 06 March 2010 11:00:12 am Robert Watson wrote: >> On Sat, 6 Mar 2010, Alexander Leidinger wrote: >> >> >> Take a look at the DTrace configuration information here: >> >> >> >> http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/dtrace.html >> > >> > I've just reread it (despite the fact that I already used it). Some >> > comments: >> > >> > Last time I tried, I didn't see any problems by adding >> > makeoptions WITH_CTF=yes >> > to the kernel config instead of doing >> > make WITH_CTF=1 kernel >> > >> > Did I miss something, and if not, shouldn't we tell about the >> > makeoptions part instead (a kernel rebuild later will not cause >> > trouble when someone forgets to do the WITH_CTF part as it is already >> > in the kernel makefile)? >> >> I'll leave John to answer this one, CC line broadended. > > I would be very surprised if 'makeoptions WITH_CTF=yes' worked. The many > times I and others have tried it it did not work. Do you have a log of your > build showing the ctfconvert and ctfmerge command lines? I do not have a log around, it has been a while since I did something with dtrace (a year ago) and I can not remember that I always added WITH_CTF on a build (but it was about SDT probes, not FBT probes, in case it matters). I had a look again, WITH_CTF=yes is one of the first lines in the Makefile, and /usr/share/mk/sys.mk has "if !defined(WITH_CTF)". "make -V WITH_CTF" shows "yes", but "make -V NO_CTF" shows "1". This is strange, isn't it? I would expect that NO_CTF is undefined. Is this a bug in make, or a bug in the man page (neither in the description of the different kinds of variables, nor in the description of "defined" is something mentioned explaining this behavior). The current kernel on my test machine is compiled with "makeoptions ...", and a "dtrace -l" causes the watchdog to trigger a panic. Ugh... that's not a nice behavior. :( Bye, Alexander. -- Adding sound to movies would be like putting lipstick on the Venus de Milo. -- actress Mary Pickford, 1925 http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137