From owner-freebsd-current@FreeBSD.ORG Fri Feb 6 18:19:07 2009 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 ED91E106564A for ; Fri, 6 Feb 2009 18:19:07 +0000 (UTC) (envelope-from klapperzhu@gmail.com) Received: from mail-gx0-f21.google.com (mail-gx0-f21.google.com [209.85.217.21]) by mx1.freebsd.org (Postfix) with ESMTP id 91B6D8FC08 for ; Fri, 6 Feb 2009 18:19:07 +0000 (UTC) (envelope-from klapperzhu@gmail.com) Received: by gxk14 with SMTP id 14so1087835gxk.19 for ; Fri, 06 Feb 2009 10:19:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=SoMdxrm79b2/wVhPbRg7C96NYnQ7WgtLDDP10gAPqbM=; b=cGby1nLBxAVpPgYcV4XKWbcs1KJI2RhJ3GtH7+VW/v/OeQdH3hHnW+210kt6nbQ4Iq txroxvUmPF/q2lZMGa5ehYY6ohq8yTS+yE6pv/zL45QSNhKmsZr7yqTMyPcgby5Q3Bz9 zQuNudB4fhLJhJ9tlpSfhvA1P6Sp33FB9MxZw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=KsyLyurgKYXexK5CxGabo5kB0NR2d9UKym1CAEiGjOlfjQ89dHV56RDRjlpBbrBeUS sOe79p4GtftoLmcaeU/B1pQDtRaW4tLZ02PgDE+Ne226Fo4+nF4aoqlnF/HgK1tRi3iL RU6x1LoZ0Mf+UKCDzd1uId5hy4rejsZftUKZE= MIME-Version: 1.0 Received: by 10.151.8.8 with SMTP id l8mr1009965ybi.154.1233944346825; Fri, 06 Feb 2009 10:19:06 -0800 (PST) In-Reply-To: <200902051311.00091.jhb@freebsd.org> References: <200902051311.00091.jhb@freebsd.org> Date: Fri, 6 Feb 2009 13:19:06 -0500 Message-ID: From: Klapper Zhu To: John Baldwin Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-current@freebsd.org Subject: Re: To John Birrell: weird behaviors of DTrace on amd64 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, 06 Feb 2009 18:19:08 -0000 Hi John, I rebuilt kernel with -fno-inline and I got all isp(4) functions listed in fbt. I noticed that there are other inline related flags "--finline-limit=8000 -param inline-unit-growth=100 -Winline". should I get rid of them OR -fno-inline will just overide them ? Thanks, anyone has suggestion for problem 2 ? On Thu, Feb 5, 2009 at 1:10 PM, John Baldwin wrote: > On Thursday 05 February 2009 11:31:52 am Klapper Zhu wrote: >> Hi John Birrell, >> >> I am exploring DTrace on "7.1-STABLE FreeBSD amd64" and I found several >> weird behaviors: >> >> 1) Not all kernel functions show up in fbt provider. Take isp(4) as example: >> "dtrace -l" shows >> static void isp_freeze_loopdown(ispsoftc_t *, int, char *); >> ___but not___ >> static void isp_handle_platform_atio2(ispsoftc_t *, at2_entry_t *); >> >> Both are static functions. But one shows up in fbt, another not. >> What's the rational behind it ? Any way to fix it ? > > Perhaps gcc inlined it? Try using -fno-inline perhaps. > > -- > John Baldwin >