From owner-freebsd-hackers@FreeBSD.ORG Thu Mar 11 09:26:40 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 58ECB106564A for ; Thu, 11 Mar 2010 09:26:40 +0000 (UTC) (envelope-from shrikanth07@gmail.com) Received: from qw-out-2122.google.com (qw-out-2122.google.com [74.125.92.27]) by mx1.freebsd.org (Postfix) with ESMTP id 0BAE58FC14 for ; Thu, 11 Mar 2010 09:26:39 +0000 (UTC) Received: by qw-out-2122.google.com with SMTP id 5so693600qwi.7 for ; Thu, 11 Mar 2010 01:26:39 -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; bh=PkFjFDYqTH9Ect1xQ2PqOQXlJAC7UbYLcA0Nwl3ZKFU=; b=nHsD7qqjVMJLgH7DmPP7vri9JU5KUskgP1fNdeClOVCAnjeBIC1U3DXGcjc0L+D1Iy aefNwze60uhJhcWL+4ccJn0vhC41g3b5IcbqBhyuJz3XiDpz71fnhCjaE2fKYMcQowvR hHQxxEI/grnIbrnMRocLHxBp8m3kjpDUWt9Gc= 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; b=dX6wxjR6Ag3+glzWnqJgsdZTCtPDOESF71ZHL6nok/9yI/qFRVgFxhimt8RoKV9/Dl B54XwJg/uNX/3M0UvzLRvmN75YOJMPazg/PY0ZDWU0lOVoQOSck/BGQcLrCimOOAD171 XrNRbPbcrXrD54eapoS89AA1eep/v+bXsQKtg= MIME-Version: 1.0 Received: by 10.229.211.210 with SMTP id gp18mr218652qcb.31.1268299588459; Thu, 11 Mar 2010 01:26:28 -0800 (PST) In-Reply-To: References: <291941b81003100954n276d467an234c24e28f3b28e5@mail.gmail.com> <4B989DD6.601@pathscale.com> Date: Thu, 11 Mar 2010 14:56:26 +0530 Message-ID: <291941b81003110126y9640f08oe542938940b0b566@mail.gmail.com> From: Shrikanth Kamath To: =?ISO-8859-1?Q?Marius_N=FCnnerich?= Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-hackers@freebsd.org, =?ISO-8859-1?B?Qy4gQmVyZ3N0cvZt?= Subject: Re: ctfconvert dependency... X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Mar 2010 09:26:40 -0000 Any idea if ctfconvert is needed to run on the cddl and sys/cddl files? My understanding here is ctfconvert needs to build the ctfdata for the kernel image and the kernel loadable modules. If we were to DTrace 'DTrace' then we need the ctfdata for the files under cddl/ and sys/cddl, is that correct= ? 2010/3/11 Marius N=FCnnerich > 2010/3/11 "C. Bergstr=F6m" : > > Shrikanth Kamath wrote: > >> > >> Just trying to understand the build dependency for ctfconvert... > >> > >> I see ctfconvert (cddl/usr.bin/ctfconvert/) has dependency on libctf.= a > >> (cddl/lib/libctf/) > >> > >> Now the snippet in bsd.lib.mk has this check for various target > suffixes, > >> > >> .c.So: > >> .if defined(CTFCONVERT) > >> ${CTFCONVERT} ${CTFFLAGS} ${.TARGET} > >> .endif > >> > >> and sys.mk > >> > >> .c > >> .if defined(CTFCONVERT) > >> ${CTFCONVERT} ${CTFFLAGS} ${.TARGET} > >> .endif > >> > >> My query, libctf includes in it's Makefile, so will the > >> above > >> not try to > >> run 'ctfconvert' on libctf itself? > >> > > > > I'm going to make some assumptions and go out on a limb here.. > > > > The CDDL code in FBSD came from OpenSolaris (specifically onnv-gate hg > repo) > > When OpenSolaris is built they convert stab debugging information over > to > > CTF (compressed text format?). This is done so that they can have > debugging > > information, but without the overhead of stab (or dwarf2). I don't kno= w > how > > much of the original onnv-gate Makefiles came over from OpenSolaris, bu= t > > assuming the FBSD kernel doesn't need/use CTF format this dependency ca= n > and > > probably should go away. (Only (k)mdb supports CTF that I'm aware of?) > > > > Hopefully this is useful information and I'm not too wrong or someone > will > > correct me > > The CTF information is needed by DTrace. > My guess is that it will run ctfconvert on itself so it should be > there from a prior install or it is part of some early toolchain > stuff. >