Home
last modified time | relevance | path

Searched refs:FAIL_IF (Results 1 – 25 of 62) sorted by relevance

123

/Linux-v4.19/tools/testing/selftests/powerpc/pmu/ebb/
Devent_attributes_test.c24 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 …]
Debb_vs_cpu_event_test.c31 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 …]
Dcpu_event_pinned_vs_ebb_test.c33 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 …]
Debb_on_child_test.c27 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 …]
Dtask_event_pinned_vs_ebb_test.c32 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 …]
Debb_on_willing_child_test.c25 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()
Dcpu_event_vs_ebb_test.c31 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()
Dfork_cleanup_test.c30 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()
Dtask_event_vs_ebb_test.c30 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()
Dcycles_test.c28 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()
Dmulti_ebb_procs_test.c46 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()
Dinstruction_count_test.c122 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()
Dclose_clears_pmcc_test.c28 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()
/Linux-v4.19/tools/testing/selftests/powerpc/ptrace/
Dptrace-tm-gpr.c96 FAIL_IF(start_trace(child)); in trace_tm_gpr()
97 FAIL_IF(show_gpr(child, gpr)); in trace_tm_gpr()
98 FAIL_IF(validate_gpr(gpr, GPR_2)); in trace_tm_gpr()
99 FAIL_IF(show_fpr(child, fpr)); in trace_tm_gpr()
100 FAIL_IF(validate_fpr(fpr, FPR_2_REP)); in trace_tm_gpr()
101 FAIL_IF(show_ckpt_fpr(child, fpr)); in trace_tm_gpr()
102 FAIL_IF(validate_fpr(fpr, FPR_1_REP)); in trace_tm_gpr()
103 FAIL_IF(show_ckpt_gpr(child, gpr)); in trace_tm_gpr()
104 FAIL_IF(validate_gpr(gpr, GPR_1)); in trace_tm_gpr()
105 FAIL_IF(write_ckpt_gpr(child, GPR_3)); in trace_tm_gpr()
[all …]
Dptrace-tm-spd-gpr.c102 FAIL_IF(start_trace(child)); in trace_tm_spd_gpr()
103 FAIL_IF(show_gpr(child, gpr)); in trace_tm_spd_gpr()
104 FAIL_IF(validate_gpr(gpr, GPR_4)); in trace_tm_spd_gpr()
105 FAIL_IF(show_fpr(child, fpr)); in trace_tm_spd_gpr()
106 FAIL_IF(validate_fpr(fpr, FPR_4_REP)); in trace_tm_spd_gpr()
107 FAIL_IF(show_ckpt_fpr(child, fpr)); in trace_tm_spd_gpr()
108 FAIL_IF(validate_fpr(fpr, FPR_1_REP)); in trace_tm_spd_gpr()
109 FAIL_IF(show_ckpt_gpr(child, gpr)); in trace_tm_spd_gpr()
110 FAIL_IF(validate_gpr(gpr, GPR_1)); in trace_tm_spd_gpr()
111 FAIL_IF(write_ckpt_gpr(child, GPR_3)); in trace_tm_spd_gpr()
[all …]
Dptrace-tm-vsx.c94 FAIL_IF(start_trace(child)); in trace_tm_vsx()
95 FAIL_IF(show_vsx(child, vsx)); in trace_tm_vsx()
96 FAIL_IF(validate_vsx(vsx, fp_load)); in trace_tm_vsx()
97 FAIL_IF(show_vmx(child, vmx)); in trace_tm_vsx()
98 FAIL_IF(validate_vmx(vmx, fp_load)); in trace_tm_vsx()
99 FAIL_IF(show_vsx_ckpt(child, vsx)); in trace_tm_vsx()
100 FAIL_IF(validate_vsx(vsx, fp_load_ckpt)); in trace_tm_vsx()
101 FAIL_IF(show_vmx_ckpt(child, vmx)); in trace_tm_vsx()
102 FAIL_IF(validate_vmx(vmx, fp_load_ckpt)); in trace_tm_vsx()
108 FAIL_IF(write_vsx_ckpt(child, vsx)); in trace_tm_vsx()
[all …]
Dptrace-tm-spd-vsx.c106 FAIL_IF(start_trace(child)); in trace_tm_spd_vsx()
107 FAIL_IF(show_vsx(child, vsx)); in trace_tm_spd_vsx()
108 FAIL_IF(validate_vsx(vsx, fp_load)); in trace_tm_spd_vsx()
109 FAIL_IF(show_vmx(child, vmx)); in trace_tm_spd_vsx()
110 FAIL_IF(validate_vmx(vmx, fp_load)); in trace_tm_spd_vsx()
111 FAIL_IF(show_vsx_ckpt(child, vsx)); in trace_tm_spd_vsx()
112 FAIL_IF(validate_vsx(vsx, fp_load_ckpt)); in trace_tm_spd_vsx()
113 FAIL_IF(show_vmx_ckpt(child, vmx)); in trace_tm_spd_vsx()
114 FAIL_IF(validate_vmx(vmx, fp_load_ckpt)); in trace_tm_spd_vsx()
121 FAIL_IF(write_vsx_ckpt(child, vsx)); in trace_tm_spd_vsx()
[all …]
Dcore-pkey.c80 FAIL_IF(ret); in increase_core_file_limit()
90 FAIL_IF(ret); in increase_core_file_limit()
94 FAIL_IF(ret); in increase_core_file_limit()
104 FAIL_IF(ret); in increase_core_file_limit()
122 FAIL_IF(ret); in child()
128 FAIL_IF(pkey1 < 0); in child()
134 FAIL_IF(pkey2 < 0); in child()
137 FAIL_IF(pkey3 < 0); in child()
168 FAIL_IF(true); in child()
206 FAIL_IF(ret); in check_core_file()
[all …]
Dptrace-gpr.c64 FAIL_IF(start_trace(child)); in trace_gpr()
65 FAIL_IF(show_gpr(child, gpr)); in trace_gpr()
66 FAIL_IF(validate_gpr(gpr, GPR_1)); in trace_gpr()
67 FAIL_IF(show_fpr(child, fpr)); in trace_gpr()
68 FAIL_IF(validate_fpr(fpr, FPR_1_REP)); in trace_gpr()
69 FAIL_IF(write_gpr(child, GPR_3)); in trace_gpr()
70 FAIL_IF(write_fpr(child, FPR_3_REP)); in trace_gpr()
71 FAIL_IF(stop_trace(child)); in trace_gpr()
Dptrace-vsx.c46 FAIL_IF(start_trace(child)); in trace_vsx()
47 FAIL_IF(show_vsx(child, vsx)); in trace_vsx()
48 FAIL_IF(validate_vsx(vsx, fp_load)); in trace_vsx()
49 FAIL_IF(show_vmx(child, vmx)); in trace_vsx()
50 FAIL_IF(validate_vmx(vmx, fp_load)); in trace_vsx()
56 FAIL_IF(write_vsx(child, vsx)); in trace_vsx()
57 FAIL_IF(write_vmx(child, vmx)); in trace_vsx()
58 FAIL_IF(stop_trace(child)); in trace_vsx()
Dptrace-tar.c59 FAIL_IF(start_trace(child)); in trace_tar()
60 FAIL_IF(show_tar_registers(child, reg)); in trace_tar()
64 FAIL_IF(validate_tar_registers(reg, TAR_1, PPR_1, DSCR_1)); in trace_tar()
65 FAIL_IF(stop_trace(child)); in trace_tar()
71 FAIL_IF(start_trace(child)); in trace_tar_write()
72 FAIL_IF(write_tar_registers(child, TAR_2, PPR_2, DSCR_2)); in trace_tar_write()
76 FAIL_IF(stop_trace(child)); in trace_tar_write()
Dptrace-tm-tar.c98 FAIL_IF(start_trace(child)); in trace_tm_tar()
99 FAIL_IF(show_tar_registers(child, regs)); in trace_tm_tar()
103 FAIL_IF(validate_tar_registers(regs, TAR_2, PPR_2, DSCR_2)); in trace_tm_tar()
104 FAIL_IF(show_tm_checkpointed_state(child, regs)); in trace_tm_tar()
108 FAIL_IF(validate_tar_registers(regs, TAR_1, PPR_1, DSCR_1)); in trace_tm_tar()
109 FAIL_IF(write_ckpt_tar_registers(child, TAR_4, PPR_4, DSCR_4)); in trace_tm_tar()
114 FAIL_IF(stop_trace(child)); in trace_tm_tar()
Dptrace-tm-spd-tar.c109 FAIL_IF(start_trace(child)); in trace_tm_spd_tar()
110 FAIL_IF(show_tar_registers(child, regs)); in trace_tm_spd_tar()
114 FAIL_IF(validate_tar_registers(regs, TAR_3, PPR_3, DSCR_3)); in trace_tm_spd_tar()
115 FAIL_IF(show_tm_checkpointed_state(child, regs)); in trace_tm_spd_tar()
119 FAIL_IF(validate_tar_registers(regs, TAR_1, PPR_1, DSCR_1)); in trace_tm_spd_tar()
120 FAIL_IF(write_ckpt_tar_registers(child, TAR_4, PPR_4, DSCR_4)); in trace_tm_spd_tar()
126 FAIL_IF(stop_trace(child)); in trace_tm_spd_tar()
/Linux-v4.19/tools/testing/selftests/powerpc/mm/
Dsegv_errors.c44 FAIL_IF(p == MAP_FAILED); in test_segv_errors()
46 FAIL_IF(sigaction(SIGSEGV, &act, NULL) != 0); in test_segv_errors()
59 FAIL_IF(!faulted); in test_segv_errors()
60 FAIL_IF(si_code != SEGV_ACCERR); in test_segv_errors()
69 FAIL_IF(!faulted); in test_segv_errors()
70 FAIL_IF(si_code != SEGV_ACCERR); in test_segv_errors()
/Linux-v4.19/tools/testing/selftests/powerpc/pmu/
Dlib.c37 FAIL_IF(write(write_pipe.write_fd, &c, 1) != 1); in sync_with_child()
38 FAIL_IF(read(read_pipe.read_fd, &c, 1) != 1); in sync_with_child()
49 FAIL_IF(read(read_pipe.read_fd, &c, 1) != 1); in wait_for_parent()
50 FAIL_IF(c != PARENT_TOKEN); in wait_for_parent()
59 FAIL_IF(write(write_pipe.write_fd, &c, 1) != 1); in notify_parent()
68 FAIL_IF(write(write_pipe.write_fd, &c, 1) != 1); in notify_parent_of_error()
123 FAIL_IF(cpu < 0); in eat_cpu()
124 FAIL_IF(bind_to_cpu(cpu)); in eat_cpu()

123