mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Stephen Brennan <stephen.s.brennan@oracle.com>
To: Namhyung Kim <namhyung@kernel.org>
Cc: Arnaldo Carvalho de Melo <acme@kernel.org>,
	Peter Zijlstra <peterz@infradead.org>,
	Ingo Molnar <mingo@redhat.com>,
	James Clark <james.clark@linaro.org>,
	linux-perf-users@vger.kernel.org, Ian Rogers <irogers@google.com>,
	Mark Rutland <mark.rutland@arm.com>,
	linux-kernel@vger.kernel.org,
	Alexander Shishkin <alexander.shishkin@linux.intel.com>,
	Jiri Olsa <jolsa@kernel.org>,
	Adrian Hunter <adrian.hunter@intel.com>
Subject: Re: [PATCH] tools: perf: allow opt-in "no-dso." files in /dev/shm
Date: Thu, 5 Nov 2026 08:48:22 -0800	[thread overview]
Message-ID: <b4777494-c583-4a4b-a397-6e1cd3a8d72e@oracle.com> (raw)
In-Reply-To: <auuckurvVVn0YXSg@google.com>

On 11/4/26 12:58 PM, Namhyung Kim wrote:
> On Tue, Oct 13, 2026 at 02:38:41PM -0700, Stephen Brennan wrote:
>> Applications can place JIT-compiled code in POSIX shared memory so that
>> multiple processes can execute the same code. On Linux, these shared
>> memory objects appear as file mappings under /dev/shm.
>>
>> Perf uses /tmp/perf-$pid.map to resolve symbols for executable SysV
>> shared memory mappings, but it treats /dev/shm mappings as ordinary
>> DSOs. As a result, applications which provide perf-map symbols for JIT
>> code in POSIX shared memory don't get those symbols resolved, while they
>> do with SysV shared memory.
>>
>> It would be incorrect to classify every /dev/shm mapping as no-DSO
>> memory though, because /dev/shm is just a tmpfs mount, and it can
>> contain ELF files.
>>
>> Add a filename prefix "/dev/shm/no-dso." which is recognized by
>> is_no_dso_memory(). Applications can opt-in by naming their shared
>> memory objects "no-dso.<name>". Executable mappings with this prefix
>> will use the perf-map file, while other /dev/shm mappings will keep the
>> existing behavior. This allows applications that already emit perf maps
>> to use POSIX shared memory for JIT code, without needing to implement
>> jitdump support.
>>
>> Signed-off-by: Stephen Brennan <stephen.s.brennan@oracle.com>
> 
> Applied to perf-tools-next, thanks!

Thank you!
Stephen

> Best regards
> Namhyung


      reply	other threads:[~2026-11-05 16:48 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-13 21:38 Stephen Brennan
2026-11-03 16:46 ` Stephen Brennan
2026-11-04 20:58 ` Namhyung Kim
2026-11-05 16:48   ` Stephen Brennan [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=b4777494-c583-4a4b-a397-6e1cd3a8d72e@oracle.com \
    --to=stephen.s.brennan@oracle.com \
    --cc=acme@kernel.org \
    --cc=adrian.hunter@intel.com \
    --cc=alexander.shishkin@linux.intel.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=mark.rutland@arm.com \
    --cc=mingo@redhat.com \
    --cc=namhyung@kernel.org \
    --cc=peterz@infradead.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

all inboxes | Powered by JetHome®