perf test: BP tests, remove is_supported use
Migrate the is_supported functionality to returning TEST_SKIP. Motivation is kunit has no is_supported function. Signed-off-by: Ian Rogers <irogers@google.com> Tested-by: Sohaib Mohamed <sohaib.amhmd@gmail.com> Acked-by: Jiri Olsa <jolsa@redhat.com> Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com> Cc: Brendan Higgins <brendanhiggins@google.com> Cc: Daniel Latypov <dlatypov@google.com> Cc: David Gow <davidgow@google.com> Cc: Ingo Molnar <mingo@redhat.com> Cc: Jin Yao <yao.jin@linux.intel.com> Cc: John Garry <john.garry@huawei.com> Cc: Mark Rutland <mark.rutland@arm.com> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Paul Clarke <pc@us.ibm.com> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Stephane Eranian <eranian@google.com> Link: https://lore.kernel.org/r/20211104064208.3156807-20-irogers@google.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
committed by
Arnaldo Carvalho de Melo
parent
c76ec1cf25
commit
4935e2cd1b
@@ -66,6 +66,11 @@ static int test__bp_signal_overflow(struct test_suite *test __maybe_unused, int
|
||||
long long count;
|
||||
int fd, i, fails = 0;
|
||||
|
||||
if (!BP_SIGNAL_IS_SUPPORTED) {
|
||||
pr_debug("Test not supported on this architecture");
|
||||
return TEST_SKIP;
|
||||
}
|
||||
|
||||
/* setup SIGIO signal handler */
|
||||
memset(&sa, 0, sizeof(struct sigaction));
|
||||
sa.sa_sigaction = (void *) sig_handler;
|
||||
@@ -134,13 +139,4 @@ static int test__bp_signal_overflow(struct test_suite *test __maybe_unused, int
|
||||
return fails ? TEST_FAIL : TEST_OK;
|
||||
}
|
||||
|
||||
static struct test_case bp_signal_overflow_tests[] = {
|
||||
TEST_CASE("Breakpoint overflow sampling", bp_signal_overflow),
|
||||
{ .name = NULL, }
|
||||
};
|
||||
|
||||
struct test_suite suite__bp_signal_overflow = {
|
||||
.desc = "Breakpoint overflow sampling",
|
||||
.test_cases = bp_signal_overflow_tests,
|
||||
.is_supported = test__bp_signal_is_supported,
|
||||
};
|
||||
DEFINE_SUITE("Breakpoint overflow sampling", bp_signal_overflow);
|
||||
|
||||
Reference in New Issue
Block a user