Skip to contentSkip to conversation

perf test: Disable test cases 19 and 20 on s390x

tip:perf/core tip-bot for Thomas Richter 1 participant 1 message Dec 6, 2017 perf events

lore
Share & tools
lore
#0 lore raw
Commit-ID:  4ca69ca9db3ae51ac7cc0bd1af7961b7a3ba5b87
Gitweb:     https://git.kernel.org/tip/4ca69ca9db3ae51ac7cc0bd1af7961b7a3ba5b87
Author:     Thomas Richter <[email protected]>
AuthorDate: Thu, 23 Nov 2017 08:46:23 +0100
Committer:  Arnaldo Carvalho de Melo <[email protected]>
CommitDate: Wed, 29 Nov 2017 18:17:59 -0300

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.

LPU-Reference: [email protected]

---
 tools/perf/tests/bp_signal.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/perf/tests/bp_signal.c +1 -1
index 335b695..a467615 100644
@@ -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;