summaryrefslogtreecommitdiffstats
path: root/tools/perf/tests
diff options
context:
space:
mode:
authorThomas Richter <tmricht@linux.vnet.ibm.com>2017-11-23 08:46:23 +0100
committerArnaldo Carvalho de Melo <acme@redhat.com>2017-11-29 22:17:59 +0100
commit4ca69ca9db3ae51ac7cc0bd1af7961b7a3ba5b87 (patch)
tree2e8b9a15751485c94044f193ac41880b0fb3a7e2 /tools/perf/tests
parenttools headers: Follow the upstream UAPI header version 100% differ from the k... (diff)
downloadlinux-4ca69ca9db3ae51ac7cc0bd1af7961b7a3ba5b87.tar.xz
linux-4ca69ca9db3ae51ac7cc0bd1af7961b7a3ba5b87.zip
perf test: Disable test cases 19 and 20 on s390x
The s390x CPU sampling and measurement facilities do not support perf events of type PERF_TYPE_BREAKPOINT. The test cases are executed and fail with -ENOENT due to missing hardware support. Disable the execution of both test cases based on a platform check. This is the same approach as done for PowerPC. Signed-off-by: Thomas Richter <tmricht@linux.vnet.ibm.com> Reviewed-by: Hendrik Brueckner <brueckner@linux.vnet.ibm.com> Cc: Martin Schwidefsky <schwidefsky@de.ibm.com> LPU-Reference: 20171123074623.20817-1-tmricht@linux.vnet.ibm.com Link: https://lkml.kernel.org/n/tip-uqvoy6a1tsu8jddo5jjg4h85@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/tests')
-rw-r--r--tools/perf/tests/bp_signal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/tests/bp_signal.c b/tools/perf/tests/bp_signal.c
index 335b695f4970..a467615c5a0e 100644
--- a/tools/perf/tests/bp_signal.c
+++ b/tools/perf/tests/bp_signal.c
@@ -296,7 +296,7 @@ bool test__bp_signal_is_supported(void)
* instruction breakpoint using the perf event interface.
* Once it's there we can release this.
*/
-#ifdef __powerpc__
+#if defined(__powerpc__) || defined(__s390x__)
return false;
#else
return true;