Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1K9P5w-000304-78 for mharc-grub-devel@gnu.org; Thu, 19 Jun 2008 14:42:52 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K9P5u-0002zW-OH for grub-devel@gnu.org; Thu, 19 Jun 2008 14:42:50 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K9P5t-0002yR-BT for grub-devel@gnu.org; Thu, 19 Jun 2008 14:42:50 -0400 Received: from [199.232.76.173] (port=43819 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K9P5s-0002yI-Vt for grub-devel@gnu.org; Thu, 19 Jun 2008 14:42:49 -0400 Received: from mta11.charter.net ([216.33.127.80]:49061) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1K9P5s-0007wA-KF for grub-devel@gnu.org; Thu, 19 Jun 2008 14:42:48 -0400 Received: from aarprv06.charter.net ([10.20.200.76]) by mta11.charter.net (InterMail vM.7.08.03.00 201-2186-126-20070710) with ESMTP id <20080619184244.KVYO2622.mta11.charter.net@aarprv06.charter.net> for ; Thu, 19 Jun 2008 14:42:44 -0400 Received: from [192.168.0.102] (really [71.10.234.12]) by aarprv06.charter.net with ESMTP id <20080619184244.VEHE3194.aarprv06.charter.net@[192.168.0.102]> for ; Thu, 19 Jun 2008 14:42:44 -0400 Message-ID: <485AA89A.5030404@isaac.cedarswampstudios.org> Date: Thu, 19 Jun 2008 14:42:34 -0400 From: Isaac Dupree User-Agent: Thunderbird 2.0.0.14 (X11/20080505) MIME-Version: 1.0 To: The development of GRUB 2 References: <20080619133147.GA5018@thorin> In-Reply-To: <20080619133147.GA5018@thorin> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Chzlrs: 0 X-detected-kernel: by monty-python.gnu.org: Solaris 10 (1203?) Subject: Re: [PATCH] add a counter in grub_dprintf X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Jun 2008 18:42:51 -0000 Robert Millan wrote: > How about adding a counter to grub_dprintf to make it easy to instrument > GRUB and find which are the bottlenecks in boot time? > > Sidenote: perhaps it'd be a good idea to conditionalize all grub_dprintf > calls with #ifdef DEBUG to obtain a smaller core.img. It's not hard to > ask a user to rebuild if dprintf is needed, Are the dprintf's useful for users' debugging, not just debugging GRUB bugs? If it is, I'm not sure... If I accidentally broke something on my disk so that the core image couldn't find the modules/configuration, then it might be a little hard to rebuild grub and reinstall on that machine. Obviously I'll be able to, somehow, if my computer isn't completely hosed, but I'd rather be able to search for debugging information I recorded ASAP so I need fewer iterations of nuisance for myself. Perhaps a minor issue. -Isaac