Home
last modified time | relevance | path

Searched refs:malloc (Results 801 - 825 of 976) sorted by relevance

1...<<31323334353637383940

/test/xts/acts/multimedia/image_effect/OHImageEffectNDK/entry/src/main/cpp/
H A Deffect_filter_test.cpp75 void *addr = malloc(IMAGE_EFFECT_1000); in OHEffectBufferInfoSetAddr()
114 void *setAddr = malloc(IMAGE_EFFECT_1000); in OHEffectBufferInfoGetAddr()
/kernel/linux/linux-5.10/tools/perf/
H A Dbuiltin-timechart.c1081 task_from = malloc(40); in draw_wakeups()
1085 task_to = malloc(40); in draw_wakeups()
1306 struct process_filter *filt = malloc(sizeof(*filt)); in add_process_filter()
H A Dbuiltin-script.c2556 struct script_spec *s = malloc(sizeof(*s) + strlen(spec) + 1); in script_spec__new()
3241 char **__argv = malloc(sizeof(const char *) * argc); in have_cmd()
3244 pr_err("malloc failed\n"); in have_cmd()
3715 __argv = malloc((argc + 6) * sizeof(const char *)); in cmd_script()
3717 pr_err("malloc failed\n"); in cmd_script()
3741 __argv = malloc((argc + 4) * sizeof(const char *)); in cmd_script()
3743 pr_err("malloc failed\n"); in cmd_script()
3779 __argv = malloc((argc + 2) * sizeof(const char *)); in cmd_script()
3781 pr_err("malloc failed\n"); in cmd_script()
/kernel/linux/linux-5.10/tools/perf/util/
H A Dsymbol.c1629 symbols = malloc(symbols_size); in dso__load_bfd_symbols()
1832 name = malloc(PATH_MAX); in dso__load()
2346 vmlinux_path = malloc(sizeof(char *) * (ARRAY_SIZE(vmlinux_paths) + in vmlinux_path__init()
H A Dsymbol-elf.c1402 char *buf = malloc(page_size); in copy_bytes()
1923 buf_from = malloc(page_size); in kcore_copy__compare_fds()
1924 buf_to = malloc(page_size); in kcore_copy__compare_fds()
H A Dsrcline.c176 syms = malloc(storage); in slurp_symtab()
/kernel/linux/linux-6.6/tools/perf/bench/
H A Dnuma.c20 #include <malloc.h>
930 node_present = (char *)malloc(g->p.nr_nodes * sizeof(char)); in count_process_nodes()
1040 nodes = (int *)malloc(g->p.nr_nodes * sizeof(int)); in calc_convergence()
/kernel/linux/linux-6.6/tools/perf/
H A Dbuiltin-timechart.c1090 task_from = malloc(40); in draw_wakeups()
1094 task_to = malloc(40); in draw_wakeups()
1315 struct process_filter *filt = malloc(sizeof(*filt)); in add_process_filter()
/kernel/linux/linux-6.6/tools/perf/util/scripting-engines/
H A Dtrace-event-python.c772 char *bf = malloc(size); in set_regs_in_dict()
1920 command_line = malloc((argc + 1) * sizeof(const char *)); in python_start_script()
1926 command_line = malloc((argc + 1) * sizeof(wchar_t *)); in python_start_script()
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/prog_tests/
H A Dbpf_iter.c709 buf = malloc(expected_read_len); in test_overflow()
882 val = malloc(8 * bpf_num_possible_cpus()); in test_bpf_percpu_hash_map()
1061 val = malloc(8 * bpf_num_possible_cpus()); in test_bpf_percpu_array_map()
H A Dbtf.c4226 raw_btf = malloc(size_needed); in btf_raw_create()
4470 user_btf = malloc(raw_btf_size); in test_big_btf_info()
4553 user_btf[i] = malloc(raw_btf_size); in test_btf_id()
4681 user_btf = malloc(raw_btf_size); in do_test_get_info()
4841 func_info = malloc(info.nr_func_info * rec_size); in do_test_file()
6438 new_u32 = malloc(raw_u32_size); in patch_name_tbd()
6493 func_info = malloc(info.nr_func_info * rec_size); in test_get_finfo()
/kernel/linux/linux-6.6/tools/testing/selftests/net/
H A Dnettest.c1857 m = malloc(olen); in random_msg()
1877 outbuf = malloc(4096); in ipc_child()
1878 errbuf = malloc(4096); in ipc_child()
/test/xts/acts/ai/neural_network_runtime/v2_0/interface/src/
H A DExecutorTest.cpp304 void* data = malloc(length); in HWTEST_F()
339 void* data = malloc(length); in HWTEST_F()
374 void* data = malloc(length); in HWTEST_F()
/test/xts/acts/security/huks/huks_ndk_Test/entry/src/main/cpp/
H A Dhuksndk.cpp71 struct OH_Huks_Blob* gkeyAlias = (struct OH_Huks_Blob*)malloc(sizeof(struct OH_Huks_Blob)); in OHHuksGetSdkVersion()
73 gkeyAlias->data = static_cast<uint8_t*>(malloc(sizeof(uint8_t))); in OHHuksGetSdkVersion()
500 return malloc(size); in HksMalloc()
/kernel/linux/linux-5.10/tools/testing/selftests/seccomp/
H A Dseccomp_bpf.c1046 self->prog.filter = malloc(sizeof(filter)); in FIXTURE_SETUP()
1194 self->_x.filter = malloc(sizeof(_x##_insns)); \ in FIXTURE_SETUP()
1651 self->prog.filter = malloc(sizeof(filter)); in FIXTURE_SETUP()
2499 self->root_prog.filter = malloc(sizeof(root_filter)); in FIXTURE_SETUP()
2504 self->apply_prog.filter = malloc(sizeof(apply_filter)); in FIXTURE_SETUP()
/test/xts/acts/multimedia/drm/drm_ndk_test/entry/src/main/cpp/
H A Dhello.cpp1512 response_ptr = (uint8_t *)malloc(inResponseStringLen); in Test_MediaKeySession_ProcessMediaKeyResponse()
1900 KeyId_ptr = (uint8_t *)malloc(KeyIdStringLen); in Test_MediaKeySession_GenerateOfflineReleaseRequest()
1972 keyId_ptr = (uint8_t *)malloc(KeyIdLen); in Test_MediaKeySession_ProcessOfflineReleaseResponse()
1977 releaseResponse_ptr = (uint8_t *)malloc(releaseResponseLen); in Test_MediaKeySession_ProcessOfflineReleaseResponse()
2031 keyId_ptr = (uint8_t *)malloc(KeyIdLen); in Test_MediaKeySession_RestoreOfflineMediaKeys()
/test/xts/acts/arkui/ace_napi_test_es/entry/src/main/cpp/napi/
H A Dnapi_test.cpp23 #include <malloc.h>
524 int* testInt = (int*)malloc(sizeof(int)); in createExternalArraybuffer()
2210 AddonData* addonData = reinterpret_cast<AddonData*>(malloc(sizeof(AddonData))); in testAsyncWork()
2256 AddonData* addonData = reinterpret_cast<AddonData*>(malloc(sizeof(AddonData))); in testPromise()
2832 void* externalData = malloc(parraySize * sizeof(int8_t)); in External()
3070 uv_work_t* req = reinterpret_cast<uv_work_t*>(malloc(sizeof(uv_work_t))); in TestResolveAsync()
3138 InstanceData* data = reinterpret_cast<InstanceData*>(malloc(sizeof(*data))); in NapiSetInstanceData()
3185 AsyncData* data = reinterpret_cast<AsyncData*>(malloc(sizeof(AsyncData))); in CreateAsyncData()
3245 napi_ref *ref = reinterpret_cast<napi_ref *>(malloc(sizeof(napi_ref))); in CreateObjectWrap()
3307 napi_ref *ref = reinterpret_cast<napi_ref *>(malloc(sizeo in ObjectWrapper()
[all...]
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/prog_tests/
H A Dbtf.c3581 raw_btf = malloc(size_needed); in btf_raw_create()
3812 user_btf = malloc(raw_btf_size); in test_big_btf_info()
3897 user_btf[i] = malloc(raw_btf_size); in test_btf_id()
4037 user_btf = malloc(raw_btf_size); in do_test_get_info()
4196 func_info = malloc(info.nr_func_info * rec_size); in do_test_file()
5796 new_u32 = malloc(raw_u32_size); in patch_name_tbd()
5851 func_info = malloc(info.nr_func_info * rec_size); in test_get_finfo()
H A Dsockopt.c925 optval = malloc(test->get_optlen); in run_test()
/test/xts/acts/ai/mindspore/mindsporectest/src/
H A Dohos_c_api_test_mslite.cpp374 char **char_arr = static_cast<char **>(malloc(s.size() * sizeof(char *))); in TransStrVectorToCharArrays()
376 char_arr[i] = static_cast<char *>(malloc((s[i].size() + 1))); in TransStrVectorToCharArrays()
3297 in_tensor_array.handle_list = (OH_AI_TensorHandle *)malloc(sizeof(OH_AI_TensorHandle) * in_tensor_array.handle_num); in RunMSLiteModel()
3315 out_tensor_array.handle_list = (OH_AI_TensorHandle *)malloc(sizeof(OH_AI_TensorHandle) * out_tensor_array.handle_num); in RunMSLiteModel()
3383 in_tensor_array.handle_list = (OH_AI_TensorHandle *)malloc(sizeof(OH_AI_TensorHandle) * in_tensor_array.handle_num); in HWTEST()
3461 in_tensor_array.handle_list = (OH_AI_TensorHandle *)malloc(sizeof(OH_AI_TensorHandle) * in_tensor_array.handle_num); in HWTEST()
3479 out_tensor_array.handle_list = (OH_AI_TensorHandle *)malloc(sizeof(OH_AI_TensorHandle) * out_tensor_array.handle_num); in HWTEST()
/kernel/linux/linux-5.10/arch/mips/boot/
H A Delf2ecoff.c142 if (!(tmp = (char *) malloc(len))) { in saveRead()
/kernel/linux/linux-6.6/arch/mips/boot/
H A Delf2ecoff.c142 if (!(tmp = (char *) malloc(len))) { in saveRead()
/kernel/linux/linux-5.10/tools/testing/selftests/net/
H A Dreuseport_bpf.c51 addr = malloc(sizeof(struct sockaddr_storage)); in new_any_sockaddr()
/kernel/linux/linux-5.10/tools/testing/selftests/mqueue/
H A Dmq_perf_tests.c616 queue_path = malloc(strlen(option) + 2); in main()
618 perror("malloc()"); in main()
/kernel/linux/linux-5.10/scripts/kconfig/lxdialog/
H A Dutil.c596 struct dialog_list *p = malloc(sizeof(*p)); in item_make()

Completed in 97 milliseconds

1...<<31323334353637383940