Home
last modified time | relevance | path

Searched refs:malloc (Results 751 - 775 of 1078) sorted by relevance

1...<<31323334353637383940>>...44

/test/testfwk/arkxtest/uitest/addon/
H A Dscreen_copy.cpp310 auto buf = (uint8_t *)malloc(BUF_SIZE); in StartScreenCopy()
/test/xts/acts/commonlibrary/thirdparty/musl/entry/src/main/cpp/
H A Dxattrndk.cpp22 #include <malloc.h>
/test/xts/acts/kernel_lite/process_posix/src/
H A DPthreadAttrTest.cpp227 stackAddr = malloc(PTHREAD_STACK_MIN); in HWTEST_F()
/test/xts/acts/multimedia/image/image_js_standard/imagePackingNDK/entry/src/main/cpp/napi/
H A Dimage_packing_test.cpp99 *buffer = (char*)malloc((*bufferSize) + 1); in GetStringProperty()
/test/xts/dcts/distributedhardware/distributedscreentest/
H A Ddecoder_demo.cpp249 char *fileBuffer = static_cast<char *>(malloc(sizeof(char) * (*frameLen) + 1)); in InputFunc()
/test/xts/device_attest/services/core/utils/
H A Dattest_utils.c251 void *addr = malloc(size); in AttestMemAlloc()
/test/xts/device_attest_lite/services/core/utils/
H A Dattest_utils.c253 void *addr = malloc(size); in AttestMemAlloc()
/test/xts/hats/kernel/syscalls/mem/mmap/
H A DMmapSyscallApiTest.cpp24 #include <malloc.h>
/kernel/linux/linux-5.10/tools/objtool/
H A Dcheck.c376 insn = malloc(sizeof(*insn)); in decode_instructions()
378 WARN("malloc failed"); in decode_instructions()
1323 orig_alt_group = malloc(sizeof(*orig_alt_group)); in handle_group_alt()
1325 WARN("malloc failed"); in handle_group_alt()
1349 new_alt_group = malloc(sizeof(*new_alt_group)); in handle_group_alt()
1351 WARN("malloc failed"); in handle_group_alt()
1363 nop = malloc(sizeof(*nop)); in handle_group_alt()
1365 WARN("malloc failed"); in handle_group_alt()
1532 alt = malloc(sizeof(*alt)); in add_special_section_alts()
1534 WARN("malloc faile in add_special_section_alts()
[all...]
/kernel/linux/linux-5.10/tools/perf/util/
H A Dparse-events.c1575 list = malloc(sizeof(struct list_head)); in parse_events_multi_pmu_add()
1587 head = malloc(sizeof(struct list_head)); in parse_events_multi_pmu_add()
1759 /* list_event is assumed to point to malloc'ed memory */
2013 perf_pmu_events_list = malloc(sizeof(struct perf_pmu_event_symbol) * len); in perf_pmu__parse_init()
2054 list = malloc(sizeof(*list) * 1); in perf_pmu__test_parse_init()
2937 term = malloc(sizeof(*term)); in new_term()
3073 *new = malloc(sizeof(struct list_head)); in parse_events_copy_term_list()
H A Dbpf-loader.c530 ptevs = malloc(array_sz); in map_prologue()
603 priv->insns_buf = malloc(sizeof(struct bpf_insn) * BPF_MAXINSNS); in hook_load_preprocessor()
609 priv->type_mapping = malloc(sizeof(int) * pev->ntevs); in hook_load_preprocessor()
/kernel/linux/linux-6.6/tools/testing/selftests/net/
H A Dtls.c422 buf = (char *)malloc(st.st_size); in TEST_F()
603 void *mem = malloc(16384); in TEST_F()
640 test_strs[i] = (char *)malloc(strlen(test_str) + 1); in TEST_F()
650 buf = malloc(total_len); in TEST_F()
677 test_strs[i] = (char *)malloc(strlen(test_str) + 1); in TEST_F()
916 iov_base[i] = (char *)malloc(iov_len); in TEST_F()
H A Dtxtimestamp.c370 data = malloc(cfg_payload_len); in recv_errmsg()
372 error(1, 0, "malloc"); in recv_errmsg()
511 buf = malloc(total_len); in do_test()
513 error(1, 0, "malloc"); in do_test()
/kernel/linux/linux-6.6/tools/lib/bpf/
H A Dbtf.c887 btf->raw_data = malloc(size); in btf_new()
1101 data = malloc(sz); in btf_parse_raw()
1356 ptr = malloc(last_size); in btf_get_from_fd()
1445 hdr = malloc(btf->hdr->hdr_len); in btf_ensure_modifiable()
1446 types = malloc(btf->hdr->type_len); in btf_ensure_modifiable()
2842 btf_ext->data = malloc(size); in btf_ext__new()
3238 d->map = malloc(sizeof(__u32) * type_cnt); in btf_dedup_new()
3255 d->hypot_map = malloc(sizeof(__u32) * type_cnt); in btf_dedup_new()
/kernel/linux/linux-6.6/tools/testing/selftests/memfd/
H A Dmemfd_test.c658 buf = malloc(mfd_def_size * 8); in mfd_assert_grow_write()
660 printf("malloc(%zu) failed: %m\n", mfd_def_size * 8); in mfd_assert_grow_write()
682 buf = malloc(mfd_def_size * 8); in mfd_fail_grow_write()
684 printf("malloc(%zu) failed: %m\n", mfd_def_size * 8); in mfd_fail_grow_write()
771 stack = malloc(STACK_SIZE); in spawn_thread()
773 printf("malloc(STACK_SIZE) failed: %m\n"); in spawn_thread()
/device/soc/rockchip/rk3568/hardware/omx_il/osal/
H A DRockchip_OSAL_SharedMemory.c471 pHandle = (ROCKCHIP_SHARED_MEMORY *)malloc(sizeof(ROCKCHIP_SHARED_MEMORY)); in Rockchip_OSAL_SharedMemory_Open()
600 pElement = (ROCKCHIP_SHAREDMEM_LIST *)malloc(sizeof(ROCKCHIP_SHAREDMEM_LIST)); in Rockchip_OSAL_SharedMemory_Alloc()
/kernel/linux/linux-5.10/tools/testing/selftests/net/
H A Dtxtimestamp.c370 data = malloc(cfg_payload_len); in recv_errmsg()
372 error(1, 0, "malloc"); in recv_errmsg()
511 buf = malloc(total_len); in do_test()
513 error(1, 0, "malloc"); in do_test()
/kernel/linux/linux-5.10/tools/testing/selftests/cgroup/
H A Dtest_memcontrol.c96 buf = malloc(size); in alloc_anon_50M_check()
690 buf = malloc(size); in alloc_anon_50M_check_swap()
/kernel/linux/linux-5.10/samples/bpf/
H A Dxdp_redirect_cpu_user.c262 rec = malloc(size); in alloc_stats_record()
832 cpu = malloc(n_cpus * sizeof(int)); in main()
/kernel/linux/linux-5.10/tools/firewire/
H A Dnosy-dump.c139 sa = malloc(sizeof *sa - sizeof sa->packet + length); in subaction_create()
171 t = malloc(sizeof *t); in link_transaction_lookup()
/kernel/linux/linux-5.10/tools/perf/ui/stdio/
H A Dhist.c99 rem_sq_bracket = malloc(sizeof(*rem_sq_bracket) + 6); in init_rem_hits()
844 line = malloc(linesz); in hists__fprintf()
/kernel/linux/linux-6.6/tools/perf/ui/stdio/
H A Dhist.c99 rem_sq_bracket = malloc(sizeof(*rem_sq_bracket) + 6); in init_rem_hits()
844 line = malloc(linesz); in hists__fprintf()
/kernel/linux/linux-6.6/tools/perf/
H A Dbuiltin-ftrace.c288 cpumask = malloc(mask_size); in set_tracing_cpumask()
1019 entry = malloc(sizeof(*entry) + strlen(str) + 1); in parse_filter_func()
/kernel/linux/linux-6.6/tools/testing/selftests/kvm/
H A Dmemslot_perf_test.c232 data = malloc(sizeof(*data)); in alloc_vm()
233 TEST_ASSERT(data, "malloc(vmdata) failed"); in alloc_vm()
308 data->hva_slots = malloc(sizeof(*data->hva_slots) * data->nslots); in prepare_vm()
309 TEST_ASSERT(data->hva_slots, "malloc() fail"); in prepare_vm()
/kernel/linux/linux-6.6/tools/testing/selftests/alsa/
H A Dmixer-test.c77 card_data = malloc(sizeof(*card_data)); in find_controls()
113 ctl_data = malloc(sizeof(*ctl_data)); in find_controls()

Completed in 38 milliseconds

1...<<31323334353637383940>>...44