linux-perf-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] perf test: Fix test case 81 on s390x
@ 2022-04-28 12:28 Thomas Richter
  2022-04-28 13:25 ` Arnaldo Carvalho de Melo
  2022-04-28 13:43 ` German Gomez
  0 siblings, 2 replies; 5+ messages in thread
From: Thomas Richter @ 2022-04-28 12:28 UTC (permalink / raw)
  To: linux-kernel, linux-perf-users, acme, irogers
  Cc: svens, gor, sumanthk, hca, Thomas Richter

perf test -F 81 -v fails on s390x on the linux-next branch.
The test case is x86 specific can not be executed on s390x.
The test case depends on x86 register names such as

  ... | egrep -q 'available registers: AX BX CX DX ....'

Skip this test case on s390x.

Output before:
 # perf test -F 81
 81: perf record tests                       : FAILED!
 #

Output after:
 # perf test -F 81
 81: perf record tests                       : Skip
 #

Fixes: 24f378e66021 ("perf test: Add basic perf record tests")
Cc: Ian Rogers <irogers@google.com>
Signed-off-by: Thomas Richter <tmricht@linux.ibm.com>
---
 tools/perf/tests/shell/record.sh | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tools/perf/tests/shell/record.sh b/tools/perf/tests/shell/record.sh
index cd1cf14259b8..d98f4d4a00e1 100755
--- a/tools/perf/tests/shell/record.sh
+++ b/tools/perf/tests/shell/record.sh
@@ -37,6 +37,8 @@ test_register_capture() {
   echo "Register capture test [Success]"
 }
 
+# Test for platform support and return TEST_SKIP
+[ $(uname -m) = s390x ] && exit 2
 test_per_thread
 test_register_capture
 exit $err
-- 
2.35.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-04-28 15:18 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-04-28 12:28 [PATCH] perf test: Fix test case 81 on s390x Thomas Richter
2022-04-28 13:25 ` Arnaldo Carvalho de Melo
2022-04-28 13:43   ` John Garry
2022-04-28 13:43 ` German Gomez
2022-04-28 15:17   ` Thomas Richter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).