Linux Perf Users
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Matthew Wood" <thepacketgeek@gmail.com>
Cc: linux-perf-users@vger.kernel.org
Subject: Re: [PATCH v3 1/2] perf symbol: Add dso__load_symsrc()
Date: Fri, 30 Oct 2026 19:40:41 +0000	[thread overview]
Message-ID: <sashiko-outbox-191451@kernel.org> (raw)
In-Reply-To: <20261030193237.1440673-2-thepacketgeek@gmail.com>

> dso__load() goes through the candidate files for a DSO, such as the DSO
> itself, separate debuginfo found through .gnu_debuglink, the build-id
> cache and /usr/lib/debug, checks their build-ids, records the one with a
> symbol table in dso__symsrc_filename(), and then reads and demangles
> that symbol table.
> 
> The DWARF unwinders depend on the first part. dso__symsrc_filename() is
> how they find a separate debuginfo file, for instance to use its
> .debug_frame, and libdw's build-id cache fallback needs the build-id
> that dso__load() reads when the DSO doesn't have one yet. They get both
> today as a side effect of loading the symbols of every frame they visit.
> 
> Add dso__load_symsrc(), which does the same search, inside the DSO's
> mount namespace and honouring --symfs but stops before reading any
> symbols. A new symsrc_loaded flag records that it ran, so the search is
> done once per DSO, and the DSO's symbols stay unloaded, so dso__load()
> still loads them when they are wanted. Kernel and perf map DSOs are
> skipped, as the unwinders only handle user space ELF images.
> 
> No functional change on its own; the next patch uses it.
> 
> Signed-off-by: Matthew Wood <thepacketgeek@gmail.com>

Sashiko has reviewed this patch and found no issues.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261030193237.1440673-1-thepacketgeek@gmail.com?part=1


  reply	other threads:[~2026-10-30 19:40 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-30 19:32 [PATCH v3 0/2] perf unwind: Don't load symbols when the caller doesn't need them Matthew Wood
2026-10-30 19:32 ` [PATCH v3 1/2] perf symbol: Add dso__load_symsrc() Matthew Wood
2026-10-30 19:40   ` sashiko-bot [this message]
2026-10-30 19:32 ` [PATCH v3 2/2] perf unwind: Don't look up symbols when the caller doesn't want them Matthew Wood
2026-10-30 19:51   ` sashiko-bot

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=sashiko-outbox-191451@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=linux-perf-users@vger.kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    --cc=thepacketgeek@gmail.com \
    /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