Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp157840lqp; Fri, 12 Apr 2024 13:31:37 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUbtsSDXwRZfK1Bnz0Qlg+AHIESw1nZ0UnlQVB0YpPJXq9yCBpLspE6ArLGxB2Pi1NzgdoVAvdbD3bXLXG8QIpQpHTHMwGpIyoB4e7LpQ== X-Google-Smtp-Source: AGHT+IF76rLvOrA8eeKLAA9xRf0NvjiUN5Iv6UYNOUteUON+soKQNVPbPB6kDteh9Ao8P4c6E1RE X-Received: by 2002:a17:902:7445:b0:1e4:9c74:77eb with SMTP id e5-20020a170902744500b001e49c7477ebmr3623823plt.28.1712953897143; Fri, 12 Apr 2024 13:31:37 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712953897; cv=pass; d=google.com; s=arc-20160816; b=YVv5xfKazGKMyNA83pd/UTB1AwmlexLVMrw/Xo8pSVMjjXF0084q8vvT010kE/dtLp 4RLT7qqlZXbE3H+bmiklkLqV9bbjQaVjnDMn1yl3TOL0ZXWf/bg8AhlclVrueBjZzarx SXOiSk7TqHS1eHhwMDyFDumihlepgWY40o0WBc1NhYW7Q2jDlC1UgHEnLaqrtmTD6RxT s6+htj+RWSkoqgvwJfJRm+/jkj2Dp8dJkWUN8Z01g4k7L0xP8ITXHao10XMmw+QU5sHN Re+KmqBQ8ovFfrpefLpYypNuQIgV7WSqp61m/FRzN8RZC4gIz7rd/Q+P9UVQBOBlJw1G XVQA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=5/eQfPG65lvT77nQZKaNescIAxkYEvDmgXsH/P1LUhY=; fh=m4RKgweHVNpB1Dek49ejsDgnVELMFdPFHuMEDC3wJ48=; b=KA9YeeUUqSS61H2+1iWU2ViIlumbNieh1M/3d0FcbGnoahQ5C7yYkLAfb7qx2VUVBs mP+8q9Sl/XDHmxwMSrGmzEVn/PcR6RSDUY8ET+Y3Sqf8HOWoMhEUqc8SHSsXRADd4JDD iaB6PWKazhhFNTXhLt0GB9+/EkvmMWCQ9OFqrLLhtSHxaz33Q18fCFodhRi6n7vR9Jm+ ZSHbGEDi67ItszNgGsHJqNZoC1exJFq9LrY2KfSoBxT8YCXTF2HZ9xZcaNtgsTixk316 qdqZ0MnpiALa4tetxdsDyQgLaSTrRhkTGe6d2KLDTg/wjX/as/PAiDtg3toarSmQ97fQ nTbA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=kXVtgXju; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-143309-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-143309-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id n16-20020a170902f61000b001e2ade13084si3870301plg.249.2024.04.12.13.31.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Apr 2024 13:31:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-143309-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=kXVtgXju; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-143309-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-143309-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 5581EB2225A for ; Fri, 12 Apr 2024 20:27:23 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 98CC01509AF; Fri, 12 Apr 2024 20:27:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="kXVtgXju" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C4FC93D548 for ; Fri, 12 Apr 2024 20:27:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712953635; cv=none; b=o9EZilnR4fZct0RUy2K72l5NdkiO83n/DWg3THkROGai7/ZIeZryBX6/A2v/bMjQCE5Piu+twsSBx2+y3r1KDbw82K2iD1SdGk6QOo+4vzhHUdZyJckJRhtNCetYzoFsTcejkQePRL83RpWfkXwXZcNI5bRlCVCzlRwUWFB4qNk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712953635; c=relaxed/simple; bh=llio3CfIvuC0B+cljYFR8utRFQk/nLSyb8ElqunR1x4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Xe7h5Fu5Vj0CsP8bMwjJDDrn35aOWqN8DgjokLMjvVzOdfJmBpkWkzKx83V1xXVpK2Gky48wrSmvIsYsVsIMc3Y9u5W6lUQoIpct6rxk8Hf78YqaxYsfzc7kU2jnTwuVSm7jH556QvrRpKVaTjE9KQbGEBMxpPAwnbI2n16OXKw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=kXVtgXju; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8963FC113CC; Fri, 12 Apr 2024 20:27:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1712953635; bh=llio3CfIvuC0B+cljYFR8utRFQk/nLSyb8ElqunR1x4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=kXVtgXjuWg4Wx4RLGmAnpjoF0nw80GId6mczjyzsG4pq7L7YEUMYcx9Oj57mqLNpV w+MNqS/1hr0fUJSAkzxl9q4qdgmDWzJzBs2CD3MvZxF6aGuJki2534JHLPmjw5CQs4 kBDlu/nj+5rY5xEAUX8nUGt1BraBTyFGEvawvqfB47WwIYI7mjqe2U4TkeUpu420vB Ekoe7T2YzU6ddIt+pghWTN6DOcEIodSqmhn5pdC0nOV3kiUcj2vTXxQZwscb9h/zcp 0DHPL9O3CoKBFHhqm8OpXbJpBHAhPk7/MWanfwuxX1APhq4ighE8A7lp8VtQNc8zRl 2dnCV1i3nuzzw== Date: Fri, 12 Apr 2024 13:27:13 -0700 From: Josh Poimboeuf To: Brian Johannesmeyer Cc: linux-kernel@vger.kernel.org Subject: Re: [PATCH 7/7] scripts/faddr2line: Check only two symbols when calculating symbol size Message-ID: <20240412202713.ntmhxrpjovbhafu2@treble> References: <20240311204019.1183634-1-bjohannesmeyer@gmail.com> <20240311204019.1183634-8-bjohannesmeyer@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: On Thu, Apr 11, 2024 at 12:28:29PM -0700, Brian Johannesmeyer wrote: > Hey Josh, > > I just noticed that this patch does not correctly handle duplicate > sym_names. To fix, the "--no-group-separator" option should be added > as follows: > > > - done < <(echo "${ELF_SYMS}" | sed 's/\[.*\]//' | ${AWK} -v sec=$sym_sec '$7 == sec' | sort --key=2) > > + done < <(echo "${ELF_SYMS}" | sed 's/\[.*\]//' | ${AWK} -v sec=$sym_sec '$7 == sec' | sort --key=2 | ${GREP} -A1 --no-group-separator " ${sym_name}$") > > Would you like me to re-submit the patch series with this fix? Yes, that would be helpful. Thanks! -- Josh