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. Example output is: Timer summary in microseconds: Mark Elapsed Stage 0 0 awake 2,181,078 2,181,078 usb_start 11,861,817 9,680,739 bootp_start 11,884,610 22,793 bootp_stop 11,884,689 79 tftp start 15,271,536 3,386,847 tftp done 15,271,568 32 bootm_start 15,406,551 134,983 start_kernel Simon Glass (4): Add microsecond boot time measurement Add bootstage progress report Add bootstage calls in places appropriate for network booting Add option to print boot stage report before starting kernel README | 17 +++++++++ arch/arm/lib/board.c | 2 + arch/arm/lib/bootm.c | 4 ++ common/Makefile | 1 + common/bootstage.c | 97 ++++++++++++++++++++++++++++++++++++++++++++++++++ common/cmd_bootm.c | 2 + common/cmd_net.c | 7 +++- common/cmd_usb.c | 1 + include/bootstage.h | 74 ++++++++++++++++++++++++++++++++++++++ include/common.h | 8 ++++ net/bootp.c | 3 ++ net/net.c | 1 + 12 files changed, 216 insertions(+), 1 deletions(-) create mode 100644 common/bootstage.c create mode 100644 include/bootstage.h -- 1.7.3.1 _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot