aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/powerpc/pmu/ebb/task_event_vs_ebb_test.c
diff options
context:
space:
mode:
authorDenis Kirjanov <kda@linux-powerpc.org>2015-10-18 13:23:53 +0300
committerMichael Ellerman <mpe@ellerman.id.au>2015-10-19 19:42:08 +1100
commit39fcfb911c3862f1366ef84efbea10aff59421c2 (patch)
tree3df010a1b7d0a96ab2a196b6d4372672cfc23bcf /tools/testing/selftests/powerpc/pmu/ebb/task_event_vs_ebb_test.c
parentselftests/powerpc: Allow the tm-syscall test to build with old headers (diff)
downloadlinux-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 '')
-rw-r--r--tools/testing/selftests/powerpc/pmu/ebb/task_event_vs_ebb_test.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/testing/selftests/powerpc/pmu/ebb/task_event_vs_ebb_test.c b/tools/testing/selftests/powerpc/pmu/ebb/task_event_vs_ebb_test.c
index eba32196dbbf..e3bc6e92a6a5 100644
--- a/tools/testing/selftests/powerpc/pmu/ebb/task_event_vs_ebb_test.c
+++ b/tools/testing/selftests/powerpc/pmu/ebb/task_event_vs_ebb_test.c
@@ -40,6 +40,8 @@ int task_event_vs_ebb(void)
pid_t pid;
int rc;
+ SKIP_IF(!ebb_is_supported());
+
FAIL_IF(pipe(read_pipe.fds) == -1);
FAIL_IF(pipe(write_pipe.fds) == -1);