linux/tools/perf/tests/shell
Arnaldo Carvalho de Melo 29f320d221 perf test: Skip data_type_profiling when the PMU cannot record memory events
The test's only guard matches "failed: no PMU supports the memory
events", but a PMU that has memory events and refuses them per-thread,
such as AMD IBS on kernels without the swfilt filter, falls through:
the script runs under 'set -e' and the bare 'perf mem record' aborts it
through the EXIT trap, reporting a signal that never happened and
turning "this PMU cannot record these events" into a test failure.

Skip when a trivial per-thread 'perf mem record' fails, and put the
record and annotate calls in the condition of an 'if', where 'set -e'
leaves them alone, so the remaining cases report their own failures
instead of the first one aborting the run.

Fixes: f60a5c2296 ("perf tests: Test annotate with data type profiling and rust")
Acked-by: Namhyung Kim <namhyung@kernel.org>
Assisted-by: LLM
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2026-09-17 12:22:07 -03:00
..
attr
base_probe
base_report
common
coresight perf test: Add Arm CoreSight callchain test 2026-07-03 16:52:00 -07:00
lib perf test waiting.sh: Replace timestamp polling with sleep 2026-09-08 18:06:01 -03: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 perf test ibs: Skip privilege test on Zen6 and newer platforms 2026-05-22 21:31:16 -03:00
annotate_weight.sh perf tools: Add test for weight annotation 2026-09-04 18:21:00 -03:00
annotate.sh
attr.sh
buildid.sh
c2c.sh
daemon.sh
data_file_offset_diagnostics.sh perf test: Add file offset diagnostic test for corrupted perf.data 2026-06-03 16:31:04 -03:00
data_type_profiling.sh perf test: Skip data_type_profiling when the PMU cannot record memory events 2026-09-17 12:22:07 -03:00
data_validation.sh perf test: Add truncated perf.data robustness test 2026-05-29 11:44:35 -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 perf test: Fix nanosleep check in the ftrace test 2026-05-11 14:15:49 -03:00
header.sh
inject_aslr.sh perf test: Skip failing 'perf test aslr' test case 2026-06-30 10:24:22 -07:00
inject-callchain.sh perf test: Add DWARF callchain conversion test 2026-01-20 17:18:24 -03:00
jitdump-python.sh perf tests: Fix Python JIT dump profiling test failure 2026-06-30 17:09:13 -07:00
kallsyms.sh
kvm.sh perf test: Extend perf kvm tests to check default event 2026-07-03 13:40:24 -07:00
kwork.sh perf tests kwork: Add basic kwork coverage tests 2026-04-02 19:44:45 -07:00
list.sh
lock_contention.sh perf tests: Restore -p flag to lock contention test 2026-07-09 17:44:22 -07:00
perf_sched_stats.sh perf test: Skip sched stats test for !root 2026-04-05 23:27:51 -07:00
perf-report-hierarchy.sh
perftool-testsuite_probe.sh
perftool-testsuite_report.sh
pipe_test.sh perf tests: Add robust record retry helper and use subsecond workloads 2026-06-30 17:09:13 -07:00
probe_vfs_getname.sh
python-use.sh
record_bpf_filter.sh
record_lbr.sh perf tests: Add robust record retry helper and use subsecond workloads 2026-06-30 17:09:13 -07:00
record_offcpu.sh perf tests: Speed up off-cpu profiling tests 2026-06-30 17:09:14 -07:00
record_sideband.sh
record_weak_term.sh
record.sh perf tests: Add SIMD registers sampling test 2026-09-14 15:35:30 -03:00
record+probe_libc_inet_pton.sh perf test: Fix inet_pton probe failure and unroll call graph 2026-04-13 23:28:14 -07:00
record+script_probe_vfs_getname.sh
record+zstd_comp_decomp_multi_record.sh perf record: Fix multiple PERF_RECORD_COMPRESSED2 records per push 2026-07-13 13:25:17 -07:00
record+zstd_comp_decomp.sh
sched.sh perf sched latency: Add histogram and time interval options 2026-08-07 10:56:23 -07:00
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
script.sh
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 tests: Speed up metrics checking shell tests 2026-06-30 17:09:14 -07:00
stat_all_pfm.sh
stat_all_pmu.sh
stat_bpf_counters_cgrp.sh perf test: Update test for --for-each-cgroup option 2026-07-16 10:35:23 -07:00
stat_bpf_counters.sh perf tests: Fix flakiness in BPF counters test on hybrid systems 2026-06-30 17:09:14 -07:00
stat_metrics_cgrp.sh perf test: Add stat metrics --for-each-cgroup test 2026-05-25 16:47:14 -03:00
stat_metrics_values.sh perf tests: Speed up metrics checking shell tests 2026-06-30 17:09:14 -07:00
stat.sh perf test: perf stat tests fails on s390 2026-09-08 17:54:53 -03:00
stat+csv_output.sh
stat+csv_summary.sh
stat+event_uniquifying.sh
stat+json_output.sh
stat+shadow_stat.sh
stat+std_output.sh
test_arm_callgraph_fp.sh
test_arm_spe_fork.sh
test_arm_spe.sh
test_bpf_metadata.sh
test_brstack.sh perf tests: Fix flakiness in branch stack sampling tests 2026-06-30 17:09:14 -07:00
test_data_symbol.sh
test_dwarf_unwind_multithreaded.sh perf unwind-libdw: Fix unwinding of multi-threaded processes 2026-07-31 15:31:20 -07:00
test_event_open_fallback.sh perf test: Avoid call to missing cleanup function 2026-09-08 18:13:52 -03:00
test_intel_pt.sh perf test: Remove /usr/bin/cc dependency from Intel PT shell test 2026-06-04 11:41:46 -03:00
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 data ctf: replace libbabeltrace with babeltrace2-ctf-writer 2026-06-04 17:34:52 -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 perf tests: Write test files to tmpdir 2026-04-01 14:50:53 -07:00
test_test_junit_output.sh perf test: Add shell test to validate JUnit XML reporting output 2026-06-04 11:41:33 -03:00
test_uprobe_from_different_cu.sh
timechart.sh perf test: Update perf timechart test 2026-06-30 17:04:51 -07:00
top.sh perf tests top: Make the test exclusive 2025-12-23 10:13:50 -08:00
trace_btf_enum.sh
trace_btf_general.sh perf test: Make perf trace BTF general tests exclusive 2026-04-08 21:42:25 -07:00
trace_exit_race.sh
trace_ksym_beautifier.sh perf tests: Add shell test for kernel symbol beautifier 2026-09-04 18:14:52 -03:00
trace_record_replay.sh perf tests: Fix flakiness in trace record and replay test 2026-06-30 17:09:13 -07:00
trace_summary.sh perf test: Fix "trace summary" test for musl-based systems 2026-05-11 14:16:38 -03:00
trace+probe_vfs_getname.sh