From owner-freebsd-current Sun Sep 12 21:54: 6 1999 Delivered-To: freebsd-current@freebsd.org Received: from gidora.zeta.org.au (gidora.zeta.org.au [203.26.10.25]) by hub.freebsd.org (Postfix) with SMTP id 9A18A14D9C for ; Sun, 12 Sep 1999 21:54:01 -0700 (PDT) (envelope-from bde@zeta.org.au) Received: (qmail 4740 invoked from network); 13 Sep 1999 04:53:59 -0000 Received: from d214.syd2.zeta.org.au (203.26.9.86) by gidora.zeta.org.au with SMTP; 13 Sep 1999 04:53:59 -0000 Date: Mon, 13 Sep 1999 14:53:54 +1000 (EST) From: Bruce Evans X-Sender: bde@alphplex.bde.org To: Jeroen Ruigrok/Asmodai Cc: current@FreeBSD.ORG Subject: Re: profiling on kernels In-Reply-To: <19990912233102.L83446@daemon.ninth-circle.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > Could someone please look into compiling kernels with profiling? > [this is done by config -p on the kernel config file] It works for me. `config -pp' is broken in -current (due to an incomplete upgrade to egcs). `config -p' is broken in RELENG_3 (due to an incomplete upgrade to elf). > Also, this still has relevance to PR kern/9413, but I haven't had time > to test the patches supplied. I will do that tomorrow night. More complete patches ahve already been applied to -current: RCS file: /home/ncvs/src/sys/i386/isa/prof_machdep.c,v Working file: prof_machdep.c head: 1.14 ... ---------------------------- revision 1.12 date: 1999/05/06 09:44:55; author: bde; state: Exp; lines: +28 -23 Fixed profiling of elf kernels. Made high resolution profiling compile for elf kernels (it is broken for all kernels due to lack of egcs support). Renaming of many assembler labels is avoided by declaring by declaring the labels that need to be visible to gprof as having type "function" and depending on the elf version of gprof being zealous about discarding the others. A few type declarations are still missing, mainly for SMP. PR: 9413 Submitted by: Assar Westerlund (initial parts) ---------------------------- Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message