/linux-master/tools/testing/selftests/powerpc/papr_vpd/ |
H A D | papr_vpd.c | 23 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 D | fpu_signal.c | 79 FAIL_IF(!tids); 85 FAIL_IF(rc); 116 FAIL_IF((long) rc_p || bad_context);
|
H A D | vmx_preempt.c | 67 FAIL_IF(!tids); 73 FAIL_IF(rc); 103 FAIL_IF((long) rc_p);
|
H A D | fpu_syscall.c | 56 FAIL_IF(pid == -1); 59 /* Can't FAIL_IF(pid2 == -1); because already forked once */ 80 FAIL_IF(ret || child_ret);
|
H A D | fpu_preempt.c | 58 FAIL_IF(!tids); 64 FAIL_IF(rc); 94 FAIL_IF((long) rc_p);
|
H A D | vmx_signal.c | 104 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 D | papr_sysparm.c | 20 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 D | ptrace-vsx.c | 42 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 D | ptrace-tm-vsx.c | 89 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 D | ptrace-tm-tar.c | 94 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 D | ptrace-tm-spr.c | 26 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 D | ptrace-tm-spd-vsx.c | 101 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 D | ptrace-tm-spd-tar.c | 105 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 D | ptrace-tm-spd-gpr.c | 98 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 D | ptrace-tm-gpr.c | 92 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 D | ptrace-tar.c | 55 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 D | core-pkey.c | 80 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 D | utils.h | 119 #define FAIL_IF(x) \ macro
|
/linux-master/tools/testing/selftests/powerpc/ |
H A D | utils.c | 599 FAIL_IF(!f);
|
/linux-master/tools/testing/selftests/powerpc/pmu/sampling_tests/ |
H A D | mmcra_thresh_marked_sample_test.c | 35 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 D | lib.c | 24 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 D | multi_ebb_procs_test.c | 46 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 D | ebb_vs_cpu_event_test.c | 31 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 D | cpu_event_vs_ebb_test.c | 31 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 D | cpu_event_pinned_vs_ebb_test.c | 33 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...] |