All of lore.kernel.org
 help / color / mirror / Atom feed
From: Simon Glass <sjg@chromium.org>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 4/4] Add option to print boot stage report before starting kernel
Date: Fri, 13 May 2011 13:52:03 -0700	[thread overview]
Message-ID: <1305319923-9477-5-git-send-email-sjg@chromium.org> (raw)
In-Reply-To: <1305319923-9477-1-git-send-email-sjg@chromium.org>

Define CONFIG_BOOTSTAGE_REPORT to get a timing report before the kernel
runs.

Signed-off-by: Simon Glass <sjg@chromium.org>
---
 README               |    6 ++++++
 arch/arm/lib/bootm.c |    3 +++
 2 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/README b/README
index f9e4e65..d53981c 100644
--- a/README
+++ b/README
@@ -2037,6 +2037,12 @@ The following options need to be configured:
 
 		You can add calls to bootstage_mark() to set time markers.
 
+		CONFIG_BOOTSTAGE_REPORT
+
+		Define this to get a report listing the timing information
+		collected during the boot process. This is generated just
+		before control is handed off to the kernel.
+
 - Standalone program support:
 		CONFIG_STANDALONE_LOAD_ADDR
 
diff --git a/arch/arm/lib/bootm.c b/arch/arm/lib/bootm.c
index b763403..5116e95 100644
--- a/arch/arm/lib/bootm.c
+++ b/arch/arm/lib/bootm.c
@@ -84,6 +84,9 @@ static void announce_and_cleanup(void)
 {
 	printf("\nStarting kernel ...\n\n");
 	bootstage_mark(BOOTSTAGE_BOOTM_HANDOFF, "start_kernel");
+#ifdef CONFIG_BOOTSTAGE_REPORT
+	bootstage_report();
+#endif
 
 #ifdef CONFIG_USB_DEVICE
 	{
-- 
1.7.3.1

  parent reply	other threads:[~2011-05-13 20:52 UTC|newest]

Thread overview: 45+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-13 20:51 [U-Boot] [PATCH 0/4] Accurate boot time measurement Simon Glass
2011-05-13 20:52 ` [U-Boot] [PATCH 1/4] Add microsecond " Simon Glass
2011-05-14 11:19   ` Mike Frysinger
2011-05-14 11:31   ` Mike Frysinger
2011-05-13 20:52 ` [U-Boot] [PATCH 2/4] Add bootstage progress report Simon Glass
2011-05-14 11:42   ` Mike Frysinger
2011-05-13 20:52 ` [U-Boot] [PATCH 3/4] Add bootstage calls in places appropriate for network booting Simon Glass
2011-05-14 11:44   ` Mike Frysinger
2011-05-13 20:52 ` Simon Glass [this message]
2011-05-14 11:46   ` [U-Boot] [PATCH 4/4] Add option to print boot stage report before starting kernel Mike Frysinger
2011-05-14 11:34 ` [U-Boot] [PATCH 0/4] Accurate boot time measurement Mike Frysinger
2011-05-14 17:32   ` Simon Glass
2011-05-15 10:03     ` Graeme Russ
2011-05-15 21:34       ` Simon Glass
2011-05-15 22:56         ` Graeme Russ
2011-05-16  5:56           ` Wolfgang Denk
2011-05-16  6:10             ` Graeme Russ
2011-05-15 11:53 ` Wolfgang Denk
2011-05-15 21:58   ` Simon Glass
2011-05-15 22:36     ` Graeme Russ
2011-05-16  5:55       ` Wolfgang Denk
2011-05-16  6:11         ` Graeme Russ
2011-05-16 11:18           ` Wolfgang Denk
2011-05-16  2:59     ` Mike Frysinger
2011-05-16  5:48     ` Wolfgang Denk
2011-05-16  6:23       ` Graeme Russ
2011-05-16 11:40         ` Wolfgang Denk
2011-05-16 18:25           ` Scott Wood
2011-05-16 23:09           ` Graeme Russ
2011-05-16 14:23         ` Premi, Sanjeev
2011-05-16 16:00       ` Simon Glass
2011-05-16 18:32         ` Wolfgang Denk
2011-05-16 21:35           ` Simon Glass
2011-05-17  8:20         ` Detlev Zundel
2011-05-17 17:00           ` Simon Glass
2011-05-17 22:57             ` Graeme Russ
2011-05-19  8:36             ` Detlev Zundel
2011-05-20  1:48               ` Simon Glass
2011-05-20  2:28                 ` Graeme Russ
2011-05-20  2:29                   ` Graeme Russ
2011-05-23 15:22                 ` Detlev Zundel
2011-05-24  2:55                   ` Mike Frysinger
2011-05-24  7:18                     ` Wolfgang Denk
2011-05-24 18:22                       ` Mike Frysinger
2011-05-24 19:24                         ` Wolfgang Denk

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1305319923-9477-5-git-send-email-sjg@chromium.org \
    --to=sjg@chromium.org \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.