Searched refs:FAIL_IF (Results 1 - 32 of 32) sorted by relevance

/linux-4.4.14/tools/testing/selftests/powerpc/pmu/ebb/
H A Dcycles_test.c28 FAIL_IF(event_open(&event)); cycles()
33 FAIL_IF(ebb_event_enable(&event)); cycles()
38 FAIL_IF(core_busy_loop()); cycles()
39 FAIL_IF(ebb_check_mmcr0()); cycles()
51 FAIL_IF(ebb_state.stats.ebb_count == 0); cycles()
52 FAIL_IF(!ebb_check_count(1, sample_period, 100)); cycles()
H A Devent_attributes_test.c24 FAIL_IF(event_open(&event)); event_attributes()
31 FAIL_IF(event_open(&event) == 0); event_attributes()
38 FAIL_IF(event_open(&event) == 0); event_attributes()
45 FAIL_IF(event_open(&event) == 0); event_attributes()
52 FAIL_IF(event_open(&event) == 0); event_attributes()
59 FAIL_IF(event_open(&event) == 0); event_attributes()
66 FAIL_IF(event_open(&event) == 0); event_attributes()
71 FAIL_IF(event_open(&leader)); event_attributes()
77 FAIL_IF(event_open_with_group(&event, leader.fd)); event_attributes()
84 FAIL_IF(event_open(&leader)); event_attributes()
89 FAIL_IF(event_open_with_group(&event, leader.fd) == 0); event_attributes()
98 FAIL_IF(event_open(&leader)); event_attributes()
104 FAIL_IF(event_open_with_group(&event, leader.fd) == 0); event_attributes()
112 FAIL_IF(event_open(&leader) == 0); event_attributes()
119 FAIL_IF(event_open(&leader) == 0); event_attributes()
125 FAIL_IF(event_open_with_cpu(&event, 0) == 0); event_attributes()
H A Dcpu_event_pinned_vs_ebb_test.c33 FAIL_IF(event_open_with_cpu(event, cpu)); setup_cpu_event()
34 FAIL_IF(event_enable(event)); setup_cpu_event()
49 FAIL_IF(cpu < 0); cpu_event_pinned_vs_ebb()
50 FAIL_IF(bind_to_cpu(cpu)); cpu_event_pinned_vs_ebb()
52 FAIL_IF(pipe(read_pipe.fds) == -1); cpu_event_pinned_vs_ebb()
53 FAIL_IF(pipe(write_pipe.fds) == -1); cpu_event_pinned_vs_ebb()
74 FAIL_IF(sync_with_child(read_pipe, write_pipe)); cpu_event_pinned_vs_ebb()
78 FAIL_IF(wait_for_child(pid) != 2); cpu_event_pinned_vs_ebb()
80 FAIL_IF(event_disable(&event)); cpu_event_pinned_vs_ebb()
81 FAIL_IF(event_read(&event)); cpu_event_pinned_vs_ebb()
86 FAIL_IF(event.result.value == 0); cpu_event_pinned_vs_ebb()
87 FAIL_IF(event.result.enabled != event.result.running); cpu_event_pinned_vs_ebb()
H A Debb_vs_cpu_event_test.c31 FAIL_IF(event_open_with_cpu(event, cpu)); setup_cpu_event()
32 FAIL_IF(event_enable(event)); setup_cpu_event()
47 FAIL_IF(cpu < 0); ebb_vs_cpu_event()
48 FAIL_IF(bind_to_cpu(cpu)); ebb_vs_cpu_event()
50 FAIL_IF(pipe(read_pipe.fds) == -1); ebb_vs_cpu_event()
51 FAIL_IF(pipe(write_pipe.fds) == -1); ebb_vs_cpu_event()
60 FAIL_IF(sync_with_child(read_pipe, write_pipe)); ebb_vs_cpu_event()
70 FAIL_IF(sync_with_child(read_pipe, write_pipe)); ebb_vs_cpu_event()
73 FAIL_IF(wait_for_child(pid)); ebb_vs_cpu_event()
74 FAIL_IF(event_disable(&event)); ebb_vs_cpu_event()
75 FAIL_IF(event_read(&event)); ebb_vs_cpu_event()
80 FAIL_IF(event.result.enabled >= event.result.running); ebb_vs_cpu_event()
H A Debb_on_child_test.c27 FAIL_IF(wait_for_parent(read_pipe)); victim_child()
28 FAIL_IF(notify_parent(write_pipe)); victim_child()
32 FAIL_IF(wait_for_parent(read_pipe)); victim_child()
33 FAIL_IF(notify_parent(write_pipe)); victim_child()
52 FAIL_IF(pipe(read_pipe.fds) == -1); ebb_on_child()
53 FAIL_IF(pipe(write_pipe.fds) == -1); ebb_on_child()
61 FAIL_IF(sync_with_child(read_pipe, write_pipe)); ebb_on_child()
72 FAIL_IF(event_open_with_pid(&event, pid)); ebb_on_child()
73 FAIL_IF(ebb_event_enable(&event)); ebb_on_child()
75 FAIL_IF(sync_with_child(read_pipe, write_pipe)); ebb_on_child()
78 FAIL_IF(wait_for_child(pid)); ebb_on_child()
H A Dtask_event_pinned_vs_ebb_test.c32 FAIL_IF(event_open_with_pid(event, child_pid)); setup_child_event()
33 FAIL_IF(event_enable(event)); setup_child_event()
47 FAIL_IF(pipe(read_pipe.fds) == -1); task_event_pinned_vs_ebb()
48 FAIL_IF(pipe(write_pipe.fds) == -1); task_event_pinned_vs_ebb()
69 FAIL_IF(sync_with_child(read_pipe, write_pipe)); task_event_pinned_vs_ebb()
73 FAIL_IF(wait_for_child(pid) != 2); task_event_pinned_vs_ebb()
74 FAIL_IF(event_disable(&event)); task_event_pinned_vs_ebb()
75 FAIL_IF(event_read(&event)); task_event_pinned_vs_ebb()
79 FAIL_IF(event.result.value == 0); task_event_pinned_vs_ebb()
84 FAIL_IF(event.result.enabled == 0); task_event_pinned_vs_ebb()
85 FAIL_IF(event.result.running == 0); task_event_pinned_vs_ebb()
H A Dcpu_event_vs_ebb_test.c31 FAIL_IF(event_open_with_cpu(event, cpu)); setup_cpu_event()
32 FAIL_IF(event_enable(event)); setup_cpu_event()
47 FAIL_IF(cpu < 0); cpu_event_vs_ebb()
48 FAIL_IF(bind_to_cpu(cpu)); cpu_event_vs_ebb()
50 FAIL_IF(pipe(read_pipe.fds) == -1); cpu_event_vs_ebb()
51 FAIL_IF(pipe(write_pipe.fds) == -1); cpu_event_vs_ebb()
72 FAIL_IF(sync_with_child(read_pipe, write_pipe)); cpu_event_vs_ebb()
76 FAIL_IF(wait_for_child(pid)); cpu_event_vs_ebb()
78 FAIL_IF(event_disable(&event)); cpu_event_vs_ebb()
79 FAIL_IF(event_read(&event)); cpu_event_vs_ebb()
H A Debb_on_willing_child_test.c25 FAIL_IF(wait_for_parent(read_pipe)); victim_child()
32 FAIL_IF(notify_parent(write_pipe)); victim_child()
35 FAIL_IF(core_busy_loop()); victim_child()
45 FAIL_IF(ebb_state.stats.ebb_count == 0); victim_child()
59 FAIL_IF(pipe(read_pipe.fds) == -1); ebb_on_willing_child()
60 FAIL_IF(pipe(write_pipe.fds) == -1); ebb_on_willing_child()
69 FAIL_IF(sync_with_child(read_pipe, write_pipe)); ebb_on_willing_child()
80 FAIL_IF(event_open_with_pid(&event, pid)); ebb_on_willing_child()
81 FAIL_IF(ebb_event_enable(&event)); ebb_on_willing_child()
84 FAIL_IF(wait_for_child(pid)); ebb_on_willing_child()
H A Dmulti_counter_test.c40 FAIL_IF(event_open_with_group(&events[i], group_fd)); multi_counter()
53 FAIL_IF(ioctl(events[0].fd, PERF_EVENT_IOC_ENABLE, PERF_IOC_FLAG_GROUP)); multi_counter()
54 FAIL_IF(event_read(&events[0])); multi_counter()
66 FAIL_IF(core_busy_loop()); multi_counter()
67 FAIL_IF(ebb_check_mmcr0()); multi_counter()
85 FAIL_IF(ebb_state.stats.ebb_count == 0); multi_counter()
H A Dfork_cleanup_test.c30 FAIL_IF(mfspr(SPRN_BESCR) != 0); child()
31 FAIL_IF(mfspr(SPRN_EBBHR) != 0); child()
32 FAIL_IF(mfspr(SPRN_EBBRR) != 0); child()
34 FAIL_IF(catch_sigill(write_pmc1)); child()
37 FAIL_IF(event_read(&event)); child()
52 FAIL_IF(event_open(&event)); fork_cleanup()
58 FAIL_IF(ebb_event_enable(&event)); fork_cleanup()
70 FAIL_IF(wait_for_child(pid)); fork_cleanup()
H A Dtask_event_vs_ebb_test.c30 FAIL_IF(event_open_with_pid(event, child_pid)); setup_child_event()
31 FAIL_IF(event_enable(event)); setup_child_event()
45 FAIL_IF(pipe(read_pipe.fds) == -1); task_event_vs_ebb()
46 FAIL_IF(pipe(write_pipe.fds) == -1); task_event_vs_ebb()
67 FAIL_IF(sync_with_child(read_pipe, write_pipe)); task_event_vs_ebb()
71 FAIL_IF(wait_for_child(pid)); task_event_vs_ebb()
72 FAIL_IF(event_disable(&event)); task_event_vs_ebb()
73 FAIL_IF(event_read(&event)); task_event_vs_ebb()
H A Dclose_clears_pmcc_test.c28 FAIL_IF(event_open(&event)); close_clears_pmcc()
33 FAIL_IF(ebb_event_enable(&event)); close_clears_pmcc()
38 FAIL_IF(core_busy_loop()); close_clears_pmcc()
43 FAIL_IF(ebb_state.stats.ebb_count == 0); close_clears_pmcc()
48 FAIL_IF(catch_sigill(write_pmc1)); close_clears_pmcc()
H A Dmulti_ebb_procs_test.c46 FAIL_IF(event_open(&event)); cycles_child()
52 FAIL_IF(ebb_event_enable(&event)); cycles_child()
57 FAIL_IF(core_busy_loop()); cycles_child()
58 FAIL_IF(ebb_check_mmcr0()); cycles_child()
70 FAIL_IF(ebb_state.stats.ebb_count == 0); cycles_child()
85 FAIL_IF(cpu < 0); multi_ebb_procs()
86 FAIL_IF(bind_to_cpu(cpu)); multi_ebb_procs()
H A Dno_handler_test.c31 FAIL_IF(event_open(&event)); no_handler_test()
32 FAIL_IF(ebb_event_enable(&event)); no_handler_test()
35 FAIL_IF(val != 0); no_handler_test()
49 FAIL_IF(val != 0x0000000080000080); no_handler_test()
H A Dpmc56_overflow_test.c62 FAIL_IF(event_open(&event)); pmc56_overflow()
67 FAIL_IF(ebb_event_enable(&event)); pmc56_overflow()
74 FAIL_IF(core_busy_loop()); pmc56_overflow()
87 FAIL_IF(ebb_state.stats.ebb_count == 0 || pmc56_overflowed != 0); pmc56_overflow()
H A Dreg_access_test.c27 FAIL_IF(val != expected); reg_access()
33 FAIL_IF(val != expected); reg_access()
H A Dinstruction_count_test.c122 FAIL_IF(event_open(&event)); instruction_count()
123 FAIL_IF(ebb_event_enable(&event)); instruction_count()
135 FAIL_IF(do_count_loop(&event, 0x100000, overhead, true)); instruction_count()
138 FAIL_IF(do_count_loop(&event, 0xa00000, overhead, true)); instruction_count()
141 FAIL_IF(do_count_loop(&event, 0x6400000, overhead, true)); instruction_count()
144 FAIL_IF(do_count_loop(&event, 0x40000000, overhead, true)); instruction_count()
147 FAIL_IF(do_count_loop(&event, 0x400000000, overhead, true)); instruction_count()
150 FAIL_IF(do_count_loop(&event, 0x1000000000, overhead, true)); instruction_count()
153 FAIL_IF(do_count_loop(&event, 0x2000000000, overhead, true)); instruction_count()
H A Dcycles_with_mmcr2_test.c38 FAIL_IF(event_open(&event)); cycles_with_mmcr2()
44 FAIL_IF(ebb_event_enable(&event)); cycles_with_mmcr2()
60 FAIL_IF(core_busy_loop()); cycles_with_mmcr2()
80 FAIL_IF(ebb_state.stats.ebb_count == 0); cycles_with_mmcr2()
85 FAIL_IF(bad_mmcr2); cycles_with_mmcr2()
H A Dpmae_handling_test.c70 FAIL_IF(event_open(&event)); test_body()
75 FAIL_IF(ebb_event_enable(&event)); test_body()
80 FAIL_IF(core_busy_loop()); test_body()
94 FAIL_IF(ebb_state.stats.ebb_count == 0); test_body()
95 FAIL_IF(mmcr0_mismatch); test_body()
H A Dback_to_back_ebbs_test.c75 FAIL_IF(event_open(&event)); back_to_back_ebbs()
79 FAIL_IF(ebb_event_enable(&event)); back_to_back_ebbs()
89 FAIL_IF(core_busy_loop()); back_to_back_ebbs()
100 FAIL_IF(ebb_state.stats.ebb_count != NUMBER_OF_EBBS); back_to_back_ebbs()
H A Dcycles_with_freeze_test.c68 FAIL_IF(event_open(&event)); cycles_with_freeze()
72 FAIL_IF(ebb_event_enable(&event)); cycles_with_freeze()
86 FAIL_IF(core_busy_loop()); cycles_with_freeze()
110 FAIL_IF(ebb_state.stats.ebb_count == 0); cycles_with_freeze()
111 FAIL_IF(fc_cleared); cycles_with_freeze()
H A Dlost_exception_test.c36 FAIL_IF(event_open(&event)); test_body()
41 FAIL_IF(ebb_event_enable(&event)); test_body()
86 FAIL_IF(ebb_state.stats.ebb_count == 0); test_body()
89 FAIL_IF(!ebb_check_count(4, orig_period, 2 * (max_period - orig_period))); test_body()
H A Debb.c356 FAIL_IF(wait_for_parent(read_pipe)); ebb_child()
365 FAIL_IF(event_open(&event)); ebb_child()
371 FAIL_IF(event_enable(&event)); ebb_child()
385 FAIL_IF(notify_parent(write_pipe)); ebb_child()
386 FAIL_IF(wait_for_parent(read_pipe)); ebb_child()
387 FAIL_IF(notify_parent(write_pipe)); ebb_child()
390 FAIL_IF(core_busy_loop()); ebb_child()
407 FAIL_IF(ebb_state.stats.ebb_count == 0); ebb_child()
/linux-4.4.14/tools/testing/selftests/powerpc/pmu/
H A Dl3_bank_test.c24 FAIL_IF(!p); l3_bank_test()
28 FAIL_IF(event_open(&event)); l3_bank_test()
36 FAIL_IF(event.result.running == 0); l3_bank_test()
37 FAIL_IF(event.result.enabled == 0); l3_bank_test()
H A Dcount_instructions.c116 FAIL_IF(do_count_loop(events, 1000000, overhead, true)); test_body()
119 FAIL_IF(do_count_loop(events, 10000000, overhead, true)); test_body()
122 FAIL_IF(do_count_loop(events, 100000000, overhead, true)); test_body()
125 FAIL_IF(do_count_loop(events, 1000000000, overhead, true)); test_body()
128 FAIL_IF(do_count_loop(events, 16000000000, overhead, true)); test_body()
131 FAIL_IF(do_count_loop(events, 64000000000, overhead, true)); test_body()
H A Dper_event_excludes.c30 FAIL_IF(!platform); per_event_excludes()
63 FAIL_IF(event_open(&events[0])); per_event_excludes()
71 FAIL_IF(event_open_with_group(&events[i], events[0].fd)); per_event_excludes()
86 FAIL_IF(event_read(&events[i])); per_event_excludes()
95 FAIL_IF(events[i].result.running != events[i].result.enabled); per_event_excludes()
103 FAIL_IF(events[0].result.value < events[i].result.value); per_event_excludes()
H A Dlib.c63 FAIL_IF(write(write_pipe.write_fd, &c, 1) != 1); sync_with_child()
64 FAIL_IF(read(read_pipe.read_fd, &c, 1) != 1); sync_with_child()
75 FAIL_IF(read(read_pipe.read_fd, &c, 1) != 1); wait_for_parent()
76 FAIL_IF(c != PARENT_TOKEN); wait_for_parent()
85 FAIL_IF(write(write_pipe.write_fd, &c, 1) != 1); notify_parent()
94 FAIL_IF(write(write_pipe.write_fd, &c, 1) != 1); notify_parent_of_error()
149 FAIL_IF(cpu < 0); eat_cpu()
150 FAIL_IF(bind_to_cpu(cpu)); eat_cpu()
/linux-4.4.14/tools/testing/selftests/powerpc/tm/
H A Dtm-syscall.c111 FAIL_IF(getppid_tm(true) == -1); /* Should succeed. */ tm_syscall()
117 FAIL_IF(getppid_tm(false) != -1); /* Should fail... */ tm_syscall()
118 FAIL_IF(!failure_is_persistent()); /* ...persistently... */ tm_syscall()
119 FAIL_IF(!failure_is_syscall()); /* ...with code syscall. */ tm_syscall()
/linux-4.4.14/tools/testing/selftests/powerpc/primitives/
H A Dload_unaligned_zeropad.c116 FAIL_IF(unprotect_region()); do_one_test()
118 FAIL_IF(protect_region()); do_one_test()
136 FAIL_IF(mem_region == MAP_FAILED); test_body()
146 FAIL_IF(do_one_test(mem_region+i, i)); test_body()
148 FAIL_IF(segv_error); test_body()
/linux-4.4.14/tools/testing/selftests/powerpc/
H A Dutils.h26 #define FAIL_IF(x) \ macro
/linux-4.4.14/tools/testing/selftests/powerpc/syscalls/
H A Dipc_unmuxed.c41 FAIL_IF(test_##_name()); \ ipc_unmuxed()
/linux-4.4.14/tools/testing/selftests/powerpc/mm/
H A Dsubpage_prot.c157 FAIL_IF(posix_memalign(&mallocblock, 64 * 1024, mallocsize)); test_anon()

Completed in 178 milliseconds