* [PATCH] perf test probe_vfs_getname: Also look for the probe line in do_getname()
@ 2026-09-28 18:05 Ian Rogers
2026-09-28 18:10 ` sashiko-bot
2026-09-28 20:00 ` Arnaldo Carvalho de Melo
0 siblings, 2 replies; 3+ messages in thread
From: Ian Rogers @ 2026-09-28 18:05 UTC (permalink / raw)
To: Arnaldo Carvalho de Melo, Namhyung Kim
Cc: Leo Yan, Peter Zijlstra, Ingo Molnar, Jiri Olsa, Adrian Hunter,
James Clark, linux-perf-users, linux-kernel, Ian Rogers
Since commit 9fa3ec84587c ("allow incomplete imports of filenames"), in
v7.0, getname_flags() only calls do_getname(). None of the lines the
vfs_getname tests search for are in getname_flags() any more, so the
tests always skip. Fall back to the initname() call in do_getname().
Assisted-by: Antigravity:gemini-3.1-pro
Signed-off-by: Ian Rogers <irogers@google.com>
---
Tested on a v7.1.6 kernel with its debuginfo and fs/namei.c, which
perf probe -L needs. The three vfs_getname tests now pass instead of
skipping.
tools/perf/tests/shell/lib/probe_vfs_getname.sh | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
diff --git a/tools/perf/tests/shell/lib/probe_vfs_getname.sh b/tools/perf/tests/shell/lib/probe_vfs_getname.sh
index 88cd0e26d5f6..a4230a83bcae 100644
--- a/tools/perf/tests/shell/lib/probe_vfs_getname.sh
+++ b/tools/perf/tests/shell/lib/probe_vfs_getname.sh
@@ -13,6 +13,7 @@ cleanup_probe_vfs_getname() {
add_probe_vfs_getname() {
add_probe_verbose=$1
if [ $had_vfs_getname -eq 1 ] ; then
+ local func=getname_flags
result_initname_re="[[:space:]]+([[:digit:]]+)[[:space:]]+initname.*"
line=$(perf probe -L getname_flags 2>&1 | grep -E "$result_initname_re" | sed -r "s/$result_initname_re/\1/")
@@ -28,13 +29,20 @@ add_probe_vfs_getname() {
line=$(perf probe -L getname_flags 2>&1 | grep -E "$result_aname_re" | sed -r "s/$result_aname_re/\1/")
fi
+ # Since v7.0 getname_flags() is a wrapper around do_getname().
+ if [ -z "$line" ] ; then
+ func=do_getname
+ line=$(perf probe -L $func 2>&1 | grep -E "$result_initname_re" |
+ sed -r "s/$result_initname_re/\1/")
+ fi
+
if [ -z "$line" ] ; then
echo "Could not find probeable line"
return 2
fi
- perf probe -q "vfs_getname=getname_flags:${line} pathname=result->name:string" || \
- perf probe $add_probe_verbose "vfs_getname=getname_flags:${line} pathname=filename:ustring" || return 1
+ perf probe -q "vfs_getname=${func}:${line} pathname=result->name:string" || \
+ perf probe $add_probe_verbose "vfs_getname=${func}:${line} pathname=filename:ustring" || return 1
fi
}
--
2.56.0.rc1.315.gc6ed9934b7-goog
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] perf test probe_vfs_getname: Also look for the probe line in do_getname()
2026-09-28 18:05 [PATCH] perf test probe_vfs_getname: Also look for the probe line in do_getname() Ian Rogers
@ 2026-09-28 18:10 ` sashiko-bot
2026-09-28 20:00 ` Arnaldo Carvalho de Melo
1 sibling, 0 replies; 3+ messages in thread
From: sashiko-bot @ 2026-09-28 18:10 UTC (permalink / raw)
To: Ian Rogers; +Cc: linux-perf-users
> Since commit 9fa3ec84587c ("allow incomplete imports of filenames"), in
> v7.0, getname_flags() only calls do_getname(). None of the lines the
> vfs_getname tests search for are in getname_flags() any more, so the
> tests always skip. Fall back to the initname() call in do_getname().
>
> Assisted-by: Antigravity:gemini-3.1-pro
> Signed-off-by: Ian Rogers <irogers@google.com>
Sashiko has reviewed this patch and found no issues. It looks great!
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260926223905.6865105-1-irogers@google.com?part=1
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] perf test probe_vfs_getname: Also look for the probe line in do_getname()
2026-09-28 18:05 [PATCH] perf test probe_vfs_getname: Also look for the probe line in do_getname() Ian Rogers
2026-09-28 18:10 ` sashiko-bot
@ 2026-09-28 20:00 ` Arnaldo Carvalho de Melo
1 sibling, 0 replies; 3+ messages in thread
From: Arnaldo Carvalho de Melo @ 2026-09-28 20:00 UTC (permalink / raw)
To: Ian Rogers
Cc: Namhyung Kim, Leo Yan, Peter Zijlstra, Ingo Molnar, Jiri Olsa,
Adrian Hunter, James Clark, linux-perf-users, linux-kernel
On Mon, Sep 28, 2026 at 11:05:32AM -0700, Ian Rogers wrote:
> Since commit 9fa3ec84587c ("allow incomplete imports of filenames"), in
> v7.0, getname_flags() only calls do_getname(). None of the lines the
> vfs_getname tests search for are in getname_flags() any more, so the
> tests always skip. Fall back to the initname() call in do_getname().
Thanks, applied to perf-tools-next, for v7.4.
- Arnaldo
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-09-28 20:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-28 18:05 [PATCH] perf test probe_vfs_getname: Also look for the probe line in do_getname() Ian Rogers
2026-09-28 18:10 ` sashiko-bot
2026-09-28 20:00 ` Arnaldo Carvalho de Melo
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.