From: sashiko-bot@kernel.org
To: "Zhan Xusheng" <zhanxusheng1024@gmail.com>
Cc: linux-perf-users@vger.kernel.org
Subject: Re: [PATCH v3] perf symbols: Apply the symfs flat layout to the composed filename
Date: Tue, 22 Sep 2026 13:27:22 +0000 [thread overview]
Message-ID: <20260922132723.0DA4A1F000FF@smtp.kernel.org> (raw)
In-Reply-To: <20260922131952.2922816-1-zhanxusheng@xiaomi.com>
> --symfs=<dir>,flat documents itself as matching only the base name, so a
> debuginfo lookup for /usr/lib/x86_64-linux-gnu/libc.so.6 should land on
> <dir>/libc.so.6.debug. It lands on
> <dir>/debug/usr/lib/x86_64-linux-gnu/libc.so.6.debug instead, because the
> layout is applied to a fixed prefix and the file name arrives afterwards:
>
> len = __symbol__join_symfs(filename, size, "/usr/lib/debug");
> snprintf(filename + len, size - len, "%s.debug", dso__long_name(dso));
>
> perf_basename() only ever sees "/usr/lib/debug", so neither layout comes
> out of it.
>
> Compose the path as it would appear on the profiled system and join it
> once, which puts the layout on the whole name. That covers
> FEDORA_DEBUGINFO, UBUNTU_DEBUGINFO, MIXEDUP_UBUNTU_DEBUGINFO,
> [ ... ]
>
> With --symfs /s,flat the lookups are now /s/libc.so.6, /s/libc.so.6.debug,
> /s/sleep and /s/<build id>.debug. hierarchy is unchanged.
>
> Signed-off-by: Zhan Xusheng <zhanxusheng@xiaomi.com>
Sashiko has reviewed this patch and found no issues. It looks great!
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260922131952.2922816-1-zhanxusheng@xiaomi.com?part=1
next prev parent reply other threads:[~2026-09-22 13:27 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-22 13:19 [PATCH v3] perf symbols: Apply the symfs flat layout to the composed filename Zhan Xusheng
2026-09-22 13:27 ` sashiko-bot [this message]
2026-09-24 22:30 ` Namhyung Kim
2026-09-25 12:07 ` Arnaldo Carvalho de Melo
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=20260922132723.0DA4A1F000FF@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=linux-perf-users@vger.kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
--cc=zhanxusheng1024@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