perf test: Disable breakpoint signal tests for powerpc
authorJiri Olsa <jolsa@redhat.com>
Thu, 1 Jun 2017 20:54:50 +0000 (22:54 +0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 5 Jun 2017 17:18:01 +0000 (14:18 -0300)
commit598762cf91532e6e86dd21199b5e7f803df73f49
tree7579f70cc4d7f76b08df7db3a32f4c6eef1cb17e
parenta09935b878dc8efd4b030ed1ffa0553fc9011fb8
perf test: Disable breakpoint signal tests for powerpc

The following tests are failing on powerpc:

  # perf test break
  18: Breakpoint overflow signal handler  : FAILED!
  19: Breakpoint overflow sampling        : FAILED!

The powerpc kenel so far does not have support to even create
instruction breakpoints using the perf event interface, so those tests
fail early in the config phase.

I added a '->is_supported()' callback to test struct to be able to
disable specific tests. It seems better than putting ifdefs directly to
the test array.

Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Cc: David Ahern <dsahern@gmail.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/20170601205450.GA398@krava
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/tests/bp_signal.c
tools/perf/tests/builtin-test.c
tools/perf/tests/tests.h