OSDN Git Service

perf test: Test 73 Sig_trap fails on s390
authorThomas Richter <tmricht@linux.ibm.com>
Thu, 16 Dec 2021 15:14:54 +0000 (16:14 +0100)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 16 Dec 2021 19:21:15 +0000 (16:21 -0300)
commita840974e96fd51b47c79301522bccf23cc8bb388
tree50701a7f409243d96e4dbe298e65545607d232da
parent9c5c605219578b8167b649245e00d6407f2c18da
perf test: Test 73 Sig_trap fails on s390

In Linux next commit 5504f67944484495 ("perf test sigtrap: Add basic
stress test for sigtrap handling") introduced the new test which uses
breakpoint events.  These events are not supported on s390 and PowerPC
and always fail:

  # perf test -F 73
  73: Sigtrap                                                         : FAILED!
  #

Fix it the same way as in the breakpoint tests in file
tests/bp_account.c where these type of tests are skipped on s390 and
PowerPC platforms.

With this patch skip this test on both platforms.

Output after:

  # perf test -F 73
  73: Sigtrap
  #

Fixes: 5504f67944484495 ("perf test sigtrap: Add basic stress test for sigtrap handling")
Signed-off-by: Thomas Richter <tmricht@linux.ibm.com>
Acked-by: Marco Elver <elver@google.com>
Cc: Heiko Carstens <hca@linux.ibm.com>
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/20211216151454.752066-1-tmricht@linux.ibm.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/tests/sigtrap.c