From owner-kernprof@oss.sgi.com Fri Nov 2 07:19:18 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fA2FJIt10406 for kernprof-outgoing; Fri, 2 Nov 2001 07:19:18 -0800 Received: from pavo (s3group.dial-up.cz [193.85.188.82]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fA2FJF010403 for ; Fri, 2 Nov 2001 07:19:15 -0800 Received: from pavo (s3group-6.dial-up.cz [193.85.188.85]) by lynx.s3group.cz with SMTP id QAA14084 for ; Fri, 2 Nov 2001 16:19:10 +0100 (MET) Content-Type: text/plain; charset="iso-8859-2" From: Ondrej Valousek Organization: S3 Group To: kernprof@oss.sgi.com Subject: Kernprof doesn't work???? Date: Fri, 2 Nov 2001 16:18:50 +0100 X-Mailer: KMail [version 1.2] MIME-Version: 1.0 Message-Id: <01110216185000.01569@dubhe.s3prague.cz> Content-Transfer-Encoding: 8bit Sender: owner-kernprof@oss.sgi.com Precedence: bulk Hi all, I have this problem: I've installed new 2.4.13 kernel on my RedHat 7.0 Linux box. I've patched this kernel with the profiling patch. I've compiled the kernel with gcc 2.960000731 (shipped with RedHat) - I've taken a look at the patch for gcc as well, but I was unable to apply it as the file ..../linux.h was different than the patch expected. So, I assumed gcc 2.96 is OK. First error: I managed to boot the new kernel, but I was unable to include any module. Second error: I've made /dev/profile and ran kernprof to test it, but kernprof returned zero (no hits to any function). I tried every flag to kernprof. Insmod refuses to load any module to the kernel - it complains about unresolved external symbol mcount in each module. The most crasy thing is that mcount IS actually exported by kernel (according to /proc/ksyms), but with tail "_Rsmp_b4390f9a" which is not (nm -g objfile) expected by the module. I tried to compile the kernel with the brand new gcc3.0.1 but with the same results. Does anyone have any suggestion? I need help please. Thank in advance. Ondrej Valousek From owner-kernprof@oss.sgi.com Wed Nov 14 13:35:44 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fAELZiN05260 for kernprof-outgoing; Wed, 14 Nov 2001 13:35:44 -0800 Received: (from hawkes@localhost) by oss.sgi.com (8.11.2/8.11.3) id fAELZh605256 for kernprof@oss.sgi.com; Wed, 14 Nov 2001 13:35:43 -0800 Date: Wed, 14 Nov 2001 13:35:43 -0800 From: John Hawkes Message-Id: <200111142135.fAELZh605256@oss.sgi.com> To: kernprof@oss.sgi.com Subject: Kernprof available for 2.4.14 Sender: owner-kernprof@oss.sgi.com Precedence: bulk FYI, the latest Kernprof (version 0.10.3) is now available as a patch against the 2.4.14 kernel: http://oss.sgi.com/projects/kernprof/download/profile-0.10.3-2.4.14.patch.gz John Hawkes hawkes@sgi.com From owner-kernprof@oss.sgi.com Thu Nov 15 12:43:18 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fAFKhIc25618 for kernprof-outgoing; Thu, 15 Nov 2001 12:43:18 -0800 Received: (from hawkes@localhost) by oss.sgi.com (8.11.2/8.11.3) id fAFKhGC25614 for kernprof@oss.sgi.com; Thu, 15 Nov 2001 12:43:16 -0800 Date: Thu, 15 Nov 2001 12:43:16 -0800 From: John Hawkes Message-Id: <200111152043.fAFKhGC25614@oss.sgi.com> To: kernprof@oss.sgi.com Subject: latest Kernprof patch backported to 2.4.9 Sender: owner-kernprof@oss.sgi.com Precedence: bulk FYI, the latest kernprof kernel patch (v0.10.3) has been backported as a patch against the 2.4.9 kernel (as well as the already-available patches against 2.4.13 and 2.4.14), so as to provide v0.10.3 functionality (Call Backtrace) against an early, still popular kernel version: http://oss.sgi.com/projects/kernprof/download John Hawkes hawkes@sgi.com From owner-kernprof@oss.sgi.com Tue Nov 27 10:18:23 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fARIINt27033 for kernprof-outgoing; Tue, 27 Nov 2001 10:18:23 -0800 Received: from ztxmail03.ztx.compaq.com (ztxmail03.ztx.compaq.com [161.114.1.207]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fARIIDo27029 for ; Tue, 27 Nov 2001 10:18:18 -0800 Received: by ztxmail03.ztx.compaq.com (Postfix, from userid 12345) id 1D8EE32E4; Tue, 27 Nov 2001 11:18:07 -0600 (CST) Received: from cceexg13.americas.cpqcorp.net (cceexg13.americas.cpqcorp.net [16.110.250.119]) by ztxmail03.ztx.compaq.com (Postfix) with ESMTP id 0C68E33C6 for ; Tue, 27 Nov 2001 11:18:07 -0600 (CST) Received: from cceexc18.americas.cpqcorp.net ([16.110.250.64]) by cceexg13.americas.cpqcorp.net with Microsoft SMTPSVC(5.0.2195.2966); Tue, 27 Nov 2001 11:18:02 -0600 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-MimeOLE: Produced By Microsoft Exchange V6.0.4712.0 Subject: 2.4.16 kernel, 0.10.3 profiler, 2.96 gcc, insmod -> unresolved symbol mcount Date: Tue, 27 Nov 2001 11:18:01 -0600 Message-ID: <45B36A38D959B44CB032DA427A6E10640167CF00@cceexc18.americas.cpqcorp.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: 2.4.16 kernel, 0.10.3 profiler, 2.96 gcc, insmod -> unresolved symbol mcount Thread-Index: AcF3Z3feiELzOSKXRYWjYKvrGNqYTw== From: "Cameron, Steve" To: X-OriginalArrivalTime: 27 Nov 2001 17:18:02.0305 (UTC) FILETIME=[7814CB10:01C17767] Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by oss.sgi.com id fARIIJo27030 Sender: owner-kernprof@oss.sgi.com Precedence: bulk Hi, (please cc me directly as I'm not subscribed, if it's not too much trouble.) I gather this has been seen before, but under different circumsntatnces. I couldn't find a solution though. I looked through the archives a bit, (long enough to see I'm not the only one with this problem) and through the FAQ. Doing "insmod anymodule" I get unresolved symbol mcount (Though all my looking through the code, I can't see how mcount can possibly be unresolved, (e.g. nm vmlinux shows it as "T", in the text) I have patched 2.4.16 with the profiler patch 0.10.3,(for 2.4.14) (small mismatch in sched.c, but no big deal to fix, and some rejects in ia64 and sparc land that I ignored, as I'm in i386 land.) my gcc is 2.96 (this is redhat 7.2) Any ideas? >From the web page, I see that this exact bug was fixed in a previous version of the profiler... I guess it has come back? Thanks, -- steve From owner-kernprof@oss.sgi.com Thu Nov 29 15:37:47 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fATNbla11038 for kernprof-outgoing; Thu, 29 Nov 2001 15:37:47 -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 fATNbho11032 for ; Thu, 29 Nov 2001 15:37:43 -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 XAA365964 for ; Thu, 29 Nov 2001 23:37:40 +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 OAA45407; Thu, 29 Nov 2001 14:36:23 -0800 (PST) Message-ID: <006501c17925$eaa690e0$6801a8c0@wrlarun> From: "John Hawkes" To: "Cameron, Steve" , References: <45B36A38D959B44CB032DA427A6E10640167CF00@cceexc18.americas.cpqcorp.net> Subject: Re: 2.4.16 kernel, 0.10.3 profiler, 2.96 gcc, insmod -> unresolved symbol mcount Date: Thu, 29 Nov 2001 14:33:49 -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: "Cameron, Steve" > Doing "insmod anymodule" I get > > unresolved symbol mcount > > (Though all my looking through the code, I can't see how > mcount can possibly be unresolved, > (e.g. nm vmlinux shows it as "T", in the text) > > I have patched 2.4.16 with the profiler patch 0.10.3,(for 2.4.14) > (small mismatch in sched.c, but no big deal to fix, and some > rejects in ia64 and sparc land that I ignored, as I'm > in i386 land.) I've just done pretty much the same thing -- 0.10.4 massaged to patch 2.4.16 -- and I'm not seeing this same insmod problem. Are you sure you compiled your kernel with CONFIG_MCOUNT? John Hawkes hawkes@sgi.com