[Top] [All Lists]

Re: problem with mips-linux gprof

To: James E Wilson <>
Subject: Re: problem with mips-linux gprof
From: Daniel Jacobowitz <>
Date: Fri, 28 Apr 2006 16:15:30 -0400
Cc:, Linux-MIPS <>
In-reply-to: <>
Original-recipient: rfc822;
References: <> <>
User-agent: Mutt/1.5.8i
On Fri, Apr 28, 2006 at 12:52:07PM -0700, James E Wilson wrote:
> The above assumes you don't have a profiled C library available.  If you
> did, then you would have at least two profiled functions, main and
> printf, and would have gotten some call graph info emitted.  If you
> don't have a profiled C library available, you could try compiling one
> yourself.  There is a glibc configure option --enable-profile for that. 
> I've never tried this myself.  I'd expect this to be a non-trivial
> exercise.  Besides the issue of compiling glibc, you also need to
> install the profiled library, and arrange to link with it.

Many prebuilt distributions already ship it; FWIW, if you link with
"-profile" instead of "-pg", GCC will automatically attempt to use

Daniel Jacobowitz

<Prev in Thread] Current Thread [Next in Thread>