Searched refs:malloc (Results 1 - 25 of 404) sorted by relevance

1234567891011>>

/linux-master/tools/lib/
H A Dslab.c8 #include <malloc.h>
21 ret = malloc(size);
24 printf("Allocating %p from malloc\n", ret);
36 printf("Freeing %p to malloc\n", p);
/linux-master/tools/testing/selftests/damon/
H A Daccess_memory.c30 regions = malloc(sizeof(*regions) * nr_regions);
32 regions[i] = malloc(sz_region);
/linux-master/tools/build/feature/
H A Dtest-cxa-demangle.cpp9 char *output = (char*)malloc(len);
/linux-master/tools/perf/util/
H A Dlevenshtein.c48 int *row0 = malloc(sizeof(int) * (len2 + 1));
49 int *row1 = malloc(sizeof(int) * (len2 + 1));
50 int *row2 = malloc(sizeof(int) * (len2 + 1));
H A Dbpf_map.c23 return malloc(round_up(bpf_map__value_size(map), 8) *
26 return malloc(bpf_map__value_size(map));
42 key = malloc(bpf_map__key_size(map));
H A Dsharded_mutex.c16 result = malloc(size);
H A Ddemangle-ocaml.c43 result = malloc(len + 1);
H A Dblock-range.c116 struct block_range *head = malloc(sizeof(struct block_range));
139 entry = malloc(sizeof(struct block_range));
163 struct block_range *head = malloc(sizeof(struct block_range));
201 struct block_range *tail = malloc(sizeof(struct block_range));
248 tail = malloc(sizeof(struct block_range));
271 struct block_range *hole = malloc(sizeof(struct block_range));
/linux-master/include/linux/decompress/
H A Dmm.h29 * When an architecture needs to share the malloc()/free() implementation
36 /* A trivial malloc implementation, adapted from
37 * malloc by Hannu Savolainen 1993 and Matthias Urlichs 1994
42 MALLOC_VISIBLE void *malloc(int size) function
70 #define large_malloc(a) malloc(a)
89 #define malloc(a) kmalloc(a, GFP_KERNEL) macro
/linux-master/tools/testing/selftests/arm64/tags/
H A Dtags_test.c23 ptr = (struct utsname *)malloc(sizeof(*ptr));
/linux-master/tools/testing/selftests/powerpc/pmu/
H A Dl3_bank_test.c26 p = malloc(MALLOC_SIZE);
/linux-master/tools/testing/selftests/bpf/prog_tests/
H A Dglobal_data_init.c24 newval = malloc(sz);
46 buff = malloc(sz);
/linux-master/tools/perf/arch/x86/tests/
H A Ddwarf-unwind.c21 buf = malloc(STACK_SIZE);
59 buf = malloc(sizeof(u64) * PERF_REGS_MAX);
/linux-master/tools/testing/selftests/powerpc/copyloops/
H A Dvalidate.c2 #include <malloc.h>
71 redzone = malloc(BUFLEN);
72 fill = malloc(BUFLEN);
75 fprintf(stderr, "malloc failed\n");
/linux-master/tools/power/cpupower/utils/idle_monitor/
H A Dcpuidle_sysfs.c178 previous_count = malloc(sizeof(long long *) * cpu_count);
179 current_count = malloc(sizeof(long long *) * cpu_count);
181 previous_count[num] = malloc(sizeof(long long) *
183 current_count[num] = malloc(sizeof(long long) *
/linux-master/drivers/staging/media/atomisp/pci/
H A Dsh_css_struct.h44 void *(*malloc)(size_t bytes, bool zero_mem); member in struct:sh_css
/linux-master/tools/testing/selftests/powerpc/pmu/sampling_tests/
H A Dmmcr2_l2l3_test.c42 p = malloc(MALLOC_SIZE);
/linux-master/lib/
H A Ddecompress_inflate.c55 out_buf = malloc(out_len);
68 zbuf = malloc(GZIP_IOBUF_SIZE);
76 strm = malloc(sizeof(*strm));
82 strm->workspace = malloc(flush ? zlib_inflate_workspacesize() :
H A Ddecompress_unxz.c156 #define kmalloc(size, flags) malloc(size)
158 #define vmalloc(size) malloc(size)
281 b.out = malloc(XZ_IOBUF_SIZE);
288 in = malloc(XZ_IOBUF_SIZE);
/linux-master/tools/testing/selftests/riscv/vector/
H A Dv_initval_nolibc.c28 datap = malloc(MAX_VSIZE);
/linux-master/tools/objtool/include/objtool/
H A Dwarn.h32 str = malloc(strlen(sym->name) + strlen(sec->name) + 40);
37 str = malloc(strlen(sec->name) + 20);
/linux-master/tools/perf/tests/shell/coresight/memcpy_thread/
H A Dmemcpy_thread.c22 src = malloc(a->size * 1024);
23 dst = malloc(a->size * 1024);
/linux-master/tools/testing/selftests/powerpc/ptrace/
H A Dptrace.h14 #include <malloc.h>
150 reg = malloc(sizeof(unsigned long));
152 perror("malloc() failed");
196 reg = malloc(sizeof(unsigned long));
198 perror("malloc() failed");
239 reg = malloc(sizeof(unsigned long));
241 perror("malloc() failed");
287 reg = malloc(sizeof(unsigned long));
289 perror("malloc() failed");
330 regs = (struct fpr_regs *) malloc(sizeo
[all...]
/linux-master/tools/testing/selftests/mm/
H A Dhmm-tests.c306 buffer = malloc(sizeof(*buffer));
311 buffer->mirror = malloc(size);
369 buffer = malloc(sizeof(*buffer));
374 buffer->mirror = malloc(size);
428 buffer = malloc(sizeof(*buffer));
433 buffer->mirror = malloc(size);
476 buffer = malloc(sizeof(*buffer));
481 buffer->mirror = malloc(size);
544 buffer = malloc(sizeof(*buffer));
549 buffer->mirror = malloc(siz
[all...]
/linux-master/tools/usb/ffs-aio-example/simple/device_app/
H A Daio_simple.c245 ep_path = malloc(strlen(argv[1]) + 4 /* "/ep#" */ + 1 /* '\0' */);
247 perror("malloc");
292 buf_in = malloc(BUF_LEN);
293 buf_out = malloc(BUF_LEN);
294 iocb_in = malloc(sizeof(*iocb_in));
295 iocb_out = malloc(sizeof(*iocb_out));

Completed in 527 milliseconds

1234567891011>>