From owner-kernprof@oss.sgi.com Mon Aug 6 19:08:54 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id f7728sx12128 for kernprof-outgoing; Mon, 6 Aug 2001 19:08:54 -0700 Received: from igw3.watson.ibm.com (igw3.watson.ibm.com [198.81.209.18]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id f7728qV12124 for ; Mon, 6 Aug 2001 19:08:52 -0700 Received: from sp1n189at0.watson.ibm.com (sp1n189at0.watson.ibm.com [9.2.104.62]) by igw3.watson.ibm.com (8.11.4/8.11.4) with ESMTP id f7728k708380 for ; Mon, 6 Aug 2001 22:08:46 -0400 Received: from orinoco.watson.ibm.com (orinoco.watson.ibm.com [9.2.16.142]) by sp1n189at0.watson.ibm.com (8.9.3/Feb-20-98) with ESMTP id WAA25476 for ; Mon, 6 Aug 2001 22:08:46 -0400 Received: (from nahum@localhost) by orinoco.watson.ibm.com (AIX4.3/8.9.3/8.9.3/01-10-2000) id WAA40562 for kernprof@oss.sgi.com; Mon, 6 Aug 2001 22:08:45 -0400 From: Erich Nahum Message-Id: <200108070208.WAA40562@orinoco.watson.ibm.com> Subject: RH gcc-2.96-85: OK? To: kernprof@oss.sgi.com Date: Mon, 6 Aug 2001 22:08:45 -0400 (EDT) Reply-to: nahum@watson.ibm.com (Erich M. Nahum) X-Url: http://www.research.ibm.com/people/n/nahum/ X-Mailer: ELM [version 2.5 PL2] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-kernprof@oss.sgi.com Precedence: bulk Hi All, I am looking to use kernprof but am really reluctant to build and install GCC. I'm afraid there will be collisions with the native GCC compiler, etc. Instead I'm hoping the latest GCC from RedHat, 2.96-85 as they call it, will work with kernprof. The SGI patch for GCC from 2.95.2 doesn't seem to cleanly go into it. Instead, in gcc/config/i386/linux.h, 2.96-85 has: | /* Output assembler code to FILE to call the profiler. | To the best of my knowledge, no Linux libc has required the label | argument to mcount. */ | | #define NO_PROFILE_COUNTERS | | #undef FUNCTION_PROFILER | #define FUNCTION_PROFILER(FILE, LABELNO) \ | { \ | if (flag_pic) \ | fprintf (FILE, "\tcall\t*mcount@GOT(%%ebx)\n"); \ | else \ | fprintf (FILE, "\tcall\tmcount\n"); \ | } Does anyone know if this addresses the bug? Thanks, -Erich -- Erich M. Nahum IBM T.J. Watson Research Center Networking Research P.O. Box 704 nahum@watson.ibm.com Yorktown Heights NY 10598 From owner-kernprof@oss.sgi.com Thu Aug 9 14:21:34 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id f79LLYJ00674 for kernprof-outgoing; Thu, 9 Aug 2001 14:21:34 -0700 Received: from harrier.csrv.uidaho.edu (root@harrier.csrv.uidaho.edu [129.101.119.224]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id f79LLVV00667 for ; Thu, 9 Aug 2001 14:21:31 -0700 Received: from wg (xtsd0301.it.wsu.edu [134.121.3.41]) by harrier.csrv.uidaho.edu (8.8.6 (PHNE_17135)/) with SMTP id OAA17234 for ; Thu, 9 Aug 2001 14:21:26 -0700 (PDT) Message-ID: <000801c12119$16b73910$29037986@wg> From: "gang" To: Subject: who used it before. Date: Thu, 9 Aug 2001 14:20:14 -0700 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0005_01C120DE.67EBF4F0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2919.6700 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 Sender: owner-kernprof@oss.sgi.com Precedence: bulk This is a multi-part message in MIME format. ------=_NextPart_000_0005_01C120DE.67EBF4F0 Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: base64 SGksIGd1eXM6DQogIEkgd2FudCB0byB1c2UgdGhpcyB0b29sLiBCdXQgSSBtZXQgb25lIHByb2Js ZW0uIFNvIGlmIHlvdSBrbm93IHRoaXMgdG9vbCBvciB0cmllZCBpdCBiZWZvcmUsIGdpdmUgbWUg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PTlQ+PC9ESVY+DQo8RElWPjxGT05UIHNpemU9Mj4mbmJzcDtJIGRvbid0IGtu b3cgaG93IHRvIHNvbHZlIHRoaXMgcHJvYmxlbS4gc28gaWYgeW91IGtub3csIA0KZS1tYWlsIG1l LjwvRk9OVD48L0RJVj4NCjxESVY+PEZPTlQgc2l6ZT0yPiZuYnNwO3RoYW5rIHlvdSBldmV5IG11 Y2g8L0ZPTlQ+PC9ESVY+DQo8RElWPjxGT05UIHNpemU9Mj5nYW5nIDwvRk9OVD48L0RJVj4NCjxE SVY+PEZPTlQgc2l6ZT0yPiZuYnNwOyA8L0ZPTlQ+PC9ESVY+PC9CT0RZPjwvSFRNTD4NCg== ------=_NextPart_000_0005_01C120DE.67EBF4F0-- From owner-kernprof@oss.sgi.com Fri Aug 17 04:38:57 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id f7HBcvE31518 for kernprof-outgoing; Fri, 17 Aug 2001 04:38:57 -0700 Received: from tiku.hut.fi (tiku.hut.fi [130.233.228.86]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id f7HBctj31515 for ; Fri, 17 Aug 2001 04:38:55 -0700 Received: from kosh.hut.fi (jlavi@kosh.hut.fi [130.233.228.10]) by tiku.hut.fi (8.9.3/8.9.3) with ESMTP id OAA03387 for ; Fri, 17 Aug 2001 14:38:54 +0300 (EET DST) Received: (from jlavi@localhost) by kosh.hut.fi (8.9.3/8.9.3) id OAA15113 for kernprof@oss.sgi.com; Fri, 17 Aug 2001 14:38:54 +0300 (EET DST) Date: Fri, 17 Aug 2001 14:38:54 +0300 From: Jarkko Lavinen To: kernprof@oss.sgi.com Subject: Arm support? Message-ID: <20010817143854.A10035@kosh.hut.fi> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.6i X-Operating-System: OSF1 kosh.hut.fi V4.0 1229 alpha Sender: owner-kernprof@oss.sgi.com Precedence: bulk Hi, has anyone profiled linux kernel running on Arm or StrongArm using kernelprof? If not, how difficult it would be to add the profiling support for new CPU? Is this question appropriate at all in this list since Arm is used in embedded world? Jarkko Lavinen From owner-kernprof@oss.sgi.com Wed Aug 22 15:59:44 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id f7MMxiE08265 for kernprof-outgoing; Wed, 22 Aug 2001 15:59:44 -0700 Received: from elaine1.Stanford.EDU (elaine1.Stanford.EDU [171.64.15.66]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id f7MMxgd08262 for ; Wed, 22 Aug 2001 15:59:42 -0700 Received: (from antonan@localhost) by elaine1.Stanford.EDU (8.11.6/8.11.6) id f7MMxbG20427; Wed, 22 Aug 2001 15:59:37 -0700 (PDT) Date: Wed, 22 Aug 2001 15:59:37 -0700 (PDT) From: Dong Anton An To: Subject: profile.h Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-kernprof@oss.sgi.com Precedence: bulk Hi all, I am trying to install Kernprof for kernel 2.4.0. When I make kernprof, there was an error -- profile.h was not found in /usr/include/linux. I did a locate profile.h and found a couple of files named profile.h. However, none of them appeared to be the one expected as there were compile time errors. Some constants were not found. Can someone mail me a copy of the file? Thank you in advance. Anton From owner-kernprof@oss.sgi.com Wed Aug 22 16:06:41 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id f7MN6fc08424 for kernprof-outgoing; Wed, 22 Aug 2001 16:06:41 -0700 Received: from e31.bld.us.ibm.com (e31.co.us.ibm.com [32.97.110.129]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id f7MN6cd08415 for ; Wed, 22 Aug 2001 16:06:38 -0700 Received: from westrelay02.boulder.ibm.com (westrelay02.boulder.ibm.com [9.99.140.23]) by e31.bld.us.ibm.com (8.9.3/8.9.3) with ESMTP id TAA61160; Wed, 22 Aug 2001 19:04:22 -0400 Received: from d03nm104.boulder.ibm.com (d03nm104.boulder.ibm.com [9.99.140.96]) by westrelay02.boulder.ibm.com (8.11.1m3/NCO v4.97.1) with ESMTP id f7MN6MP229894; Wed, 22 Aug 2001 17:06:22 -0600 Subject: Re: profile.h To: Dong Anton An Cc: kernprof@oss.sgi.com X-Mailer: Lotus Notes Release 5.0.7 March 21, 2001 Message-ID: From: "Bruce Allan" Date: Wed, 22 Aug 2001 16:04:17 -0700 X-MIMETrack: Serialize by Router on D03NM104/03/M/IBM(Release 5.0.8 |June 18, 2001) at 08/22/2001 05:10:37 PM MIME-Version: 1.0 Content-type: text/plain; charset=us-ascii Sender: owner-kernprof@oss.sgi.com Precedence: bulk Use the command line: # make LINUX_INC_ROOT=/include For example, I've got my current kernel sources in /usr/src/linux-2.4.7, so I would use # make LINUX_INC_ROOT=/usr/src/linux-2.4.7/include Bruce Allan/Beaverton/IBM IBM Linux Technology Center - OS Gold 503-578-4187 T/L 775-4187 bruce.allan@us.ibm.com Dong Anton An d.EDU> cc: Sent by: Subject: profile.h owner-kernprof@o ss.sgi.com 08/22/2001 03:59 PM Hi all, I am trying to install Kernprof for kernel 2.4.0. When I make kernprof, there was an error -- profile.h was not found in /usr/include/linux. I did a locate profile.h and found a couple of files named profile.h. However, none of them appeared to be the one expected as there were compile time errors. Some constants were not found. Can someone mail me a copy of the file? Thank you in advance. Anton From owner-kernprof@oss.sgi.com Thu Aug 30 11:31:53 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id f7UIVro25963 for kernprof-outgoing; Thu, 30 Aug 2001 11:31:53 -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 f7UIVod25958 for ; Thu, 30 Aug 2001 11:31:51 -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 LAA06528 for ; Thu, 30 Aug 2001 11:31:45 -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)); Thu, 30 Aug 2001 11:31:30 -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 LAA26789 for ; Thu, 30 Aug 2001 11:31:43 -0700 (PDT) Received: by caexmta9.amd.com with Internet Mail Service (5.5.2653.19) id ; Thu, 30 Aug 2001 11:31:28 -0700 Message-ID: To: kernprof@oss.sgi.com Subject: Profiling does not give information about some functions Date: Thu, 30 Aug 2001 11:31:26 -0700 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) X-WSS-ID: 17905908299815-01-01 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 7bit Sender: owner-kernprof@oss.sgi.com Precedence: bulk Hi, I was trying to use kernprof to see how expensive is each function on tcp/ip stack.I could run the kernprof and watch the output file using gprof.I did some file transfer using ftp while running kernprof .Kernprof gives information about whole lot of functions,but does not give information about some functions , I am interested like,tcp_sendmsg and tcp_transmit_skb etc.As far as I know these are not working with interrupt disabled.What can be the reason.Any help is appreciated. Also how can I increase the frequency of sampling.Default frequency is 100Hz, but when I add the option "-f 100" or any other frequncy,it gives an error "frequency out of range." I couldn't find a manpage on kernprof,it will be great if somebody can send me a link. Thanks in advance, RJ -----Original Message----- From: Jarkko Lavinen [mailto:jlavi@iki.fi] Sent: Friday, August 17, 2001 4:39 AM To: kernprof@oss.sgi.com Subject: Arm support? Hi, has anyone profiled linux kernel running on Arm or StrongArm using kernelprof? If not, how difficult it would be to add the profiling support for new CPU? Is this question appropriate at all in this list since Arm is used in embedded world? Jarkko Lavinen From owner-kernprof@oss.sgi.com Fri Aug 31 03:53:32 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id f7VArWI15602 for kernprof-outgoing; Fri, 31 Aug 2001 03:53:32 -0700 Received: from abfly.tritech.co.jp (abfly.tritech.co.jp [202.33.181.211]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id f7VArUd15599 for ; Fri, 31 Aug 2001 03:53:30 -0700 Received: (qmail 2669 invoked from network); 31 Aug 2001 10:53:29 -0000 Received: from adam.tritech.co.jp (10.1.1.201) by abfly.tritech.co.jp with SMTP; 31 Aug 2001 10:53:29 -0000 Received: from localhost by adam.tritech.co.jp (8.9.3/3.3W9-04/02/96) id UAA64970; Fri, 31 Aug 2001 20:09:02 +0900 (JST) To: kernprof@oss.sgi.com Subject: on GMON_TAG_CALL_STACK X-Mailer: Mew version 1.94.1 on Emacs 20.7 / Mule 4.0 (HANANOEN) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: <20010831193513O.nakayama@tritech.co.jp> Date: Fri, 31 Aug 2001 19:35:13 +0900 From: Nakayama Shintaro X-Dispatcher: imput version 991025(IM133) Lines: 13 Sender: owner-kernprof@oss.sgi.com Precedence: bulk Hi. I took call trace using kernprof-1.2.2 and tried to view the result only to find gprof doesn't support GMON_TAG_CALL_STACK and GMON_TAG_CALL_STACK_SAMPLING_HDR. I also checked gprof included in binutils-2.11 and it also doesn't support those tags. Does anyone have a tool to view the results? Or working on it? If not, I'm going to hack gprof. Thank you.