Received: by 2002:ab2:6991:0:b0:1f7:f6c3:9cb1 with SMTP id v17csp339901lqo; Wed, 8 May 2024 01:01:15 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUoQNmW0EGeeSFVppAwZlpLEnXCHgkRT1TGSOzMcsqnFkzQaTotoymatNo1ZqYg7feS86el4RVf25zdsVfZE3mYU8Hv/i9K660Tkivw/A== X-Google-Smtp-Source: AGHT+IGuEBB/GFxLlAN7pVlftCAqqrFy+xfXjpvwfVrEtbPukIepBcGSCN8Bv4l9OAdY7OEzYkqU X-Received: by 2002:a17:90b:230e:b0:2b2:ae4b:9e54 with SMTP id 98e67ed59e1d1-2b61659f842mr1858512a91.11.1715155274836; Wed, 08 May 2024 01:01:14 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715155274; cv=pass; d=google.com; s=arc-20160816; b=F8bZQat29Q+7NINv6MXh756Bhx4B6+fo5CPvkCK82vnTSDWxqrT/kMANwiAJqvZgpq TPetFPmwFwx99W2qrWEsuOsdg68zC34cxpLdEGQzMFKfgBsf/Cxl9r4Al0rJOUgRdOYT mkFbUgvMA6fy6xnL1rIIx9H452mSReVJbA15lfpkQ1CwlsL4bpq23dqEoXHkeped636j sOeov8wYgm14T3nX7tLDNeJOpYsEeBD4m0MCsOTMsougmaNUNoJIblDEQHcc14nBOEql mUGKQIzWz3Ib6vvW/vzjwLwPNgMUqD/nwXQQemm/szvCUWOKjgGy5wJij4pyDcA9k9QR PAJw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id; bh=yIAPmSfxfMJVj559ANwYV9pRRQritAOh696tL2JTSYM=; fh=IglD5CEoLdXK9HzLdqC+4VeKsewXXgQYlZtuYqiL6Yo=; b=seglNnRqarb3lpAtdnsiIimMKiLQmwIFbCHAb07cY808LXC8wiD53lJyRP5rXf90sP qeFYl1wKSj9XGkfRJjXkR4+xhsGx7pbex3YORfOfxB6eQ0NvhsYQ+ZNMTW1ymwLOhqiL XqF1IvMToy5acTuPBMWZwbPsFAtxU92UldHWJ9i7S9RWEOI5+AwUOe3Kt129b2/an5wF dFQqzcxoOoCOwi2qT25pzEZqfo16zU2xsjZwOk+y8Vo/UegrT/reMT49aizaK4s7ZEBP fipDGme+YzBTZA0OLvIUGYmrREoxOgCOKW8EZhKPSc3HWIJ+WrivnQXmSsjIXSJBGZ6c oa9A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-172863-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-172863-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2b6290d059bsi843547a91.175.2024.05.08.01.01.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 May 2024 01:01:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-172863-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-172863-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-172863-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com 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 33BFAB230C2 for ; Wed, 8 May 2024 07:53:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 94A7E3B1AA; Wed, 8 May 2024 07:53:06 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CBD662375F; Wed, 8 May 2024 07:53:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715154786; cv=none; b=PYGRJD6LEXzfVGXKKf+Xyh6Klk7A+HulLc1CbP4HugXX6yYOMEr27vouaBN2z1uFzSN6abAq3bSch9gcXliL71niC6nVzZROY255gqQighA8tKRjqD65euScSDLMoAniNbQmwy2vOzzjjTHXASyEbyP5oOCEnf1YdZktk/huuds= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715154786; c=relaxed/simple; bh=2/OMdH6RI9ACcVmYMHGTGaQdO1YJfSC4XaASPUvEz40=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=n4Po4TkEEez2BCREk+0Gu/pBD6hmmj4uUBGGevCwVqTJ64pQyqz+ZcWM0EY50ZFRqM+NrOxJRmS3BCWl+X+sXO1KQhmhoPZXfjdqvk89VFc9S522sSHpft+aRCpywIFD2/PdmRh7z+zrCYvbqQjO7rm993lqHEhFUSw5pROATiM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 72E9B1063; Wed, 8 May 2024 00:53:28 -0700 (PDT) Received: from [192.168.1.100] (usa-sjc-mx-foss1.foss.arm.com [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 2895A3F762; Wed, 8 May 2024 00:53:01 -0700 (PDT) Message-ID: Date: Wed, 8 May 2024 08:52:59 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 0/4] perf maps/symbols: Various assert fixes To: Arnaldo Carvalho de Melo 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 References: <20240507141210.195939-1-james.clark@arm.com> Content-Language: en-US From: James Clark In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 07/05/2024 16:12, Arnaldo Carvalho de Melo wrote: > 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 1,3 and 4 are all fixes and have tags. 2 is just a tidyup so I didn't add the tag. I probably should have explained that in the cover letter. >> >>> 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 >