summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorJames Clark <james.clark@linaro.org>2026-11-06 10:48:09 +0000
committerArnaldo Carvalho de Melo <acme@redhat.com>2026-11-07 17:31:38 -0300
commit8e2287c5df7417a93457548087f45aa11dc2a140 (patch)
treec6a6ceaeea5be0d63107b9bb66ea6a1122752e86 /tools/perf/scripts/python
parenta794dc43e25679a0c2ba9019cf46e2b125c85c02 (diff)
perf test probe_vfs_getname: Fix missing debuginfo detection
skip_if_no_debuginfo() looks for the errors that 'perf probe' prints when there is no debuginfo in the output of add_probe_vfs_getname(). But since commit 92b664dcefab ("perf test probe_vfs_getname: Skip if no suitable line detected"), add_probe_vfs_getname() returns early without adding a probe if 'perf probe -L' doesn't find the line, which is also what happens when there is no debuginfo. The error from 'perf probe -L' is discarded, so the debuginfo errors are never found. This causes the debuginfo dependent subtests of the "perftool-testsuite_probe" test to fail instead of being skipped on kernels without debuginfo, because test_adding_kernel.sh calls skip_if_no_debuginfo() unconditionally. The other users only call it when add_probe_vfs_getname() returns 1, so they aren't affected. Fix it by doing a dry run of a probe that needs debuginfo instead. This works without libdw too, where 'perf probe -L' isn't available, and also avoids adding a real probe just to check for debuginfo. This fixes the "perftool-testsuite_probe" test: $ sudo perf test -vvv "perftool-testsuite_probe" ... -- [ FAIL ] -- perf_probe :: test_adding_kernel :: listing added probe :: perf probe -l (output regexp parsing) ... -- [ FAIL ] -- perf_probe :: test_adding_kernel :: wildcard adding support (command exitcode + output regexp parsing) ... -- [ FAIL ] -- perf_probe :: test_adding_kernel :: non-existing variable (output regexp parsing) ... ## [ FAIL ] ## perf_probe :: test_adding_kernel SUMMARY :: 3 failures found ... 189: perftool-testsuite_probe : FAILED! Fixes: 92b664dcefab71f4 ("perf test probe_vfs_getname: Skip if no suitable line detected") Signed-off-by: James Clark <james.clark@linaro.org> Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com> Cc: Ian Rogers <irogers@google.com> Cc: Ingo Molnar <mingo@redhat.com> Cc: Jakub Brnak <jbrnak@redhat.com> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Leo Yan <leo.yan@arm.com> Cc: Mark Rutland <mark.rutland@arm.com> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Peter Zijlstra <peterz@infradead.org> [ Added a shellcheck disable for add_probe_vfs_getname()'s now unused -v argument ] Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions