/tools/testing/selftests/powerpc/stringloops/ |
D | Makefile | 7 build_32bit = $(shell if ($(CC) $(CFLAGS) -m32 -o /dev/null memcmp.c >/dev/null 2>&1) then echo "1"… 11 $(OUTPUT)/memcmp_64: memcmp.c ../utils.c 15 $(OUTPUT)/memcmp_32: memcmp.c
|
/tools/testing/selftests/bpf/prog_tests/ |
D | varlen.c | 46 CHECK(memcmp(bss->payload1, exp_str, size1 + size2), "content_check", in test_varlen() 52 CHECK(memcmp(data->payload2, exp_str, size1 + size2), "content_check", in test_varlen() 58 CHECK(memcmp(data->payload3, exp_str, size1 + size2), "content_check", in test_varlen() 64 CHECK(memcmp(data->payload4, exp_str, size1 + size2), "content_check", in test_varlen()
|
D | bpf_obj_id.c | 130 !memcmp(jited_insns, zeros, sizeof(zeros))) || in test_bpf_obj_id() 132 !memcmp(xlated_insns, zeros, sizeof(zeros)) || in test_bpf_obj_id() 150 !!memcmp(jited_insns, zeros, sizeof(zeros)), in test_bpf_obj_id() 151 !!memcmp(xlated_insns, zeros, sizeof(zeros)), in test_bpf_obj_id() 235 memcmp(&prog_info, &prog_infos[i], info_len) || in test_bpf_obj_id() 240 memcmp(&prog_info, &prog_infos[i], info_len), in test_bpf_obj_id() 282 memcmp(&map_info, &map_infos[i], info_len) || in test_bpf_obj_id() 287 memcmp(&map_info, &map_infos[i], info_len), in test_bpf_obj_id() 326 cmp_res = memcmp(&link_info, &link_infos[i], in test_bpf_obj_id()
|
D | probe_read_user_str.c | 31 err = memcmp(skel->bss->buf, str, len); in test_one_str() 37 err = memcmp(skel->bss->buf + len, buf, sizeof(buf) - len); in test_one_str()
|
D | probe_user.c | 61 if (CHECK(memcmp(&tmp, &orig, sizeof(orig)), "check_kprobe_res", in test_probe_user() 69 if (CHECK(memcmp(&curr, &tmp, sizeof(tmp)), "check_kprobe_res", in test_probe_user()
|
D | sock_fields.c | 141 memcmp(listen_sk.src_ip6, &in6addr_loopback, in check_result() 155 memcmp(srv_sk.src_ip6, &in6addr_loopback, in check_result() 157 memcmp(srv_sk.dst_ip6, &in6addr_loopback, in check_result() 170 memcmp(cli_sk.src_ip6, &in6addr_loopback, in check_result() 172 memcmp(cli_sk.dst_ip6, &in6addr_loopback, in check_result()
|
D | global_data.c | 63 CHECK(err || memcmp(str, tests[i].str, sizeof(str)), in test_global_data_string() 97 CHECK(err || memcmp(&val, &tests[i].val, sizeof(val)), in test_global_data_struct()
|
D | global_data_init.c | 49 if (CHECK(!buff || err || memcmp(buff, newval, sz), in test_global_data_init()
|
/tools/testing/selftests/kvm/s390x/ |
D | resets.c | 96 TEST_ASSERT(!memcmp(®s.gprs, regs_null, sizeof(regs.gprs)), "grs == 0"); in assert_clear() 99 TEST_ASSERT(!memcmp(&sregs.acrs, regs_null, sizeof(sregs.acrs)), "acrs == 0"); in assert_clear() 102 TEST_ASSERT(!memcmp(&fpu.fprs, regs_null, sizeof(fpu.fprs)), "fprs == 0"); in assert_clear() 105 TEST_ASSERT(!memcmp(sync_regs->gprs, regs_null, sizeof(sync_regs->gprs)), in assert_clear() 108 TEST_ASSERT(!memcmp(sync_regs->acrs, regs_null, sizeof(sync_regs->acrs)), in assert_clear() 111 TEST_ASSERT(!memcmp(sync_regs->vrs, regs_null, sizeof(sync_regs->vrs)), in assert_clear() 140 TEST_ASSERT(!memcmp(&sregs.crs[1], regs_null, sizeof(sregs.crs[1]) * 12), in assert_initial() 148 TEST_ASSERT(!memcmp(&sync_regs->crs[1], regs_null, 8 * 12), in assert_initial()
|
/tools/testing/selftests/net/ |
D | tls.c | 95 EXPECT_EQ(memcmp(buf, test_str, send_len), 0); in TEST_F() 210 EXPECT_EQ(memcmp(test_str, recv_buf, to_send), 0); in TEST_F() 282 EXPECT_EQ(memcmp(buf, recv_mem, send_len), 0); in TEST_F() 294 EXPECT_EQ(memcmp(buf, test_str, send_len), 0); in TEST_F() 308 EXPECT_EQ(memcmp(buf, test_str, send_len), 0); in TEST_F() 337 EXPECT_EQ(memcmp(buf, test_str, send_len), 0); in TEST_F() 365 EXPECT_EQ(memcmp(buf + SEND_LEN * i, in TEST_F() 424 EXPECT_EQ(memcmp(test_strs[i], buf + len_cmp, in TEST_F() 478 EXPECT_EQ(memcmp(mem_send, mem_recv, send_len), 0); in TEST_F() 496 EXPECT_EQ(memcmp(mem_send, mem_recv, send_len), 0); in TEST_F() [all …]
|
/tools/testing/selftests/powerpc/copyloops/ |
D | validate.c | 38 if (memcmp(dstp, srcp, len)) { in do_one() 50 if (memcmp(dst, redzone, dstp - dst)) { in do_one() 56 if (memcmp(dstp+len, redzone, dst+BUFLEN-(dstp+len))) { in do_one()
|
/tools/testing/selftests/proc/ |
D | setns-sysvipc.c | 124 assert(memcmp(buf, S32, strlen(S32)) == 0); in main() 126 assert(memcmp(buf, S64, strlen(S64)) == 0); in main()
|
D | proc-pid-vm.c | 327 assert(memcmp(buf, buf0, strlen(buf0)) == 0); in main() 329 assert(memcmp(buf + strlen(buf0), str_vsyscall, strlen(str_vsyscall)) == 0); in main() 348 assert(memcmp(buf, buf0, strlen(buf0)) == 0); in main() 404 assert(memcmp(buf, bufr, strlen(bufr)) == 0); in main()
|
D | setns-dcache.c | 125 assert(memcmp(buf, S, strlen(S)) == 0); in main()
|
/tools/perf/tests/ |
D | sample-parsing.c | 27 if (memcmp(&s1->m, &s2->m, sizeof(s1->m))) { \ 94 if (memcmp(s1->raw_data, s2->raw_data, s1->raw_size)) { in samples_same() 114 memcmp(s1->user_regs.regs, s2->user_regs.regs, sz))) { in samples_same() 122 if (memcmp(s1->user_stack.data, s2->user_stack.data, in samples_same() 145 memcmp(s1->intr_regs.regs, s2->intr_regs.regs, sz))) { in samples_same() 159 if (memcmp(s1->aux_sample.data, s2->aux_sample.data, in samples_same()
|
D | pe-file-parsing.c | 42 TEST_ASSERT_VAL("Wrong build_id", !memcmp(bid.data, expect_build_id, in run_dir() 54 TEST_ASSERT_VAL("Wrong build_id", !memcmp(bid.data, expect_build_id, in run_dir()
|
/tools/testing/selftests/powerpc/math/ |
D | vsx_preempt.c | 55 if (memcmp(&a[i + 12], &zero, sizeof(vector int)) == 0) { in vsx_memcmp() 61 if (memcmp(a, &a[12], 12 * sizeof(vector int))) { in vsx_memcmp()
|
/tools/testing/selftests/powerpc/tm/ |
D | tm-signal-context-chk-vmx.c | 64 fail = memcmp(ucp->uc_mcontext.v_regs->vrregs[VMX20 + i], in signal_usr1() 82 fail = memcmp(tm_ucp->uc_mcontext.v_regs->vrregs[VMX20 + i], in signal_usr1()
|
D | tm-signal-context-chk-vsx.c | 109 fail = memcmp(vsx, &vsxs[i], sizeof(vector int)); in signal_usr1() 133 fail = memcmp(vsx_tm, &vsxs[NV_VSX_REGS + i], sizeof(vector int)); in signal_usr1()
|
/tools/perf/util/ |
D | trace-event-read.c | 203 if (memcmp(buf, "header_page", 12) != 0) { in read_header_files() 233 if (memcmp(buf, "header_event", 13) != 0) { in read_header_files() 394 if (memcmp(buf, test, 3) != 0) { in trace_report() 401 if (memcmp(buf, "tracing", 7) != 0) { in trace_report()
|
D | path.c | 40 if (!memcmp(path, "./", 2)) { in cleanup_path()
|
D | zlib.c | 96 memcmp(buf, magic, sizeof(buf)) == 0 : false; in gzip_is_compressed()
|
D | symbol-minimal.c | 65 if (memcmp(name, "GNU", sizeof("GNU")) == 0) { in read_build_id() 106 if (memcmp(e_ident, ELFMAG, SELFMAG) || in filename__read_build_id() 311 if (memcmp(e_ident, ELFMAG, SELFMAG) || in fd__is_64_bit()
|
/tools/testing/selftests/memfd/ |
D | fuse_test.c | 316 if (was_sealed && memcmp(p, zero, mfd_def_size)) { in main() 319 } else if (!was_sealed && !memcmp(p, zero, mfd_def_size)) { in main()
|
/tools/objtool/ |
D | orc_gen.c | 170 if (!memcmp(&prev_orc, &orc, sizeof(orc))) in orc_create() 195 if (!memcmp(&prev_orc, &orc, sizeof(orc))) in orc_create()
|