/external/linux-kselftest/tools/testing/selftests/powerpc/pmu/ebb/ |
H A D | fork_cleanup_test.c | 30 FAIL_IF(mfspr(SPRN_BESCR) != 0); 31 FAIL_IF(mfspr(SPRN_EBBHR) != 0); 32 FAIL_IF(mfspr(SPRN_EBBRR) != 0); 34 FAIL_IF(catch_sigill(write_pmc1)); 37 FAIL_IF(event_read(&event)); 52 FAIL_IF(event_open(&event)); 58 FAIL_IF(ebb_event_enable(&event)); 70 FAIL_IF(wait_for_child(pid));
|
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); 50 FAIL_IF(bind_to_cpu(cpu)); 52 FAIL_IF(pipe(read_pipe.fds) == -1); 53 FAIL_IF(pipe(write_pipe.fds) == -1); 74 FAIL_IF(sync_with_child(read_pipe, write_pipe)); 78 FAIL_IF(wait_for_child(pid) != 2); 80 FAIL_IF(event_disable(&event)); 81 FAIL_IF(event_rea [all...] |
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); 48 FAIL_IF(bind_to_cpu(cpu)); 50 FAIL_IF(pipe(read_pipe.fds) == -1); 51 FAIL_IF(pipe(write_pipe.fds) == -1); 60 FAIL_IF(sync_with_child(read_pipe, write_pipe)); 70 FAIL_IF(sync_with_child(read_pipe, write_pipe)); 73 FAIL_IF(wait_for_child(pid)); 74 FAIL_IF(event_disabl [all...] |
H A D | close_clears_pmcc_test.c | 28 FAIL_IF(event_open(&event)); 33 FAIL_IF(ebb_event_enable(&event)); 38 FAIL_IF(core_busy_loop()); 43 FAIL_IF(ebb_state.stats.ebb_count == 0); 48 FAIL_IF(catch_sigill(write_pmc1));
|
H A D | ebb_on_child_test.c | 27 FAIL_IF(wait_for_parent(read_pipe)); 28 FAIL_IF(notify_parent(write_pipe)); 32 FAIL_IF(wait_for_parent(read_pipe)); 33 FAIL_IF(notify_parent(write_pipe)); 52 FAIL_IF(pipe(read_pipe.fds) == -1); 53 FAIL_IF(pipe(write_pipe.fds) == -1); 61 FAIL_IF(sync_with_child(read_pipe, write_pipe)); 72 FAIL_IF(event_open_with_pid(&event, pid)); 73 FAIL_IF(ebb_event_enable(&event)); 75 FAIL_IF(sync_with_chil [all...] |
H A D | task_event_pinned_vs_ebb_test.c | 32 FAIL_IF(event_open_with_pid(event, child_pid)); 33 FAIL_IF(event_enable(event)); 47 FAIL_IF(pipe(read_pipe.fds) == -1); 48 FAIL_IF(pipe(write_pipe.fds) == -1); 69 FAIL_IF(sync_with_child(read_pipe, write_pipe)); 73 FAIL_IF(wait_for_child(pid) != 2); 74 FAIL_IF(event_disable(&event)); 75 FAIL_IF(event_read(&event)); 79 FAIL_IF(event.result.value == 0); 84 FAIL_IF(even [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); 48 FAIL_IF(bind_to_cpu(cpu)); 50 FAIL_IF(pipe(read_pipe.fds) == -1); 51 FAIL_IF(pipe(write_pipe.fds) == -1); 72 FAIL_IF(sync_with_child(read_pipe, write_pipe)); 76 FAIL_IF(wait_for_child(pid)); 78 FAIL_IF(event_disable(&event)); 79 FAIL_IF(event_rea [all...] |
H A D | ebb_on_willing_child_test.c | 25 FAIL_IF(wait_for_parent(read_pipe)); 32 FAIL_IF(notify_parent(write_pipe)); 35 FAIL_IF(core_busy_loop()); 45 FAIL_IF(ebb_state.stats.ebb_count == 0); 59 FAIL_IF(pipe(read_pipe.fds) == -1); 60 FAIL_IF(pipe(write_pipe.fds) == -1); 69 FAIL_IF(sync_with_child(read_pipe, write_pipe)); 80 FAIL_IF(event_open_with_pid(&event, pid)); 81 FAIL_IF(ebb_event_enable(&event)); 84 FAIL_IF(wait_for_chil [all...] |
H A D | ebb_lmr.c | 63 FAIL_IF(lmr_count != SECTION_LONGS); 65 FAIL_IF(lmr_count); 82 FAIL_IF(posix_memalign((void **)&test_mem, SIZE, SIZE) != 0); 86 FAIL_IF(mfspr(SPRN_LMSER) != 0); 90 FAIL_IF(mfspr(SPRN_LMRR) != ((unsigned long)test_mem | LM_SIZE)); 96 FAIL_IF(lmr_count != 0); 101 FAIL_IF(mfspr(SPRN_LMSER) != (1UL << 63)); 106 FAIL_IF(!(mfspr(SPRN_BESCR) & BESCR_LME)); 110 FAIL_IF(lmr_count != 1); // exactly one exception 111 FAIL_IF(mfsp [all...] |
H A D | cycles_test.c | 28 FAIL_IF(event_open(&event)); 33 FAIL_IF(ebb_event_enable(&event)); 38 FAIL_IF(core_busy_loop()); 39 FAIL_IF(ebb_check_mmcr0()); 51 FAIL_IF(ebb_state.stats.ebb_count == 0); 52 FAIL_IF(!ebb_check_count(1, sample_period, 100));
|
H A D | event_attributes_test.c | 24 FAIL_IF(event_open(&event)); 31 FAIL_IF(event_open(&event) == 0); 38 FAIL_IF(event_open(&event) == 0); 45 FAIL_IF(event_open(&event) == 0); 52 FAIL_IF(event_open(&event) == 0); 59 FAIL_IF(event_open(&event) == 0); 66 FAIL_IF(event_open(&event) == 0); 71 FAIL_IF(event_open(&leader)); 77 FAIL_IF(event_open_with_group(&event, leader.fd)); 84 FAIL_IF(event_ope [all...] |
H A D | task_event_vs_ebb_test.c | 30 FAIL_IF(event_open_with_pid(event, child_pid)); 31 FAIL_IF(event_enable(event)); 45 FAIL_IF(pipe(read_pipe.fds) == -1); 46 FAIL_IF(pipe(write_pipe.fds) == -1); 67 FAIL_IF(sync_with_child(read_pipe, write_pipe)); 71 FAIL_IF(wait_for_child(pid)); 72 FAIL_IF(event_disable(&event)); 73 FAIL_IF(event_read(&event));
|
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()); 70 FAIL_IF(ebb_state.stats.ebb_count == 0); 85 FAIL_IF(cpu < 0); 86 FAIL_IF(bind_to_cpu(cpu));
|
H A D | no_handler_test.c | 31 FAIL_IF(event_open(&event)); 32 FAIL_IF(ebb_event_enable(&event)); 35 FAIL_IF(val != 0); 49 FAIL_IF(val != 0x0000000080000080);
|
H A D | ebb_lmr_regs.c | 27 FAIL_IF(mfspr(SPRN_LMRR) != (i << 25)); 28 FAIL_IF(mfspr(SPRN_LMSER) != i);
|
H A D | reg_access_test.c | 26 FAIL_IF(val != expected); 32 FAIL_IF(val != expected);
|
H A D | instruction_count_test.c | 122 FAIL_IF(event_open(&event)); 123 FAIL_IF(ebb_event_enable(&event)); 135 FAIL_IF(do_count_loop(&event, 0x100000, overhead, true)); 138 FAIL_IF(do_count_loop(&event, 0xa00000, overhead, true)); 141 FAIL_IF(do_count_loop(&event, 0x6400000, overhead, true)); 144 FAIL_IF(do_count_loop(&event, 0x40000000, overhead, true)); 147 FAIL_IF(do_count_loop(&event, 0x400000000, overhead, true)); 150 FAIL_IF(do_count_loop(&event, 0x1000000000, overhead, true)); 153 FAIL_IF(do_count_loop(&event, 0x2000000000, overhead, true));
|
H A D | cycles_with_mmcr2_test.c | 38 FAIL_IF(event_open(&event)); 44 FAIL_IF(ebb_event_enable(&event)); 60 FAIL_IF(core_busy_loop()); 80 FAIL_IF(ebb_state.stats.ebb_count == 0); 85 FAIL_IF(bad_mmcr2);
|
H A D | pmae_handling_test.c | 70 FAIL_IF(event_open(&event)); 75 FAIL_IF(ebb_event_enable(&event)); 80 FAIL_IF(core_busy_loop()); 94 FAIL_IF(ebb_state.stats.ebb_count == 0); 95 FAIL_IF(mmcr0_mismatch);
|
H A D | multi_counter_test.c | 40 FAIL_IF(event_open_with_group(&events[i], group_fd)); 53 FAIL_IF(ioctl(events[0].fd, PERF_EVENT_IOC_ENABLE, PERF_IOC_FLAG_GROUP)); 54 FAIL_IF(event_read(&events[0])); 66 FAIL_IF(core_busy_loop()); 67 FAIL_IF(ebb_check_mmcr0()); 85 FAIL_IF(ebb_state.stats.ebb_count == 0);
|
/external/linux-kselftest/tools/testing/selftests/powerpc/pmu/ |
H A D | l3_bank_test.c | 24 FAIL_IF(!p); 28 FAIL_IF(event_open(&event)); 36 FAIL_IF(event.result.running == 0); 37 FAIL_IF(event.result.enabled == 0);
|
H A D | per_event_excludes.c | 30 FAIL_IF(!platform); 63 FAIL_IF(event_open(&events[0])); 71 FAIL_IF(event_open_with_group(&events[i], events[0].fd)); 86 FAIL_IF(event_read(&events[i])); 95 FAIL_IF(events[i].result.running != events[i].result.enabled); 103 FAIL_IF(events[0].result.value < events[i].result.value);
|
/external/linux-kselftest/tools/testing/selftests/powerpc/context_switch/ |
H A D | cp_abort.c | 82 FAIL_IF(sched_setaffinity(0, sizeof(cpuset), &cpuset)); 84 FAIL_IF(pipe(fd1) || pipe(fd2)); 87 FAIL_IF(pid < 0); 91 FAIL_IF((write(fd1[WRITE_FD], &c, 1)) != 1); 92 FAIL_IF((read(fd2[READ_FD], &c, 1)) != 1); 94 FAIL_IF(paste(buf) & 0x20000000); 98 FAIL_IF((read(fd1[READ_FD], &c, 1)) != 1); 100 FAIL_IF((write(fd2[WRITE_FD], &c, 1) != 1));
|
/external/pcre/dist2/src/sljit/ |
H A D | sljitNativeMIPS_64.c | 44 FAIL_IF(push_inst(compiler, LUI | TA(dst_ar) | IMM(imm >> 16), dst_ar)); 79 FAIL_IF(push_inst(compiler, LUI | TA(dst_ar) | IMM(uimm >> 48), dst_ar)); 81 FAIL_IF(push_inst(compiler, ORI | SA(dst_ar) | TA(dst_ar) | IMM(uimm >> 32), dst_ar)); 88 FAIL_IF(push_inst(compiler, ins | TA(dst_ar) | DA(dst_ar), dst_ar)); 113 FAIL_IF(push_inst(compiler, DSLL | TA(dst_ar) | DA(dst_ar) | SH_IMM(shift - shift2), dst_ar)); 114 FAIL_IF(push_inst(compiler, ORI | SA(dst_ar) | TA(dst_ar) | IMM(uimm >> 48), dst_ar)); 115 FAIL_IF(push_inst(compiler, DSLL | TA(dst_ar) | DA(dst_ar) | SH_IMM(shift2), dst_ar)); 127 FAIL_IF(push_inst(compiler, op_imm | S(src1) | TA(EQUAL_FLAG) | IMM(src2), EQUAL_FLAG)); \ 129 FAIL_IF(push_inst(compiler, op_imm | S(src1) | T(dst) | IMM(src2), DR(dst))); \ 133 FAIL_IF(push_ins [all...] |
H A D | sljitNativeMIPS_32.c | 37 FAIL_IF(push_inst(compiler, LUI | TA(dst_ar) | IMM(imm >> 16), dst_ar)); 44 FAIL_IF(push_inst(compiler, op_imm | S(src1) | TA(EQUAL_FLAG) | IMM(src2), EQUAL_FLAG)); \ 46 FAIL_IF(push_inst(compiler, op_imm | S(src1) | T(dst) | IMM(src2), DR(dst))); \ 50 FAIL_IF(push_inst(compiler, op_norm | S(src1) | T(src2) | DA(EQUAL_FLAG), EQUAL_FLAG)); \ 52 FAIL_IF(push_inst(compiler, op_norm | S(src1) | T(src2) | D(dst), DR(dst))); \ 58 FAIL_IF(push_inst(compiler, op_imm | T(src1) | DA(EQUAL_FLAG) | SH_IMM(src2), EQUAL_FLAG)); \ 60 FAIL_IF(push_inst(compiler, op_imm | T(src1) | D(dst) | SH_IMM(src2), DR(dst))); \ 64 FAIL_IF(push_inst(compiler, op_v | S(src2) | T(src1) | DA(EQUAL_FLAG), EQUAL_FLAG)); \ 66 FAIL_IF(push_inst(compiler, op_v | S(src2) | T(src1) | D(dst), DR(dst))); \ 90 FAIL_IF(push_ins [all...] |