Skip to content

Commit

Permalink
perf test: Disable test cases 19 and 20 on s390x
Browse files Browse the repository at this point in the history
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 <[email protected]>
Reviewed-by: Hendrik Brueckner <[email protected]>
Cc: Martin Schwidefsky <[email protected]>
LPU-Reference: [email protected]
Link: https://lkml.kernel.org/n/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
  • Loading branch information
Thomas Richter authored and acmel committed Nov 29, 2017
1 parent 3f27bb5 commit 4ca69ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/perf/tests/bp_signal.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 4ca69ca

Please sign in to comment.