Home
last modified time | relevance | path

Searched refs:memset (Results 1 – 25 of 370) sorted by relevance

12345678910>>...15

/tools/lib/bpf/
Dbpf.c83 memset(&attr, '\0', sizeof(attr)); in bpf_create_map_xattr()
163 memset(&attr, '\0', sizeof(attr)); in bpf_create_map_in_map_node()
208 memset(nrecord + expected_rec_size, 0, in alloc_zero_tailing_info()
232 memset(&attr, 0, sizeof(attr)); in bpf_load_program_xattr()
336 memset(&load_attr, 0, sizeof(struct bpf_load_program_attr)); in bpf_load_program()
355 memset(&attr, 0, sizeof(attr)); in bpf_verify_program()
375 memset(&attr, 0, sizeof(attr)); in bpf_map_update_elem()
388 memset(&attr, 0, sizeof(attr)); in bpf_map_lookup_elem()
400 memset(&attr, 0, sizeof(attr)); in bpf_map_lookup_elem_flags()
413 memset(&attr, 0, sizeof(attr)); in bpf_map_lookup_and_delete_elem()
[all …]
/tools/perf/arch/s390/util/
Dheader.c50 memset(manufacturer, 0, sizeof(manufacturer)); in get_cpuid()
51 memset(type, 0, sizeof(type)); in get_cpuid()
52 memset(model, 0, sizeof(model)); in get_cpuid()
53 memset(version, 0, sizeof(version)); in get_cpuid()
54 memset(authorization, 0, sizeof(authorization)); in get_cpuid()
/tools/testing/selftests/vm/
Dmremap_dontunmap.c79 memset(page_buffer, byte, page_size); in check_region_contains_byte()
107 memset(source_mapping, 'a', num_pages * page_size); in mremap_dontunmap_simple()
148 memset(source_mapping, 'a', num_pages * page_size); in mremap_dontunmap_simple_shmem()
194 memset(dest_mapping, 'X', num_pages * page_size); in mremap_dontunmap_simple_fixed()
200 memset(source_mapping, 'a', num_pages * page_size); in mremap_dontunmap_simple_fixed()
250 memset(source_mapping, 'a', num_pages * page_size); in mremap_dontunmap_partial_mapping()
302 memset(source_mapping, 'a', 5 * page_size); in mremap_dontunmap_partial_mapping_overwrite()
308 memset(dest_mapping, 'X', 10 * page_size); in mremap_dontunmap_partial_mapping_overwrite()
/tools/testing/selftests/bpf/prog_tests/
Dtcp_hdr_options.c178 memset(sk_fds, -1, sizeof(*sk_fds)); in sk_fds_connect()
298 memset(&skel->bss->passive_synack_out, 0, optsize); in reset_test()
299 memset(&skel->bss->passive_fin_out, 0, optsize); in reset_test()
301 memset(&skel->bss->passive_estab_in, 0, optsize); in reset_test()
302 memset(&skel->bss->passive_fin_in, 0, optsize); in reset_test()
304 memset(&skel->bss->active_syn_out, 0, optsize); in reset_test()
305 memset(&skel->bss->active_fin_out, 0, optsize); in reset_test()
307 memset(&skel->bss->active_estab_in, 0, optsize); in reset_test()
308 memset(&skel->bss->active_fin_in, 0, optsize); in reset_test()
315 memset(&exp_passive_estab_in, 0, optsize); in reset_test()
[all …]
Dprobe_read_user_str.c16 memset(buf, 1, sizeof(buf)); in test_one_str()
36 memset(buf, 0, sizeof(buf)); in test_one_str()
Dxdp_link.c30 memset(&prog_info, 0, sizeof(prog_info)); in test_xdp_link()
36 memset(&prog_info, 0, sizeof(prog_info)); in test_xdp_link()
122 memset(&link_info, 0, sizeof(link_info)); in test_xdp_link()
138 memset(&link_info, 0, sizeof(link_info)); in test_xdp_link()
/tools/io_uring/
Dliburing.h112 memset(sqe, 0, sizeof(*sqe)); in io_uring_prep_rw()
151 memset(sqe, 0, sizeof(*sqe)); in io_uring_prep_poll_add()
163 memset(sqe, 0, sizeof(*sqe)); in io_uring_prep_poll_remove()
171 memset(sqe, 0, sizeof(*sqe)); in io_uring_prep_fsync()
179 memset(sqe, 0, sizeof(*sqe)); in io_uring_prep_nop()
/tools/testing/selftests/kvm/x86_64/
Duser_msr_test.c42 memset(bitmap_00000000, 0xff, sizeof(bitmap_00000000)); in prepare_bitmaps()
43 memset(bitmap_00000000_write, 0xff, sizeof(bitmap_00000000_write)); in prepare_bitmaps()
44 memset(bitmap_40000000, 0xff, sizeof(bitmap_40000000)); in prepare_bitmaps()
45 memset(bitmap_c0000000, 0xff, sizeof(bitmap_c0000000)); in prepare_bitmaps()
46 memset(bitmap_c0000000_read, 0xff, sizeof(bitmap_c0000000_read)); in prepare_bitmaps()
/tools/testing/selftests/timers/
Dset-tai.c32 memset(&tx, 0, sizeof(tx)); in set_tai()
44 memset(&tx, 0, sizeof(tx)); in get_tai()
Dset-tz.c43 memset(&tz, 0, sizeof(tz)); in get_tz_min()
53 memset(&tz, 0, sizeof(tz)); in get_tz_dst()
/tools/testing/selftests/bpf/map_tests/
Dhtab_map_batch_ops.c50 memset(visited, 0, max_entries * sizeof(*visited)); in map_batch_verify()
130 memset(keys, 0, max_entries * sizeof(*keys)); in __test_map_lookup_and_delete_batch()
131 memset(values, 0, max_entries * value_size); in __test_map_lookup_and_delete_batch()
149 memset(keys, 0, max_entries * sizeof(*keys)); in __test_map_lookup_and_delete_batch()
150 memset(values, 0, max_entries * value_size); in __test_map_lookup_and_delete_batch()
215 memset(keys, 0, max_entries * sizeof(*keys)); in __test_map_lookup_and_delete_batch()
216 memset(values, 0, max_entries * value_size); in __test_map_lookup_and_delete_batch()
Darray_map_batch_ops.c35 memset(visited, 0, max_entries * sizeof(*visited)); in map_batch_verify()
85 memset(keys, 0, max_entries * sizeof(*keys)); in test_array_map_batch_ops()
86 memset(values, 0, max_entries * sizeof(*values)); in test_array_map_batch_ops()
/tools/testing/selftests/bpf/progs/
Dconnect6_prog.c37 memset(&tuple.ipv6.saddr, 0, sizeof(tuple.ipv6.saddr)); in connect_v6_prog()
38 memset(&tuple.ipv6.sport, 0, sizeof(tuple.ipv6.sport)); in connect_v6_prog()
79 memset(&sa, 0, sizeof(sa)); in connect_v6_prog()
/tools/testing/selftests/net/
Dpsock_lib.h86 memset(&saddr, 0, sizeof(saddr)); in pair_udp_open()
91 memset(&daddr, 0, sizeof(daddr)); in pair_udp_open()
115 memset(buf, payload, sizeof(buf)); in pair_udp_send_char()
Dtls.c129 memset(&tls12, 0, sizeof(tls12)); in FIXTURE_SETUP()
234 memset(buf, 1, test_payload_size); in chunked_sendfile()
332 memset(&msg, 0, sizeof(struct msghdr)); in TEST_F()
356 memset(&msg, 0, sizeof(struct msghdr)); in TEST_F()
381 memset(&msg, 0, sizeof(struct msghdr)); in TEST_F()
409 memset(&msg, 0, sizeof(struct msghdr)); in TEST_F()
446 memset(&msg, 0, sizeof(struct msghdr)); in TEST_F()
543 memset(&hdr, 0, sizeof(hdr)); in TEST_F()
608 memset(recv_mem, 0, total_len); in TEST_F()
624 memset(recv_mem, 0, total_len); in TEST_F()
[all …]
Dtxtimestamp.c290 memset(&events, 0, sizeof(events)); in __epoll()
301 memset(&pollfd, 0, sizeof(pollfd)); in __poll()
374 memset(&msg, 0, sizeof(msg)); in recv_errmsg()
375 memset(&entry, 0, sizeof(entry)); in recv_errmsg()
376 memset(ctrl, 0, sizeof(ctrl)); in recv_errmsg()
434 memset(iph, 0, sizeof(*iph)); in fill_header_ipv4()
452 memset(ip6h, 0, sizeof(*ip6h)); in fill_header_ipv6()
523 memset(&ev, 0, sizeof(ev)); in do_test()
578 memset(&msg, 0, sizeof(msg)); in do_test()
579 memset(buf, 'a' + i, total_len); in do_test()
[all …]
/tools/testing/selftests/android/ion/
Dipcsocket.c47 memset(&skaddr, 0, sizeof(skaddr)); in opensocket()
66 memset(&skaddr, 0, sizeof(skaddr)); in opensocket()
83 memset(&skaddr, 0, sizeof(skaddr)); in opensocket()
137 memset(&msgh, 0, sizeof(msgh)); in sendtosocket()
190 memset(&msgh, 0, sizeof(msgh)); in receivefromsocket()
Dionutils.c24 memset(ptr, 0xfd, len); in write_buffer()
69 memset(&query, 0, sizeof(query)); in ion_export_buffer_fd()
218 memset(&skdata, 0, sizeof(skdata)); in socket_send_fd()
242 memset(&skdata, 0, sizeof(skdata)); in socket_receive_fd()
/tools/testing/selftests/bpf/
Dtest_stub.c15 memset(&attr, 0, sizeof(struct bpf_prog_load_attr)); in bpf_prog_test_load()
32 memset(&load_attr, 0, sizeof(struct bpf_load_program_attr)); in bpf_test_load_program()
/tools/spi/
Dspidev_fdx.c28 memset(buf, 0, sizeof buf); in do_read()
55 memset(xfer, 0, sizeof xfer); in do_msg()
56 memset(buf, 0, sizeof buf); in do_msg()
/tools/testing/radix-tree/
Dlinux.c53 memset(p, 0, cachep->size); in kmem_cache_alloc()
70 memset(objp, POISON_FREE, cachep->size); in kmem_cache_free()
93 memset(ret, 0, size); in kmalloc()
/tools/testing/selftests/powerpc/copyloops/
Dvalidate.c28 memset(src, POISON, BUFLEN); in do_one()
29 memset(dst, POISON, BUFLEN); in do_one()
79 memset(redzone, POISON, BUFLEN); in test_copy_loop()
/tools/perf/bench/
Dmem-functions.c62 memset_t memset; member
229 memset(src, 0, size); in memcpy_prefault()
307 memset_t fn = r->fn.memset; in do_memset_cycles()
327 memset_t fn = r->fn.memset; in do_memset_gettimeofday()
354 .fn.memset = memset },
357 # define MEMSET_FN(_fn, _name, _desc) { .name = _name, .desc = _desc, .fn.memset = _fn },
/tools/arch/x86/lib/
Dmemset_64.S20 SYM_FUNC_START_WEAK(memset)
45 SYM_FUNC_END_ALIAS(memset)
46 EXPORT_SYMBOL(memset)
/tools/gpio/
Dgpio-watch.c42 memset(&req, 0, sizeof(req)); in main()
64 memset(&chg, 0, sizeof(chg)); in main()

12345678910>>...15