2
0
mirror of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git synced 2025-09-04 20:19:47 +08:00
linux/tools/perf/tests/shell/lib
Leo Yan 735a3ac370 perf test probe_vfs_getname: Add regex for searching probe line
Since commit 611851010c ("fs: dedup handling of struct filename
init and refcounts bumps"), the kernel has been refactored to use a new
inline function initname(), moving name initialization into it.

As a result, the perf probe test can no longer find the source line that
matches the defined regular expressions. This causes the script to fail
when attempting to add probes.

Add a regular expression to search for the call site of initname(). This
provides a valid source line number for adding the probe. Keeps the
older regular expressions for passing test on older kernels.

Fixes: 611851010c ("fs: dedup handling of struct filename init and refcounts bumps")
Suggested-by: Arnaldo Carvalho de Melo <acme@kernel.org>
Signed-off-by: Leo Yan <leo.yan@arm.com>
Tested-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Christian Brauner <brauner@kernel.org>
Cc: Ian Rogers <irogers@google.com>
Cc: Jakub Brnak <jbrnak@redhat.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Kan Liang <kan.liang@linux.intel.com>
Cc: Mateusz Guzik <mjguzik@gmail.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Link: https://lore.kernel.org/r/20250519082755.1669187-1-leo.yan@arm.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2025-05-20 12:50:10 -03:00
..
attr.py perf test: Address attr.py mypy error 2025-03-24 09:38:20 -07:00
coresight.sh perf test: Speed up some tests using perf list 2024-10-17 09:55:58 -07:00
perf_has_symbol.sh perf tests: Avoid fork in perf_has_symbol test 2024-02-22 09:12:04 -08:00
perf_json_output_lint.py perf test: Add --metric-only to perf stat output tests 2025-03-05 09:17:01 -08:00
perf_metric_validation_rules.json perf test: Add skip list for metrics known would fail 2023-06-21 22:23:57 -07:00
perf_metric_validation.py perf test: Hybrid improvements for metric value validation test 2025-05-13 17:24:42 -03:00
probe_vfs_getname.sh perf test probe_vfs_getname: Add regex for searching probe line 2025-05-20 12:50:10 -03:00
probe.sh perf tests lib probe: Fix shellcheck warning about about missing shebang 2023-08-03 17:01:26 -03:00
setup_python.sh perf test: Use common python setup library 2023-12-05 15:48:52 -03:00
stat_output.sh perf tests metric-only perf stat: Fix tests 84 and 86 s390 2025-04-25 12:32:07 -03:00
waiting.sh perf tests lib waiting: Fix the shellcheck warnings about missing shebang 2023-08-03 17:01:26 -03:00