From owner-kernprof@oss.sgi.com Wed Oct 3 16:11:16 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id f93NBGi27605 for kernprof-outgoing; Wed, 3 Oct 2001 16:11:16 -0700 Received: (from hawkes@localhost) by oss.sgi.com (8.11.2/8.11.3) id f93NBFV27601 for kernprof@oss.sgi.com; Wed, 3 Oct 2001 16:11:15 -0700 Date: Wed, 3 Oct 2001 16:11:15 -0700 From: John Hawkes Message-Id: <200110032311.f93NBFV27601@oss.sgi.com> To: kernprof@oss.sgi.com Subject: Kernprof against 2.4.10 now available Sender: owner-kernprof@oss.sgi.com Precedence: bulk FYI, a new profiler patch, version 0.10 (vs. the previous v0.9.6) is now available against the 2.4.10 kernel. This new profiling kernel requires a new compatible kernprof command, version 1.3 (vs. the previous v1.2.2). http://oss.sgi.com/projects/kernprof/download The biggest change is a refinement of the "recursive mcount interrupts" fix found in v0.9.6. This refinement was contributed by Niels Christiansen (nchr@us.ibm.com), as was the new kernprof command. In particular, at build time you can specify whether or not you want the recursion-avoidance functionality. On rare occasions, the mcount recursions have apparently caused system hangs. While it is safe to turn on the recursion-avoidance option, the downside is that some mcount interrupts will be thrown away, thereby skewing the "-t cc" or "-t acg" profiles to some degree. The default is to not enable the recursion-avoidance. John Hawkes hawkes@sgi.com From owner-kernprof@oss.sgi.com Wed Oct 17 09:49:39 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id f9HGndT03897 for kernprof-outgoing; Wed, 17 Oct 2001 09:49:39 -0700 Received: (from hawkes@localhost) by oss.sgi.com (8.11.2/8.11.3) id f9HGnbN03892 for kernprof@oss.sgi.com; Wed, 17 Oct 2001 09:49:37 -0700 Date: Wed, 17 Oct 2001 09:49:37 -0700 From: John Hawkes Message-Id: <200110171649.f9HGnbN03892@oss.sgi.com> To: kernprof@oss.sgi.com Subject: gcc 3.0.1 seems to work for i386 mcount Sender: owner-kernprof@oss.sgi.com Precedence: bulk FYI, gcc 3.0.1 seems to build working baseline 2.4.10 and 2.4.10+kernprof i386 kernels for my 2-CPU PentiumII SCSI test system. My kernprof kernel has Mcount enabled, which means 3.0.1 appears to properly handle the -pg option that was troublesome for previous gcc versions (and required that gcc patch). I am not guaranteeing that gcc 3.0.1 is flawless. My testing was perfunctory and certainly limited in scope. I am simply suggesting that those of you who wish to experiment with i386 Mcount (using "-t cc" or "-t acg") and who don't want to go to the trouble of patching gcc 2.95.x, or who had trouble with 2.96.x from Red Hat 7.1, ought to consider downloading 3.0.1 and trying it yourself. John Hawkes hawkes@sgi.com From owner-kernprof@oss.sgi.com Tue Oct 23 13:35:35 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id f9NKZZn14436 for kernprof-outgoing; Tue, 23 Oct 2001 13:35:35 -0700 Received: (from hawkes@localhost) by oss.sgi.com (8.11.2/8.11.3) id f9NKZYv14431 for kernprof@oss.sgi.com; Tue, 23 Oct 2001 13:35:34 -0700 Date: Tue, 23 Oct 2001 13:35:34 -0700 From: John Hawkes Message-Id: <200110232035.f9NKZYv14431@oss.sgi.com> To: kernprof@oss.sgi.com Subject: Kernprof 0.10.1 now available -- supports Call Backtrace Sender: owner-kernprof@oss.sgi.com Precedence: bulk FYI, a new kernprof kernel patch (v0.10.1) and kernprof command (v1.3.1) are now available at: http://oss.sgi.com/projects/kernprof/download These new releases support the Call Backtrace mode for i386, thanks to a contribution from Ethan Solomita (ethan@cs.columbia.edu). John Hawkes From owner-kernprof@oss.sgi.com Wed Oct 24 11:05:28 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id f9OI5Sg22522 for kernprof-outgoing; Wed, 24 Oct 2001 11:05:28 -0700 Received: (from hawkes@localhost) by oss.sgi.com (8.11.2/8.11.3) id f9OI5PR22518 for kernprof@oss.sgi.com; Wed, 24 Oct 2001 11:05:25 -0700 Date: Wed, 24 Oct 2001 11:05:25 -0700 From: John Hawkes Message-Id: <200110241805.f9OI5PR22518@oss.sgi.com> To: kernprof@oss.sgi.com Subject: kernprof v0.10.2 released, fixing sparc64 Sender: owner-kernprof@oss.sgi.com Precedence: bulk FYI, the kernprof profiler patch v0.10.2 is now available, hopefully fixing various broken pieces of the sparc64 port. This is a patch against the 2.4.10 kernel. Stay tuned for a release against the 2.4.13 kernel. http://oss.sgi.com/projects/kernprof/download/profile-0.10.2-2.4.10.patch.gz If you're not using sparc64, then there is no urgency to upgrade to this v0.10.2. John Hawkes hawkes@sgi.com From owner-kernprof@oss.sgi.com Wed Oct 24 13:16:49 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id f9OKGnd02399 for kernprof-outgoing; Wed, 24 Oct 2001 13:16:49 -0700 Received: (from hawkes@localhost) by oss.sgi.com (8.11.2/8.11.3) id f9OKGmw02393 for kernprof@oss.sgi.com; Wed, 24 Oct 2001 13:16:48 -0700 Date: Wed, 24 Oct 2001 13:16:48 -0700 From: John Hawkes Message-Id: <200110242016.f9OKGmw02393@oss.sgi.com> To: kernprof@oss.sgi.com Subject: kernprof patch v0.10.2 available against 2.4.13 kernel Sender: owner-kernprof@oss.sgi.com Precedence: bulk FYI, the latest kernprof profiling patch, v0.10.2, is now available against the 2.4.13 kernel. http://oss.sgi.com/projects/kernprof/download/profile-0.10.2-2.4.13.patch.gz John Hawkes hawkes@sgi.com From owner-kernprof@oss.sgi.com Wed Oct 24 17:28:48 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id f9P0Sm615843 for kernprof-outgoing; Wed, 24 Oct 2001 17:28:48 -0700 Received: from zok.sgi.com (zok.sgi.com [204.94.215.101]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id f9P0SkD15840 for ; Wed, 24 Oct 2001 17:28:46 -0700 Received: from cthulhu.engr.sgi.com (cthulhu.engr.sgi.com [192.26.80.2]) by zok.sgi.com (8.11.4/8.11.4/linux-outbound_gateway-1.0) with ESMTP id f9P0SfK16628 for ; Wed, 24 Oct 2001 17:28:41 -0700 Received: from wrlarun (sshgate.corp.sgi.com [169.238.216.146]) by cthulhu.engr.sgi.com (SGI-8.9.3/8.9.3) with SMTP id RAA45725 for ; Wed, 24 Oct 2001 17:27:28 -0700 (PDT) Message-ID: <00f401c15ceb$909b4790$6801a8c0@wrlarun> From: "John Hawkes" To: Subject: FYI, gcc 3.0.1 caveat emptor Date: Wed, 24 Oct 2001 17:25:35 -0700 MIME-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2919.6600 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 Sender: owner-kernprof@oss.sgi.com Precedence: bulk FYI, as a followup to my email of last week that spoke of success in using gcc 3.0.1 for building kernprof-capable kernels, I have first-hand evidence that gcc 3.0.1 for a 2.4.13 + the Lockmeter patch (http://oss.sgi.com/projects/lockmeter) causes problems. The kernel fails to boot. John Hawkes hawkes@sgi.com From owner-kernprof@oss.sgi.com Thu Oct 25 15:42:56 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id f9PMgum07457 for kernprof-outgoing; Thu, 25 Oct 2001 15:42:56 -0700 Received: from web10901.mail.yahoo.com (web10901.mail.yahoo.com [216.136.131.37]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id f9PMgs007454 for ; Thu, 25 Oct 2001 15:42:54 -0700 Message-ID: <20011025224254.8401.qmail@web10901.mail.yahoo.com> Received: from [209.213.198.25] by web10901.mail.yahoo.com via HTTP; Thu, 25 Oct 2001 15:42:54 PDT Date: Thu, 25 Oct 2001 15:42:54 -0700 (PDT) From: Pankaj Chhabra Subject: How do I read call_trace? To: kernprof@oss.sgi.com MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-kernprof@oss.sgi.com Precedence: bulk Hi, When I run #kernprof -d time -t ct -b and hit Ctrl-z to end it, it creates a file call-trace.0. How do I interpret it? since I can't read it as it is not in ASCII. Thanks in advance. - Pankaj __________________________________________________ Do You Yahoo!? Make a great connection at Yahoo! Personals. http://personals.yahoo.com From owner-kernprof@oss.sgi.com Thu Oct 25 16:11:51 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id f9PNBpq08131 for kernprof-outgoing; Thu, 25 Oct 2001 16:11:51 -0700 Received: from mail.ivivity.com (user-vc8ftn3.biz.mindspring.com [216.135.246.227]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id f9PNBh008123 for ; Thu, 25 Oct 2001 16:11:44 -0700 Received: by ATLOPS with Internet Mail Service (5.5.2448.0) id ; Thu, 25 Oct 2001 19:11:25 -0400 Message-ID: <25369470B6F0D41194820002B328BDD2301F@ATLOPS> From: Arvind Jain To: "'Pankaj Chhabra'" , kernprof@oss.sgi.com Subject: RE: How do I read call_trace? Date: Thu, 25 Oct 2001 19:11:24 -0400 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2448.0) Content-Type: text/plain; charset="iso-8859-1" Sender: owner-kernprof@oss.sgi.com Precedence: bulk You will need gprof to interpret the output file from kernprof. I command like: gprof vmlinux should do. Please do man gprof to see the different options available. All the best, arv. -----Original Message----- From: Pankaj Chhabra [mailto:pankaj_chhabra@yahoo.com] Sent: Thursday, October 25, 2001 6:43 PM To: kernprof@oss.sgi.com Subject: How do I read call_trace? Hi, When I run #kernprof -d time -t ct -b and hit Ctrl-z to end it, it creates a file call-trace.0. How do I interpret it? since I can't read it as it is not in ASCII. Thanks in advance. - Pankaj __________________________________________________ Do You Yahoo!? Make a great connection at Yahoo! Personals. http://personals.yahoo.com From owner-kernprof@oss.sgi.com Thu Oct 25 18:41:16 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id f9Q1fGR25575 for kernprof-outgoing; Thu, 25 Oct 2001 18:41:16 -0700 Received: from rj.sgi.com (rj.sgi.com [204.94.215.100]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id f9Q1fE025571 for ; Thu, 25 Oct 2001 18:41:14 -0700 Received: from cthulhu.engr.sgi.com (cthulhu.engr.sgi.com [192.26.80.2]) by rj.sgi.com (8.11.4/8.11.4/linux-outbound_gateway-1.0) with ESMTP id f9Q1f9W27619 for ; Thu, 25 Oct 2001 18:41:09 -0700 Received: from pchawkes (dhcp-163-154-5-202.engr.sgi.com [163.154.5.202]) by cthulhu.engr.sgi.com (SGI-8.9.3/8.9.3) with SMTP id SAA76838; Thu, 25 Oct 2001 18:39:56 -0700 (PDT) Message-ID: <000f01c15dbf$2c169a20$ca059aa3@engr.sgi.com> From: "John Hawkes" To: "Arvind Jain" , "'Pankaj Chhabra'" , References: <25369470B6F0D41194820002B328BDD2301F@ATLOPS> Subject: Re: How do I read call_trace? Date: Thu, 25 Oct 2001 18:40:09 -0700 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Sender: owner-kernprof@oss.sgi.com Precedence: bulk From: "Arvind Jain" To: "'Pankaj Chhabra'" ; Sent: Thursday, October 25, 2001 4:11 PM Subject: RE: How do I read call_trace? > You will need gprof to interpret the output file from kernprof. I command > like: > > gprof vmlinux > > should do. > > Please do man gprof to see the different options available. > All the best, arv. And you'll need the latest kernprof command -- version 1.3.1. John Hawkes From owner-kernprof@oss.sgi.com Fri Oct 26 09:58:01 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id f9QGw1924185 for kernprof-outgoing; Fri, 26 Oct 2001 09:58:01 -0700 Received: from amdext.amd.com (amdext.amd.com [139.95.251.1]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id f9QGvt024182 for ; Fri, 26 Oct 2001 09:57:56 -0700 Received: from ssvlgs01.amd.com (ssvlgs01.amd.com [139.95.250.16]) by amdext.amd.com (8.9.3/8.9.3/AMD) with SMTP id JAA02490; Fri, 26 Oct 2001 09:57:47 -0700 (PDT) From: reeja.john@amd.com Received: from 139.95.250.1 by ssvlgs01.amd.com with ESMTP (Tumbleweed MMS SMTP Relay (MMS v4.7)); Fri, 26 Oct 2001 09:54:32 -0700 X-Server-Uuid: 02753650-11b0-11d5-bbc5-00508bf987eb Received: from caexmta9.amd.com (caexmta9.amd.com [139.95.53.55]) by amdint.amd.com (8.9.3/8.9.3/AMD) with ESMTP id JAA01387; Fri, 26 Oct 2001 09:54:30 -0700 (PDT) Received: by caexmta9.amd.com with Internet Mail Service (5.5.2653.19) id ; Fri, 26 Oct 2001 09:54:27 -0700 Message-ID: To: kernprof@oss.sgi.com cc: kotaeji@postech.ac.kr Subject: Kernprof repeatability Date: Fri, 26 Oct 2001 09:54:25 -0700 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) X-WSS-ID: 17C74AC21338104-01-01 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 7bit Sender: owner-kernprof@oss.sgi.com Precedence: bulk Hi, I am running kernprof-1.2.2 on linux 2.4.6. to find out cpu utilization of certain kernnel tcp/ip stack functions.I run kernprof on a http server machine and downloaded the same web page from a client machine connected to server through a swich.Test is repeated each time rebooting the both machines and clearing the browser disk cache every time.I was noting the time taken by kernel functions tcp_sendmsg and tcp_recvmsg eaching time.These timings are varying a lot on each time eventhough I am running the test at similar conditions all the time.I am putting my resuts below.Why timing are varying this much ,when I run kernprof each time.If that is the case, how can I calculate the actual cpu utilization of stack?Can I get more accurate time if I use more recent versuns of linux kernel and kernprof? Any help appreciated. Thanks, Reeja On http server machine Test 1 tcp_sendmsg #1379 17.79 us tcp_recvmsg #2 241.33 us Test 2 tcp_sendmsg #1379 8.08 us tcp_recvmsg #2 253.42 us Test 3 tcp_sendmsg #1379 1.69 us tcp_recvmsg #2 241.66 us Test 4 tcp_sendmsg #1379 9.35 us tcp_recvmsg #2 219.77 us Test 5 tcp_sendmsg #1379 6.66 us tcp_recvmsg #2 110.01 us From owner-kernprof@oss.sgi.com Sun Oct 28 19:50:51 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id f9T3opi19096 for kernprof-outgoing; Sun, 28 Oct 2001 19:50:51 -0800 Received: from humbolt.nl.linux.org (root@humbolt.nl.linux.org [131.211.28.48]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id f9T3ol019093 for ; Sun, 28 Oct 2001 19:50:47 -0800 Received: from humbolt.nl.linux.org ([IPv6:::ffff:131.211.28.48]:13073 "HELO there") by humbolt.nl.linux.org with SMTP id ; Mon, 29 Oct 2001 04:50:35 +0100 Content-Type: text/plain; charset=US-ASCII From: Daniel Phillips To: kernprof@oss.sgi.com Subject: Kernprof with gcc 3.0.2 Date: Mon, 29 Oct 2001 04:51:39 +0100 X-Mailer: KMail [version 1.3.2] MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Message-Id: <20011029035045Z16084-698+1279@humbolt.nl.linux.org> Sender: owner-kernprof@oss.sgi.com Precedence: bulk Hi, I just started using kernprof. First, thanks for all your hard work in putting together this tool and keeping it current. I built kernprof with gcc 3.0.2 and was able to boot ok. I did not patch the compiler. I have used kernprof -i successfully, but kernprof have seen no discernible results for call graphs. I imagine I'm supposed to do this: kernprof -tcg kernprof -b kernprof -g Is that correct? Nothing happens. PC sampling works fine. Does this mean that mcount isn't working? I didn't have any luck with pmc. By the way, is there supposed to be a gmon.c, or is that function handled by kernprof now? Finally, I made this change to the Makefile to get it to compile: -LINUX_INC_ROOT = /usr/include +LINUX_INC_ROOT = /usr/src/linux/include -- Daniel From owner-kernprof@oss.sgi.com Mon Oct 29 09:02:25 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id f9TH2Pk22442 for kernprof-outgoing; Mon, 29 Oct 2001 09:02:25 -0800 Received: from yog-sothoth.sgi.com (eugate.sgi.com [192.48.160.10]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id f9TH2H022439 for ; Mon, 29 Oct 2001 09:02:17 -0800 Received: from cthulhu.engr.sgi.com (cthulhu.engr.sgi.com [192.26.80.2]) by yog-sothoth.sgi.com (980305.SGI.8.8.8-aspam-6.2/980304.SGI-aspam-europe) via ESMTP id SAA1030558 for ; Mon, 29 Oct 2001 18:02:15 +0100 (CET) mail_from (hawkes@sgi.com) Received: from wrlarun (sshgate.corp.sgi.com [169.238.216.146]) by cthulhu.engr.sgi.com (SGI-8.9.3/8.9.3) with SMTP id JAA01773; Mon, 29 Oct 2001 09:00:58 -0800 (PST) Message-ID: <001101c1609b$0375e560$6801a8c0@wrlarun> From: "John Hawkes" To: "Daniel Phillips" , References: <20011029035045Z16084-698+1279@humbolt.nl.linux.org> Subject: Re: Kernprof with gcc 3.0.2 Date: Mon, 29 Oct 2001 08:59:03 -0800 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2919.6600 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 Sender: owner-kernprof@oss.sgi.com Precedence: bulk From: "Daniel Phillips" > 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. > I have used kernprof -i successfully, but kernprof have seen no > discernible results for call graphs. I imagine I'm supposed to do this: > > kernprof -tcg > kernprof -b > > kernprof -g > > Is that correct? Nothing happens. PC sampling works fine. Does this mean > that mcount isn't working? "kernprof -g" should produce a file "gmon.out". > I didn't have any luck with pmc. I haven't tried pmc with anything beyond gcc (patched) 2.94.x and a 2.4.10 kernel. > 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. > Finally, I made this change to the Makefile to get it to compile: > > -LINUX_INC_ROOT = /usr/include > +LINUX_INC_ROOT = /usr/src/linux/include Or you can simply set this environment variable before the "make" or as part of the "make". John Hawkes hawkes@sgi.com From owner-kernprof@oss.sgi.com Mon Oct 29 12:30:03 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id f9TKU3206337 for kernprof-outgoing; Mon, 29 Oct 2001 12:30:03 -0800 Received: from starship.berlin (dsl-213-023-043-245.arcor-ip.net [213.23.43.245]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id f9TKTv006322 for ; Mon, 29 Oct 2001 12:29:58 -0800 Received: from daniel by starship.berlin with local (Exim 3.32 #1 (Debian)) id 15yJ3d-0000Ng-00; Mon, 29 Oct 2001 21:30:53 +0100 Content-Type: text/plain; charset="iso-8859-1" From: Daniel Phillips To: "John Hawkes" , Subject: Re: Kernprof with gcc 3.0.2 Date: Mon, 29 Oct 2001 21:30:53 +0100 X-Mailer: KMail [version 1.3.2] References: <20011029035045Z16084-698+1279@humbolt.nl.linux.org> <001101c1609b$0375e560$6801a8c0@wrlarun> In-Reply-To: <001101c1609b$0375e560$6801a8c0@wrlarun> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: Sender: owner-kernprof@oss.sgi.com Precedence: bulk On October 29, 2001 05:59 pm, John Hawkes wrote: > From: "Daniel Phillips" > > > 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 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 (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 From owner-kernprof@oss.sgi.com Tue Oct 30 10:00:17 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id f9UI0Hf01055 for kernprof-outgoing; Tue, 30 Oct 2001 10:00:17 -0800 Received: (from hawkes@localhost) by oss.sgi.com (8.11.2/8.11.3) id f9UI0Fq01047 for kernprof@oss.sgi.com; Tue, 30 Oct 2001 10:00:15 -0800 Date: Tue, 30 Oct 2001 10:00:15 -0800 From: John Hawkes Message-Id: <200110301800.f9UI0Fq01047@oss.sgi.com> To: kernprof@oss.sgi.com Subject: kernprof v0.10.3 with minor fixes now available Sender: owner-kernprof@oss.sgi.com Precedence: bulk FYI, a new kernprof patch (version 0.10.3) is now available against the 2.4.13 kernel. This new version fixes three small bugs: * An uninitialized variable in PC_sample() that mistakenly missed recognizing that a PC fell into the range of kernel module addresses, instead reporting such PCs as "UNKNOWN KERNEL". * An incorrect conditional expression in kernprof initialization that was causing an unnecessary deallocation and reallocation of a data structure. * Adding sparc64 flush_register_windows() to two spots to stabilize data prior to calling the profiler hook. Additionally, a new kernprof command (version 1.3.2) is now available with a slightly improved "usage" explanation of a couple of arguments. http://oss.sgi.com/projects/kernprof/download/profile-0.10.3-2.4.13.tar.gz and http://oss.sgi.com/projects/kernprof/download/kernprof-1.3.2.tar.gz John Hawkes hawkes@sgi.com