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 11:42:08 +0300 |
commit | 39fcfb911c3862f1366ef84efbea10aff59421c2 (patch) | |
tree | 3df010a1b7d0a96ab2a196b6d4372672cfc23bcf /tools/testing/selftests/powerpc/pmu/ebb/instruction_count_test.c | |
parent | 20d09927e669b7e92795c804a3cf82d6c4f3c909 (diff) | |
download | linux-39fcfb911c3862f1366ef84efbea10aff59421c2.tar.xz |
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/instruction_count_test.c')
-rw-r--r-- | tools/testing/selftests/powerpc/pmu/ebb/instruction_count_test.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/testing/selftests/powerpc/pmu/ebb/instruction_count_test.c b/tools/testing/selftests/powerpc/pmu/ebb/instruction_count_test.c index f8190fa29592..5da355135df2 100644 --- a/tools/testing/selftests/powerpc/pmu/ebb/instruction_count_test.c +++ b/tools/testing/selftests/powerpc/pmu/ebb/instruction_count_test.c @@ -111,6 +111,8 @@ int instruction_count(void) struct event event; uint64_t overhead; + SKIP_IF(!ebb_is_supported()); + event_init_named(&event, 0x400FA, "PM_RUN_INST_CMPL"); event_leader_ebb_init(&event); event.attr.exclude_kernel = 1; |