/test/testfwk/arkxtest/uitest/addon/ |
H A D | screen_copy.cpp | 310 auto buf = (uint8_t *)malloc(BUF_SIZE);
in StartScreenCopy()
|
/test/xts/acts/commonlibrary/thirdparty/musl/entry/src/main/cpp/ |
H A D | xattrndk.cpp | 22 #include <malloc.h>
|
/test/xts/acts/kernel_lite/process_posix/src/ |
H A D | PthreadAttrTest.cpp | 227 stackAddr = malloc(PTHREAD_STACK_MIN); in HWTEST_F()
|
/test/xts/acts/multimedia/image/image_js_standard/imagePackingNDK/entry/src/main/cpp/napi/ |
H A D | image_packing_test.cpp | 99 *buffer = (char*)malloc((*bufferSize) + 1); in GetStringProperty()
|
/test/xts/dcts/distributedhardware/distributedscreentest/ |
H A D | decoder_demo.cpp | 249 char *fileBuffer = static_cast<char *>(malloc(sizeof(char) * (*frameLen) + 1)); in InputFunc()
|
/test/xts/device_attest/services/core/utils/ |
H A D | attest_utils.c | 251 void *addr = malloc(size); in AttestMemAlloc()
|
/test/xts/device_attest_lite/services/core/utils/ |
H A D | attest_utils.c | 253 void *addr = malloc(size); in AttestMemAlloc()
|
/test/xts/hats/kernel/syscalls/mem/mmap/ |
H A D | MmapSyscallApiTest.cpp | 24 #include <malloc.h>
|
/kernel/linux/linux-5.10/tools/objtool/ |
H A D | check.c | 376 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 D | parse-events.c | 1575 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 D | bpf-loader.c | 530 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 D | tls.c | 422 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 D | txtimestamp.c | 370 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 D | btf.c | 887 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 D | memfd_test.c | 658 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 D | Rockchip_OSAL_SharedMemory.c | 471 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 D | txtimestamp.c | 370 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 D | test_memcontrol.c | 96 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 D | xdp_redirect_cpu_user.c | 262 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 D | nosy-dump.c | 139 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 D | hist.c | 99 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 D | hist.c | 99 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 D | builtin-ftrace.c | 288 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 D | memslot_perf_test.c | 232 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 D | mixer-test.c | 77 card_data = malloc(sizeof(*card_data)); in find_controls() 113 ctl_data = malloc(sizeof(*ctl_data)); in find_controls()
|