Searched refs:FAIL_IF (Results 1 - 25 of 132) sorted by last modified time

123456

/linux-master/tools/testing/selftests/powerpc/papr_vpd/
H A Dpapr_vpd.c23 FAIL_IF(devfd < 0);
24 FAIL_IF(close(devfd) != 0);
39 FAIL_IF(devfd < 0);
43 FAIL_IF(errno != 0);
44 FAIL_IF(fd < 0);
46 FAIL_IF(close(devfd) != 0);
49 FAIL_IF(size <= 0);
52 FAIL_IF(!buf);
55 FAIL_IF(consumed != size);
58 FAIL_IF(rea
[all...]
/linux-master/tools/testing/selftests/powerpc/math/
H A Dfpu_signal.c79 FAIL_IF(!tids);
85 FAIL_IF(rc);
116 FAIL_IF((long) rc_p || bad_context);
H A Dvmx_preempt.c67 FAIL_IF(!tids);
73 FAIL_IF(rc);
103 FAIL_IF((long) rc_p);
H A Dfpu_syscall.c56 FAIL_IF(pid == -1);
59 /* Can't FAIL_IF(pid2 == -1); because already forked once */
80 FAIL_IF(ret || child_ret);
H A Dfpu_preempt.c58 FAIL_IF(!tids);
64 FAIL_IF(rc);
94 FAIL_IF((long) rc_p);
H A Dvmx_signal.c104 FAIL_IF(!tids);
110 FAIL_IF(rc);
144 FAIL_IF((long) rc_p || bad_context);
/linux-master/tools/testing/selftests/powerpc/papr_sysparm/
H A Dpapr_sysparm.c20 FAIL_IF(devfd < 0);
21 FAIL_IF(close(devfd) != 0);
36 FAIL_IF(devfd < 0);
37 FAIL_IF(ioctl(devfd, PAPR_SYSPARM_IOC_GET, &sp) != 0);
38 FAIL_IF(sp.length == 0);
39 FAIL_IF(sp.length > sizeof(sp.data));
40 FAIL_IF(close(devfd) != 0);
55 FAIL_IF(devfd < 0);
58 FAIL_IF(ioctl(devfd, PAPR_SYSPARM_IOC_GET, &sp) != -1);
59 FAIL_IF(errn
[all...]
/linux-master/tools/testing/selftests/powerpc/ptrace/
H A Dptrace-vsx.c42 FAIL_IF(start_trace(child));
43 FAIL_IF(show_vsx(child, vsx));
44 FAIL_IF(validate_vsx(vsx, fp_load));
45 FAIL_IF(show_vmx(child, vmx));
46 FAIL_IF(validate_vmx(vmx, fp_load));
52 FAIL_IF(write_vsx(child, vsx));
53 FAIL_IF(write_vmx(child, vmx));
54 FAIL_IF(stop_trace(child));
H A Dptrace-tm-vsx.c89 FAIL_IF(start_trace(child));
90 FAIL_IF(show_vsx(child, vsx));
91 FAIL_IF(validate_vsx(vsx, fp_load));
92 FAIL_IF(show_vmx(child, vmx));
93 FAIL_IF(validate_vmx(vmx, fp_load));
94 FAIL_IF(show_vsx_ckpt(child, vsx));
95 FAIL_IF(validate_vsx(vsx, fp_load_ckpt));
96 FAIL_IF(show_vmx_ckpt(child, vmx));
97 FAIL_IF(validate_vmx(vmx, fp_load_ckpt));
103 FAIL_IF(write_vsx_ckp
[all...]
H A Dptrace-tm-tar.c94 FAIL_IF(start_trace(child));
95 FAIL_IF(show_tar_registers(child, regs));
99 FAIL_IF(validate_tar_registers(regs, TAR_2, PPR_2, DSCR_2));
100 FAIL_IF(show_tm_checkpointed_state(child, regs));
104 FAIL_IF(validate_tar_registers(regs, TAR_1, PPR_1, DSCR_1));
105 FAIL_IF(write_ckpt_tar_registers(child, TAR_4, PPR_4, DSCR_4));
110 FAIL_IF(stop_trace(child));
H A Dptrace-tm-spr.c26 FAIL_IF(regs->tm_tfhar != tfhar);
27 FAIL_IF((regs->tm_texasr == TM_KVM_SCHED) && (regs->tm_tfiar != 0));
99 FAIL_IF(start_trace(child));
100 FAIL_IF(show_tm_spr(child, (struct tm_spr_regs *)&pptr->regs));
106 FAIL_IF(stop_trace(child));
H A Dptrace-tm-spd-vsx.c101 FAIL_IF(start_trace(child));
102 FAIL_IF(show_vsx(child, vsx));
103 FAIL_IF(validate_vsx(vsx, fp_load));
104 FAIL_IF(show_vmx(child, vmx));
105 FAIL_IF(validate_vmx(vmx, fp_load));
106 FAIL_IF(show_vsx_ckpt(child, vsx));
107 FAIL_IF(validate_vsx(vsx, fp_load_ckpt));
108 FAIL_IF(show_vmx_ckpt(child, vmx));
109 FAIL_IF(validate_vmx(vmx, fp_load_ckpt));
116 FAIL_IF(write_vsx_ckp
[all...]
H A Dptrace-tm-spd-tar.c105 FAIL_IF(start_trace(child));
106 FAIL_IF(show_tar_registers(child, regs));
110 FAIL_IF(validate_tar_registers(regs, TAR_3, PPR_3, DSCR_3));
111 FAIL_IF(show_tm_checkpointed_state(child, regs));
115 FAIL_IF(validate_tar_registers(regs, TAR_1, PPR_1, DSCR_1));
116 FAIL_IF(write_ckpt_tar_registers(child, TAR_4, PPR_4, DSCR_4));
122 FAIL_IF(stop_trace(child));
H A Dptrace-tm-spd-gpr.c98 FAIL_IF(start_trace(child));
99 FAIL_IF(show_gpr(child, gpr));
100 FAIL_IF(validate_gpr(gpr, GPR_4));
101 FAIL_IF(show_fpr(child, fpr));
102 FAIL_IF(validate_fpr(fpr, FPR_4_REP));
103 FAIL_IF(show_ckpt_fpr(child, fpr));
104 FAIL_IF(validate_fpr(fpr, FPR_1_REP));
105 FAIL_IF(show_ckpt_gpr(child, gpr));
106 FAIL_IF(validate_gpr(gpr, GPR_1));
107 FAIL_IF(write_ckpt_gp
[all...]
H A Dptrace-tm-gpr.c92 FAIL_IF(start_trace(child));
93 FAIL_IF(show_gpr(child, gpr));
94 FAIL_IF(validate_gpr(gpr, GPR_2));
95 FAIL_IF(show_fpr(child, fpr));
96 FAIL_IF(validate_fpr(fpr, FPR_2_REP));
97 FAIL_IF(show_ckpt_fpr(child, fpr));
98 FAIL_IF(validate_fpr(fpr, FPR_1_REP));
99 FAIL_IF(show_ckpt_gpr(child, gpr));
100 FAIL_IF(validate_gpr(gpr, GPR_1));
101 FAIL_IF(write_ckpt_gp
[all...]
H A Dptrace-tar.c55 FAIL_IF(start_trace(child));
56 FAIL_IF(show_tar_registers(child, reg));
60 FAIL_IF(validate_tar_registers(reg, TAR_1, PPR_1, DSCR_1));
61 FAIL_IF(stop_trace(child));
67 FAIL_IF(start_trace(child));
68 FAIL_IF(write_tar_registers(child, TAR_2, PPR_2, DSCR_2));
72 FAIL_IF(stop_trace(child));
H A Dcore-pkey.c80 FAIL_IF(ret);
90 FAIL_IF(ret);
94 FAIL_IF(ret);
104 FAIL_IF(ret);
122 FAIL_IF(ret);
128 FAIL_IF(pkey1 < 0);
134 FAIL_IF(pkey2 < 0);
137 FAIL_IF(pkey3 < 0);
168 FAIL_IF(true);
206 FAIL_IF(re
[all...]
/linux-master/tools/testing/selftests/powerpc/include/
H A Dutils.h119 #define FAIL_IF(x) \ macro
/linux-master/tools/testing/selftests/powerpc/
H A Dutils.c599 FAIL_IF(!f);
/linux-master/tools/testing/selftests/powerpc/pmu/sampling_tests/
H A Dmmcra_thresh_marked_sample_test.c35 FAIL_IF(event_open(&event));
38 FAIL_IF(event_enable(&event));
43 FAIL_IF(event_disable(&event));
46 FAIL_IF(!collect_samples(event.mmap_buffer));
51 FAIL_IF(!intr_regs);
58 FAIL_IF(EV_CODE_EXTRACT(event.attr.config, thd_sel) !=
60 FAIL_IF(EV_CODE_EXTRACT(event.attr.config, thd_start) !=
62 FAIL_IF(EV_CODE_EXTRACT(event.attr.config, thd_stop) !=
64 FAIL_IF(EV_CODE_EXTRACT(event.attr.config, marked) !=
66 FAIL_IF((EV_CODE_EXTRAC
[all...]
/linux-master/tools/testing/selftests/powerpc/pmu/
H A Dlib.c24 FAIL_IF(write(write_pipe.write_fd, &c, 1) != 1);
25 FAIL_IF(read(read_pipe.read_fd, &c, 1) != 1);
36 FAIL_IF(read(read_pipe.read_fd, &c, 1) != 1);
37 FAIL_IF(c != PARENT_TOKEN);
46 FAIL_IF(write(write_pipe.write_fd, &c, 1) != 1);
55 FAIL_IF(write(write_pipe.write_fd, &c, 1) != 1);
109 FAIL_IF(bind_to_cpu(BIND_CPU_ANY) < 0);
/linux-master/tools/testing/selftests/powerpc/pmu/ebb/
H A Dmulti_ebb_procs_test.c46 FAIL_IF(event_open(&event));
52 FAIL_IF(ebb_event_enable(&event));
57 FAIL_IF(core_busy_loop());
58 FAIL_IF(ebb_check_mmcr0());
68 FAIL_IF(ebb_state.stats.ebb_count == 0);
82 FAIL_IF(bind_to_cpu(BIND_CPU_ANY) < 0);
H A Debb_vs_cpu_event_test.c31 FAIL_IF(event_open_with_cpu(event, cpu));
32 FAIL_IF(event_enable(event));
47 FAIL_IF(cpu < 0);
49 FAIL_IF(pipe(read_pipe.fds) == -1);
50 FAIL_IF(pipe(write_pipe.fds) == -1);
59 FAIL_IF(sync_with_child(read_pipe, write_pipe));
69 FAIL_IF(sync_with_child(read_pipe, write_pipe));
72 FAIL_IF(wait_for_child(pid));
73 FAIL_IF(event_disable(&event));
74 FAIL_IF(event_rea
[all...]
H A Dcpu_event_vs_ebb_test.c31 FAIL_IF(event_open_with_cpu(event, cpu));
32 FAIL_IF(event_enable(event));
47 FAIL_IF(cpu < 0);
49 FAIL_IF(pipe(read_pipe.fds) == -1);
50 FAIL_IF(pipe(write_pipe.fds) == -1);
71 FAIL_IF(sync_with_child(read_pipe, write_pipe));
75 FAIL_IF(wait_for_child(pid));
77 FAIL_IF(event_disable(&event));
78 FAIL_IF(event_read(&event));
H A Dcpu_event_pinned_vs_ebb_test.c33 FAIL_IF(event_open_with_cpu(event, cpu));
34 FAIL_IF(event_enable(event));
49 FAIL_IF(cpu < 0);
51 FAIL_IF(pipe(read_pipe.fds) == -1);
52 FAIL_IF(pipe(write_pipe.fds) == -1);
73 FAIL_IF(sync_with_child(read_pipe, write_pipe));
77 FAIL_IF(wait_for_child(pid) != 2);
79 FAIL_IF(event_disable(&event));
80 FAIL_IF(event_read(&event));
85 FAIL_IF(even
[all...]

Completed in 215 milliseconds

123456