From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=90.155.92.199 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796382715; b=VW+PFOAiJyy6BksSNsAsoxRY/pUYVoG+5oPz70r0be1o008+eneR+Xr7S4Q/0VQTLxIP zPYsAMj3pi4BRxVoIygsQMLBP39dKFHu7aEz3m8FBduhcN8NJTjYASHZXh/3KQaXIGHmX lBz9SPfIzlfstymajafTaf4IFi3ugZMb7eZFeeLIk7QhAP7DHlvAwqr14gqsHYv2UFWGF EqBqu0uqQPalhizvGe/vYqMoq9GOtRCgfZ0RXtk8bcQQBZQcBD6JyETRr2YosTXtLTqyX Chq5l1VBtA+Yznv3jReJXJr5G8s9T7Xs+UAo0uxP8KZBDIs5ebnaedZDTYr/FkYx2bg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796382715; h=DMARC-Filter:DKIM-Signature:Received:Received:Date:From:To:Cc: Subject:Message-ID:References:MIME-Version:Content-Type: Content-Disposition:In-Reply-To; bh=cw38MBAQPjXP1C5jzbt6vYuMF6V9fLIv8xmfG8QospE=; b=L7rw6bqLAWU6plYZcglmWRezbm6dQLRg5Oi5R4dcl2ynZ1Ie9UjlHnZIFZSWojmlq4HX 2ThEk9h+Ehx5zIN/P5sl4DSqfQam/2OiklI7cIeYZ58A4xzd/w0wL+KahKbaVteQ48heL tOBKv9ivrCsUyasm78i9/WEkb8x4sTg/7flmqQrOyVzai63KH4m6X3vACWlLMjv0u4oxf KSXT7hTdI+zlNJ/NaQqWHPKVcDc+6d8tADfsNFXxhht3BdxJFcETX0aQK9ZBuur9e5Pfr XQnwIzVzv99oWEUhLqHrEDcWcyIq1ZmQwbdMI/O6Vkzz/Eh2bFqfmWXXV1WugtgBu+A== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=infradead.org; spf=pass smtp.mailfrom=infradead.org; dkim=pass header.d=infradead.org header.i=@infradead.org header.a=rsa-sha256 header.s=desiato.20200630 header.b=e3LRyx+h; arc=none smtp.remote-ip=90.155.92.199 Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 75722606A32F; Fri, 4 Dec 2026 11:11:55 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 75722606A32F Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=infradead.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=infradead.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.a=rsa-sha256 header.s=desiato.20200630 header.b=e3LRyx+h DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=cw38MBAQPjXP1C5jzbt6vYuMF6V9fLIv8xmfG8QospE=; b=e3LRyx+hzrCvzX9TgbuKhNYvzL nO4HaM8L0GI+bV8oQhUuAgD+O5ow+HgHWWvNZG7+onIt0Wbxg3bWLBNKacmrQi+X0br7dZ3vh5r6+ fyS0WAEYGyJGkvB54LzOiIBigoRPZoMGCiiESFWdzaWspSfeYnptwg+zuHHJqp5zgcUGH5oMsCLjI 0RBsBxm4DgyDxE7LyMIK91gtpjc6rEKQguss2mdykbmzVtLx6X93CCsKuGNUOuYYtZ61YXo7Dnsdp mHCilsDbr9cLv14/Gcyf5rCDVgAOtajO6zDckqTScL5Sl9/8SL+tHqyD8u8d/+1KU0bH8ahI0BGLG JsuRu9aA==; Received: from 77-249-17-252.cable.dynamic.v4.ziggo.nl ([77.249.17.252] helo=noisy.programming.kicks-ass.net) by desiato.infradead.org with esmtpsa (Exim 4.100.1 #2 (Red Hat Linux)) id 1xZRCh-0000000EJAE-3NSm; Fri, 04 Dec 2026 11:11:51 +0000 Received: by noisy.programming.kicks-ass.net (Postfix, from userid 1000) id BBC54301519; Fri, 04 Dec 2026 12:11:50 +0100 (CET) Date: Fri, 4 Dec 2026 12:11:50 +0100 From: Peter Zijlstra To: Ian Rogers Cc: linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, mingo@redhat.com, acme@kernel.org, namhyung@kernel.org, jolsa@kernel.org, adrian.hunter@intel.com, james.clark@linaro.org, dsahern@gmail.com, andrii@kernel.org Subject: Re: [PATCH v3 0/7] perf synthetic-events: Use PROCMAP_QUERY for mmap synthesis Message-ID: <20261204111150.GH2668564@noisy.programming.kicks-ass.net> References: <20261204062328.2508164-1-irogers@google.com> X-Mailing-List: linux-perf-users@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20261204062328.2508164-1-irogers@google.com> On Thu, Dec 03, 2026 at 10:23:21PM -0800, Ian Rogers wrote: > Patch 5 adds the PROCMAP_QUERY path. Without data mmaps the kernel > returns only executable VMAs. With data mmaps (readable or executable > VMAs are wanted) a first pass gets readable VMAs, skipping guard pages, > and a second pass gets executable VMAs that aren't readable, such as > execute-only memory. The DSO cache is consulted first (keyed by > device/inode as before), and only on a miss is the VMA queried again > for the kernel to read the build ID, so each file's build ID is read > once. If the kernel can't give a build ID, the file is read as before, > with the existing nsinfo handling; no nsinfo or mount namespace work > is done when the kernel or DSO cache provides the build ID. The text > parser remains as a fallback when the ioctl isn't supported (probed > once with pthread_once()) or the first query fails. Shared code is in > a helper so both paths emit identical events. > The 3 thread PROCMAP_QUERY median is skewed by two noisy runs; by the > minimum it is 43% faster. Nice :-)