[U-Boot] [PATCH v4 13/15] bootstage: Implement core microsecond boot time measurement

Wolfgang Denk wd at denx.de
Sun Mar 18 21:42:34 CET 2012


Dear Simon Glass,

In message <1329177081-29496-14-git-send-email-sjg at chromium.org> you 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.
> 
> Most IDs are not named at this stage. For that I would first like to
> renumber them all.
> 
> Timer summary in microseconds:
>        Mark    Elapsed  Stage
>           0          0  reset
>     205,000    205,000  board_init_f
>   6,053,000  5,848,000  bootm_start
>   6,053,000          0  id=1
>   6,058,000      5,000  id=101
>   6,058,000          0  id=100
>   6,061,000      3,000  id=103
>   6,064,000      3,000  id=104
>   6,093,000     29,000  id=107
>   6,093,000          0  id=106
>   6,093,000          0  id=105
>   6,093,000          0  id=108
>   7,089,000    996,000  id=7
>   7,089,000          0  id=15
>   7,089,000          0  id=8
>   7,097,000      8,000  start_kernel
> 
> Signed-off-by: Simon Glass <sjg at chromium.org>
> ---
> Changes in v3:
> - Fix code style in bootstage_mark_name()
> - Make main bootstage commit title more explicit
> 
> Changes in v4:
> - Print times in unsigned format, and increase range
> - Remove guards around calls to show_boot_progress()
> - Sort by unsigned value to account for large time values
> 
>  README              |   25 ++++++++
>  common/Makefile     |    1 +
>  common/bootstage.c  |  158 +++++++++++++++++++++++++++++++++++++++++++++++++++
>  include/bootstage.h |   43 ++++++++++++++
>  4 files changed, 227 insertions(+), 0 deletions(-)
>  create mode 100644 common/bootstage.c

Applied, thanks.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
"In matrimony, to hesitate is sometimes to be saved."        - Butler


More information about the U-Boot mailing list