Received: by 2002:ab2:72c5:0:b0:1f7:f6a4:354b with SMTP id r5csp41966lqm; Tue, 7 May 2024 08:12:59 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU1G5MYhSPn4MB8ii/2juoQdC2epebofUiwprjDEM4mkH9t2682Xo6+DS5HX1xsRur/DH7qiy7+9eqXdgV+i3U6B5rtwFGr5DOspO84/w== X-Google-Smtp-Source: AGHT+IGpf85hdb+DEvj2h/NQvKSAmWiQr5hwZ28F9+C185fguCsvC9PiYMaTtY/Iinc38XDWtGiq X-Received: by 2002:a9d:4d86:0:b0:6f0:350c:9ee6 with SMTP id u6-20020a9d4d86000000b006f0350c9ee6mr8996491otk.20.1715094779143; Tue, 07 May 2024 08:12:59 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715094779; cv=pass; d=google.com; s=arc-20160816; b=ntrRmNwawBEGpGM81lknz/SPYhbutDZTEL32byl0MIgrpdbBnoD8aaa7wADHKo1EWg QqaD0AZkQEipNqDoHeZ9of7sFXXos6Vd0WeoJ1DCAelokdjAsE4vELeD+A0CosDPW0by 34bX5izTTQxMB+vOpk8Q/SR3U+GGNdCg18ZvykE/hPsYSbCB3v669os9OXW0tQUZGV0s OXWb8q5fmhJlYv4Gz+L3crgL0PBHrZXp6eWIWW78WDS0AgC0/70nLqdjhxO5hNOV50vU t02mG/YNPAsRSgcWUBYZwTE+w7SJCNE6dRlVEUIFAFR72CuE0MnTmQgNYi1HvfH3n2vf c9PA== 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=LQn08nXjRBloO/XQkNeVyr4bG2LQ2+IWzY9oExRI1/U=; fh=ZGi+OzHaW+P7yUkDkd4uTOiyzGF5DpoBM5UmpX15Znw=; b=qC51TiObL4Pm7CGXvIvBy4rhAgdmkMylmtbcAWqBOQ3B9/LWws03ofzP77tj5BCBdA isP1ZV8oEfeAl1D4LfAGPWHw7IhP515h0BnAJlJD65904yuSEpxFOm3irlwipqI1Bb9j SdAcAuIRDgifudaI/zQSPiT0w/jJi7fPOhCW9bh+g48It/D34zhqYFX4EIj9I0j54S/Q jmJjUB7uVtQk5jUH+EOlCLb7yhQSDKKSJJUzZHuVBV+HjRz7vpuyir5MHLlWLBuMZB+u n9c91PVGoBzaf7/K9y/sj7bLpUVxTaICHDztxYRz/cy3vxIKpTp4xYHCfS4PTt6PdWx/ 22fQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=sPCFaH9Z; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-171667-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-171667-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id ez15-20020a0561302f0f00b007f06a8c3f8bsi2151050uab.115.2024.05.07.08.12.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 May 2024 08:12:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-171667-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=sPCFaH9Z; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-171667-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-171667-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id D1C9F1C23C78 for ; Tue, 7 May 2024 15:12:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BE0CA1649D3; Tue, 7 May 2024 15:12:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="sPCFaH9Z" 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 DC57C1635CE; Tue, 7 May 2024 15:12:39 +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=1715094760; cv=none; b=ZzJ/ZVzh7fb6/42y3qvDN91Mm3GTwwx5kwaKWgpwhcK6elSGdwXGvplJSsPdEYX/EuPDDU8WNgJXdYw1lqYV02v3QxAX8r0irUMeM76nEHVOSduyK3Zo1k1DN7Xjxkl6bajHCDo3bu9KXmlxsDBQnl56biT2r8yB07cjULThyvg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715094760; c=relaxed/simple; bh=CXLjYfLWjcW6h21E1qVlgB2tJ6ZoVOvZXdLSoPbpeQQ=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=IbRfuVPPMz9W7u9LT35L8SZhjeik+w1NsO4NpCJMCLYnsKk4eDW2zdRa+vPahklFVPhr0/GdjRwVXVP4ZvVRA6kt2cypMuDFqVkN3skn5PKsktc2bZtbw++l0y2odedKCA3Aad8qztbcyfwl/IloSfWfOJc11HkdbDWV3mEdaWY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=sPCFaH9Z; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id EBE3BC4AF67; Tue, 7 May 2024 15:12:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1715094759; bh=CXLjYfLWjcW6h21E1qVlgB2tJ6ZoVOvZXdLSoPbpeQQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=sPCFaH9ZYRWC8WYu168aEE+/NSpLngqdAgzKhKQrDEeO9VNHXCf3bKpEbLvgNggs4 STXzErw4ugrSIMeyOgqGqpNnEkFHx02jjKY/JTP7JqF2zbwpQilo3k+8GiN4kiAWB7 Oil1vZvLNzS/Knrl286FQ7KfyJMYwYaOwf+vH5DpgP1Bbk7FWE6afXvdxMExXSQTBj S2knS+qJoY7JNRLjkOKjg3rMH/aCgKAUqZZjJmRm+s6dyM8AjcLOfuXzVUZO6V5p+2 ZO9DNOO5sjWqoaKaTQAzw8ipfz3QP3txK+v9M8ILbqzEeZ3w5ZsoK2Y90Fz8Yfpv2v fBpi4IO8dXr4A== Date: Tue, 7 May 2024 12:12:36 -0300 From: Arnaldo Carvalho de Melo To: James Clark Cc: linux-perf-users@vger.kernel.org, atrajeev@linux.vnet.ibm.com, irogers@google.com, Peter Zijlstra , Ingo Molnar , Namhyung Kim , Mark Rutland , Alexander Shishkin , Jiri Olsa , Adrian Hunter , "Liang, Kan" , linux-kernel@vger.kernel.org Subject: Re: [PATCH 0/4] perf maps/symbols: Various assert fixes Message-ID: References: <20240507141210.195939-1-james.clark@arm.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=us-ascii Content-Disposition: inline In-Reply-To: On Tue, May 07, 2024 at 12:11:42PM -0300, Arnaldo Carvalho de Melo wrote: > On Tue, May 07, 2024 at 03:12:04PM +0100, James Clark wrote: > > A few different asserts are hit when running perf report on minimal > > Arm systems when kcore is used, or the .debug/ info can't be loaded or > > /boot isn't mounted etc. > > > > These result in some less common paths being hit for resolving symbols > > and things are done in an order that breaks some assumptions. I'm not > > sure if we could do something to make the tests pick this up, but maybe > > not easily if it would involve mocking the filesystem or even a specific > > kernel. I tried a few different variations of --kcore and --vmlinux > > arguments but ultimately I could only reproduce these issues by running > > on specific kernels and root filesystems. > > Please consider adding Fixes tags so that we can help the work of > backporters/stable? Sorry, you already did it for the last two patches in the series, so you couldn't find easily what were the csets that introduced the problems in the first two patches? - Arnaldo > > > James Clark (4): > > perf symbols: Remove map from list before updating addresses > > perf maps: Re-use __maps__free_maps_by_name() > > perf symbols: Update kcore map before merging in remaining symbols > > perf symbols: Fix ownership of string in dso__load_vmlinux() > > > > tools/perf/util/maps.c | 14 ++++++------ > > tools/perf/util/symbol.c | 49 ++++++++++++++++++++++++---------------- > > 2 files changed, 36 insertions(+), 27 deletions(-) > > > > -- > > 2.34.1