Home
last modified time | relevance | path

Searched refs:malloc (Results 276 - 300 of 1291) sorted by relevance

1...<<11121314151617181920>>...52

/base/web/webview/ohos_adapter/cert_mgr_adapter/src/
H A Dcert_mgr_adapter_impl.cpp29 *cList = static_cast<struct CertList *>(malloc(sizeof(struct CertList))); in InitCertList()
35 (*cList)->certAbstract = static_cast<struct CertAbstract *>(malloc(buffSize)); in InitCertList()
53 certInfo->certInfo.data = static_cast<uint8_t *>(malloc(MAX_LEN_CERTIFICATE)); in InitCertInfo()
363 cred.credData.data = static_cast<uint8_t *>(malloc(MAX_LEN_CERTIFICATE_CHAIN)); in GetAppCert()
365 WVLOG_E("GetAppCert, malloc failed"); in GetAppCert()
/kernel/linux/linux-5.10/tools/perf/util/
H A Dbpf-event.c104 node = malloc(data_size + sizeof(struct btf_node)); in perf_env__fetch_btf()
276 info_node = malloc(sizeof(struct bpf_prog_info_node)); in perf_event__synthesize_one_bpf_prog()
381 event = malloc(sizeof(event->bpf) + KSYM_NAME_LEN + machine->id_hdr_size); in perf_event__synthesize_bpf_events()
468 info_node = malloc(sizeof(struct bpf_prog_info_node)); in perf_env__add_bpf_info()
H A Dtopdown.c22 *str = malloc(len + 1 + 2); in topdown_filter_events()
/kernel/linux/linux-6.6/tools/perf/util/
H A Dbpf-event.c105 node = malloc(data_size + sizeof(struct btf_node)); in perf_env__fetch_btf()
284 info_node = malloc(sizeof(struct bpf_prog_info_node)); in perf_event__synthesize_one_bpf_prog()
389 event = malloc(sizeof(event->bpf) + KSYM_NAME_LEN + machine->id_hdr_size); in perf_event__synthesize_bpf_events()
476 info_node = malloc(sizeof(struct bpf_prog_info_node)); in perf_env__add_bpf_info()
H A Ddemangle-ocaml.c43 result = malloc(len + 1); in ocaml_demangle_sym()
/test/xts/acts/ai/mindspore/mindsporectest/src/
H A Dohos_common.cpp37 #include <malloc.h>
51 uint32_t *dim_buffer = reinterpret_cast<uint32_t *>(malloc(MAX_HEAD_SIZE * sizeof(uint32_t))); in getDimInfo()
99 uint32_t *memory = reinterpret_cast<uint32_t *>(malloc((dim_info[0] + 1) * sizeof(uint32_t))); in readTestDataFile()
107 uint32_t *data = reinterpret_cast<uint32_t *>(malloc((data_size) * sizeof(uint32_t))); in readTestDataFile()
/test/xts/acts/distributed_schedule_lite/system_ability_manager_posix/src/
H A DSendResponseTest.cpp373 request.data = malloc(request.len); in HWTEST_F()
408 request.data = malloc(request.len); in HWTEST_F()
442 request.data = malloc(request.len); in HWTEST_F()
476 request.data = malloc(request.len); in HWTEST_F()
/test/xts/acts/distributed_schedule_lite/system_ability_manager_hal/src/
H A Dsendsharerequest_func_test.c171 demoFeature->latestRequest = (char *)malloc(requestLen * sizeof(char)); in FEATURE_OnMessage02()
218 demoFeature->latestRequest = (char *)malloc(requestLen * sizeof(char)); in FEATURE_OnMessage03()
383 request.data = malloc(request.len);
420 request.data = malloc(request.len);
/test/xts/acts/security/crypto_framework_napi_BasicTest/src/
H A Dcrypto_framework_sym_key_test.cpp156 uint8_t *testData = (uint8_t *)malloc(symKeyData.bits); in HWTEST_P()
250 uint8_t *testData1 = (uint8_t *)malloc(OH_CRYPTO_HMAC_SHA256_KEY_SIZE / 8 - 2); in HWTEST_F()
255 uint8_t *testData2 = (uint8_t *)malloc(OH_CRYPTO_HMAC_SHA256_KEY_SIZE / 8 + 2); in HWTEST_F()
260 uint8_t *testData3 = (uint8_t *)malloc(OH_CRYPTO_HMAC_SHA256_KEY_SIZE / 8); in HWTEST_F()
/test/xts/dcts/communication/softbus_standard/socket_trans/client/func/
H A Dsocket_trans_func_test.cpp218 char *sendIFrame = (char *)malloc(I_FRAME_SIZE3); in HWTEST_F()
221 char *sendPFrame = (char *)malloc(P_FRAME_SIZE3); in HWTEST_F()
360 char *sendIFrame = (char *)malloc(I_FRAME_SIZE3); in HWTEST_F()
363 char *sendPFrame = (char *)malloc(P_FRAME_SIZE3); in HWTEST_F()
/kernel/linux/linux-5.10/tools/bpf/bpftool/
H A Dmap.c91 return malloc(round_up(info->value_size, 8) * in alloc_value()
94 return malloc(info->value_size); in alloc_value()
652 fds = malloc(sizeof(int)); in do_show_subset()
840 key = malloc(info->key_size); in map_dump()
913 fds = malloc(sizeof(int)); in do_dump()
974 *key = malloc(info->key_size); in alloc_key_value()
1144 key = malloc(info.key_size); in do_getnext()
1145 nextkey = malloc(info.key_size); in do_getnext()
1215 key = malloc(info.key_size); in do_delete()
/kernel/linux/linux-6.6/tools/bpf/bpftool/
H A Dmap.c65 return malloc(round_up(info->value_size, 8) * in alloc_value()
68 return malloc(info->value_size); in alloc_value()
637 fds = malloc(sizeof(int)); in do_show_subset()
831 key = malloc(info->key_size); in map_dump()
907 fds = malloc(sizeof(int)); in do_dump()
968 *key = malloc(info->key_size); in alloc_key_value()
1134 key = malloc(info.key_size); in do_getnext()
1135 nextkey = malloc(info.key_size); in do_getnext()
1205 key = malloc(info.key_size); in do_delete()
/base/hiviewdfx/hiview/framework/native/unified_collection/collector/device_client/
H A Dthread_cpu_data.cpp35 entry_ = (struct ucollection_thread_cpu_entry *)malloc(totalSize); in Init()
H A Dprocess_cpu_data.cpp32 entry_ = (struct ucollection_process_cpu_entry *)malloc(totalSize); in Init()
/base/notification/eventhandler/test/fuzztest/eventqueueinsert_fuzzer/
H A Deventqueueinsert_fuzzer.cpp50 char* ch = (char *)malloc(size + 1); in LLVMFuzzerTestOneInput()
/base/notification/eventhandler/test/fuzztest/filedescriptorlistener_fuzzer/
H A Dfiledescriptorlistener_fuzzer.cpp52 char* ch = (char *)malloc(size + 1); in LLVMFuzzerTestOneInput()
/base/notification/eventhandler/test/fuzztest/innerevent_fuzzer/
H A Dinnerevent_fuzzer.cpp48 char* ch = (char *)malloc(size + 1); in LLVMFuzzerTestOneInput()
/base/security/device_auth/test/unittest/tdd_framework/tdd_helper/exception_controller/src/
H A Dexception_controller.c97 g_mutex = (HcMutex *)malloc(sizeof(HcMutex)); in InitExceptionController()
/base/security/selinux_adapter/framework/policycoreutils/src/
H A Dselinux_log.c41 char *buf = (char *)malloc(MAX_LOG_BUFF_LEN); in SelinuxHilog()
43 HILOG_ERROR(LOG_CORE, "selinux log malloc fail"); in SelinuxHilog()
/base/startup/init/test/unittest/syscap/
H A Dsyscap_unittest.cpp57 char *wrongName = reinterpret_cast<char *>(malloc(SYSCAP_MAX_SIZE)); in HWTEST_F()
/kernel/linux/linux-5.10/drivers/staging/media/atomisp/pci/
H A Dsh_css_struct.h44 void *(*malloc)(size_t bytes, bool zero_mem); member
/kernel/linux/linux-6.6/drivers/staging/media/atomisp/pci/
H A Dsh_css_struct.h44 void *(*malloc)(size_t bytes, bool zero_mem); member
/kernel/linux/linux-6.6/tools/testing/selftests/powerpc/pmu/sampling_tests/
H A Dmmcr2_l2l3_test.c42 p = malloc(MALLOC_SIZE); in mmcr2_l2l3()
/kernel/liteos_a/testsuites/unittest/container/full/
H A DIt_pid_container_009.cpp82 void *pstk = malloc(STACK_SIZE); in ItPidContainer009()
H A DIt_pid_container_021.cpp57 void *pstk = malloc(STACK_SIZE); in ItPidContainer021()

Completed in 15 milliseconds

1...<<11121314151617181920>>...52