summaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/powerpc/pmu/ebb/fork_cleanup_test.c
diff options
context:
space:
mode:
authorDenis Kirjanov2015-10-18 12:23:53 +0200
committerMichael Ellerman2015-10-19 10:42:08 +0200
commit39fcfb911c3862f1366ef84efbea10aff59421c2 (patch)
tree3df010a1b7d0a96ab2a196b6d4372672cfc23bcf /tools/testing/selftests/powerpc/pmu/ebb/fork_cleanup_test.c
parentselftests/powerpc: Allow the tm-syscall test to build with old headers (diff)
downloadkernel-qcow2-linux-39fcfb911c3862f1366ef84efbea10aff59421c2.tar.gz
kernel-qcow2-linux-39fcfb911c3862f1366ef84efbea10aff59421c2.tar.xz
kernel-qcow2-linux-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/fork_cleanup_test.c')
-rw-r--r--tools/testing/selftests/powerpc/pmu/ebb/fork_cleanup_test.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/testing/selftests/powerpc/pmu/ebb/fork_cleanup_test.c b/tools/testing/selftests/powerpc/pmu/ebb/fork_cleanup_test.c
index 9e7af6e76622..167135bd92a8 100644
--- a/tools/testing/selftests/powerpc/pmu/ebb/fork_cleanup_test.c
+++ b/tools/testing/selftests/powerpc/pmu/ebb/fork_cleanup_test.c
@@ -44,6 +44,8 @@ int fork_cleanup(void)
{
pid_t pid;
+ SKIP_IF(!ebb_is_supported());
+
event_init_named(&event, 0x1001e, "cycles");
event_leader_ebb_init(&event);