linux-imx/tools/perf/tests/shell
James Clark fa423fe6d9 perf test: Make test_arm_callgraph_fp.sh more robust
[ Upstream commit ff16aeb9b8 ]

The 2 second sleep can cause the test to fail on very slow network file
systems because Perf ends up being killed before it finishes starting
up.

Fix it by making the leafloop workload end after a fixed time like the
other workloads so there is no need to kill it after 2 seconds.

Also remove the 1 second start sampling delay because it is similarly
fragile. Instead, search through all samples for a matching one, rather
than just checking the first sample and hoping it's in the right place.

Fixes: cd6382d827 ("perf test arm64: Test unwinding using fame-pointer (fp) mode")
Signed-off-by: James Clark <james.clark@arm.com>
Acked-by: Namhyung Kim <namhyung@kernel.org>
Cc: German Gomez <german.gomez@arm.com>
Cc: Spoorthy S <spoorts2@in.ibm.com>
Cc: Kajol Jain <kjain@linux.ibm.com>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Link: https://lore.kernel.org/r/20240612140316.3006660-1-james.clark@arm.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-08-03 08:53:52 +02:00
..
coresight perf tests coresight thread_loop_check_tid_2: Fix shellcheck warnings about word splitting/quoting 2023-08-03 17:01:27 -03:00
lib perf tests lib stat_output: Fix shellcheck warning about missing shebang 2023-08-03 17:01:27 -03:00
buildid.sh perf tests shell: Fixed shellcheck warnings 2023-06-13 23:40:34 -03:00
daemon.sh perf tests daemon: Address shellcheck warnings 2023-06-13 23:40:33 -03:00
lock_contention.sh perf tests lock_contention: Fix shellcheck issue about quoting to avoid word splitting 2023-08-03 17:01:25 -03:00
pipe_test.sh perf test: Replace pipe test workload with noploop 2022-11-20 11:32:23 -03:00
probe_vfs_getname.sh perf tests probe_vfs_getname: Fix shellcheck warnings about word splitting/quoting 2023-08-03 17:01:25 -03:00
record_bpf_filter.sh perf test shell record_bpf_filter: Skip 6.2 kernel 2023-08-29 14:16:14 -03:00
record_offcpu.sh perf tests record_offcpu: Fix shellcheck warnings about word splitting/quoting and signal names case 2023-08-03 17:01:25 -03:00
record.sh perf test: Fix record test on KVM guests 2022-11-23 10:35:45 -03:00
record+probe_libc_inet_pton.sh perf test record+probe_libc_inet_pton.sh: Use "grep -F" instead of obsolescent "fgrep" 2023-06-16 11:02:01 -03:00
record+script_probe_vfs_getname.sh perf tests shell: Fixed shellcheck warnings 2023-06-13 23:40:34 -03:00
record+zstd_comp_decomp.sh perf tests record+zstd_comp_decomp: Fix the shellcheck warnings about word splitting/quoting 2023-08-03 17:01:27 -03:00
stat_all_metricgroups.sh perf test: Enable system wide for metricgroups test 2022-01-11 18:46:23 -03:00
stat_all_metrics.sh perf tests stat_all_metrics: Fix shellcheck warning SC2076 2023-06-13 23:40:33 -03:00
stat_all_pfm.sh perf test: Add test of libpfm4 events 2023-06-12 15:57:53 -03:00
stat_all_pmu.sh perf test: Fix "all PMU test" to skip parametrized events 2022-12-21 14:52:40 -03:00
stat_bpf_counters_cgrp.sh perf test stat_bpf_counters_cgrp: Enhance perf stat cgroup BPF counter test 2023-08-29 14:16:15 -03:00
stat_bpf_counters.sh perf test shell stat_bpf_counters: Fix test on Intel 2023-08-29 14:16:14 -03:00
stat_metrics_values.sh perf test: Add metric value validation test 2023-06-21 22:23:32 -07:00
stat.sh perf test: Add cputype testing to perf stat 2023-05-15 09:18:43 -03:00
stat+csv_output.sh perf tests stat+std_output: Fix shellcheck warnings about word splitting/quoting 2023-08-03 17:01:27 -03:00
stat+csv_summary.sh perf tests stat+csv_summary: Fix unused variable references detected via shellcheck 2023-08-03 17:01:25 -03:00
stat+json_output.sh perf tests stat+json_output: Address shellcheck warnings 2023-06-13 23:40:33 -03:00
stat+shadow_stat.sh perf tests stat+shadow_stat: Fix shellcheck warning about unused variable 2023-08-03 17:01:25 -03:00
stat+std_output.sh perf tests stat+std_output: Fix shellcheck warnings about word splitting/quoting and local variables 2023-08-03 17:01:27 -03:00
test_arm_callgraph_fp.sh perf test: Make test_arm_callgraph_fp.sh more robust 2024-08-03 08:53:52 +02:00
test_arm_coresight.sh perf test shell arm_coresight: Increase buffer size for Coresight basic tests 2024-06-12 11:12:20 +02:00
test_arm_spe_fork.sh perf tests: Address signal case issues detected via shellcheck 2023-08-03 17:01:25 -03:00
test_arm_spe.sh perf tests test_arm_spe: Address shellcheck warnings about signal name case 2023-06-13 23:40:33 -03:00
test_brstack.sh perf tests test_brstack.sh: Fix all POSIX sh warnings 2023-06-13 23:40:34 -03:00
test_data_symbol.sh perf tools: Use "grep -E" instead of "egrep" 2022-12-14 15:28:19 -03:00
test_intel_pt.sh perf test test_intel_pt.sh: Test sample mode with event with PMU name 2023-05-10 14:19:20 -03:00
test_java_symbol.sh perf test java symbol: Remove needless debuginfod queries 2023-05-10 12:54:53 -03:00
test_perf_data_converter_json.sh perf tests perf_dat _converter_json: Use quoting to avoid word splitting 2023-08-03 17:01:25 -03:00
test_task_analyzer.sh perf tests task_analyzer: Check perf build options for libtraceevent support 2023-08-03 17:01:25 -03:00
test_uprobe_from_different_cu.sh perf test uprobe_from_different_cu: Skip if there is no gcc 2023-07-28 15:31:21 -03:00
trace+probe_vfs_getname.sh perf tests trace+probe_vfs_getname.sh: Accept quotes surrounding the filename 2023-08-15 16:41:48 -03:00