diff options
author | Denis Kirjanov <kda@linux-powerpc.org> | 2015-10-18 13:23:53 +0300 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2015-10-19 19:42:08 +1100 |
commit | 39fcfb911c3862f1366ef84efbea10aff59421c2 (patch) | |
tree | 3df010a1b7d0a96ab2a196b6d4372672cfc23bcf /tools/testing/selftests/powerpc/pmu/ebb/ebb_on_willing_child_test.c | |
parent | selftests/powerpc: Allow the tm-syscall test to build with old headers (diff) | |
download | linux-dev-39fcfb911c3862f1366ef84efbea10aff59421c2.tar.xz linux-dev-39fcfb911c3862f1366ef84efbea10aff59421c2.zip |
selftests/powerpc: Run EBB tests only on POWER8
EBB (Event Based Branches) are currently only available on POWER8, so we
should skip them on other CPUs.
I've found that at least one test loops forever on 970MP (cycles_with_freeze_test).
Signed-off-by: Denis Kirjanov <kda@linux-powerpc.org>
[mpe: Minor change log editing, add skip to cpu_event_vs_ebb_test]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'tools/testing/selftests/powerpc/pmu/ebb/ebb_on_willing_child_test.c')
-rw-r--r-- | tools/testing/selftests/powerpc/pmu/ebb/ebb_on_willing_child_test.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/testing/selftests/powerpc/pmu/ebb/ebb_on_willing_child_test.c b/tools/testing/selftests/powerpc/pmu/ebb/ebb_on_willing_child_test.c index 11acf1d55f8d..a991d2ea8d0a 100644 --- a/tools/testing/selftests/powerpc/pmu/ebb/ebb_on_willing_child_test.c +++ b/tools/testing/selftests/powerpc/pmu/ebb/ebb_on_willing_child_test.c @@ -54,6 +54,8 @@ int ebb_on_willing_child(void) struct event event; pid_t pid; + SKIP_IF(!ebb_is_supported()); + FAIL_IF(pipe(read_pipe.fds) == -1); FAIL_IF(pipe(write_pipe.fds) == -1); |