From owner-freebsd-ports@FreeBSD.ORG Sun May 25 04:36:22 2003 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BC7F737B408 for ; Sun, 25 May 2003 04:36:11 -0700 (PDT) Received: from cirb503493.alcatel.com.au (c18609.belrs1.nsw.optusnet.com.au [210.49.80.204]) by mx1.FreeBSD.org (Postfix) with ESMTP id 09EA643F93 for ; Sun, 25 May 2003 04:36:10 -0700 (PDT) (envelope-from peterjeremy@optushome.com.au) Received: from cirb503493.alcatel.com.au (localhost.alcatel.com.au [127.0.0.1])h4PBa8p9041753 for ; Sun, 25 May 2003 21:36:08 +1000 (EST) (envelope-from jeremyp@cirb503493.alcatel.com.au) Received: (from jeremyp@localhost) by cirb503493.alcatel.com.au (8.12.8/8.12.8/Submit) id h4PBa6tn041752 for freebsd-ports@freebsd.org; Sun, 25 May 2003 21:36:06 +1000 (EST) Date: Sun, 25 May 2003 21:36:05 +1000 From: Peter Jeremy To: freebsd-ports@freebsd.org Message-ID: <20030525113605.GA41726@cirb503493.alcatel.com.au> References: <20030525045021.GA41260@cirb503493.alcatel.com.au> <1053840795.731.212.camel@leguin> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030525045430.GA25151@rot13.obsecurity.org> User-Agent: Mutt/1.4.1i Subject: Re: Debugging X11 Server X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 May 2003 11:36:22 -0000 Getting profiling to work with Xfree86 server: On Sat, May 24, 2003 at 09:54:30PM -0700, Kris Kennaway wrote: >You can try adding the missing symbols to xf86syms.c - XFree86 uses >its own runtime linker for modules. Thanks for that. I think I've bumped into xf86sym.c previously when tracking down a problem. Unfortunately, it's not immediately obvious (to me) how to include a reference to '.mcount' in C code. I could have studied the gcc documentation but Eric came up with an alternative: On Sat, May 24, 2003 at 10:33:15PM -0700, Eric Anholt wrote: >You could compile all the modules into the server by adding "#define >DoLoadableServer NO" to your host.conf when you compile XFree86-4-Server >(see scripts/configure for other defines that are added). This almost worked. It resulted in an unresolved 'ELO2300' which I fixed by removing elo2300 from XInputDrivers (I don't need it and this was quicker than working out why the reference was generated). Thanks to both of you - profiling now works. I've located the cause of the poor performance, all that's left is working out how to fix it. Peter