From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Murray Date: Sat, 10 Sep 2011 13:37:06 +0100 Subject: [U-Boot] [PATCH v2 6/7] Add bootgraph instrumentation for UBoot commands In-Reply-To: <1315658227-4388-1-git-send-email-amurray@theiet.org> References: <1314829261-13996-1-git-send-email-amurray@theiet.org> <1315658227-4388-1-git-send-email-amurray@theiet.org> Message-ID: <1315658227-4388-6-git-send-email-amurray@theiet.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de From: Andrew Murray This patch adds bootgraph instrumentation for all U_BOOT_CMDs where the HUSH parser is not used. The patch also adds instrumentation for the common boot delay. --- Changes for v2: - Use improved DO_INITCALL_RET macro Signed-off-by: Andrew Murray --- common/main.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/common/main.c b/common/main.c index 2730c6f..bf95463 100644 --- a/common/main.c +++ b/common/main.c @@ -376,7 +376,7 @@ void main_loop (void) debug ("### main_loop: bootcmd=\"%s\"\n", s ? s : ""); - if (bootdelay >= 0 && s && !abortboot (bootdelay)) { + if (bootdelay >= 0 && s && !DO_INITCALL_RET(abortboot, bootdelay)) { # ifdef CONFIG_AUTOBOOT_KEYED int prev = disable_ctrlc(1); /* disable Control C checking */ # endif @@ -385,11 +385,11 @@ void main_loop (void) run_command (s, 0); # else parse_string_outer(s, FLAG_PARSE_SEMICOLON | - FLAG_EXIT_FROM_LOOP); + FLAG_EXIT_FROM_LOOP); # endif # ifdef CONFIG_AUTOBOOT_KEYED - disable_ctrlc(prev); /* restore Control C checking */ + disable_ctrlc(prev); /* restore Control C checking */ # endif } @@ -1371,7 +1371,7 @@ int run_command (const char *cmd, int flag) #endif /* OK - call function to do the command */ - if ((cmdtp->cmd) (cmdtp, flag, argc, argv) != 0) { + if (DO_INITCALL_RET(cmdtp->cmd, cmdtp, flag, argc, argv) != 0) { rc = -1; } -- 1.7.4.1