Skip to content

Commit 4ca69ca

Browse files
Thomas Richteracmel
authored andcommitted
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>
1 parent 3f27bb5 commit 4ca69ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/perf/tests/bp_signal.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ bool test__bp_signal_is_supported(void)
296296
* instruction breakpoint using the perf event interface.
297297
* Once it's there we can release this.
298298
*/
299-
#ifdef __powerpc__
299+
#if defined(__powerpc__) || defined(__s390x__)
300300
return false;
301301
#else
302302
return true;

0 commit comments

Comments
 (0)