kernprof
[Top] [All Lists]

Re: Kernprof with gcc 3.0.2

To: "John Hawkes" <hawkes@xxxxxxx>, <kernprof@xxxxxxxxxxx>
Subject: Re: Kernprof with gcc 3.0.2
From: Daniel Phillips <phillips@xxxxxxxxxxxxxx>
Date: Mon, 29 Oct 2001 21:30:53 +0100
In-reply-to: <001101c1609b$0375e560$6801a8c0@wrlarun>
References: <20011029035045Z16084-698+1279@humbolt.nl.linux.org> <001101c1609b$0375e560$6801a8c0@wrlarun>
Sender: owner-kernprof@xxxxxxxxxxx
On October 29, 2001 05:59 pm, John Hawkes wrote:
> From: "Daniel Phillips" <phillips@xxxxxxxxxxxxxx>
> 
> > I built kernprof with gcc 3.0.2 and was able to boot ok.  I did not
> > patch the compiler.
> 
> Correct.  The gcc patch applies to 2.94.x, but beginning with 2.96.x the
> gcc source appears to reflect the patch.  However, 2.96.x and -pg
> (needed by CONFIG_MCOUNT) doesn't appear to build a working kernel.  I
> was able to use gcc 3.0.1 (with and without -pg) to build a working
> 2.4.13+kernprof kernel, but 3.0.1 does *not* build a working
> 2.4.13+lockmeter kernel.
> 
> I have no personal experience with gcc 3.0.2.

OK, well I can confirm that 3.0.2 builds a working 2.4.9+kernprof, no 
surprise.  I will try lockmeter as soon as I get time.  Has the lockmeter 
problem been identified yet?

> "kernprof -g" should produce a file "gmon.out".

Check, I guess this is a FAQ question, or maybe just:

--- kernprof.c~ Mon Oct 29 17:17:50 2001
+++ kernprof.c  Mon Oct 29 17:17:50 2001
@@ -95,7 +95,7 @@
           "\t -d [time | pmc]   select profiling domain\n"
           "\t -e                stop profiling\n"
           "\t -f <sample_freq>  PC sampling frequency\n"
-          "\t -g                output call graph profiling data\n"
+          "\t -g                write call graph data to gmon.out\n"
           "\t -h                this message\n"
           "\t -i                show PC-sample or call-count profile\n"
           "\t -m <mapfile>      (default: \"%s\")\n"

> > By the way, is there supposed to be a gmon.c, or is that function
> > handled by kernprof now?
> 
> The kernprof command produces a gmon.out file, and the gprof command
> takes the gmon.out and the vmlinux binary and produces the final results
> file.

This would have been obvious if I'd ever used gprof, but I hadn't, and hadn't 
heard of it.  People like me *will* come along from time to time ;-)  It 
would be nice to have a pointer to gnu gprof in the FAQ.

Thanks for your time and help.

--
Daniel

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