Home
last modified time | relevance | path

Searched refs:memcmp (Results 1 – 25 of 94) sorted by relevance

1234

/tools/testing/selftests/powerpc/stringloops/
DMakefile7 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/
Dvarlen.c46 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()
Dbpf_obj_id.c130 !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()
Dprobe_read_user_str.c31 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()
Dprobe_user.c61 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()
Dsock_fields.c141 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()
Dglobal_data.c63 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()
Dglobal_data_init.c49 if (CHECK(!buff || err || memcmp(buff, newval, sz), in test_global_data_init()
/tools/testing/selftests/kvm/s390x/
Dresets.c96 TEST_ASSERT(!memcmp(&regs.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/
Dtls.c95 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/
Dvalidate.c38 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/
Dsetns-sysvipc.c124 assert(memcmp(buf, S32, strlen(S32)) == 0); in main()
126 assert(memcmp(buf, S64, strlen(S64)) == 0); in main()
Dproc-pid-vm.c327 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()
Dsetns-dcache.c125 assert(memcmp(buf, S, strlen(S)) == 0); in main()
/tools/perf/tests/
Dsample-parsing.c27 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()
Dpe-file-parsing.c42 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/
Dvsx_preempt.c55 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/
Dtm-signal-context-chk-vmx.c64 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()
Dtm-signal-context-chk-vsx.c109 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/
Dtrace-event-read.c203 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()
Dpath.c40 if (!memcmp(path, "./", 2)) { in cleanup_path()
Dzlib.c96 memcmp(buf, magic, sizeof(buf)) == 0 : false; in gzip_is_compressed()
Dsymbol-minimal.c65 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/
Dfuse_test.c316 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/
Dorc_gen.c170 if (!memcmp(&prev_orc, &orc, sizeof(orc))) in orc_create()
195 if (!memcmp(&prev_orc, &orc, sizeof(orc))) in orc_create()

1234