Received: by 2002:a05:6500:1b8f:b0:1fa:5c73:8e2d with SMTP id df15csp50139lqb; Tue, 28 May 2024 08:33:26 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUeTS+mMYpMTRp/ucxVX6GwV0204FFygla0dNx8cyb3jltscCzMv1zondV8OII86P8H5/UYRkP5zbS+maAftoRylkZUHvQnSim25d0Sjw== X-Google-Smtp-Source: AGHT+IHkHXIT/7Fkkqh7RmcvaEUGit8hCygiURDrWPaPpVBFNDLxZGpP8cteYKj3N0amcg/kO4f8 X-Received: by 2002:a05:6122:366c:b0:4e1:554b:837d with SMTP id 71dfb90a1353d-4e4e4cfb41dmr11849170e0c.4.1716910405986; Tue, 28 May 2024 08:33:25 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716910405; cv=pass; d=google.com; s=arc-20160816; b=vH2DWFoYJpEKYaRfiWHu6Sf7QhA3/CdJC08BdjL+7wmXJ7l5nhlWQMNIu+PWuGnW2v IKJbP3QkR0+zDdz6CYZ22Jp8F9X0zBv5u9zsn13yCZE+3Df3leEIWqUXj/UrgC4/HinY XH1N24RUHg/pJEWQ64dhQtDkcB8sknL5Gc7/SQjzRXj0vuHuVyybSkM6b50Y0PNcIgwJ qSP9NsQztQaT27qScP0I8py8sWWA869mYTGEkR5RCkPJ8NE2wbF6kytMSchRFu3n9HdR KnIxG7LiMcxRnry1+TgzTiruO0z4xvl7K5a91vm1QtTRcoIJhY+lC9oFQxTd60oism4w zMkA== 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:cc:content-language :references:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id; bh=MsFX9tMZlu1UDNTxLgo23wOQdvXJuY3C18j/CTwWMUs=; fh=j2N+HjL4hrKVVbN64Ir6cMs3w4bBLlZBhd+VNSVD1zI=; b=y0WSFt0kdPklmZvtJskYXr80YRQi45rJNa9dp5UZu5x/ITo6TcniQ1eYjOoDKEzY86 MuRARzNQ2S4Y+tFHJGk+3Vp2abZDQVYAxvl1gF6KQHoeoyIn3Jr6xljnhAQwg8o/oSy2 eMmLEs33aekt3vOHkHBRN4sEs8MLZzXaAV11UbHdgoz/f9ie5NZKw8hpSRgNhtxZzAc8 0CFhAtDzhHHRw0pVRvaYXVrYNv5ryNuiuu3HoTy0mmt+MVH6EIQsXzpFtpfYqX8oLzki uRORc9BiNpKV7tqZGipY2vg5gAikWNL2eFGchhhaYA8oGgZG3W6J0CwWJm5cwFcmI7JO Nq1w==; 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-192669-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-192669-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id ada2fe7eead31-48a505ddac9si1198066137.256.2024.05.28.08.33.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 May 2024 08:33:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-192669-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; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-192669-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-192669-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id C45C91C233A3 for ; Tue, 28 May 2024 15:33:24 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 66E51171641; Tue, 28 May 2024 15:33:16 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 17CEB16D9B2; Tue, 28 May 2024 15:33:13 +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=1716910395; cv=none; b=MNB4nJW+jA+jDcufmPJTBI1nC4x7eAmvi6ihx9APtVXDIuF4r2r4HHc9gwauAw7vOBW8JkRh0xf32Cejw/E/ZmuZBnyn7V0XJG3sY4hTHRDZPlmZFt694VTGWsVDj3AEKL11E1nRNUME11PXXVwuebxEEBZ5j9EhFQF21AIe5Fk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716910395; c=relaxed/simple; bh=LfKyNWX3NNA7HOkhNCbJcM+Xeojp5RxJ4j3pz88SCMo=; h=Message-ID:Date:MIME-Version:Subject:To:References:Cc:From: In-Reply-To:Content-Type; b=uOH629xZ7mP9u3/EKjnUViO2lAmxWm5gmaAIpIQ3RsrrePGR7/Rgqn9K+B4YwxEkYvzI9aiOO9Y4fJG69BfBfCSSif7plvPEpNak/uJ5Yg7FqsNy24pwbIo64EDz/Ap5hYixyW6vqaGISESp1iXLUt2fCIgQAH9apRciZdxp+iA= 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 16DEB339; Tue, 28 May 2024 08:33:37 -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 840483F762; Tue, 28 May 2024 08:33:11 -0700 (PDT) Message-ID: <30bb744d-057a-443e-a35a-697995b3f314@arm.com> Date: Tue, 28 May 2024 16:33:12 +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 v3 3/3] perf maps: Remove the replacement of kernel map To: Leo Yan References: <20240520090647.949371-1-leo.yan@arm.com> <20240520090647.949371-4-leo.yan@arm.com> Content-Language: en-US Cc: Arnaldo Carvalho de Melo , Ian Rogers , Namhyung Kim , Adrian Hunter , Athira Rajeev , Mark Rutland , Alexander Shishkin , Jiri Olsa , linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org From: James Clark In-Reply-To: <20240520090647.949371-4-leo.yan@arm.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 20/05/2024 10:06, Leo Yan wrote: > The kernel text map has been removed from the kernel maps by > maps__remove_maps(), and the kcore maps are organized in order, allowing > us to achieve neat kernel maps. > > As a result, it is not necessary to replace the old kernel text map. > Instead, the commit finds the latest text map, assigns it to > 'machine->vmlinux_map', and releases the old map. > > One concern is if a platform fails to find a kernel text map after > updating maps list with kcore, in this case, it should not happen and > reports the failure. > Hi Leo, For some reason this commit causes the symbol to not be resolved for one kernel sample in a recording I have. It's a bit weird because the same address is resolved in other samples. $ perf script Before this commit: perf-exec ffff80008030cfd4 perf_event_exec+0x22c ([kernel.kallsyms]) perf-exec ffff80008030cfd4 perf_event_exec+0x22c ([kernel.kallsyms]) perf-exec ffff80008030cfd4 perf_event_exec+0x22c ([kernel.kallsyms]) perf-exec ffff80008129a0f8 _raw_spin_unlock_irqrestore+0x48 ([kernel.kallsyms]) ls ffff80008012f5ec lock_acquire+0x74 ([kernel.kallsyms]) After: perf-exec ffff80008030cfd4 [unknown] ([kernel.kallsyms]) perf-exec ffff80008030cfd4 perf_event_exec+0x22c ([kernel.kallsyms]) perf-exec ffff80008030cfd4 perf_event_exec+0x22c ([kernel.kallsyms]) perf-exec ffff80008129a0f8 _raw_spin_unlock_irqrestore+0x48 ([kernel.kallsyms]) ls ffff80008012f5ec lock_acquire+0x74 ([kernel.kallsyms]) James