/tools/lib/bpf/ |
D | bpf.c | 83 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/ |
D | header.c | 50 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/ |
D | mremap_dontunmap.c | 79 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/ |
D | tcp_hdr_options.c | 178 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 …]
|
D | probe_read_user_str.c | 16 memset(buf, 1, sizeof(buf)); in test_one_str() 36 memset(buf, 0, sizeof(buf)); in test_one_str()
|
D | xdp_link.c | 30 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/ |
D | liburing.h | 112 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/ |
D | user_msr_test.c | 42 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/ |
D | set-tai.c | 32 memset(&tx, 0, sizeof(tx)); in set_tai() 44 memset(&tx, 0, sizeof(tx)); in get_tai()
|
D | set-tz.c | 43 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/ |
D | htab_map_batch_ops.c | 50 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()
|
D | array_map_batch_ops.c | 35 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/ |
D | connect6_prog.c | 37 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/ |
D | psock_lib.h | 86 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()
|
D | tls.c | 129 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 …]
|
D | txtimestamp.c | 290 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/ |
D | ipcsocket.c | 47 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()
|
D | ionutils.c | 24 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/ |
D | test_stub.c | 15 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/ |
D | spidev_fdx.c | 28 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/ |
D | linux.c | 53 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/ |
D | validate.c | 28 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/ |
D | mem-functions.c | 62 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/ |
D | memset_64.S | 20 SYM_FUNC_START_WEAK(memset) 45 SYM_FUNC_END_ALIAS(memset) 46 EXPORT_SYMBOL(memset)
|
/tools/gpio/ |
D | gpio-watch.c | 42 memset(&req, 0, sizeof(req)); in main() 64 memset(&chg, 0, sizeof(chg)); in main()
|