/linux-4.1.27/tools/testing/selftests/powerpc/pmu/ebb/ |
D | event_attributes_test.c | 22 FAIL_IF(event_open(&event)); in event_attributes() 29 FAIL_IF(event_open(&event) == 0); in event_attributes() 36 FAIL_IF(event_open(&event) == 0); in event_attributes() 43 FAIL_IF(event_open(&event) == 0); in event_attributes() 50 FAIL_IF(event_open(&event) == 0); in event_attributes() 57 FAIL_IF(event_open(&event) == 0); in event_attributes() 64 FAIL_IF(event_open(&event) == 0); in event_attributes() 69 FAIL_IF(event_open(&leader)); in event_attributes() 75 FAIL_IF(event_open_with_group(&event, leader.fd)); in event_attributes() 82 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() 45 FAIL_IF(cpu < 0); in ebb_vs_cpu_event() 46 FAIL_IF(bind_to_cpu(cpu)); in ebb_vs_cpu_event() 48 FAIL_IF(pipe(read_pipe.fds) == -1); in ebb_vs_cpu_event() 49 FAIL_IF(pipe(write_pipe.fds) == -1); in ebb_vs_cpu_event() 58 FAIL_IF(sync_with_child(read_pipe, write_pipe)); in ebb_vs_cpu_event() 68 FAIL_IF(sync_with_child(read_pipe, write_pipe)); in ebb_vs_cpu_event() 71 FAIL_IF(wait_for_child(pid)); in ebb_vs_cpu_event() 72 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() 47 FAIL_IF(cpu < 0); in cpu_event_pinned_vs_ebb() 48 FAIL_IF(bind_to_cpu(cpu)); in cpu_event_pinned_vs_ebb() 50 FAIL_IF(pipe(read_pipe.fds) == -1); in cpu_event_pinned_vs_ebb() 51 FAIL_IF(pipe(write_pipe.fds) == -1); in cpu_event_pinned_vs_ebb() 72 FAIL_IF(sync_with_child(read_pipe, write_pipe)); in cpu_event_pinned_vs_ebb() 76 FAIL_IF(wait_for_child(pid) != 2); in cpu_event_pinned_vs_ebb() 78 FAIL_IF(event_disable(&event)); in cpu_event_pinned_vs_ebb() 79 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() 50 FAIL_IF(pipe(read_pipe.fds) == -1); in ebb_on_child() 51 FAIL_IF(pipe(write_pipe.fds) == -1); in ebb_on_child() 59 FAIL_IF(sync_with_child(read_pipe, write_pipe)); in ebb_on_child() 70 FAIL_IF(event_open_with_pid(&event, pid)); in ebb_on_child() 71 FAIL_IF(ebb_event_enable(&event)); in ebb_on_child() 73 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() 45 FAIL_IF(pipe(read_pipe.fds) == -1); in task_event_pinned_vs_ebb() 46 FAIL_IF(pipe(write_pipe.fds) == -1); in task_event_pinned_vs_ebb() 67 FAIL_IF(sync_with_child(read_pipe, write_pipe)); in task_event_pinned_vs_ebb() 71 FAIL_IF(wait_for_child(pid) != 2); in task_event_pinned_vs_ebb() 72 FAIL_IF(event_disable(&event)); in task_event_pinned_vs_ebb() 73 FAIL_IF(event_read(&event)); in task_event_pinned_vs_ebb() 77 FAIL_IF(event.result.value == 0); in task_event_pinned_vs_ebb() 82 FAIL_IF(event.result.enabled == 0); in task_event_pinned_vs_ebb() [all …]
|
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() 45 FAIL_IF(cpu < 0); in cpu_event_vs_ebb() 46 FAIL_IF(bind_to_cpu(cpu)); in cpu_event_vs_ebb() 48 FAIL_IF(pipe(read_pipe.fds) == -1); in cpu_event_vs_ebb() 49 FAIL_IF(pipe(write_pipe.fds) == -1); in cpu_event_vs_ebb() 70 FAIL_IF(sync_with_child(read_pipe, write_pipe)); in cpu_event_vs_ebb() 74 FAIL_IF(wait_for_child(pid)); in cpu_event_vs_ebb() 76 FAIL_IF(event_disable(&event)); in cpu_event_vs_ebb() 77 FAIL_IF(event_read(&event)); in cpu_event_vs_ebb()
|
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() 57 FAIL_IF(pipe(read_pipe.fds) == -1); in ebb_on_willing_child() 58 FAIL_IF(pipe(write_pipe.fds) == -1); in ebb_on_willing_child() 67 FAIL_IF(sync_with_child(read_pipe, write_pipe)); in ebb_on_willing_child() 78 FAIL_IF(event_open_with_pid(&event, pid)); in ebb_on_willing_child() 79 FAIL_IF(ebb_event_enable(&event)); in ebb_on_willing_child() 82 FAIL_IF(wait_for_child(pid)); in ebb_on_willing_child()
|
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() 50 FAIL_IF(event_open(&event)); in fork_cleanup() 56 FAIL_IF(ebb_event_enable(&event)); in fork_cleanup() 68 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() 43 FAIL_IF(pipe(read_pipe.fds) == -1); in task_event_vs_ebb() 44 FAIL_IF(pipe(write_pipe.fds) == -1); in task_event_vs_ebb() 65 FAIL_IF(sync_with_child(read_pipe, write_pipe)); in task_event_vs_ebb() 69 FAIL_IF(wait_for_child(pid)); in task_event_vs_ebb() 70 FAIL_IF(event_disable(&event)); in task_event_vs_ebb() 71 FAIL_IF(event_read(&event)); in task_event_vs_ebb()
|
D | cycles_test.c | 26 FAIL_IF(event_open(&event)); in cycles() 31 FAIL_IF(ebb_event_enable(&event)); in cycles() 36 FAIL_IF(core_busy_loop()); in cycles() 37 FAIL_IF(ebb_check_mmcr0()); in cycles() 49 FAIL_IF(ebb_state.stats.ebb_count == 0); in cycles() 50 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() 83 FAIL_IF(cpu < 0); in multi_ebb_procs() 84 FAIL_IF(bind_to_cpu(cpu)); in multi_ebb_procs()
|
D | instruction_count_test.c | 120 FAIL_IF(event_open(&event)); in instruction_count() 121 FAIL_IF(ebb_event_enable(&event)); in instruction_count() 133 FAIL_IF(do_count_loop(&event, 0x100000, overhead, true)); in instruction_count() 136 FAIL_IF(do_count_loop(&event, 0xa00000, overhead, true)); in instruction_count() 139 FAIL_IF(do_count_loop(&event, 0x6400000, overhead, true)); in instruction_count() 142 FAIL_IF(do_count_loop(&event, 0x40000000, overhead, true)); in instruction_count() 145 FAIL_IF(do_count_loop(&event, 0x400000000, overhead, true)); in instruction_count() 148 FAIL_IF(do_count_loop(&event, 0x1000000000, overhead, true)); in instruction_count() 151 FAIL_IF(do_count_loop(&event, 0x2000000000, overhead, true)); in instruction_count()
|
D | close_clears_pmcc_test.c | 26 FAIL_IF(event_open(&event)); in close_clears_pmcc() 31 FAIL_IF(ebb_event_enable(&event)); in close_clears_pmcc() 36 FAIL_IF(core_busy_loop()); in close_clears_pmcc() 41 FAIL_IF(ebb_state.stats.ebb_count == 0); in close_clears_pmcc() 46 FAIL_IF(catch_sigill(write_pmc1)); in close_clears_pmcc()
|
D | multi_counter_test.c | 38 FAIL_IF(event_open_with_group(&events[i], group_fd)); in multi_counter() 51 FAIL_IF(ioctl(events[0].fd, PERF_EVENT_IOC_ENABLE, PERF_IOC_FLAG_GROUP)); in multi_counter() 52 FAIL_IF(event_read(&events[0])); in multi_counter() 64 FAIL_IF(core_busy_loop()); in multi_counter() 65 FAIL_IF(ebb_check_mmcr0()); in multi_counter() 83 FAIL_IF(ebb_state.stats.ebb_count == 0); in multi_counter()
|
D | cycles_with_mmcr2_test.c | 36 FAIL_IF(event_open(&event)); in cycles_with_mmcr2() 42 FAIL_IF(ebb_event_enable(&event)); in cycles_with_mmcr2() 58 FAIL_IF(core_busy_loop()); in cycles_with_mmcr2() 78 FAIL_IF(ebb_state.stats.ebb_count == 0); in cycles_with_mmcr2() 83 FAIL_IF(bad_mmcr2); in cycles_with_mmcr2()
|
D | pmae_handling_test.c | 68 FAIL_IF(event_open(&event)); in test_body() 73 FAIL_IF(ebb_event_enable(&event)); in test_body() 78 FAIL_IF(core_busy_loop()); in test_body() 92 FAIL_IF(ebb_state.stats.ebb_count == 0); in test_body() 93 FAIL_IF(mmcr0_mismatch); in test_body()
|
D | no_handler_test.c | 29 FAIL_IF(event_open(&event)); in no_handler_test() 30 FAIL_IF(ebb_event_enable(&event)); in no_handler_test() 33 FAIL_IF(val != 0); in no_handler_test() 47 FAIL_IF(val != 0x0000000080000080); in no_handler_test()
|
D | cycles_with_freeze_test.c | 66 FAIL_IF(event_open(&event)); in cycles_with_freeze() 70 FAIL_IF(ebb_event_enable(&event)); in cycles_with_freeze() 84 FAIL_IF(core_busy_loop()); in cycles_with_freeze() 108 FAIL_IF(ebb_state.stats.ebb_count == 0); in cycles_with_freeze() 109 FAIL_IF(fc_cleared); in cycles_with_freeze()
|
D | lost_exception_test.c | 34 FAIL_IF(event_open(&event)); in test_body() 39 FAIL_IF(ebb_event_enable(&event)); in test_body() 84 FAIL_IF(ebb_state.stats.ebb_count == 0); in test_body() 87 FAIL_IF(!ebb_check_count(4, orig_period, 2 * (max_period - orig_period))); in test_body()
|
D | pmc56_overflow_test.c | 60 FAIL_IF(event_open(&event)); in pmc56_overflow() 65 FAIL_IF(ebb_event_enable(&event)); in pmc56_overflow() 72 FAIL_IF(core_busy_loop()); in pmc56_overflow() 85 FAIL_IF(ebb_state.stats.ebb_count == 0 || pmc56_overflowed != 0); in pmc56_overflow()
|
D | back_to_back_ebbs_test.c | 73 FAIL_IF(event_open(&event)); in back_to_back_ebbs() 77 FAIL_IF(ebb_event_enable(&event)); in back_to_back_ebbs() 87 FAIL_IF(core_busy_loop()); in back_to_back_ebbs() 98 FAIL_IF(ebb_state.stats.ebb_count != NUMBER_OF_EBBS); in back_to_back_ebbs()
|
D | ebb.c | 345 FAIL_IF(wait_for_parent(read_pipe)); in ebb_child() 354 FAIL_IF(event_open(&event)); in ebb_child() 360 FAIL_IF(event_enable(&event)); in ebb_child() 374 FAIL_IF(notify_parent(write_pipe)); in ebb_child() 375 FAIL_IF(wait_for_parent(read_pipe)); in ebb_child() 376 FAIL_IF(notify_parent(write_pipe)); in ebb_child() 379 FAIL_IF(core_busy_loop()); in ebb_child() 396 FAIL_IF(ebb_state.stats.ebb_count == 0); in ebb_child()
|
D | reg_access_test.c | 25 FAIL_IF(val != expected); in reg_access() 31 FAIL_IF(val != expected); in reg_access()
|
/linux-4.1.27/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.1.27/tools/testing/selftests/powerpc/primitives/ |
D | load_unaligned_zeropad.c | 107 FAIL_IF(unprotect_region()); in do_one_test() 109 FAIL_IF(protect_region()); in do_one_test() 127 FAIL_IF(mem_region == MAP_FAILED); in test_body() 137 FAIL_IF(do_one_test(mem_region+i, i)); in test_body() 139 FAIL_IF(segv_error); in test_body()
|
/linux-4.1.27/tools/testing/selftests/powerpc/tm/ |
D | tm-syscall.c | 100 FAIL_IF(getppid_tm(true) == -1); /* Should succeed. */ in tm_syscall() 106 FAIL_IF(getppid_tm(false) != -1); /* Should fail... */ in tm_syscall() 107 FAIL_IF(!failure_is_persistent()); /* ...persistently... */ in tm_syscall() 108 FAIL_IF(!failure_is_syscall()); /* ...with code syscall. */ in tm_syscall()
|
/linux-4.1.27/tools/testing/selftests/powerpc/ |
D | utils.h | 26 #define FAIL_IF(x) \ macro
|
/linux-4.1.27/tools/testing/selftests/powerpc/mm/ |
D | subpage_prot.c | 157 FAIL_IF(posix_memalign(&mallocblock, 64 * 1024, mallocsize)); in test_anon()
|