/linux-4.4.14/tools/testing/selftests/powerpc/pmu/ebb/ |
D | event_attributes_test.c | 24 FAIL_IF(event_open(&event)); in event_attributes() 31 FAIL_IF(event_open(&event) == 0); in event_attributes() 38 FAIL_IF(event_open(&event) == 0); in event_attributes() 45 FAIL_IF(event_open(&event) == 0); in event_attributes() 52 FAIL_IF(event_open(&event) == 0); in event_attributes() 59 FAIL_IF(event_open(&event) == 0); in event_attributes() 66 FAIL_IF(event_open(&event) == 0); in event_attributes() 71 FAIL_IF(event_open(&leader)); in event_attributes() 77 FAIL_IF(event_open_with_group(&event, leader.fd)); in event_attributes() 84 FAIL_IF(event_open(&leader)); in event_attributes() [all …]
|
D | ebb_vs_cpu_event_test.c | 31 FAIL_IF(event_open_with_cpu(event, cpu)); in setup_cpu_event() 32 FAIL_IF(event_enable(event)); in setup_cpu_event() 47 FAIL_IF(cpu < 0); in ebb_vs_cpu_event() 48 FAIL_IF(bind_to_cpu(cpu)); in ebb_vs_cpu_event() 50 FAIL_IF(pipe(read_pipe.fds) == -1); in ebb_vs_cpu_event() 51 FAIL_IF(pipe(write_pipe.fds) == -1); in ebb_vs_cpu_event() 60 FAIL_IF(sync_with_child(read_pipe, write_pipe)); in ebb_vs_cpu_event() 70 FAIL_IF(sync_with_child(read_pipe, write_pipe)); in ebb_vs_cpu_event() 73 FAIL_IF(wait_for_child(pid)); in ebb_vs_cpu_event() 74 FAIL_IF(event_disable(&event)); in ebb_vs_cpu_event() [all …]
|
D | cpu_event_pinned_vs_ebb_test.c | 33 FAIL_IF(event_open_with_cpu(event, cpu)); in setup_cpu_event() 34 FAIL_IF(event_enable(event)); in setup_cpu_event() 49 FAIL_IF(cpu < 0); in cpu_event_pinned_vs_ebb() 50 FAIL_IF(bind_to_cpu(cpu)); in cpu_event_pinned_vs_ebb() 52 FAIL_IF(pipe(read_pipe.fds) == -1); in cpu_event_pinned_vs_ebb() 53 FAIL_IF(pipe(write_pipe.fds) == -1); in cpu_event_pinned_vs_ebb() 74 FAIL_IF(sync_with_child(read_pipe, write_pipe)); in cpu_event_pinned_vs_ebb() 78 FAIL_IF(wait_for_child(pid) != 2); in cpu_event_pinned_vs_ebb() 80 FAIL_IF(event_disable(&event)); in cpu_event_pinned_vs_ebb() 81 FAIL_IF(event_read(&event)); in cpu_event_pinned_vs_ebb() [all …]
|
D | ebb_on_child_test.c | 27 FAIL_IF(wait_for_parent(read_pipe)); in victim_child() 28 FAIL_IF(notify_parent(write_pipe)); in victim_child() 32 FAIL_IF(wait_for_parent(read_pipe)); in victim_child() 33 FAIL_IF(notify_parent(write_pipe)); in victim_child() 52 FAIL_IF(pipe(read_pipe.fds) == -1); in ebb_on_child() 53 FAIL_IF(pipe(write_pipe.fds) == -1); in ebb_on_child() 61 FAIL_IF(sync_with_child(read_pipe, write_pipe)); in ebb_on_child() 72 FAIL_IF(event_open_with_pid(&event, pid)); in ebb_on_child() 73 FAIL_IF(ebb_event_enable(&event)); in ebb_on_child() 75 FAIL_IF(sync_with_child(read_pipe, write_pipe)); in ebb_on_child() [all …]
|
D | task_event_pinned_vs_ebb_test.c | 32 FAIL_IF(event_open_with_pid(event, child_pid)); in setup_child_event() 33 FAIL_IF(event_enable(event)); in setup_child_event() 47 FAIL_IF(pipe(read_pipe.fds) == -1); in task_event_pinned_vs_ebb() 48 FAIL_IF(pipe(write_pipe.fds) == -1); in task_event_pinned_vs_ebb() 69 FAIL_IF(sync_with_child(read_pipe, write_pipe)); in task_event_pinned_vs_ebb() 73 FAIL_IF(wait_for_child(pid) != 2); in task_event_pinned_vs_ebb() 74 FAIL_IF(event_disable(&event)); in task_event_pinned_vs_ebb() 75 FAIL_IF(event_read(&event)); in task_event_pinned_vs_ebb() 79 FAIL_IF(event.result.value == 0); in task_event_pinned_vs_ebb() 84 FAIL_IF(event.result.enabled == 0); in task_event_pinned_vs_ebb() [all …]
|
D | ebb_on_willing_child_test.c | 25 FAIL_IF(wait_for_parent(read_pipe)); in victim_child() 32 FAIL_IF(notify_parent(write_pipe)); in victim_child() 35 FAIL_IF(core_busy_loop()); in victim_child() 45 FAIL_IF(ebb_state.stats.ebb_count == 0); in victim_child() 59 FAIL_IF(pipe(read_pipe.fds) == -1); in ebb_on_willing_child() 60 FAIL_IF(pipe(write_pipe.fds) == -1); in ebb_on_willing_child() 69 FAIL_IF(sync_with_child(read_pipe, write_pipe)); in ebb_on_willing_child() 80 FAIL_IF(event_open_with_pid(&event, pid)); in ebb_on_willing_child() 81 FAIL_IF(ebb_event_enable(&event)); in ebb_on_willing_child() 84 FAIL_IF(wait_for_child(pid)); in ebb_on_willing_child()
|
D | cpu_event_vs_ebb_test.c | 31 FAIL_IF(event_open_with_cpu(event, cpu)); in setup_cpu_event() 32 FAIL_IF(event_enable(event)); in setup_cpu_event() 47 FAIL_IF(cpu < 0); in cpu_event_vs_ebb() 48 FAIL_IF(bind_to_cpu(cpu)); in cpu_event_vs_ebb() 50 FAIL_IF(pipe(read_pipe.fds) == -1); in cpu_event_vs_ebb() 51 FAIL_IF(pipe(write_pipe.fds) == -1); in cpu_event_vs_ebb() 72 FAIL_IF(sync_with_child(read_pipe, write_pipe)); in cpu_event_vs_ebb() 76 FAIL_IF(wait_for_child(pid)); in cpu_event_vs_ebb() 78 FAIL_IF(event_disable(&event)); in cpu_event_vs_ebb() 79 FAIL_IF(event_read(&event)); in cpu_event_vs_ebb()
|
D | fork_cleanup_test.c | 30 FAIL_IF(mfspr(SPRN_BESCR) != 0); in child() 31 FAIL_IF(mfspr(SPRN_EBBHR) != 0); in child() 32 FAIL_IF(mfspr(SPRN_EBBRR) != 0); in child() 34 FAIL_IF(catch_sigill(write_pmc1)); in child() 37 FAIL_IF(event_read(&event)); in child() 52 FAIL_IF(event_open(&event)); in fork_cleanup() 58 FAIL_IF(ebb_event_enable(&event)); in fork_cleanup() 70 FAIL_IF(wait_for_child(pid)); in fork_cleanup()
|
D | task_event_vs_ebb_test.c | 30 FAIL_IF(event_open_with_pid(event, child_pid)); in setup_child_event() 31 FAIL_IF(event_enable(event)); in setup_child_event() 45 FAIL_IF(pipe(read_pipe.fds) == -1); in task_event_vs_ebb() 46 FAIL_IF(pipe(write_pipe.fds) == -1); in task_event_vs_ebb() 67 FAIL_IF(sync_with_child(read_pipe, write_pipe)); in task_event_vs_ebb() 71 FAIL_IF(wait_for_child(pid)); in task_event_vs_ebb() 72 FAIL_IF(event_disable(&event)); in task_event_vs_ebb() 73 FAIL_IF(event_read(&event)); in task_event_vs_ebb()
|
D | cycles_test.c | 28 FAIL_IF(event_open(&event)); in cycles() 33 FAIL_IF(ebb_event_enable(&event)); in cycles() 38 FAIL_IF(core_busy_loop()); in cycles() 39 FAIL_IF(ebb_check_mmcr0()); in cycles() 51 FAIL_IF(ebb_state.stats.ebb_count == 0); in cycles() 52 FAIL_IF(!ebb_check_count(1, sample_period, 100)); in cycles()
|
D | multi_ebb_procs_test.c | 46 FAIL_IF(event_open(&event)); in cycles_child() 52 FAIL_IF(ebb_event_enable(&event)); in cycles_child() 57 FAIL_IF(core_busy_loop()); in cycles_child() 58 FAIL_IF(ebb_check_mmcr0()); in cycles_child() 70 FAIL_IF(ebb_state.stats.ebb_count == 0); in cycles_child() 85 FAIL_IF(cpu < 0); in multi_ebb_procs() 86 FAIL_IF(bind_to_cpu(cpu)); in multi_ebb_procs()
|
D | instruction_count_test.c | 122 FAIL_IF(event_open(&event)); in instruction_count() 123 FAIL_IF(ebb_event_enable(&event)); in instruction_count() 135 FAIL_IF(do_count_loop(&event, 0x100000, overhead, true)); in instruction_count() 138 FAIL_IF(do_count_loop(&event, 0xa00000, overhead, true)); in instruction_count() 141 FAIL_IF(do_count_loop(&event, 0x6400000, overhead, true)); in instruction_count() 144 FAIL_IF(do_count_loop(&event, 0x40000000, overhead, true)); in instruction_count() 147 FAIL_IF(do_count_loop(&event, 0x400000000, overhead, true)); in instruction_count() 150 FAIL_IF(do_count_loop(&event, 0x1000000000, overhead, true)); in instruction_count() 153 FAIL_IF(do_count_loop(&event, 0x2000000000, overhead, true)); in instruction_count()
|
D | close_clears_pmcc_test.c | 28 FAIL_IF(event_open(&event)); in close_clears_pmcc() 33 FAIL_IF(ebb_event_enable(&event)); in close_clears_pmcc() 38 FAIL_IF(core_busy_loop()); in close_clears_pmcc() 43 FAIL_IF(ebb_state.stats.ebb_count == 0); in close_clears_pmcc() 48 FAIL_IF(catch_sigill(write_pmc1)); in close_clears_pmcc()
|
D | multi_counter_test.c | 40 FAIL_IF(event_open_with_group(&events[i], group_fd)); in multi_counter() 53 FAIL_IF(ioctl(events[0].fd, PERF_EVENT_IOC_ENABLE, PERF_IOC_FLAG_GROUP)); in multi_counter() 54 FAIL_IF(event_read(&events[0])); in multi_counter() 66 FAIL_IF(core_busy_loop()); in multi_counter() 67 FAIL_IF(ebb_check_mmcr0()); in multi_counter() 85 FAIL_IF(ebb_state.stats.ebb_count == 0); in multi_counter()
|
D | pmae_handling_test.c | 70 FAIL_IF(event_open(&event)); in test_body() 75 FAIL_IF(ebb_event_enable(&event)); in test_body() 80 FAIL_IF(core_busy_loop()); in test_body() 94 FAIL_IF(ebb_state.stats.ebb_count == 0); in test_body() 95 FAIL_IF(mmcr0_mismatch); in test_body()
|
D | cycles_with_mmcr2_test.c | 38 FAIL_IF(event_open(&event)); in cycles_with_mmcr2() 44 FAIL_IF(ebb_event_enable(&event)); in cycles_with_mmcr2() 60 FAIL_IF(core_busy_loop()); in cycles_with_mmcr2() 80 FAIL_IF(ebb_state.stats.ebb_count == 0); in cycles_with_mmcr2() 85 FAIL_IF(bad_mmcr2); in cycles_with_mmcr2()
|
D | no_handler_test.c | 31 FAIL_IF(event_open(&event)); in no_handler_test() 32 FAIL_IF(ebb_event_enable(&event)); in no_handler_test() 35 FAIL_IF(val != 0); in no_handler_test() 49 FAIL_IF(val != 0x0000000080000080); in no_handler_test()
|
D | cycles_with_freeze_test.c | 68 FAIL_IF(event_open(&event)); in cycles_with_freeze() 72 FAIL_IF(ebb_event_enable(&event)); in cycles_with_freeze() 86 FAIL_IF(core_busy_loop()); in cycles_with_freeze() 110 FAIL_IF(ebb_state.stats.ebb_count == 0); in cycles_with_freeze() 111 FAIL_IF(fc_cleared); in cycles_with_freeze()
|
D | lost_exception_test.c | 36 FAIL_IF(event_open(&event)); in test_body() 41 FAIL_IF(ebb_event_enable(&event)); in test_body() 86 FAIL_IF(ebb_state.stats.ebb_count == 0); in test_body() 89 FAIL_IF(!ebb_check_count(4, orig_period, 2 * (max_period - orig_period))); in test_body()
|
D | pmc56_overflow_test.c | 62 FAIL_IF(event_open(&event)); in pmc56_overflow() 67 FAIL_IF(ebb_event_enable(&event)); in pmc56_overflow() 74 FAIL_IF(core_busy_loop()); in pmc56_overflow() 87 FAIL_IF(ebb_state.stats.ebb_count == 0 || pmc56_overflowed != 0); in pmc56_overflow()
|
D | back_to_back_ebbs_test.c | 75 FAIL_IF(event_open(&event)); in back_to_back_ebbs() 79 FAIL_IF(ebb_event_enable(&event)); in back_to_back_ebbs() 89 FAIL_IF(core_busy_loop()); in back_to_back_ebbs() 100 FAIL_IF(ebb_state.stats.ebb_count != NUMBER_OF_EBBS); in back_to_back_ebbs()
|
D | ebb.c | 356 FAIL_IF(wait_for_parent(read_pipe)); in ebb_child() 365 FAIL_IF(event_open(&event)); in ebb_child() 371 FAIL_IF(event_enable(&event)); in ebb_child() 385 FAIL_IF(notify_parent(write_pipe)); in ebb_child() 386 FAIL_IF(wait_for_parent(read_pipe)); in ebb_child() 387 FAIL_IF(notify_parent(write_pipe)); in ebb_child() 390 FAIL_IF(core_busy_loop()); in ebb_child() 407 FAIL_IF(ebb_state.stats.ebb_count == 0); in ebb_child()
|
D | reg_access_test.c | 27 FAIL_IF(val != expected); in reg_access() 33 FAIL_IF(val != expected); in reg_access()
|
/linux-4.4.14/tools/testing/selftests/powerpc/pmu/ |
D | per_event_excludes.c | 30 FAIL_IF(!platform); in per_event_excludes() 63 FAIL_IF(event_open(&events[0])); in per_event_excludes() 71 FAIL_IF(event_open_with_group(&events[i], events[0].fd)); in per_event_excludes() 86 FAIL_IF(event_read(&events[i])); in per_event_excludes() 95 FAIL_IF(events[i].result.running != events[i].result.enabled); in per_event_excludes() 103 FAIL_IF(events[0].result.value < events[i].result.value); in per_event_excludes()
|
D | lib.c | 63 FAIL_IF(write(write_pipe.write_fd, &c, 1) != 1); in sync_with_child() 64 FAIL_IF(read(read_pipe.read_fd, &c, 1) != 1); in sync_with_child() 75 FAIL_IF(read(read_pipe.read_fd, &c, 1) != 1); in wait_for_parent() 76 FAIL_IF(c != PARENT_TOKEN); in wait_for_parent() 85 FAIL_IF(write(write_pipe.write_fd, &c, 1) != 1); in notify_parent() 94 FAIL_IF(write(write_pipe.write_fd, &c, 1) != 1); in notify_parent_of_error() 149 FAIL_IF(cpu < 0); in eat_cpu() 150 FAIL_IF(bind_to_cpu(cpu)); in eat_cpu()
|
D | l3_bank_test.c | 24 FAIL_IF(!p); in l3_bank_test() 28 FAIL_IF(event_open(&event)); in l3_bank_test() 36 FAIL_IF(event.result.running == 0); in l3_bank_test() 37 FAIL_IF(event.result.enabled == 0); in l3_bank_test()
|
D | count_instructions.c | 116 FAIL_IF(do_count_loop(events, 1000000, overhead, true)); in test_body() 119 FAIL_IF(do_count_loop(events, 10000000, overhead, true)); in test_body() 122 FAIL_IF(do_count_loop(events, 100000000, overhead, true)); in test_body() 125 FAIL_IF(do_count_loop(events, 1000000000, overhead, true)); in test_body() 128 FAIL_IF(do_count_loop(events, 16000000000, overhead, true)); in test_body() 131 FAIL_IF(do_count_loop(events, 64000000000, overhead, true)); in test_body()
|
/linux-4.4.14/tools/testing/selftests/powerpc/primitives/ |
D | load_unaligned_zeropad.c | 116 FAIL_IF(unprotect_region()); in do_one_test() 118 FAIL_IF(protect_region()); in do_one_test() 136 FAIL_IF(mem_region == MAP_FAILED); in test_body() 146 FAIL_IF(do_one_test(mem_region+i, i)); in test_body() 148 FAIL_IF(segv_error); in test_body()
|
/linux-4.4.14/tools/testing/selftests/powerpc/tm/ |
D | tm-syscall.c | 111 FAIL_IF(getppid_tm(true) == -1); /* Should succeed. */ in tm_syscall() 117 FAIL_IF(getppid_tm(false) != -1); /* Should fail... */ in tm_syscall() 118 FAIL_IF(!failure_is_persistent()); /* ...persistently... */ in tm_syscall() 119 FAIL_IF(!failure_is_syscall()); /* ...with code syscall. */ in tm_syscall()
|
/linux-4.4.14/tools/testing/selftests/powerpc/syscalls/ |
D | ipc_unmuxed.c | 41 FAIL_IF(test_##_name()); \ in ipc_unmuxed()
|
/linux-4.4.14/tools/testing/selftests/powerpc/ |
D | utils.h | 26 #define FAIL_IF(x) \ macro
|
/linux-4.4.14/tools/testing/selftests/powerpc/mm/ |
D | subpage_prot.c | 157 FAIL_IF(posix_memalign(&mallocblock, 64 * 1024, mallocsize)); in test_anon()
|