profiling shared libraries with gprof

Daniel Jacobowitz drow@false.org
Fri Apr 20 11:35:00 GMT 2007


On Fri, Apr 20, 2007 at 11:48:02AM +0530, Kunal Parmar wrote:
> LD_PROFILE=libfoo.so LD_PROFILE_OUTPUT=`pwd` ./bar 10000
> 
> This generates the file libfoo.so.profile as expected. But when I run
> gprof, I get the following error :
> 
> gprof: file `libfoo.so.profile' has unsupported version 131071

LD_PROFILE has nothing to do with gprof profiling.  They are
completely separate, record different data, and use different
formats.  Use sprof instead, or oprofile.

-- 
Daniel Jacobowitz
CodeSourcery



More information about the Binutils mailing list