perf test: Fix 'perf script' tests on s390
authorThomas Richter <tmricht@linux.ibm.com>
Thu, 25 Jan 2024 10:03:51 +0000 (11:03 +0100)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 26 Jan 2024 13:51:48 +0000 (10:51 -0300)
commit2dac1f089add90a45d93fe8217938281532b86c7
treee4fd9671a10400ec180ad3218903de4047ac76a2
parentb0dc99215598d7fc7c6903437d49f0b33d1ef899
perf test: Fix 'perf script' tests on s390

In linux next repo, test case 'perf script tests' fails on s390.

The root case is a command line invocation of 'perf record' with
call-graph information. On s390 only DWARF formatted call-graphs are
supported and only on software events.

Change the command line parameters for s390.

Output before:

  # perf test 89
  89: perf script tests              : FAILED!
  #

Output after:

  # perf test 89
  89: perf script tests              : Ok
  #

Fixes: 0dd5041c9a0eaf8c ("perf addr_location: Add init/exit/copy functions")
Reviewed-by: Ian Rogers <irogers@google.com>
Signed-off-by: Thomas Richter <tmricht@linux.ibm.com>
Cc: Heiko Carstens <hca@linux.ibm.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Sumanth Korikkar <sumanthk@linux.ibm.com>
Cc: Sven Schnelle <svens@linux.ibm.com>
Cc: Vasily Gorbik <gor@linux.ibm.com>
Link: https://lore.kernel.org/r/20240125100351.936262-1-tmricht@linux.ibm.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/tests/shell/script.sh