[U-Boot] [PATCH 0/4] Accurate boot time measurement

Simon Glass sjg at chromium.org
Sat May 14 19:32:29 CEST 2011


On Sat, May 14, 2011 at 4:34 AM, Mike Frysinger <vapier at gentoo.org> wrote:

> On Friday, May 13, 2011 16:51:59 Simon Glass wrote:
> > This defines the basics of a new boot time measurement feature. This
> allows
> > logging of very accurate time measurements as the boot proceeds, by using
> > an available microsecond counter.
> >
> > To enable the feature, define CONFIG_BOOTSTAGE in your board config file.
> > Also available is CONFIG_BOOTSTAGE_REPORT which will cause a report to be
> > printed just before handing off to the OS.
>
> this seems to overlap the existing show_boot_progress() code.  any chance
> we
> can look at these being merged ?
> -mike
>

Hi Mike,

Yes I did look at this a few weeks ago. It would be a pretty invasive
change. That code just uses a whole lot of numbers which presumably are
approximately how far through the boot process we are. Bootstage is intended
as a debugging tool for performance tune-up rather than a user display tool.
I could imagine adding a table to bootstage with the progess number for each
bootstage id, but then people are going to complain that the bootstage
report is far to long and includes uninteresting things. I suppose I could
fix that by including a flag as to whether to report each item or not...but
it any case as you can see it is not a clear win.

If there is a strong appetite for that sort of patch I'm happy to do it.

Regards,
Simon


More information about the U-Boot mailing list