linux/tools/perf/tests/shell
Ian Rogers 86d1095fdb perf test: Fixes for check branch stack sampling
When filtering branch stack samples on user events they sample in user
land but may have come from the kernel. Aarch64 avoids leaking the
kernel address for kaslr reasons but other platforms, for now,
don't. Be more permissive in allowing kernel addresses in the source
of user branch stacks.

When filtering branch stack samples on kernel events they sample in
kernel land but may have come from user land. Avoid the target being a
user address but allow the source to be in user land. Aarch64 may not
leak the user land addresses (making them 0) but other platforms
do. As the kernel address sampling implies privelege, just allow this.

Increase the duration of the system call sampling test to make the
likelihood of sampling a system call higher (increased from 1000 to
8000 loops - a number found through experimentation on an Intel
Tigerlake laptop), also make the period of the event a prime number.

Put unneeded perf record output into a temporary file so that the test
output isn't cluttered. More clearly state which test is running and
the pass, fail or skipped result of the test.

These changes make the test on an Intel tigerlake laptop reliably pass
rather than reliably fail.

Signed-off-by: Ian Rogers <irogers@google.com>
Reviewed-by: James Clark <james.clark@linaro.org>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
2026-04-13 23:37:59 -07:00
..
attr
base_probe
base_report
common
coresight
lib
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
c2c.sh
daemon.sh
data_type_profiling.sh perf test: Skip perf data type profiling tests for s390 2026-04-02 12:51:10 -07: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
kallsyms.sh
kvm.sh perf test kvm: Add stat live testing 2026-02-03 18:01:27 -03: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-report-hierarchy.sh
perf_sched_stats.sh perf test: Skip sched stats test for !root 2026-04-05 23:27:51 -07:00
perftool-testsuite_probe.sh
perftool-testsuite_report.sh
pipe_test.sh
probe_vfs_getname.sh
python-use.sh
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.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
record_offcpu.sh
record_sideband.sh
record_weak_term.sh
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
stat+csv_summary.sh
stat+event_uniquifying.sh
stat+json_output.sh
stat+shadow_stat.sh
stat+std_output.sh
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 perf test: Fix perf stat --bpf-counters on hybrid machines 2026-04-01 14:50:53 -07:00
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: Fixes for check branch stack sampling 2026-04-13 23:37:59 -07:00
test_data_symbol.sh
test_event_open_fallback.sh
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 perf tests: Write test files to tmpdir 2026-04-01 14:50:53 -07:00
test_uprobe_from_different_cu.sh
timechart.sh
top.sh
trace+probe_vfs_getname.sh
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_record_replay.sh
trace_summary.sh