Linux Perf Users
 help / color / mirror / Atom feed
From: Peter Zijlstra <peterz@infradead.org>
To: Ian Rogers <irogers@google.com>
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
Date: Fri, 4 Dec 2026 12:11:50 +0100	[thread overview]
Message-ID: <20261204111150.GH2668564@noisy.programming.kicks-ass.net> (raw)
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 :-)


      parent reply	other threads:[~2026-12-04 11:11 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-04  6:23 [PATCH v3 0/7] perf synthetic-events: Use PROCMAP_QUERY for mmap synthesis Ian Rogers
2026-12-04  6:23 ` [PATCH v3 1/7] perf machine: Fix leak when creating host kernel maps fails Ian Rogers
2026-12-04  6:23 ` [PATCH v3 2/7] perf synthetic-events: Fix race on DSO build IDs when synthesizing Ian Rogers
2026-12-04  6:23 ` [PATCH v3 3/7] perf bench synthesize: Initialize symbols so build IDs can be read Ian Rogers
2026-12-04  6:23 ` [PATCH v3 4/7] tools headers UAPI: Synchronize linux/fs.h with the kernel sources Ian Rogers
2026-12-04  6:23 ` [PATCH v3 5/7] perf synthetic-events: Use PROCMAP_QUERY to synthesize mmap events Ian Rogers
2026-12-04  6:46   ` sashiko-bot
2026-12-04  6:23 ` [PATCH v3 6/7] perf bench synthesize: Add --procmap-query option Ian Rogers
2026-12-04  6:23 ` [PATCH v3 7/7] perf test: Add test comparing PROCMAP_QUERY and /proc/pid/maps synthesis Ian Rogers
2026-12-04  6:46 ` [PATCH v3 0/7] perf synthetic-events: Use PROCMAP_QUERY for mmap synthesis sashiko-bot
2026-12-04 11:11 ` Peter Zijlstra [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261204111150.GH2668564@noisy.programming.kicks-ass.net \
    --to=peterz@infradead.org \
    --cc=acme@kernel.org \
    --cc=adrian.hunter@intel.com \
    --cc=andrii@kernel.org \
    --cc=dsahern@gmail.com \
    --cc=irogers@google.com \
    --cc=james.clark@linaro.org \
    --cc=jolsa@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-perf-users@vger.kernel.org \
    --cc=mingo@redhat.com \
    --cc=namhyung@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox