[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] add a counter in grub_dprintf

From: Robert Millan
Subject: [PATCH] add a counter in grub_dprintf
Date: Thu, 19 Jun 2008 15:31:47 +0200
User-agent: Mutt/1.5.13 (2006-08-11)

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, and we can find non-ugly ways
to do this without massive #ifdefs all over the code.

Robert Millan

<GPLv2> I know my rights; I want my phone call!
<DRM> What good is a phone call… if you are unable to speak?
(as seen on /.)

Attachment: counter.diff
Description: Text Data

reply via email to

[Prev in Thread] Current Thread [Next in Thread]