selftests/powerpc: Add tests of PMU EBBs
authorMichael Ellerman <mpe@ellerman.id.au>
Tue, 10 Jun 2014 12:23:10 +0000 (22:23 +1000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 11 Jun 2014 07:03:58 +0000 (17:03 +1000)
commit3752e453f6bafd78e5586cc2b2e33ee4b6e1566d
tree2c5d88b6d9f759844249a36ce8b729dcb5c274ad
parent33b4819f3b93bbcb934e02cbc64ff3c5e9d0149b
selftests/powerpc: Add tests of PMU EBBs

The Power8 Performance Monitor Unit (PMU) has a new feature called Event
Based Branches (EBB). This commit adds tests of the kernel API for using
EBBs.

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
34 files changed:
tools/testing/selftests/powerpc/pmu/Makefile
tools/testing/selftests/powerpc/pmu/ebb/Makefile [new file with mode: 0644]
tools/testing/selftests/powerpc/pmu/ebb/back_to_back_ebbs_test.c [new file with mode: 0644]
tools/testing/selftests/powerpc/pmu/ebb/close_clears_pmcc_test.c [new file with mode: 0644]
tools/testing/selftests/powerpc/pmu/ebb/cpu_event_pinned_vs_ebb_test.c [new file with mode: 0644]
tools/testing/selftests/powerpc/pmu/ebb/cpu_event_vs_ebb_test.c [new file with mode: 0644]
tools/testing/selftests/powerpc/pmu/ebb/cycles_test.c [new file with mode: 0644]
tools/testing/selftests/powerpc/pmu/ebb/cycles_with_freeze_test.c [new file with mode: 0644]
tools/testing/selftests/powerpc/pmu/ebb/ebb.c [new file with mode: 0644]
tools/testing/selftests/powerpc/pmu/ebb/ebb.h [new file with mode: 0644]
tools/testing/selftests/powerpc/pmu/ebb/ebb_handler.S [new file with mode: 0644]
tools/testing/selftests/powerpc/pmu/ebb/ebb_on_child_test.c [new file with mode: 0644]
tools/testing/selftests/powerpc/pmu/ebb/ebb_on_willing_child_test.c [new file with mode: 0644]
tools/testing/selftests/powerpc/pmu/ebb/ebb_vs_cpu_event_test.c [new file with mode: 0644]
tools/testing/selftests/powerpc/pmu/ebb/event_attributes_test.c [new file with mode: 0644]
tools/testing/selftests/powerpc/pmu/ebb/fixed_instruction_loop.S [new file with mode: 0644]
tools/testing/selftests/powerpc/pmu/ebb/fork_cleanup_test.c [new file with mode: 0644]
tools/testing/selftests/powerpc/pmu/ebb/instruction_count_test.c [new file with mode: 0644]
tools/testing/selftests/powerpc/pmu/ebb/lost_exception_test.c [new file with mode: 0644]
tools/testing/selftests/powerpc/pmu/ebb/multi_counter_test.c [new file with mode: 0644]
tools/testing/selftests/powerpc/pmu/ebb/multi_ebb_procs_test.c [new file with mode: 0644]
tools/testing/selftests/powerpc/pmu/ebb/no_handler_test.c [new file with mode: 0644]
tools/testing/selftests/powerpc/pmu/ebb/pmae_handling_test.c [new file with mode: 0644]
tools/testing/selftests/powerpc/pmu/ebb/pmc56_overflow_test.c [new file with mode: 0644]
tools/testing/selftests/powerpc/pmu/ebb/reg.h [new file with mode: 0644]
tools/testing/selftests/powerpc/pmu/ebb/reg_access_test.c [new file with mode: 0644]
tools/testing/selftests/powerpc/pmu/ebb/task_event_pinned_vs_ebb_test.c [new file with mode: 0644]
tools/testing/selftests/powerpc/pmu/ebb/task_event_vs_ebb_test.c [new file with mode: 0644]
tools/testing/selftests/powerpc/pmu/ebb/trace.c [new file with mode: 0644]
tools/testing/selftests/powerpc/pmu/ebb/trace.h [new file with mode: 0644]
tools/testing/selftests/powerpc/pmu/event.c
tools/testing/selftests/powerpc/pmu/event.h
tools/testing/selftests/powerpc/pmu/lib.c [new file with mode: 0644]
tools/testing/selftests/powerpc/pmu/lib.h [new file with mode: 0644]