Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp2097099rdb; Tue, 20 Feb 2024 17:57:48 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCW7g02W2K28UCdHePgM+miFPZoNcVAz54xfVruv16HU24Ojiu4BL6FLaSfnQcW7ujp5JFRb84lTdrumllYNzjQ5rgiEU6surnlA4x0S/Q== X-Google-Smtp-Source: AGHT+IEDxmegfA+sWBJYHbePw1uHngVETSF+3d5oZdoHccWK3DrzuW3u6Y9DzcnNccR7gTV1gj3r X-Received: by 2002:a05:6808:228b:b0:3c1:6005:4512 with SMTP id bo11-20020a056808228b00b003c160054512mr6265155oib.51.1708480667868; Tue, 20 Feb 2024 17:57:47 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708480667; cv=pass; d=google.com; s=arc-20160816; b=sb2YeANJ+nD4T+TAeby5Nm4JpspeBr4CPS5A4jrw8n4dmQ0bshAE5HVO5Ccf62udHI mABQcPJ2Db+uW10LvkFq+VK2GA25s4sj3W3WIbYoqoeNeJPB+4LO7sSbQ/TFrLQQJkZM swuQsb54od6a9RahPqNOxrZnrNlYAmEDZfLyxaHUBohAwrTXZkBgM3cN3VyoMP9vhkk3 jhNQQW8Vi+lRDm9hPDdWmobAqgpUptNLlyx/oVKwouon2GroXJ3aW6ggTJkRgLktxy+m yk/QMVte/6Xl30Omtvzk0+cRhSkMW+GtJeGhNyNfa6q2uP8yTDv0X3xwAK+IsrAMBN+h /XRA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=5h4repGhDbKf8rYLnvyg7RoH8fTpcD8/LNWMePbJCCA=; fh=bu/xflqLNgriXX+PSlBUyJgS9hlJuO0XT8EW7bnNbzY=; b=ngD3knWkfdY5HV2EmH+hxeDjq6o4nGfBmfU1TjPLRYeghtK00ELm9y+AwabmdwOlUh aBIhY7YLZYb/JnC7GLwSIeD7k8N7Sn1TgNbBFprE7mzow+jSENWWOoZZpV+LAqMuTj5f 5mSmBtCwP4zCz9phO6R9o3VQtyGyxsrN4D9/ShkRXHBBrPGaagGm+V7yHkG0iMn5D5Wb TEqtljm695LGOnfX22T2pUNvJLij2dlbvFcnLIMyYkaYfnJjbXet8xaKiQA1lRsWRZQm NnNgtNcFu0tW1NU8FFDjrrdDRLLDR5DksZ+dU1/kBDAqgW8l1xoGzn47u7A1MgmDFJmu grPA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=kOjCVPQ4; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-73921-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-73921-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id d9-20020aa78e49000000b006e474d7a7d2si2889202pfr.62.2024.02.20.17.57.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Feb 2024 17:57:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-73921-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=kOjCVPQ4; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-73921-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-73921-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 8D3E1282F82 for ; Wed, 21 Feb 2024 01:57:47 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A237C522F; Wed, 21 Feb 2024 01:57:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="kOjCVPQ4" 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 BC90E17D5; Wed, 21 Feb 2024 01:57:40 +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=1708480660; cv=none; b=lmAYMWZ5jwlRKtlamyNRxaCfG7EMwdv9HSt0AXIDUIzHD6XR8FaDbDWIinwvluLF/EpyZLlutzUme0ba7CdAqANhsDpHioVX5o92kbVjkxmEel8Z7x52TnUJYSxYFriJXr4QBnI4aeuX1ocS+4c2FmoMngz9efA7FUKNXQerWrE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708480660; c=relaxed/simple; bh=29cDjeGYWwPeOqy1mXFXsySR1RaE/+QRIcZrSNrCEOI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=gi3t+glZmlOmO14Y3CUXqkKPVemH7MzJrsdFjwI1eRk24uKlGY28Wxn1Q/FEIYv2He+3iY7mxybln7PtRcz4dMnqvOWuiwQp3ZeIqH8DLQ6fhz67OmRFCREcfNZbNojL2D2r9QxI/4j5CpcanmBepI4dCfnjxMjMACTl4jBzGSs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=kOjCVPQ4; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 17A69C433F1; Wed, 21 Feb 2024 01:57:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708480660; bh=29cDjeGYWwPeOqy1mXFXsySR1RaE/+QRIcZrSNrCEOI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=kOjCVPQ4s01mnS+ZJmNVlr8/mFTghg+nUk7973C+wKN5nvs+ASyErkEmokWLPUXjw P1mbsALYWbhq/93XBua8uB1dT6D9winJVkmbblMJKgd1GfpZhxzPJaQERS+4EWVejw xmWQBjHWrCJaeIFlBZWlWeusuQRUAg7ZPp2YsSa22lWW+BaTyP7B3LG7uIk2segxpC fXC6/2fvUkarHeY61Eqcevub+Xe5Z4zog/8xvQ47n9LFjG/78OXTtmkuS2h8bpKsdb Q4bTl3QzQDIB4AO25MpPDVfZC0fZl8Uz9WgR6X40MESKhd2vGXL+EILxjP6riO09h0 ca+3qZPfe9U5g== From: Namhyung Kim To: Arnaldo Carvalho de Melo , Adrian Hunter Cc: linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, Jiri Olsa , Ian Rogers Subject: Re: [PATCH] perf test: Enable Symbols test to work with a current module dso Date: Tue, 20 Feb 2024 17:57:37 -0800 Message-ID: <170848061716.1313505.4005156314579304167.b4-ty@kernel.org> X-Mailer: git-send-email 2.44.0.rc0.258.g7320e95886-goog In-Reply-To: <20240131192416.16387-1-adrian.hunter@intel.com> References: <20240131192416.16387-1-adrian.hunter@intel.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-Transfer-Encoding: 8bit On Wed, 31 Jan 2024 21:24:16 +0200, Adrian Hunter wrote: > The test needs a struct machine and creates one for the current host, > but a side-effect is that struct machine has set up kernel maps > including module maps. > > If the 'Symbols' test --dso option specifies a current kernel module, > it will already be present as a kernel dso, and a map with kmaps needs > to be used otherwise there will be a segfault - see below. > > [...] Applied to perf-tools-next, thanks! Best regards, -- Namhyung Kim