Home
last modified time | relevance | path

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

12345

/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/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/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.c58 if (CHECK(memcmp(&tmp, &orig, sizeof(orig)), "check_kprobe_res", in test_probe_user()
66 if (CHECK(memcmp(&curr, &tmp, sizeof(tmp)), "check_kprobe_res", in test_probe_user()
Dsnprintf.c60 ASSERT_OK(memcmp(skel->bss->sym_out, exp_sym_out, in test_snprintf_positive()
64 ASSERT_OK(memcmp(skel->bss->addr_out, exp_addr_out, in test_snprintf_positive()
Dtask_pt_regs.c40 match = !memcmp(&skel->bss->current_regs, &skel->bss->ctx_regs, in test_task_pt_regs()
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()
Dsyscall.c41 ASSERT_OK(memcmp(verifier_log, "processed", sizeof("processed") - 1), in test_syscall()
/tools/testing/selftests/net/
Dtls.c136 EXPECT_EQ(memcmp(buf, test_str, send_len), 0); in TEST_F()
265 EXPECT_EQ(memcmp(test_str, recv_buf, to_send), 0); in TEST_F()
339 EXPECT_EQ(memcmp(buf, recv_mem, send_len), 0); in TEST_F()
351 EXPECT_EQ(memcmp(buf, test_str, send_len), 0); in TEST_F()
365 EXPECT_EQ(memcmp(buf, test_str, send_len), 0); in TEST_F()
394 EXPECT_EQ(memcmp(buf, test_str, send_len), 0); in TEST_F()
422 EXPECT_EQ(memcmp(buf + SEND_LEN * i, in TEST_F()
481 EXPECT_EQ(memcmp(test_strs[i], buf + len_cmp, in TEST_F()
535 EXPECT_EQ(memcmp(mem_send, mem_recv, send_len), 0); in TEST_F()
553 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()
165 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/nci/
Dnci_dev.c334 if (memcmp(nci_reset_cmd, buf, len)) in virtual_dev_open()
343 if (memcmp(nci_init_cmd, buf, len)) in virtual_dev_open()
352 if (memcmp(nci_rf_disc_map_cmd, buf, len)) in virtual_dev_open()
374 if (memcmp(nci_reset_cmd, buf, len)) in virtual_dev_open_v2()
384 if (memcmp(nci_init_cmd_v2, buf, len)) in virtual_dev_open_v2()
393 if (memcmp(nci_rf_disc_map_cmd, buf, len)) in virtual_dev_open_v2()
465 if (memcmp(nci_reset_cmd, buf, len)) in virtual_deinit()
487 if (memcmp(nci_reset_cmd, buf, len)) in virtual_deinit_v2()
550 if (memcmp(nci_rf_discovery_cmd, buf, len)) in virtual_poll_start()
572 if (memcmp(nci_rf_deact_cmd, buf, len)) in virtual_poll_stop()
[all …]
/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()
/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()

12345