Return-Path: X-Original-To: hmp@nxad.com Delivered-To: hmp@perrin.int.nxad.com Received: from mx2.freebsd.org (mx2.freebsd.org [216.136.204.119]) by perrin.int.nxad.com (Postfix) with ESMTP id 9B68220F00 for ; Sat, 19 Jul 2003 17:53:26 -0700 (PDT) Received: from hub.freebsd.org (hub.freebsd.org [216.136.204.18]) by mx2.freebsd.org (Postfix) with ESMTP id A125E55971 for ; Sat, 19 Jul 2003 17:53:12 -0700 (PDT) (envelope-from bugs-errors@crater.dragonflybsd.org) Received: by hub.freebsd.org (Postfix) id 9B0A037B405; Sat, 19 Jul 2003 17:53:12 -0700 (PDT) Delivered-To: hmp@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 967A837B401; Sat, 19 Jul 2003 17:53:12 -0700 (PDT) Received: from crater.dragonflybsd.org (crater.dragonflybsd.org [216.240.41.25]) by mx1.FreeBSD.org (Postfix) with ESMTP id 11AD943F75; Sat, 19 Jul 2003 17:53:09 -0700 (PDT) (envelope-from bugs-errors@crater.dragonflybsd.org) Received: from crater.dragonflybsd.org (localhost [127.0.0.1]) by crater.dragonflybsd.org (8.12.9/8.12.8) with ESMTP id h6K0qnmc050410; Sat, 19 Jul 2003 17:52:49 -0700 (PDT) (envelope-from bugs-errors@crater.dragonflybsd.org) Received: (from mailnull@localhost) by crater.dragonflybsd.org (8.12.9/8.12.8/Submit) id h6K0q72m050106; Sat, 19 Jul 2003 17:52:07 -0700 (PDT) Received: from walnut.he.net (walnut.he.net [64.71.137.114]) by crater.dragonflybsd.org (8.12.9/8.12.8) with ESMTP id h6K0q7mc050097 for ; Sat, 19 Jul 2003 17:52:07 -0700 (PDT) (envelope-from kmacy@fsmware.com) Received: from localhost (kmacy@localhost) by walnut.he.net (8.8.6p2003-03-31/8.8.2) with ESMTP id RAA14372; Sat, 19 Jul 2003 17:52:12 -0700 Message-Id: From: Kip Macy Subject: Re: compiling profiling broken Date: Sat, 19 Jul 2003 17:52:12 -0700 (PDT) BestServHost: crater.dragonflybsd.org List-Post: List-Subscribe: List-Unsubscribe: List-Help: List-Owner: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII In-Reply-To: <200307200045.h6K0jHIf018421@apollo.backplane.com> Sender: bugs-errors@crater.dragonflybsd.org Errors-To: bugs-errors@crater.dragonflybsd.org To: bugs@crater.dragonflybsd.org Here is the (trivial) diff: Index: i386/include/asmacros.h =================================================================== RCS file: /home/kmacy/dcvs/src/sys/i386/include/asmacros.h,v retrieving revision 1.4 diff -r1.4 asmacros.h 117,118c117,118 < #define FAKE_MCOUNT(caller) pushl caller ; call _mcount ; popl %ecx < #define MCOUNT call _mcount --- > #define FAKE_MCOUNT(caller) pushl caller ; call __mcount ; popl %ecx > #define MCOUNT call __mcount Index: i386/include/profile.h =================================================================== RCS file: /home/kmacy/dcvs/src/sys/i386/include/profile.h,v retrieving revision 1.2 diff -r1.2 profile.h 73c73 < #define MCOUNT_ENTER(s) { s = read_eflags(); disable_intr(); } --- > #define MCOUNT_ENTER(s) { s = read_eflags(); cpu_disable_intr(); } On Sat, 19 Jul 2003, Matthew Dillon wrote: > If someone would like a go at fixing this please do ! Else I'll tackle > it in a week or two. p.s. there might be other issues with profiling > due to me not being too careful in my use of 'ret' in the assembly > ('ret' is overridden in the profiling code to do a lot more then just > 'ret'). > > I agree that profiling would be nice. I'm not sure how relevant it will > be with the MP lock in place, but it should still tell us something. > > -Matt > Matthew Dillon > > -Matt > > : > :Don't worry 4.6.2, and 4.8 don't work. I guess profiling isn't > :interesting to many people nonetheless it would be nice if it worked: > :mcount.o: In function `mcount': > :mcount.o(.text+0x21): undefined reference to `disable_intr' > :bioscall.o: In function `bios32': > :bioscall.o(.text+0x1): undefined reference to `_mcount' > :bioscall.o: In function `bios16_call': > :bioscall.o(.text+0x71): undefined reference to `_mcount' > :exception.o: In function `Xfpu': > :exception.o(.text+0x15c): undefined reference to `_mcount' > :exception.o: In function `alltraps_with_regs_pushed': > :exception.o(.text+0x1c8): undefined reference to `_mcount' > :exception.o: In function `calltrap': > :exception.o(.text+0x1d4): undefined reference to `_mcount' > :exception.o(.text+0x23c): more undefined references to `_mcount' follow > :swtch.o: In function `tosw1a': > :swtch.o(.text+0x1d6): undefined reference to `sw1a' > :*** Error code 1 > : >