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: 13009 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id B68F623FC2 for ; Tue, 20 Nov 2012 14:34:14 +0000 (UTC) Received: from mail-ie0-f180.google.com (mail-ie0-f180.google.com [209.85.223.180]) by fiordland.canonical.com (Postfix) with ESMTP id 69BFEA191A1 for ; Tue, 20 Nov 2012 14:34:14 +0000 (UTC) Received: by mail-ie0-f180.google.com with SMTP id e10so8234104iej.11 for ; Tue, 20 Nov 2012 06:34:14 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf:from:to:cc :subject:date:message-id:x-mailer:in-reply-to:references :x-gm-message-state; bh=p6LUootm2cxv2GsJSdI+njIVtssZd9yyD8/Bnrr/i1c=; b=YIWs2/lGflF4+nXKnW179aAXalQXLs3l0b0cDzFad1SwEZ+Jk4/jFkbDP8pfFdAG4y ih5Bku2Z9sOYkIN161EF65+dzYeuekf9zRzJ+T6YZekFJm+sGdaQL6vF0R7aBAwaPomH slGK0zYdTz8CeVJ9H52dxHt8MoRDs3Pn/mMaE+Y3v83hGkxZPgThS1wASEDFZ1+dQ6JX URaBbbln0xlhmzOJDldyK1tXPpcT4JFpLSyu3V9hPnYUQZpvjhXbMJHPnrrnfSgohKzD //aPBg3lsChP578+eSnqqKcVGiVRptOu/ThZ6vk0hl/J6wG/QmCyra3qv1bevwWj/L+q +LLQ== Received: by 10.50.152.137 with SMTP id uy9mr10012540igb.62.1353422054207; Tue, 20 Nov 2012 06:34:14 -0800 (PST) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.50.67.148 with SMTP id n20csp326844igt; Tue, 20 Nov 2012 06:34:13 -0800 (PST) Received: by 10.180.7.197 with SMTP id l5mr14809589wia.13.1353422052996; Tue, 20 Nov 2012 06:34:12 -0800 (PST) Received: from mail-wi0-f175.google.com (mail-wi0-f175.google.com [209.85.212.175]) by mx.google.com with ESMTPS id u2si12165394wia.22.2012.11.20.06.34.12 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 20 Nov 2012 06:34:12 -0800 (PST) Received-SPF: neutral (google.com: 209.85.212.175 is neither permitted nor denied by best guess record for domain of lee.jones@linaro.org) client-ip=209.85.212.175; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.212.175 is neither permitted nor denied by best guess record for domain of lee.jones@linaro.org) smtp.mail=lee.jones@linaro.org Received: by mail-wi0-f175.google.com with SMTP id hn14so689155wib.16 for ; Tue, 20 Nov 2012 06:34:12 -0800 (PST) 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 Cc: Lee Jones Subject: [PATCH 4/8] boottime: Apply some key boottime tags into common code 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: ALoCoQmBwyDBcx/Dkz9wj1WHju5ca4EaxoNInS6aw1Wk7EWtM43pYSYJZ7g9szv4Uv0qEWA79jEs 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++;