linux-mips
[Top] [All Lists]

problem with mips-linux gprof

To: Linux-MIPS <linux-mips@linux-mips.org>
Subject: problem with mips-linux gprof
From: Krishna <dhunjukrishna@yahoo.com>
Date: Thu, 27 Apr 2006 23:37:12 -0700 (PDT)
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=xCUGXaMSvW0skBFnOcE8f3B6YBUbqmSohfmu3LqnDMT0Wyt4Rs7r9T2mNp1UXD71x7OMhl8yuvbx86/82aG7Oen9cuys2n1xIX67TK05Psl64h+hBvluxIPLCPeH4I97X/zcYiX7Uztf4mln3BwY5I6c3CPyu5f2Puv+7G9yKmI= ;
Original-recipient: rfc822;linux-mips@linux-mips.org
Reply-to: dhunjukrishna@gmail.com
Sender: linux-mips-bounce@linux-mips.org
Hi,
 
I have been trying to use mips-linux gprof from last few days. But not able to get profile data. Here what I did: 
 
1. cross compiled program for mips-linux as follows
$ mips-unknown-linux-gnu-gcc -o hello hello.c -g -pg -lc
 
2. then ran hello on target mips-linux system (BCM91480B) which generates gmon.out file.
 
3. copy gmon.out to the host.
 
4. run mips-linux gprof as follows 
$mips-unknown-linux-gnu-gprof hello
 
But i get the following error message
mips-unknown-linux-gnu-gprof: gmon.out file is missing call-graph data
 
Then I googled around and found someone suggesting to use lib_p.a during compilation. But i don't have that library.
Please someone help me to get rid of this problem.
 
Thanks and Regards,
Krishna


Yahoo! Mail goes everywhere you do. Get it on your phone.
<Prev in Thread] Current Thread [Next in Thread>