Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Jan 2011 12:57:39 -0600
From:      Nathan Whitehorn <nwhitehorn@freebsd.org>
To:        Roman Divacky <rdivacky@freebsd.org>
Cc:        freebsd-toolchain@freebsd.org, Steve Kargl <sgk@troutmask.apl.washington.edu>
Subject:   Re: How to build an executable with profiling?
Message-ID:  <4D3885A3.80407@freebsd.org>
In-Reply-To: <20110120185449.GA92860@freebsd.org>
References:  <20110117184411.GA54556@troutmask.apl.washington.edu> <20110118143205.GA34216@freebsd.org> <20110118160252.GA6506@troutmask.apl.washington.edu> <20110120185449.GA92860@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 01/20/11 12:54, Roman Divacky wrote:
> ok, I sat down and implemented what Hans Ottevanger told me to do :)
>
>          http://lev.vlakno.cz/~rdivacky/clang-gprof.patch
>
> This patch does three things:
>
> 1) emits "call .mcount" at the begining of every function body

It's not always called .mcount. See /sys/$ARCH/include/profile.h
-Nathan



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4D3885A3.80407>