acrn-kernel/tools/perf/tests/shell
German Gomez 4f52ca1358 perf test arm-spe: Check if perf-record hangs when recording workload with forks
Add shell test to check if perf-record hangs when recording an arm_spe
event with forks.

The test FAILS if the Kernel is not patched with Commit 961c391217 ("perf:
Always wake the parent event").

Unpatched Kernel:

  $ perf test -v 90
  90: Check Arm SPE doesn't hang when there are forks
  --- start ---
  test child forked, pid 14232
  Recording workload with fork
  Log lines = 90 /tmp/__perf_test.stderr.0Nu0U
  Log lines after 1 second = 90 /tmp/__perf_test.stderr.0Nu0U
  SPE hang test: FAIL
  test child finished with -1
  ---- end ----
  Check Arm SPE trace data in workload with forks: FAILED!

Patched Kernel:

  $ perf test -v 90
  90: Check Arm SPE doesn't hang when there are forks
  --- start ---
  test child forked, pid 2930
  Compiling test program...
  Recording workload...
  Log lines = 478 /tmp/__perf_test.log.026AI
  Log lines after 1 second = 557 /tmp/__perf_test.log.026AI
  SPE hang test: PASS
  Cleaning up files...
  test child finished with 0
  ---- end ----
  Check Arm SPE trace data in workload with forks: Ok

Reviewed-by: James Clark <james.clark@arm.com>
Reviewed-by: Leo Yan <leo.yan@linaro.org>
Signed-off-by: German Gomez <german.gomez@arm.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Link: https://lore.kernel.org/r/20220228165655.3920-1-german.gomez@arm.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2022-06-03 21:18:35 +02:00
..
lib perf test: Add checking for perf stat CSV output. 2022-05-26 12:36:57 -03:00
buildid.sh perf buildid-cache: Add test for PE executable 2021-03-02 09:41:04 -03:00
daemon.sh Merge remote-tracking branch 'torvalds/master' into perf/core 2021-03-29 10:39:10 -03:00
pipe_test.sh perf tools: Add pipe_test.sh to verify pipe operations 2021-08-02 10:14:58 -03:00
probe_vfs_getname.sh
record+probe_libc_inet_pton.sh
record+script_probe_vfs_getname.sh perf test: Fix record+script_probe_vfs_getname.sh /tmp cleanup 2021-10-26 11:14:49 -03:00
record+zstd_comp_decomp.sh perf tests: Remove bash construct from record+zstd_comp_decomp.sh 2021-11-13 18:11:51 -03:00
record.sh perf test: Add skip to --per-thread test 2022-05-06 15:15:05 -03:00
record_offcpu.sh perf test: Add a basic offcpu profiling test 2022-05-26 12:36:58 -03:00
stat+csv_output.sh perf test: Add checking for perf stat CSV output. 2022-05-26 12:36:57 -03:00
stat+csv_summary.sh perf test: Add CSV summary test 2021-03-24 10:21:57 -03:00
stat+shadow_stat.sh perf tests: Skip 'perf stat metrics (shadow stat) test' for hybrid 2021-04-29 10:31:00 -03:00
stat.sh perf stat: Add stat record+report test 2022-05-23 09:51:55 -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 test: Allow skip for all metrics test 2022-02-14 21:04:20 -03:00
stat_all_pmu.sh perf test: Fix "all PMU test" to skip hv_24x7/hv_gpci tests on powerpc 2022-05-21 14:45:06 -03:00
stat_bpf_counters.sh perf test: Remove bash construct from stat_bpf_counters.sh test 2021-11-13 18:11:51 -03:00
test_arm_callgraph_fp.sh perf test arm64: Test unwinding using fame-pointer (fp) mode 2022-03-21 18:05:23 -03:00
test_arm_coresight.sh perf tests: Fix coresight `perf test` failure. 2022-05-08 21:48:49 -03:00
test_arm_spe.sh perf arm-spe: Snapshot mode test 2021-11-13 18:11:50 -03:00
test_arm_spe_fork.sh perf test arm-spe: Check if perf-record hangs when recording workload with forks 2022-06-03 21:18:35 +02:00
test_intel_pt.sh perf intel-pt: Add a test for system-wide side band 2022-05-26 12:36:56 -03:00
trace+probe_vfs_getname.sh perf tests: Fix trace+probe_vfs_getname.sh /tmp cleanup 2021-10-26 11:17:38 -03:00