/kernel/liteos_a/apps/perf/src/ |
H A D | perf_record.c | 190 buf = (char *)malloc(LOSCFG_PERF_BUFFER_SIZE); in PerfRecord()
|
/kernel/liteos_a/apps/trace/src/ |
H A D | trace.c | 77 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 D | sample_plugin_1.cpp | 54 outputInfo.data = reinterpret_cast<unsigned char*>(malloc(sourceData.length)); in ReturnDataCopyOrDefaultData() 56 HILOGE("[SamplePlugin1]malloc failed."); in ReturnDataCopyOrDefaultData()
|
H A D | sample_plugin_2.cpp | 54 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 D | grp1ndk.cpp | 21 #include <malloc.h>
|
H A D | ifndk.cpp | 19 #include <malloc.h>
|
H A D | fcntl1ndk.cpp | 23 #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 D | devattest_core_network_fuzz.c | 117 char *body = (char *)malloc(contentLen + 1);
in ParseHttpsResp()
|
/test/xts/device_attest/test/performancetest/src/ |
H A D | devattestservice_performance_test.cpp | 153 int *resultArray = (int *)malloc(resultArraySize); in HWTEST_F()
|
/test/xts/acts/storage/storagefileurindktest/entry/src/main/cpp/ |
H A D | getpathfromuri.cpp | 23 #include <malloc.h>
|
/test/xts/hats/kernel/syscalls/async/wait4/ |
H A D | Wait4ApiTest.cpp | 24 #include <malloc.h>
|
/kernel/linux/linux-5.10/arch/mips/boot/tools/ |
H A D | relocs.c | 304 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 D | relocs.c | 304 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 D | memfd_test.c | 560 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 D | common.c | 223 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 D | sve-ptrace.c | 280 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 D | test_loader.c | 72 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 D | lfs_adapter.c | 164 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 D | intel_sdsi.c | 664 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 D | param_test.c | 639 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 D | elf.c | 654 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 D | param_test.c | 725 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 D | libfdt-wrapper.c | 175 buf = malloc(bufsize); in fdt_init() 177 fatal("malloc failed. can't relocate the device tree\n\r"); in fdt_init()
|
H A D | oflib.c | 189 p = malloc(size); in of_vmlinux_alloc()
|
/kernel/linux/linux-5.10/arch/um/ |
H A D | Makefile | 131 # The wrappers will select whether using "malloc" or the kernel allocator. 132 LINK_WRAPS = -Wl,--wrap,malloc -Wl,--wrap,free -Wl,--wrap,calloc
|