Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 16 Jan 2015 10:37:14 -0500
From:      John Baldwin <jhb@FreeBSD.org>
To:        "O'Connor, Daniel" <darius@dons.net.au>
Cc:        FreeBSD Stable Mailing List <freebsd-stable@freebsd.org>
Subject:   Re: DTrace and function names
Message-ID:  <54B9302A.7070002@FreeBSD.org>
In-Reply-To: <D0363778-8D7D-4A67-98FB-A4F978F20D4F@dons.net.au>
References:  <ED72FCF4-7917-4EA9-8331-A940F70E2578@dons.net.au> <54B67A60.2000708@FreeBSD.org> <D0363778-8D7D-4A67-98FB-A4F978F20D4F@dons.net.au>

next in thread | previous in thread | raw e-mail | index | archive | help
On 1/15/15 9:55 PM, O'Connor, Daniel wrote:
> 
>> On 15 Jan 2015, at 00:47, John Baldwin <jhb@FreeBSD.org> wrote:
>>> So it shows _some_ function names from libc but mostly not.. Is there a way to improve it?
>>
>> Build with debug symbols?  For libc you can do that via:
>>
>> % cd /usr/src/lib/libc
>> % make cleandir
>> % make obj
>> # May want to use "-O -g" to reduce inlining
>> % make DEBUG_FLAGS="-g" depend all install
> 
> OK, I guess I was thinking it wasn't necessary since some of the symbols showed up :(

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).

-- 
John Baldwin



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?54B9302A.7070002>