aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools/perf/tests/shell/test_stackcollapse_python.sh
diff options
context:
space:
mode:
authorIan Rogers <irogers@google.com>2026-09-25 23:20:15 -0700
committerArnaldo Carvalho de Melo <acme@redhat.com>2026-09-26 21:16:03 +0200
commitb02aa1d1343f580e5a43789b392e0c813bc1cba9 (patch)
treed5f1ada16cc5c54482a4fdf8b48dcfab212bdfb1 /tools/perf/tests/shell/test_stackcollapse_python.sh
parentperf Makefile: Update Python script installation path (diff)
perf script: Support standalone scripts and remove embedded scripting
Refactor 'perf script' to launch standalone scripts directly via fork() and execvp() and remove the legacy embedded Perl and Python scripting engines: - Remove the embedded Perl scripting engine (util/scripting-engines/trace-event-perl.c), Perl scripts, bin wrappers, and Trace-Util library (scripts/perl/Perf-Trace-Util/), and script_perl.sh test. - Remove libperl feature checks from Makefile.config, Makefile.perf, builtin-check.c, and Documentation/perf-check.txt. - Remove -g / --gen-script option and scripting_ops dispatch table from builtin-script.c and trace-event-scripting.c. - Hide the legacy -s / --script option and update script discovery in find_script() and list_available_scripts() to prioritize the system 'python' directory over bare filenames in the current directory. - Update the Python script shell tests (test_arm_coresight_disasm.sh, test_task_analyzer.sh, and test_*_python.sh) to invoke scripts via 'perf script <script>' rather than running the Python interpreter directly on the script file path. Assisted-by: Antigravity:gemini-3.1-pro Signed-off-by: Ian Rogers <irogers@google.com> Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/tests/shell/test_stackcollapse_python.sh')
-rwxr-xr-xtools/perf/tests/shell/test_stackcollapse_python.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/perf/tests/shell/test_stackcollapse_python.sh b/tools/perf/tests/shell/test_stackcollapse_python.sh
index a3b6c917e842..ce0f80407eec 100755
--- a/tools/perf/tests/shell/test_stackcollapse_python.sh
+++ b/tools/perf/tests/shell/test_stackcollapse_python.sh
@@ -47,7 +47,7 @@ if [ ! -s "${temp_data}" ]; then
fi
# Check that the script executes with default options
-if ! "$PYTHON" "$script_path" -i "${temp_data}" > "${temp_out}"; then
+if ! perf script stackcollapse -i "${temp_data}" > "${temp_out}"; then
echo "stackcollapse.py test failed"
err=1
else
@@ -61,12 +61,12 @@ else
fi
# Test CLI flags (--include-pid, --include-tid, --tidy-java, --kernel) and BrokenPipeError
-if ! "$PYTHON" "$script_path" -i "${temp_data}" \
+if ! perf script stackcollapse -i "${temp_data}" \
--include-pid --include-tid --tidy-java --kernel | head -n 1 > "${temp_out}" || \
[ ! -s "${temp_out}" ]; then
echo "stackcollapse.py options/pipe test failed"
err=1
-elif ! "$PYTHON" "$script_path" -i "${temp_data}" --no-comm > "${temp_out}" || \
+elif ! perf script stackcollapse -i "${temp_data}" --no-comm > "${temp_out}" || \
[ ! -s "${temp_out}" ]; then
echo "stackcollapse.py --no-comm test failed"
err=1