From patchwork Tue Nov 20 14:33:50 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 200357 X-Patchwork-Delegate: wd@denx.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 0BD742C0093 for ; Wed, 21 Nov 2012 01:46:12 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 4E09E4A087; Tue, 20 Nov 2012 15:45:45 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id idPDUFo-DDou; Tue, 20 Nov 2012 15:45:45 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 8BAA94A08B; Tue, 20 Nov 2012 15:45:19 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 6DD594A033 for ; Tue, 20 Nov 2012 15:34:13 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id DBdnLG-2qyCf for ; Tue, 20 Nov 2012 15:34:12 +0100 (CET) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-we0-f172.google.com (mail-we0-f172.google.com [74.125.82.172]) by theia.denx.de (Postfix) with ESMTPS id C03A44A032 for ; Tue, 20 Nov 2012 15:34:12 +0100 (CET) Received: by mail-we0-f172.google.com with SMTP id r3so455189wey.3 for ; Tue, 20 Nov 2012 06:34:12 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references :x-gm-message-state; bh=p6LUootm2cxv2GsJSdI+njIVtssZd9yyD8/Bnrr/i1c=; b=QAHt2j2ebxvGgQ9ZQU5oAi2qeVS+S2lAKGx32QS2IF3NtTottdRtkffd49Da5ISGSR pyJcVmtGIoRx5qubihpCJO5GBUiTwr29iHmXrFliqeFkql1oChDp+zDFqHxXVoTTS4QQ Usl6NqzW9mfFgLhTmW8ucDGnRrwqZWiJUFTmRWP3sZk3gWsQoZI4smSrl64pc1ERRUo3 eVYKZdwsK5CyMiQQekZz32dU84KHfIFzqgO1dfyo4MbzECjSg+riPdR7KznNM2aFTpFP rFIvmO73dfvHzimBGugdN0MDsw4/hkPvCg8DC2Ja4cvWW0/ciHbNvDUcRvd3GzP8GeJg t/Bw== Received: by 10.216.140.87 with SMTP id d65mr6203112wej.131.1353422052513; Tue, 20 Nov 2012 06:34:12 -0800 (PST) Received: from localhost.localdomain (cpc1-aztw13-0-0-cust473.18-1.cable.virginmedia.com. [77.102.241.218]) by mx.google.com with ESMTPS id bn7sm20254052wib.8.2012.11.20.06.34.11 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 20 Nov 2012 06:34:11 -0800 (PST) From: Lee Jones To: u-boot@lists.denx.de Date: Tue, 20 Nov 2012 14:33:50 +0000 Message-Id: <1353422034-28107-5-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1353422034-28107-1-git-send-email-lee.jones@linaro.org> References: <1353422034-28107-1-git-send-email-lee.jones@linaro.org> X-Gm-Message-State: ALoCoQnMavG9cfWWFEYNSZt8vXMdepXBXHs6i6lSFijhuB67vMSTh8M0UViTZ1lqiPLI5HaAUebz X-Mailman-Approved-At: Tue, 20 Nov 2012 15:45:12 +0100 Cc: Lee Jones Subject: [U-Boot] [PATCH 4/8] boottime: Apply some key boottime tags into common code X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.11 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de Here we add boottime tags to the start of the main loop and just before the opportunity to break into the u-boot shell. This will provide a more verbose bootgraph when viewed within debugfs. Signed-off-by: Lee Jones --- common/main.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/common/main.c b/common/main.c index 592ce07..84c88e9 100644 --- a/common/main.c +++ b/common/main.c @@ -40,6 +40,7 @@ #include #endif +#include #include #include #include @@ -219,6 +220,8 @@ int abortboot(int bootdelay) { int abort = 0; + boottime_tag("autoboot_delay"); + #ifdef CONFIG_MENUPROMPT printf(CONFIG_MENUPROMPT); #else @@ -299,6 +302,8 @@ void main_loop (void) char bcs_set[16]; #endif /* CONFIG_BOOTCOUNT_LIMIT */ + boottime_tag("main_loop"); + #ifdef CONFIG_BOOTCOUNT_LIMIT bootcount = bootcount_load(); bootcount++;