Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 9B12DC3DA78 for ; Sun, 15 Jan 2023 21:20:01 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 49C0F85611; Sun, 15 Jan 2023 22:17:18 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="k8DqbLV9"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id F27F7855D6; Sun, 15 Jan 2023 22:16:47 +0100 (CET) Received: from mail-io1-xd35.google.com (mail-io1-xd35.google.com [IPv6:2607:f8b0:4864:20::d35]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 8DC7C855D5 for ; Sun, 15 Jan 2023 22:16:37 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@chromium.org Received: by mail-io1-xd35.google.com with SMTP id j1so4590113iob.6 for ; Sun, 15 Jan 2023 13:16:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=BuRhzBIwjhF92pqpj7CwEvhiEXfKaKtmP+vlrFwCDGw=; b=k8DqbLV9ZOZI+jOFj5b5XViNq3DVNn9kOxYfGkS+1ODG6lakQD056Agu3kAthxnne+ n6IXQQDLW9xVWwuY5rKYX8eMA2yYbYrvh23baGgYdF5xNsdiHSRL3Q2AG5vakdgBd0Im QEI9LitbVT1oVUHseuAIz4xROTLiA0pjTxq1E= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=BuRhzBIwjhF92pqpj7CwEvhiEXfKaKtmP+vlrFwCDGw=; b=PVuMdHfFhRGUWTMobB7PIgzMDvfe7vt+FDwwHnqGBXdnoTEUqyUD3eE1+c7pZWyRqQ GspcPHuzydGs9Sxr/4fM/ZGkdNjm1PnklyzFsKfLTIPgqA1VEztZbR7VgoyRB2s2LhT9 /sW3W3jobVCqkqoWOsmQ/u+geVLtPLrv5QEtzGaNghOBr9zWCuNTtlgpGN/T0kDEdQqT K8W5fMNCcrI1gBy/5uQa6vSWSNaq/t5SIosjijKHKR5ygm3SxMMWduf6yKre6eASosiE qjJ7ik2wgDfKyS2A/F+vFgDb/nkIy+XDpRabnDiSvxPb6C1VjsIjAAlnHZ0EXjZL2ZBf OJOw== X-Gm-Message-State: AFqh2kqwF/kgyLS+ZlMuyAFy2uXjCqj9NUNo7+b9U6Ltt9MfaHs5q4O9 2hHPe89PWHwMiE7YX3xLMeRrawBsw17Khh+eYjY= X-Google-Smtp-Source: AMrXdXvDhlW4G01E7el2dq5JXh8epqFVwyYv13mriquz/SXsqRTWt/RTGj633UUK8lNAfdrGfmsMcA== X-Received: by 2002:a5d:93c7:0:b0:6e2:ceed:fd49 with SMTP id j7-20020a5d93c7000000b006e2ceedfd49mr61706012ioo.7.1673817396066; Sun, 15 Jan 2023 13:16:36 -0800 (PST) Received: from sjg1.roam.corp.google.com (c-73-14-173-85.hsd1.co.comcast.net. [73.14.173.85]) by smtp.gmail.com with ESMTPSA id j6-20020a6bf906000000b007046e9e138esm4329107iog.22.2023.01.15.13.16.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Jan 2023 13:16:35 -0800 (PST) From: Simon Glass To: U-Boot Mailing List Cc: Tom Rini , Heinrich Schuchardt , Simon Glass Subject: [PATCH 17/24] trace: Drop use of objsection Date: Sun, 15 Jan 2023 14:15:54 -0700 Message-Id: <20230115211602.1127661-18-sjg@chromium.org> X-Mailer: git-send-email 2.39.0.314.g84b9a713c41-goog In-Reply-To: <20230115211602.1127661-1-sjg@chromium.org> References: <20230115211602.1127661-1-sjg@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean This feature was only partly implemented and serves no current purpose. Drop it. Signed-off-by: Simon Glass --- tools/proftool.c | 29 +---------------------------- 1 file changed, 1 insertion(+), 28 deletions(-) diff --git a/tools/proftool.c b/tools/proftool.c index feeef55c1b9..0d74e1169a9 100644 --- a/tools/proftool.c +++ b/tools/proftool.c @@ -95,14 +95,12 @@ enum trace_type { * @name: Function name * @code_size: Total code size of the function * @flags: Either 0 or FUNCF_TRACE - * @objsection: the section this function is in */ struct func_info { unsigned long offset; const char *name; unsigned long code_size; unsigned flags; - struct objsection_info *objsection; }; /** @@ -540,31 +538,6 @@ static void check_trace_config(void) check_trace_config_line(line); } -/** - * Check the functions to see if they each have an objsection. If not, then - * the linker must have eliminated them. - */ -static void check_functions(void) -{ - struct func_info *func, *end; - unsigned long removed_code_size = 0; - int not_found = 0; - - /* Look for missing functions */ - for (func = func_list, end = func + func_count; func < end; func++) { - if (!func->objsection) { - removed_code_size += func->code_size; - not_found++; - } - } - - /* Figure out what functions we want to trace */ - check_trace_config(); - - warn("%d functions removed by linker, %ld code size\n", - not_found, removed_code_size); -} - /** * read_trace_config() - read the trace-config file * @@ -1460,7 +1433,7 @@ static int prof_tool(int argc, char *const argv[], if (trace_config_fname && read_trace_config_file(trace_config_fname)) return -1; - check_functions(); + check_trace_config(); for (; argc; argc--, argv++) { const char *cmd = *argv; -- 2.39.0.314.g84b9a713c41-goog