From owner-freebsd-stable@FreeBSD.ORG Fri Jan 16 22:51:19 2015 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 0F86E955; Fri, 16 Jan 2015 22:51:19 +0000 (UTC) Received: from ipmail04.adl6.internode.on.net (ipmail04.adl6.internode.on.net [150.101.137.141]) by mx1.freebsd.org (Postfix) with ESMTP id 6D579BDB; Fri, 16 Jan 2015 22:51:18 +0000 (UTC) Received: from ppp14-2-33-47.lns21.adl2.internode.on.net (HELO midget.dons.net.au) ([14.2.33.47]) by ipmail04.adl6.internode.on.net with ESMTP; 17 Jan 2015 09:21:15 +1030 Received: from [10.0.2.26] ([10.0.2.26]) (authenticated bits=0) by midget.dons.net.au (8.15.1/8.14.9) with ESMTPSA id t0GMp9wC020738 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 17 Jan 2015 09:21:14 +1030 (CST) (envelope-from darius@dons.net.au) Subject: Re: DTrace and function names Mime-Version: 1.0 (Mac OS X Mail 8.1 \(1993\)) Content-Type: text/plain; charset=windows-1252 From: "O'Connor, Daniel" In-Reply-To: <54B9302A.7070002@FreeBSD.org> Date: Sat, 17 Jan 2015 09:21:09 +1030 Content-Transfer-Encoding: quoted-printable Message-Id: References: <54B67A60.2000708@FreeBSD.org> <54B9302A.7070002@FreeBSD.org> To: John Baldwin X-Mailer: Apple Mail (2.1993) X-Spam-Score: -2.9 () ALL_TRUSTED,BAYES_00 X-Scanned-By: MIMEDefang 2.75 on 10.0.2.1 Cc: FreeBSD Stable Mailing List X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Jan 2015 22:51:19 -0000 > On 17 Jan 2015, at 02:07, John Baldwin wrote: > On 1/15/15 9:55 PM, O'Connor, Daniel wrote: >>=20 >>> On 15 Jan 2015, at 00:47, John Baldwin wrote: >>>> So it shows _some_ function names from libc but mostly not.. Is = there a way to improve it? >>>=20 >>> Build with debug symbols? For libc you can do that via: >>>=20 >>> % cd /usr/src/lib/libc >>> % make cleandir >>> % make obj >>> # May want to use "-O -g" to reduce inlining >>> % make DEBUG_FLAGS=3D"-g" depend all install >>=20 >> OK, I guess I was thinking it wasn't necessary since some of the = symbols showed up :( >=20 > Yeah, libc will always include symbols for the public functions it > exports, but without -g you won't have symbols for any internal > functions (and that's generally true of any shared library AFAIK). Right, I guess it seems surprising so many internal functions show up.. I wonder if dtrace has an option to collapse the internal functions into = their public parents (too much to hope for I imagine :) -- Daniel O'Connor "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C