Home
last modified time | relevance | path

Searched refs:malloc (Results 451 - 475 of 976) sorted by relevance

1...<<11121314151617181920>>...40

/kernel/liteos_a/apps/perf/src/
H A Dperf_record.c190 buf = (char *)malloc(LOSCFG_PERF_BUFFER_SIZE); in PerfRecord()
/kernel/liteos_a/apps/trace/src/
H A Dtrace.c77 char *buffer = (char *)malloc(size); in TraceRead()
79 printf("Read buffer malloc failed.\n"); in TraceRead()
/test/xts/acts/ai_lite/ai_engine_posix/base/src/sample/source/
H A Dsample_plugin_1.cpp54 outputInfo.data = reinterpret_cast<unsigned char*>(malloc(sourceData.length)); in ReturnDataCopyOrDefaultData()
56 HILOGE("[SamplePlugin1]malloc failed."); in ReturnDataCopyOrDefaultData()
H A Dsample_plugin_2.cpp54 outputInfo.data = reinterpret_cast<unsigned char*>(malloc(sourceData.length)); in ReturnDataCopyOrDefaultData()
56 HILOGE("[SamplePlugin2]malloc failed."); in ReturnDataCopyOrDefaultData()
/test/xts/acts/commonlibrary/thirdparty/musl/entry/src/main/cpp/
H A Dgrp1ndk.cpp21 #include <malloc.h>
H A Difndk.cpp19 #include <malloc.h>
H A Dfcntl1ndk.cpp23 #include <malloc.h>
198 struct file_handle *handle = (struct file_handle *)malloc(tempHandle.handle_bytes); in NameToHandleAt()
287 struct file_handle *handle = (struct file_handle *)malloc(tempHandle.handle_bytes); in OpenByHandleAt()
/test/xts/device_attest/test/fuzztest/devattestcorenetwork_fuzzer/
H A Ddevattest_core_network_fuzz.c117 char *body = (char *)malloc(contentLen + 1); in ParseHttpsResp()
/test/xts/device_attest/test/performancetest/src/
H A Ddevattestservice_performance_test.cpp153 int *resultArray = (int *)malloc(resultArraySize); in HWTEST_F()
/test/xts/acts/storage/storagefileurindktest/entry/src/main/cpp/
H A Dgetpathfromuri.cpp23 #include <malloc.h>
/test/xts/hats/kernel/syscalls/async/wait4/
H A DWait4ApiTest.cpp24 #include <malloc.h>
/kernel/linux/linux-5.10/arch/mips/boot/tools/
H A Drelocs.c304 sec->strtab = malloc(sec->shdr.sh_size); in read_strtabs()
306 die("malloc of %d bytes for strtab failed\n", in read_strtabs()
328 sec->symtab = malloc(sec->shdr.sh_size); in read_symtabs()
330 die("malloc of %d bytes for symtab failed\n", in read_symtabs()
372 sec->reltab = malloc(sec->shdr.sh_size); in read_relocs()
374 die("malloc of %d bytes for relocs failed\n", in read_relocs()
/kernel/linux/linux-6.6/arch/mips/boot/tools/
H A Drelocs.c304 sec->strtab = malloc(sec->shdr.sh_size); in read_strtabs()
306 die("malloc of %d bytes for strtab failed\n", in read_strtabs()
328 sec->symtab = malloc(sec->shdr.sh_size); in read_symtabs()
330 die("malloc of %d bytes for symtab failed\n", in read_symtabs()
372 sec->reltab = malloc(sec->shdr.sh_size); in read_relocs()
374 die("malloc of %d bytes for relocs failed\n", in read_relocs()
/kernel/linux/linux-5.10/tools/testing/selftests/memfd/
H A Dmemfd_test.c560 buf = malloc(mfd_def_size * 8); in mfd_assert_grow_write()
562 printf("malloc(%zu) failed: %m\n", mfd_def_size * 8); in mfd_assert_grow_write()
584 buf = malloc(mfd_def_size * 8); in mfd_fail_grow_write()
586 printf("malloc(%zu) failed: %m\n", mfd_def_size * 8); in mfd_fail_grow_write()
615 stack = malloc(STACK_SIZE); in spawn_idle_thread()
617 printf("malloc(STACK_SIZE) failed: %m\n"); in spawn_idle_thread()
/kernel/linux/linux-5.10/tools/bpf/bpftool/
H A Dcommon.c223 file = malloc(strlen(name) + 1); in mount_bpffs_for_pin()
784 fds = malloc(sizeof(int)); in prog_parse_fd()
921 fds = malloc(sizeof(int)); in map_parse_fd()
/kernel/linux/linux-6.6/tools/testing/selftests/arm64/fp/
H A Dsve-ptrace.c280 svebuf = malloc(SVE_PT_SIZE(0, SVE_PT_REGS_FPSIMD)); in ptrace_sve_fpsimd()
341 write_buf = malloc(data_size); in ptrace_set_sve_get_sve_data()
442 write_buf = malloc(data_size); in ptrace_set_sve_get_fpsimd_data()
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/
H A Dtest_loader.c72 tester->log_buf = malloc(tester->log_buf_sz); in tester_init()
297 name = malloc(descr_len + strlen(suffix) + 1); in parse_test_spec()
321 spec->unpriv.expect_msgs = malloc(sz); in parse_test_spec()
/kernel/uniproton/src/fs/littlefs/
H A Dlfs_adapter.c164 mountHdl = (lfs_t *)malloc(size); in OsLfsMount()
306 lfs_dir_t *dirInfo = (lfs_dir_t *)malloc(sizeof(lfs_dir_t)); in OsLfsOpendir()
411 lfsHandle = (lfs_file_t *)malloc(sizeof(lfs_file_t)); in OsLfsOpen()
/kernel/linux/linux-6.6/tools/arch/x86/intel_sdsi/
H A Dintel_sdsi.c664 s = (struct sdsi_dev *)malloc(sizeof(*s)); in sdsi_create_dev()
666 perror("malloc"); in sdsi_create_dev()
670 s->dev_name = (char *)malloc(sizeof(SDSI_DEV) + strlen(dev_no) + 1); in sdsi_create_dev()
672 perror("malloc"); in sdsi_create_dev()
679 s->dev_path = (char *)malloc(sizeof(AUX_DEV_PATH) + dev_name_len); in sdsi_create_dev()
681 perror("malloc"); in sdsi_create_dev()
/kernel/linux/linux-5.10/tools/testing/selftests/rseq/
H A Dparam_test.c639 node = malloc(sizeof(*node)); in test_percpu_list()
827 malloc(sizeof(*buffer.c[i].array) * CPU_SETSIZE * in test_percpu_buffer()
843 node = malloc(sizeof(*node)); in test_percpu_buffer()
1042 malloc(sizeof(*buffer.c[i].array) * CPU_SETSIZE * in test_percpu_memcpy_buffer()
1183 node = malloc(sizeof(*node)); in test_membarrier_init_percpu_list()
/kernel/linux/linux-6.6/tools/objtool/
H A Delf.c654 WARN("malloc"); in elf_update_symbol()
669 WARN("malloc"); in elf_update_symbol()
799 perror("malloc"); in elf_create_section_symbol()
826 char *name = malloc(namelen); in elf_create_prefix_symbol()
829 perror("malloc"); in elf_create_prefix_symbol()
1003 elf = malloc(sizeof(*elf)); in elf_open_read()
1005 perror("malloc"); in elf_open_read()
1097 sec = malloc(sizeof(*sec)); in elf_create_section()
1099 perror("malloc"); in elf_create_section()
1130 sec->data->d_buf = malloc(siz in elf_create_section()
[all...]
/kernel/linux/linux-6.6/tools/testing/selftests/rseq/
H A Dparam_test.c725 node = malloc(sizeof(*node)); in test_percpu_list()
909 malloc(sizeof(*buffer.c[i].array) * CPU_SETSIZE * in test_percpu_buffer()
925 node = malloc(sizeof(*node)); in test_percpu_buffer()
1120 malloc(sizeof(*buffer.c[i].array) * CPU_SETSIZE * in test_percpu_memcpy_buffer()
1264 node = malloc(sizeof(*node)); in test_membarrier_init_percpu_list()
/kernel/linux/linux-5.10/arch/powerpc/boot/
H A Dlibfdt-wrapper.c175 buf = malloc(bufsize); in fdt_init()
177 fatal("malloc failed. can't relocate the device tree\n\r"); in fdt_init()
H A Doflib.c189 p = malloc(size); in of_vmlinux_alloc()
/kernel/linux/linux-5.10/arch/um/
H A DMakefile131 # The wrappers will select whether using "malloc" or the kernel allocator.
132 LINK_WRAPS = -Wl,--wrap,malloc -Wl,--wrap,free -Wl,--wrap,calloc

Completed in 21 milliseconds

1...<<11121314151617181920>>...40