From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16276 invoked by alias); 26 Jun 2002 02:01:46 -0000 Mailing-List: contact sid-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: sid-owner@sources.redhat.com Received: (qmail 16244 invoked from network); 26 Jun 2002 02:01:36 -0000 Received: from unknown (HELO brouhaha.com) (209.66.107.17) by sources.redhat.com with SMTP; 26 Jun 2002 02:01:36 -0000 Received: (qmail 21386 invoked by uid 1032); 26 Jun 2002 02:01:39 -0000 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 26 Jun 2002 02:01:39 -0000 Date: Tue, 25 Jun 2002 19:01:00 -0000 From: Scott Dattalo X-X-Sender: sdattalo@ruckus.brouhaha.com cc: sid@sources.redhat.com Subject: Re: Profiling In-Reply-To: <20020625213720.A14440@redhat.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-SW-Source: 2002-q2/txt/msg00037.txt.bz2 On Tue, 25 Jun 2002, Frank Ch. Eigler wrote: > Hi - > > > On Tue, Jun 25, 2002 at 05:03:05PM -0700, Scott Dattalo wrote: > > I'm trying to collect profile info on my ARM-based application. [...] > > connect-pin main perform-activity -> gprof sample > > connect-pin main stopping -> gprof store > > The "perform-activity" pin may signal infrequently compared to > CPU instruction rates, so you will get a relatively low sample rate. > You could connect that gprof sample pin from another source, such as > the scheduler's CPU-bound NNN-output signal. > > > [...] > > Now when I run gprof: > > $ gprof --flat-profile gmon.out > > I get the error: > > gprof: gmon.out: not in a.out format > > This is a simple gprof usage error. gprof implicitly looks for the > file named gmon.out, but it doesn't know what *target executable* to > relate it to. gprof needs to process the executable in order to > extract its symbol table, so that the PC sample addresses in gmon.out > can become sensible. So, all you need to do is build the cross-gprof, > and run > > arm-elf-gprof file.exe Yes, I surmised as much when I saw the SID screen shot with this command. But the question I have is how do you build arm-elf-gprof (I posed this question to the eCos list as well, BTW)? When I follow the arm-elf tool chain build instructions, I get a whole lot of arm-elf-* files, but no gprof. I tried --enable-gprof as part of the binutil ./configure, but that didn't do it. Of course, I'm just guessing at this point... BTW, this is where I got the arm-elf build instructions: http://sources.redhat.com/ecos/tools/linux-arm-elf.html Scott