summaryrefslogtreecommitdiff
path: root/tools/perf/tests/shell/test_syscall_counts_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_syscall_counts_python.sh
parent1b7e0280e247b93db9e7b4473adb7fb633e06154 (diff)
downloadlinux-next-b02aa1d1343f580e5a43789b392e0c813bc1cba9.tar.gz
linux-next-b02aa1d1343f580e5a43789b392e0c813bc1cba9.zip
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_syscall_counts_python.sh')
-rwxr-xr-xtools/perf/tests/shell/test_syscall_counts_python.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/perf/tests/shell/test_syscall_counts_python.sh b/tools/perf/tests/shell/test_syscall_counts_python.sh
index 0c4b75499209..310e05d399f9 100755
--- a/tools/perf/tests/shell/test_syscall_counts_python.sh
+++ b/tools/perf/tests/shell/test_syscall_counts_python.sh
@@ -54,7 +54,7 @@ test_file_mode() {
exit 2
fi
- if ! "$PYTHON" "$script_path" -i "${temp_data}" > "${temp_out}"; then
+ if ! perf script syscall-counts -i "${temp_data}" > "${temp_out}"; then
echo "File mode test failed."
err=1
elif ! grep -E -q "^[a-zA-Z0-9_]+ +[0-9]+$" "${temp_out}"; then
@@ -65,7 +65,7 @@ test_file_mode() {
fi
# Test with a comm argument
- if ! "$PYTHON" "$script_path" -i "${temp_data}" "sleep" > "${temp_out}"; then
+ if ! perf script syscall-counts -i "${temp_data}" "sleep" > "${temp_out}"; then
echo "Comm filter test failed."
err=1
elif ! grep -E -q "^[a-zA-Z0-9_]+ +[0-9]+$" "${temp_out}"; then