From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19103 invoked by alias); 26 Jun 2002 00:03:10 -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 19077 invoked from network); 26 Jun 2002 00:03:02 -0000 Received: from unknown (HELO brouhaha.com) (209.66.107.17) by sources.redhat.com with SMTP; 26 Jun 2002 00:03:02 -0000 Received: (qmail 20103 invoked by uid 1032); 26 Jun 2002 00:03:05 -0000 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 26 Jun 2002 00:03:05 -0000 Date: Tue, 25 Jun 2002 17:03:00 -0000 From: Scott Dattalo X-X-Sender: sdattalo@ruckus.brouhaha.com To: sid@sources.redhat.com Subject: Profiling Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-SW-Source: 2002-q2/txt/msg00035.txt.bz2 I'm trying to collect profile info on my ARM-based application. I followed the directions on the SID web page regarding profiling. Basically, I added the two options "--gprof" and "--trace-counter" to the arm-elf-sid invocation. I also created a .conf script. According to the SID documentation, the two lines: connect-pin main perform-activity -> gprof sample connect-pin main stopping -> gprof store should be in the .conf file. I tried the conf file with and without these lines. Now when I run the simulator (arm-elf-gdb which is built from the Insight 5.2 sources), connect to sid, simulate, and exit, the file gmon.out is created. Cool. Now when I run gprof: $ gprof --flat-profile gmon.out I get the error: gprof: gmon.out: not in a.out format Hmm. After reading the gprof docs, I added -pg to my CFLAGS options in my make files. Unfortunately, there is no profile library with which I can link. So my project doesn't build. Bummer. Question: How *do* you profile? Do I need to build an arm-elf-gprof? Is there some other gprof option I need to add? Did I misunderstand the SID instructions? Scott