From owner-kernprof@oss.sgi.com Tue Mar 28 10:01:09 2000 Received: by oss.sgi.com id ; Tue, 28 Mar 2000 10:00:49 -0800 Received: from e22.nc.us.ibm.com ([32.97.136.228]:40925 "EHLO e22.nc.us.ibm.com") by oss.sgi.com with ESMTP id ; Tue, 28 Mar 2000 10:00:46 -0800 Received: from southrelay02.raleigh.ibm.com (southrelay02.raleigh.ibm.com [9.37.3.209]) by e22.nc.us.ibm.com (8.9.3/8.9.3) with ESMTP id MAA17344 for ; Tue, 28 Mar 2000 12:42:24 -0600 From: raybry@us.ibm.com Received: from d54mta08.raleigh.ibm.com (d54mta08.raleigh.ibm.com [9.67.228.40]) by southrelay02.raleigh.ibm.com (8.8.8m2/NCO v2.06) with SMTP id NAA43932 for ; Tue, 28 Mar 2000 13:00:44 -0500 Received: by d54mta08.raleigh.ibm.com(Lotus SMTP MTA v4.6.5 (863.2 5-20-1999)) id 852568B0.0062F117 ; Tue, 28 Mar 2000 13:00:42 -0500 X-Lotus-FromDomain: IBMUS To: kernprof@oss.sgi.com Message-ID: <852568B0.0062EC66.00@d54mta08.raleigh.ibm.com> Date: Tue, 28 Mar 2000 11:52:08 -0600 Subject: prebuilt gcc Mime-Version: 1.0 Content-type: text/plain; charset=us-ascii Content-Disposition: inline Sender: owner-kernprof@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;kernprof-outgoing Does anyone have a prebuilt binary for gcc (IA32) that includes the gcc patch? I'd much prefer not have to learn how to build gcc if I can avoid it... If not, where does one start this whole process (getting all of gcc, building, etc....) Best Regards, Ray Bryant IBM Linux Technology Center raybry@us.ibm.com 512-838-8538 From owner-kernprof@oss.sgi.com Tue Mar 28 14:39:21 2000 Received: by oss.sgi.com id ; Tue, 28 Mar 2000 14:39:01 -0800 Received: from e24.nc.us.ibm.com ([32.97.136.230]:20099 "EHLO e24.nc.us.ibm.com") by oss.sgi.com with ESMTP id ; Tue, 28 Mar 2000 14:38:46 -0800 Received: from southrelay02.raleigh.ibm.com (southrelay02.raleigh.ibm.com [9.37.3.209]) by e24.nc.us.ibm.com (8.9.3/8.9.3) with ESMTP id RAA28736 for ; Tue, 28 Mar 2000 17:26:43 -0600 From: raybry@us.ibm.com Received: from d54mta08.raleigh.ibm.com (d54mta08.raleigh.ibm.com [9.67.228.40]) by southrelay02.raleigh.ibm.com (8.8.8m2/NCO v2.06) with SMTP id RAA40234 for ; Tue, 28 Mar 2000 17:38:44 -0500 Received: by d54mta08.raleigh.ibm.com(Lotus SMTP MTA v4.6.5 (863.2 5-20-1999)) id 852568B0.007C643C ; Tue, 28 Mar 2000 17:38:41 -0500 X-Lotus-FromDomain: IBMUS To: kernprof@oss.sgi.com Message-ID: <852568B0.007C6364.00@d54mta08.raleigh.ibm.com> Date: Tue, 28 Mar 2000 16:30:16 -0600 Subject: ok...silly me.... Mime-Version: 1.0 Content-type: text/plain; charset=us-ascii Content-Disposition: inline Sender: owner-kernprof@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;kernprof-outgoing It appears that the patch described is already in egcs-1.1.2 as shipped with RedHat 6.1. Best Regards, Ray Bryant IBM Linux Technology Center raybry@us.ibm.com 512-838-8538 .~. / V \ L I N U X // \\ >Don't fear the penguin< /( )\ ^^^ ^^^ We are Linux. Resistance is an indication that you missed the point. From owner-kernprof@oss.sgi.com Thu Mar 30 13:15:07 2000 Received: by oss.sgi.com id ; Thu, 30 Mar 2000 13:14:58 -0800 Received: from e22.nc.us.ibm.com ([32.97.136.228]:23783 "EHLO e22.nc.us.ibm.com") by oss.sgi.com with ESMTP id ; Thu, 30 Mar 2000 13:14:39 -0800 Received: from southrelay02.raleigh.ibm.com (southrelay02.raleigh.ibm.com [9.37.3.209]) by e22.nc.us.ibm.com (8.9.3/8.9.3) with ESMTP id PAA26106; Thu, 30 Mar 2000 15:55:56 -0600 From: raybry@us.ibm.com Received: from d54mta08.raleigh.ibm.com (d54mta08.raleigh.ibm.com [9.67.228.40]) by southrelay02.raleigh.ibm.com (8.8.8m2/NCO v2.06) with SMTP id QAA41084; Thu, 30 Mar 2000 16:14:21 -0500 Received: by d54mta08.raleigh.ibm.com(Lotus SMTP MTA v4.6.5 (863.2 5-20-1999)) id 852568B2.0074A967 ; Thu, 30 Mar 2000 16:14:15 -0500 X-Lotus-FromDomain: IBMUS To: kernprof@oss.sgi.com cc: dmitris@sgi.com Message-ID: <852568B2.00749E5E.00@d54mta08.raleigh.ibm.com> Date: Thu, 30 Mar 2000 15:05:19 -0600 Subject: Questions about kernprof profile modes Mime-Version: 1.0 Content-type: text/plain; charset=us-ascii Content-Disposition: inline Sender: owner-kernprof@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;kernprof-outgoing We've downloaded and applied the kernprof patch to 2.3.99-pre3. We rebuilt gcc (well, egcs 2.91.66) with the gcc-patch. Here is our experience to date: pc mode profiling appears to work. call backtracing (mode "ct") produces a gmon.out.cpu.{0,1,2,3} file; however, when I run "gprof vmlinux gmon.out.cpu*" I get the following message: gprof: gmount.out.cpu.0: found bad tag 3. (file corrupted?) This is too bad because this should provide the information we want at relatively low overhead. Are we doing something wrong? This kernel was built >>with<< frame pointers. We'd appreciate some help in diagnosing the problem here. If I then compile with mcount enabled (the above were with frame pointers enabled) I can get output for call graph, annotated call graph, and call count using the gmon.out file and gprof. However, for "call count" the times reported appear to be bogus (shouldn't the times all be zero like they are for "call graph"?). Best Regards, Ray Bryant IBM Linux Technology Center raybry@us.ibm.com 512-838-8538 .~. / V \ L I N U X // \\ >Don't fear the penguin< /( )\ ^^^ ^^^ We are Linux. Resistance is an indication that you missed the point.