linux/tools/perf/tests/shell
Ian Rogers dbf0108347 perf test script: Add python script testing support
Basic coverage of python script support from `perf script`.

Committer testing:

  $ perf test 'perf script python'
  107: perf script python tests                                        : Ok
  $ perf test -vv 'perf script python'
  107: perf script python tests:
  --- start ---
  test child forked, pid 595537
  Testing event: sched:sched_switch
  perf script python test [Skipped: failed to record sched:sched_switch]
  Testing event: task-clock
  Generating python script...
  generated Python script: /tmp/__perf_test_script.J4rWj.py
  Executing python script...
  perf script python test [Success: task-clock triggered param_dict]
  ---- end(0) ----
  107: perf script python tests                                        : Ok
  $

Signed-off-by: Ian Rogers <irogers@google.com>
Tested-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: James Clark <james.clark@linaro.org>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Leo Yan <leo.yan@arm.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Sandipan Das <sandipan.das@amd.com>
Cc: Yujie Liu <yujie.liu@intel.com>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2026-02-12 17:45:23 -03:00
..
attr perf test attr: Add missing int_mist.uop_dropping event to test-stat files 2025-09-19 12:41:50 -03:00
base_probe perf test perftool_testsuite: Use absolute paths 2025-10-01 09:44:05 -03:00
base_report perf test perftool_testsuite: Use absolute paths 2025-10-01 09:44:05 -03:00
common perf test perftool_testsuite: Use absolute paths 2025-10-01 09:44:05 -03:00
coresight perf test coresight: Dismiss clang warning for unroll loop thread 2025-10-06 16:49:25 -03:00
lib perf test: Be tolerant of missing json metric none value 2025-11-16 23:24:00 -08:00
addr2line_inlines.sh perf test addr2line_inlines: Ensure inline information shows on LBR leaves 2026-02-06 18:11:31 -03:00
amd-ibs-swfilt.sh
annotate.sh
attr.sh
buildid.sh perf tests buildid: Add purge and remove testing 2025-12-03 11:07:46 -08:00
c2c.sh perf tests c2c: Add a basic c2c 2025-12-03 11:07:46 -08:00
daemon.sh
data_type_profiling.sh perf test data_type_profiling.sh: Skip just the Rust tests if code_with_type workload is missing 2026-02-12 17:45:22 -03:00
diff.sh
drm_pmu.sh
evlist.sh perf test: Fix test perf evlist for z/VM s390x 2026-01-26 18:21:20 -03:00
ftrace.sh
header.sh
inject-callchain.sh perf test: Add DWARF callchain conversion test 2026-01-20 17:18:24 -03:00
jitdump-python.sh perf test: Add python JIT dump test 2025-12-02 16:06:57 -08:00
kallsyms.sh perf tests kallsyms: Add basic kallsyms test 2025-12-03 11:07:47 -08:00
kvm.sh perf test kvm: Add stat live testing 2026-02-03 18:01:27 -03:00
list.sh
lock_contention.sh perf test: Fix lock contention test 2025-11-13 17:29:00 -03:00
perf-report-hierarchy.sh
perf_sched_stats.sh perf sched stats: Add basic 'perf sched stats' test 2026-01-22 12:46:05 -03:00
perftool-testsuite_probe.sh
perftool-testsuite_report.sh
pipe_test.sh
probe_vfs_getname.sh
python-use.sh perf test: Add an 'import perf' test shell script 2025-10-01 16:59:06 -03:00
record+probe_libc_inet_pton.sh
record+script_probe_vfs_getname.sh
record+zstd_comp_decomp.sh
record.sh perf test record.sh: Fix shellcheck warning 2026-02-08 11:29:58 -03:00
record_bpf_filter.sh
record_lbr.sh perf test shell lbr: Avoid failures with perf event paranoia 2025-09-19 12:14:30 -03:00
record_offcpu.sh
record_sideband.sh
record_weak_term.sh perf test: Add test that command line period overrides sysfs/json values 2025-11-09 23:07:57 -08:00
sched.sh perf tests sched: Avoid error in cleanup on loaded machines 2026-01-23 16:58:39 -03:00
script.sh
script_dlfilter.sh perf test: Use shelldir to refer perf source location 2026-01-13 17:21:39 -03:00
script_perl.sh perf test script: Add perl script testing support 2026-02-12 17:45:23 -03:00
script_python.sh perf test script: Add python script testing support 2026-02-12 17:45:23 -03:00
stat+csv_output.sh perf test stat csv: Update test expectations and events 2025-11-11 16:48:36 -08:00
stat+csv_summary.sh
stat+event_uniquifying.sh perf test: Avoid uncore_imc/clockticks in uniquification test 2025-09-19 16:50:21 -03:00
stat+json_output.sh perf test stat+json: Improve metric-only testing 2025-11-11 16:48:35 -08:00
stat+shadow_stat.sh perf test stat: Update shadow test to use metrics 2025-11-11 16:48:35 -08:00
stat+std_output.sh perf test stat: Update std_output testing metric expectations 2025-11-11 16:48:35 -08:00
stat.sh perf tests: Additional 'perf stat' tests 2026-02-06 11:55:21 -03:00
stat_all_metricgroups.sh perf test: Do not skip when some metric-group tests succeed 2026-01-13 17:21:56 -03:00
stat_all_metrics.sh perf test: Do not skip when some metrics tests succeeded 2026-01-13 17:21:41 -03:00
stat_all_pfm.sh
stat_all_pmu.sh
stat_bpf_counters.sh
stat_bpf_counters_cgrp.sh
stat_metrics_values.sh
test_arm_callgraph_fp.sh
test_arm_coresight.sh perf cs-etm: Test sparse CPU maps 2026-01-20 17:41:36 -03:00
test_arm_coresight_disasm.sh
test_arm_spe.sh
test_arm_spe_fork.sh
test_bpf_metadata.sh
test_brstack.sh perf test: Extend branch stack sampling test for Arm64 BRBE 2025-10-01 15:31:49 -03:00
test_data_symbol.sh
test_event_open_fallback.sh perf test: Fix hybrid testing of event fallback test 2025-12-02 16:02:47 -08:00
test_intel_pt.sh
test_java_symbol.sh perf test java symbol: Additional libperf-jvmti.so path check 2026-01-06 19:06:00 -03:00
test_perf_data_converter_ctf.sh perf test: perf data --to-ctf testing 2026-02-12 17:45:22 -03:00
test_perf_data_converter_json.sh perf test: Test pipe mode with data conversion --to-json 2026-02-12 17:45:22 -03:00
test_stat_intel_tpebs.sh
test_task_analyzer.sh
test_uprobe_from_different_cu.sh
timechart.sh perf tests timechart: Add a perf timechart test 2025-12-03 11:07:47 -08:00
top.sh perf tests top: Make the test exclusive 2025-12-23 10:13:50 -08:00
trace+probe_vfs_getname.sh
trace_btf_enum.sh
trace_btf_general.sh
trace_exit_race.sh
trace_record_replay.sh
trace_summary.sh