Symbol: malloc
arch/alpha/boot/misc.c
165
window = malloc(WSIZE);
arch/mips/boot/elf2ecoff.c
142
if (!(tmp = (char *) malloc(len))) {
arch/mips/boot/tools/relocs.c
305
sec->strtab = malloc(sec->shdr.sh_size);
arch/mips/boot/tools/relocs.c
329
sec->symtab = malloc(sec->shdr.sh_size);
arch/mips/boot/tools/relocs.c
373
sec->reltab = malloc(sec->shdr.sh_size);
arch/parisc/boot/compressed/misc.c
258
phdrs = malloc(sizeof(*phdrs) * ehdr.e_phnum);
arch/powerpc/boot/libfdt-wrapper.c
175
buf = malloc(bufsize);
arch/powerpc/boot/main.c
131
initrd_addr = (unsigned long)malloc(initrd_size);
arch/powerpc/boot/main.c
173
esm_blob_addr = (unsigned long)malloc(esm_blob_size);
arch/powerpc/boot/of.c
66
platform_ops.malloc = of_try_claim;
arch/powerpc/boot/oflib.c
189
p = malloc(size);
arch/powerpc/boot/ops.h
211
return (platform_ops.malloc) ? platform_ops.malloc(size) : NULL;
arch/powerpc/boot/ops.h
26
void * (*malloc)(unsigned long size);
arch/powerpc/boot/simple_alloc.c
146
platform_ops.malloc = simple_malloc;
arch/s390/tools/relocs.c
229
sec->reltab = malloc(sec->shdr.sh_size);
arch/um/os-Linux/execvp.c
33
#define um_kmalloc malloc
arch/um/os-Linux/main.c
129
new_argv = malloc((argc + 1) * sizeof(char *));
arch/um/os-Linux/main.c
91
new_path = malloc(path_len);
arch/um/os-Linux/mem.c
156
tempname = malloc(strlen(tempdir) + strlen(template) + 1);
arch/um/os-Linux/registers.c
32
exec_fp_regs = malloc(host_fp_size);
arch/um/os-Linux/skas/process.c
375
tmpfile = malloc(strlen(tempdir) +
arch/um/os-Linux/start_up.c
343
exec_fp_regs = malloc(host_fp_size);
arch/um/os-Linux/umid.c
142
file = malloc(filelen);
arch/um/os-Linux/umid.c
215
file = malloc(n);
arch/um/os-Linux/umid.c
372
uml_dir = malloc(strlen(name) + 2);
arch/um/os-Linux/umid.c
396
dir = malloc(strlen(uml_dir) + UMID_LEN + 1);
arch/um/os-Linux/umid.c
52
uml_dir = malloc(strlen(dir) + 1);
arch/x86/boot/compressed/kaslr.c
239
tmp_cmdline = malloc(len + 1);
arch/x86/boot/compressed/misc.c
302
phdrs = malloc(sizeof(*phdrs) * ehdr.e_phnum);
arch/x86/boot/compressed/misc.h
64
void *malloc(int size);
arch/x86/tools/relocs.c
455
sec->strtab = malloc(sec->shdr.sh_size);
arch/x86/tools/relocs.c
477
sec->xsymtab = malloc(sec->shdr.sh_size);
arch/x86/tools/relocs.c
493
sec->symtab = malloc(sec->shdr.sh_size);
arch/x86/tools/relocs.c
531
sec->reltab = malloc(sec->shdr.sh_size);
drivers/gpu/drm/radeon/mkregtable.c
123
offset = (struct offset *)malloc(sizeof(struct offset));
drivers/gpu/drm/radeon/mkregtable.c
175
t->table = (unsigned *)malloc(sizeof(unsigned) * t->nentry);
drivers/scsi/aic7xxx/aicasm/aicasm.c
231
(path_entry_t)malloc(sizeof(*include_dir));
drivers/scsi/aic7xxx/aicasm/aicasm.c
499
new_patch = (patch_t *)malloc(sizeof(*new_patch));
drivers/scsi/aic7xxx/aicasm/aicasm.c
552
func_values = (int *)malloc(func_count * sizeof(int));
drivers/scsi/aic7xxx/aicasm/aicasm.c
736
new_instr = (struct instruction *)malloc(sizeof(struct instruction));
drivers/scsi/aic7xxx/aicasm/aicasm.c
750
new_cs= (critical_section_t *)malloc(sizeof(critical_section_t));
drivers/scsi/aic7xxx/aicasm/aicasm.c
764
new_scope = (scope_t *)malloc(sizeof(scope_t));
drivers/scsi/aic7xxx/aicasm/aicasm_gram.y
1481
(struct reg_info *)malloc(sizeof(struct reg_info));
drivers/scsi/aic7xxx/aicasm/aicasm_gram.y
1502
(struct alias_info *)malloc(sizeof(struct alias_info));
drivers/scsi/aic7xxx/aicasm/aicasm_gram.y
1515
(struct field_info *)malloc(sizeof(struct field_info));
drivers/scsi/aic7xxx/aicasm/aicasm_gram.y
1526
(struct const_info *)malloc(sizeof(struct const_info));
drivers/scsi/aic7xxx/aicasm/aicasm_gram.y
1536
(struct label_info *)malloc(sizeof(struct label_info));
drivers/scsi/aic7xxx/aicasm/aicasm_gram.y
1546
(struct cond_info *)malloc(sizeof(struct cond_info));
drivers/scsi/aic7xxx/aicasm/aicasm_gram.y
1556
(struct macro_info *)malloc(sizeof(struct macro_info));
drivers/scsi/aic7xxx/aicasm/aicasm_gram.y
1586
marg = (struct macro_arg *)malloc(sizeof(*marg));
drivers/scsi/aic7xxx/aicasm/aicasm_symbol.c
227
newnode = (symbol_node_t *)malloc(sizeof(symbol_node_t));
drivers/scsi/aic7xxx/aicasm/aicasm_symbol.c
67
new_symbol = (symbol_t *)malloc(sizeof(symbol_t));
drivers/staging/media/atomisp/pci/sh_css_struct.h
35
void *(*malloc)(size_t bytes, bool zero_mem);
drivers/usb/gadget/function/f_fs.c
59
__attribute__((malloc));
drivers/video/logo/pnmtologo.c
159
logo_data = (struct color **)malloc(logo_height*sizeof(struct color *));
drivers/video/logo/pnmtologo.c
163
logo_data[i] = malloc(logo_width*sizeof(struct color));
fs/unicode/mkutf8data.c
2162
um = malloc(i * sizeof(unsigned int));
fs/unicode/mkutf8data.c
2218
um = malloc(i * sizeof(unsigned int));
fs/unicode/mkutf8data.c
2259
um = malloc(sizeof(unsigned int));
fs/unicode/mkutf8data.c
2263
um = malloc(sizeof(unsigned int));
fs/unicode/mkutf8data.c
2280
um = malloc(sizeof(unsigned int));
fs/unicode/mkutf8data.c
2284
um = malloc(sizeof(unsigned int));
fs/unicode/mkutf8data.c
2362
um = malloc(i * sizeof(unsigned int));
fs/unicode/mkutf8data.c
2462
um = malloc(i * sizeof(unsigned int));
fs/unicode/mkutf8data.c
2467
um = malloc(i * sizeof(unsigned int));
fs/unicode/mkutf8data.c
2476
unicode_data[unichar].utf8nfdi = malloc(2);
fs/unicode/mkutf8data.c
2526
um = malloc(i * sizeof(unsigned int));
fs/unicode/mkutf8data.c
2532
um = malloc(i * sizeof(unsigned int));
fs/unicode/mkutf8data.c
2580
um = malloc(i * sizeof(unsigned int));
fs/unicode/mkutf8data.c
497
node = malloc(sizeof(*node));
include/linux/decompress/mm.h
70
#define large_malloc(a) malloc(a)
lib/bootconfig.c
74
return malloc(size);
lib/decompress_bunzip2.c
643
bd = *bdp = malloc(i);
lib/decompress_bunzip2.c
692
outbuf = malloc(BZIP2_IOBUF_SIZE);
lib/decompress_bunzip2.c
701
inbuf = malloc(BZIP2_IOBUF_SIZE);
lib/decompress_inflate.c
55
out_buf = malloc(out_len);
lib/decompress_inflate.c
68
zbuf = malloc(GZIP_IOBUF_SIZE);
lib/decompress_inflate.c
76
strm = malloc(sizeof(*strm));
lib/decompress_inflate.c
82
strm->workspace = malloc(flush ? zlib_inflate_workspacesize() :
lib/decompress_unlzma.c
565
inbuf = malloc(LZMA_IOBUF_SIZE);
lib/decompress_unlzo.c
116
out_buf = malloc(LZO_BLOCK_SIZE);
lib/decompress_unlzo.c
132
in_buf = malloc(lzo1x_worst_compress(LZO_BLOCK_SIZE));
lib/decompress_unxz.c
164
#define kmalloc_obj(type) malloc(sizeof(type))
lib/decompress_unxz.c
166
#define vmalloc(size) malloc(size)
lib/decompress_unxz.c
289
b.out = malloc(XZ_IOBUF_SIZE);
lib/decompress_unxz.c
296
in = malloc(XZ_IOBUF_SIZE);
lib/inflate.c
364
stk = malloc(sizeof(*stk));
lib/inflate.c
488
if ((q = (struct huft *)malloc((z + 1)*sizeof(struct huft))) ==
lib/inflate.c
779
l = malloc(sizeof(*l) * 288);
lib/inflate.c
852
ll = malloc(sizeof(*ll) * (288+32)); /* literal/length and distance code lengths */
lib/inflate.c
854
ll = malloc(sizeof(*ll) * (286+30)); /* literal/length and distance code lengths */
samples/bpf/test_lru_dist.c
108
lru->free_nodes = malloc(lru_size * sizeof(struct pfect_lru_node));
samples/bpf/test_lru_dist.c
178
b = malloc(fst.st_size);
samples/bpf/test_lru_dist.c
189
retkeys = malloc(counts * sizeof(unsigned long long));
samples/landlock/sandboxer.c
97
*path_list = malloc(num_paths * sizeof(**path_list));
samples/mei/mei-amt-version.c
388
*read_buf = (uint8_t *)malloc(sizeof(uint8_t) * in_buf_sz);
samples/seccomp/user-trap.c
302
req = malloc(sizes.seccomp_notif);
samples/seccomp/user-trap.c
306
resp = malloc(sizes.seccomp_notif_resp);
scripts/asn1_compiler.c
1088
action = malloc(sizeof(struct action));
scripts/asn1_compiler.c
423
tokens[tix].content = malloc(tokens[tix].size + 1);
scripts/asn1_compiler.c
463
tokens[tix].content = malloc(tokens[tix].size + 1);
scripts/asn1_compiler.c
605
if (!(buffer = malloc(st.st_size + 1))) {
scripts/dtc/util.h
52
void *new = malloc(len);
scripts/genksyms/genksyms.h
75
#define xmalloc(size) ({ void *__ptr = malloc(size); \
scripts/include/xalloc.h
11
void *p = malloc(size);
scripts/insert-sys-cert.c
245
buf = malloc(*size);
scripts/ipe/polgen/polgen.c
36
lbuf = malloc(fsize);
scripts/kconfig/lxdialog/checklist.c
21
char *list_item = malloc(list_width + 1);
scripts/kconfig/lxdialog/menubox.c
57
char *menu_item = malloc(menu_width + 1);
scripts/kconfig/lxdialog/util.c
568
struct dialog_list *p = malloc(sizeof(*p));
scripts/kconfig/symbol.c
1061
sym_arr = malloc((cnt+1) * sizeof(struct symbol *));
scripts/recordmcount.c
153
void *const addr = malloc(size);
scripts/sorttable.c
174
idxs = (int *)malloc(*orc_ip_size);
scripts/sorttable.c
181
tmp_orc_ip_table = (int *)malloc(*orc_ip_size);
scripts/sorttable.c
188
tmp_orc_table = (struct orc_entry *)malloc(orc_size);
scripts/sorttable.c
494
vals = malloc(long_size * size);
tools/arch/x86/intel_sdsi/intel_sdsi.c
680
s = (struct sdsi_dev *)malloc(sizeof(*s));
tools/arch/x86/intel_sdsi/intel_sdsi.c
686
s->dev_name = (char *)malloc(sizeof(SDSI_DEV) + strlen(dev_no) + 1);
tools/arch/x86/intel_sdsi/intel_sdsi.c
695
s->dev_path = (char *)malloc(sizeof(AUX_DEV_PATH) + dev_name_len);
tools/arch/x86/kcpuid/kcpuid.c
192
func->leafs = malloc(sizeof(struct subleaf));
tools/arch/x86/kcpuid/kcpuid.c
258
range->funcs = malloc(range_funcs_sz);
tools/bootconfig/main.c
143
*buf = malloc(size + 1);
tools/bpf/bpf_jit_disasm.c
117
buff = malloc(len);
tools/bpf/bpf_jit_disasm.c
146
buff = malloc(len);
tools/bpf/bpf_jit_disasm.c
219
image = malloc(proglen);
tools/bpf/bpftool/btf.c
751
datums = malloc(sizeof(struct sort_datum) * n);
tools/bpf/bpftool/common.c
1112
fds = malloc(sizeof(int));
tools/bpf/bpftool/common.c
951
fds = malloc(sizeof(int));
tools/bpf/bpftool/gen.c
417
s = malloc(n + 1);
tools/bpf/bpftool/jit_disasm.c
256
ctx->info = malloc(sizeof(struct disasm_info));
tools/bpf/bpftool/json_writer.c
92
json_writer_t *self = malloc(sizeof(*self));
tools/bpf/bpftool/link.c
440
char *str = malloc(PERF_HW_CACHE_LEN);
tools/bpf/bpftool/map.c
1138
key = malloc(info.key_size);
tools/bpf/bpftool/map.c
1139
nextkey = malloc(info.key_size);
tools/bpf/bpftool/map.c
1209
key = malloc(info.key_size);
tools/bpf/bpftool/map.c
637
fds = malloc(sizeof(int));
tools/bpf/bpftool/map.c
65
return malloc(round_up(info->value_size, 8) *
tools/bpf/bpftool/map.c
68
return malloc(info->value_size);
tools/bpf/bpftool/map.c
834
key = malloc(info->key_size);
tools/bpf/bpftool/map.c
910
fds = malloc(sizeof(int));
tools/bpf/bpftool/map.c
971
*key = malloc(info->key_size);
tools/bpf/bpftool/pids.c
71
refs->refs = malloc(sizeof(*refs->refs));
tools/bpf/bpftool/prog.c
1197
*data_ptr = malloc(block_size);
tools/bpf/bpftool/prog.c
1609
char *type = malloc(strlen(*argv) + 2);
tools/bpf/bpftool/prog.c
1948
log_buf = malloc(log_buf_sz);
tools/bpf/bpftool/prog.c
278
value = malloc(map_info->value_size);
tools/bpf/bpftool/prog.c
608
fds = malloc(sizeof(int));
tools/bpf/bpftool/prog.c
911
fds = malloc(sizeof(int));
tools/build/feature/test-cxa-demangle.cpp
9
char *output = (char*)malloc(len);
tools/firewire/nosy-dump.c
139
sa = malloc(sizeof *sa - sizeof sa->packet + length);
tools/firewire/nosy-dump.c
171
t = malloc(sizeof *t);
tools/firmware/ihex2fw.c
163
record = malloc(record_size);
tools/hv/hv_fcopy_uio_daemon.c
493
desc = malloc(ring_size * sizeof(unsigned char));
tools/hv/hv_kvp_daemon.c
1903
lic_version = malloc(strlen(p) + 1);
tools/hv/hv_kvp_daemon.c
284
kvp_file_info[i].records = malloc(alloc_unit);
tools/hv/hv_vss_daemon.c
71
buffer = malloc(PATH_MAX);
tools/iio/iio_generic_buffer.c
480
device_name = malloc(IIO_MAX_NAME_LENGTH);
tools/iio/iio_generic_buffer.c
500
trigger_name = malloc(IIO_MAX_NAME_LENGTH);
tools/iio/iio_generic_buffer.c
701
data = malloc(total_buf_len);
tools/iio/iio_utils.c
373
*ci_array = malloc(sizeof(**ci_array) * (*counter));
tools/iio/iio_utils.c
599
filename = malloc(strlen(iio_dir) + strlen(type)
tools/iio/iio_utils.c
658
char *temp = malloc(strlen(basedir) + strlen(filename) + 2);
tools/iio/iio_utils.c
754
char *temp = malloc(strlen(basedir) + strlen(filename) + 2);
tools/iio/iio_utils.c
861
char *temp = malloc(strlen(basedir) + strlen(filename) + 2);
tools/iio/iio_utils.c
908
char *temp = malloc(strlen(basedir) + strlen(filename) + 2);
tools/iio/iio_utils.c
955
char *temp = malloc(strlen(basedir) + strlen(filename) + 2);
tools/include/linux/bitmap.h
99
return malloc(bitmap_size(nbits));
tools/include/nolibc/stdlib.h
159
return malloc(x);
tools/include/nolibc/stdlib.h
170
return malloc(new_size);
tools/include/nolibc/stdlib.h
182
ret = malloc(new_size);
tools/include/nolibc/string.h
16
static void *malloc(size_t len);
tools/include/nolibc/string.h
187
ret = malloc(len + 1);
tools/include/nolibc/string.h
201
ret = malloc(len + 1);
tools/lib/bpf/bpf.c
221
info = malloc(info_len);
tools/lib/bpf/bpf_prog_linfo.c
127
prog_linfo->raw_linfo = malloc(data_sz);
tools/lib/bpf/bpf_prog_linfo.c
147
prog_linfo->raw_jited_linfo = malloc(data_sz);
tools/lib/bpf/bpf_prog_linfo.c
154
prog_linfo->nr_jited_linfo_per_func = malloc(nr_jited_func *
tools/lib/bpf/bpf_prog_linfo.c
163
prog_linfo->jited_linfo_func_idx = malloc(nr_jited_func *
tools/lib/bpf/btf.c
1134
btf->raw_data = malloc(size);
tools/lib/bpf/btf.c
1411
data = malloc(sz);
tools/lib/bpf/btf.c
1703
ptr = malloc(last_size);
tools/lib/bpf/btf.c
1802
hdr = malloc(btf->hdr->hdr_len);
tools/lib/bpf/btf.c
1803
types = malloc(btf->hdr->type_len);
tools/lib/bpf/btf.c
3389
btf_ext->data = malloc(size);
tools/lib/bpf/btf.c
3818
d->map = malloc(sizeof(__u32) * type_cnt);
tools/lib/bpf/btf.c
3835
d->hypot_map = malloc(sizeof(__u32) * type_cnt);
tools/lib/bpf/hashmap.c
194
entry = malloc(sizeof(struct hashmap_entry));
tools/lib/bpf/hashmap.c
55
struct hashmap *map = malloc(sizeof(struct hashmap));
tools/lib/bpf/libbpf.c
10084
buf = malloc(len);
tools/lib/bpf/libbpf.c
13594
*copy_mem = malloc(ehdr_size);
tools/lib/bpf/libbpf.c
1466
st_ops->data = malloc(type->size);
tools/lib/bpf/libbpf.c
1468
st_ops->kern_func_off = malloc(btf_vlen(type) *
tools/lib/bpf/libbpf.c
2976
map->inner_map->name = malloc(strlen(map_name) + sizeof(".inner") + 1);
tools/lib/bpf/libbpf.c
3006
obj->arena_data = malloc(data_sz);
tools/lib/bpf/libbpf.c
3980
obj->jumptables_data = malloc(data->d_size);
tools/lib/bpf/libbpf.c
887
prog->insns = malloc(insn_data_sz);
tools/lib/bpf/libbpf_probes.c
241
raw_btf = malloc(btf_len);
tools/lib/bpf/strset.c
58
set->strs_data = malloc(init_data_sz);
tools/lib/bpf/zip.c
222
archive = malloc(sizeof(*archive));
tools/lib/perf/cpumap.c
31
cpus = malloc(sizeof(*cpus) + sizeof(struct perf_cpu) * nr_cpus);
tools/lib/perf/cpumap.c
426
tmp_cpus = malloc(tmp_len * sizeof(struct perf_cpu));
tools/lib/perf/include/internal/rc_check.h
79
object ? (result = malloc(sizeof(*result)), \
tools/lib/slab.c
21
ret = malloc(size);
tools/lib/string.c
31
void *p = malloc(len);
tools/lib/subcmd/exec-cmd.c
175
nargv = malloc(sizeof(*nargv) * (argc + 2));
tools/lib/subcmd/help.c
19
struct cmdname *ent = malloc(sizeof(*ent) + len + 1);
tools/lib/thermal/thermal.c
132
th = malloc(sizeof(*th));
tools/mm/page_owner_sort.c
373
char *comm_str = malloc(TASK_COMM_LEN);
tools/mm/page_owner_sort.c
483
list[list_size].txt = malloc(len+1);
tools/mm/page_owner_sort.c
812
list = malloc(max_size * sizeof(*list));
tools/mm/page_owner_sort.c
813
buf = malloc(BUF_SIZE);
tools/mm/page_owner_sort.c
814
ext_buf = malloc(BUF_SIZE);
tools/net/ynl/lib/ynl.c
744
ys = malloc(sizeof(*ys) + 2 * YNL_SOCKET_BUFFER_SIZE);
tools/net/ynl/ynltool/json_writer.c
85
json_writer_t *self = malloc(sizeof(*self));
tools/objtool/arch/loongarch/special.c
45
orig_table = malloc(sizeof(struct table_info));
tools/objtool/builtin-check.c
277
backup = malloc(strlen(objname) + strlen(ORIG_SUFFIX) + 1);
tools/objtool/check.c
4958
chunk = malloc(sizeof(*chunk));
tools/objtool/disas.c
360
dctx = malloc(sizeof(*dctx));
tools/objtool/elf.c
1129
elf = malloc(sizeof(*elf));
tools/objtool/elf.c
1205
tmp_name = malloc(strlen(name) + 8);
tools/objtool/elf.c
1498
rsec->data->d_buf = malloc(nr_alloc * elf_rela_size(elf));
tools/objtool/elf.c
1578
rsec_name = malloc(strlen(sec->name) + strlen(".rela") + 1);
tools/objtool/include/objtool/warn.h
33
str = malloc(strlen(sym->name) + strlen(sec->name) + 40);
tools/objtool/include/objtool/warn.h
38
str = malloc(strlen(sec->name) + 20);
tools/objtool/klp-diff.c
69
new = malloc(len + 1);
tools/objtool/objtool.c
96
str = malloc(self_len + file_len + 2);
tools/objtool/orc_gen.c
26
struct orc_list_entry *entry = malloc(sizeof(*entry));
tools/objtool/signal.c
109
ss.ss_sp = malloc(SIGSTKSZ);
tools/objtool/special.c
154
alt = malloc(sizeof(*alt));
tools/perf/arch/arm/tests/dwarf-unwind.c
21
buf = malloc(STACK_SIZE);
tools/perf/arch/arm64/tests/dwarf-unwind.c
21
buf = malloc(STACK_SIZE);
tools/perf/arch/arm64/util/header.c
66
char *buf = malloc(MIDR_SIZE);
tools/perf/arch/powerpc/tests/dwarf-unwind.c
21
buf = malloc(STACK_SIZE);
tools/perf/arch/s390/util/header.c
142
char *buf = malloc(128);
tools/perf/arch/x86/tests/dwarf-unwind.c
21
buf = malloc(STACK_SIZE);
tools/perf/arch/x86/tests/dwarf-unwind.c
59
buf = malloc(sizeof(u64) * PERF_REGS_MAX);
tools/perf/arch/x86/util/header.c
68
char *buf = malloc(128);
tools/perf/bench/numa.c
1093
nodes = (int *)malloc(g->p.nr_nodes * sizeof(int));
tools/perf/bench/numa.c
983
node_present = (char *)malloc(g->p.nr_nodes * sizeof(char));
tools/perf/bench/sched-messaging.c
216
struct sender_context *snd_ctx = malloc(sizeof(struct sender_context) +
tools/perf/bench/sched-messaging.c
225
struct receiver_context *ctx = malloc(sizeof(*ctx));
tools/perf/bench/sched-messaging.c
304
worker_tab = malloc(num_fds * 2 * num_groups * sizeof(union messaging_worker));
tools/perf/builtin-ftrace.c
1591
entry = malloc(sizeof(*entry) + strlen(str) + 1);
tools/perf/builtin-ftrace.c
1624
entry = malloc(sizeof(*entry) + strlen(p) + 1);
tools/perf/builtin-ftrace.c
399
cpumask = malloc(mask_size);
tools/perf/builtin-inject.c
1065
ent = malloc(event->header.size + sizeof(struct event_entry));
tools/perf/builtin-inject.c
1653
buf = malloc(PERF_SAMPLE_MAX_SIZE);
tools/perf/builtin-inject.c
2171
void *buf = malloc(sz);
tools/perf/builtin-inject.c
339
inject->event_copy = malloc(PERF_SAMPLE_MAX_SIZE);
tools/perf/builtin-inject.c
405
inject->event_copy = malloc(PERF_SAMPLE_MAX_SIZE);
tools/perf/builtin-kmem.c
111
data = malloc(sizeof(*data));
tools/perf/builtin-kmem.c
156
data = malloc(sizeof(*data));
tools/perf/builtin-record.c
2656
event = malloc(sizeof(event->comm) + machine->id_hdr_size);
tools/perf/builtin-record.c
2677
event = malloc(sizeof(event->namespaces) +
tools/perf/builtin-sched.c
3486
sched->curr_pid = malloc(MAX_CPUS * sizeof(*(sched->curr_pid)));
tools/perf/builtin-sched.c
677
struct sched_thread_parms *parms = malloc(sizeof(*parms));
tools/perf/builtin-script.c
3665
buf = malloc(3 * MAXPATHLEN + BUFSIZ);
tools/perf/builtin-script.c
3817
char **__argv = malloc(sizeof(const char *) * argc);
tools/perf/builtin-script.c
4316
__argv = malloc((argc + 6) * sizeof(const char *));
tools/perf/builtin-script.c
4342
__argv = malloc((argc + 4) * sizeof(const char *));
tools/perf/builtin-script.c
4380
__argv = malloc((argc + 2) * sizeof(const char *));
tools/perf/builtin-timechart.c
1090
task_from = malloc(40);
tools/perf/builtin-timechart.c
1094
task_to = malloc(40);
tools/perf/builtin-timechart.c
1314
struct process_filter *filt = malloc(sizeof(*filt));
tools/perf/builtin-trace.c
2267
trace->ev_qualifier_ids.entries = malloc(nr_allocated *
tools/perf/builtin-trace.c
2805
ttrace->entry_str = malloc(trace__entry_str_size);
tools/perf/builtin-trace.c
4824
entry = malloc(nr * sizeof(*entry));
tools/perf/builtin-trace.c
5219
lists[list] = malloc(len);
tools/perf/jvmti/libjvmti.c
101
*tab = malloc(nr_total * sizeof(**tab));
tools/perf/jvmti/libjvmti.c
195
*buffer = malloc((len + 1) * sizeof(char));
tools/perf/jvmti/libjvmti.c
265
line_file_names = malloc(sizeof(char*) * nr_lines);
tools/perf/tests/api-io.c
70
io->buf = malloc(buf_size);
tools/perf/tests/bp_account.c
162
fd = malloc(sizeof(int) * (wp_cnt + bp_cnt));
tools/perf/tests/dso-data.c
165
buf = malloc(TEST_FILE_SIZE);
tools/perf/tests/dso-data.c
36
buf = malloc(size);
tools/perf/tests/sample-parsing.c
315
event = malloc(bufsz);
tools/perf/tests/shell/coresight/memcpy_thread/memcpy_thread.c
22
src = malloc(a->size * 1024);
tools/perf/tests/shell/coresight/memcpy_thread/memcpy_thread.c
23
dst = malloc(a->size * 1024);
tools/perf/tests/switch-tracking.c
227
node = malloc(sizeof(struct event_node));
tools/perf/ui/browsers/hists.c
2740
script_opt = malloc(len);
tools/perf/ui/browsers/scripts.c
276
buf = malloc(SCRIPT_MAX_NO * (SCRIPT_NAMELEN + SCRIPT_FULLPATH_LEN));
tools/perf/ui/gtk/util.c
15
ctx = malloc(sizeof(*pgctx));
tools/perf/ui/hist.c
1183
node = malloc(sizeof(*node));
tools/perf/ui/stdio/hist.c
103
rem_sq_bracket = malloc(sizeof(*rem_sq_bracket) + 6);
tools/perf/ui/stdio/hist.c
861
line = malloc(linesz);
tools/perf/util/annotate-data.c
628
stack = malloc(sizeof(*stack));
tools/perf/util/annotate-data.c
689
gvar = malloc(sizeof(*gvar));
tools/perf/util/annotate.c
1987
entry = malloc(sizeof(*entry));
tools/perf/util/annotate.c
3050
link = malloc(sizeof(*link));
tools/perf/util/arm-spe.c
238
speq->event_buf = malloc(PERF_SAMPLE_MAX_SIZE);
tools/perf/util/auxtrace.c
2122
return malloc(c->entry_size);
tools/perf/util/auxtrace.c
293
p = malloc(size);
tools/perf/util/auxtrace.c
910
auxtrace_index = malloc(sizeof(struct auxtrace_index));
tools/perf/util/block-range.c
116
struct block_range *head = malloc(sizeof(struct block_range));
tools/perf/util/block-range.c
139
entry = malloc(sizeof(struct block_range));
tools/perf/util/block-range.c
163
struct block_range *head = malloc(sizeof(struct block_range));
tools/perf/util/block-range.c
201
struct block_range *tail = malloc(sizeof(struct block_range));
tools/perf/util/block-range.c
248
tail = malloc(sizeof(struct block_range));
tools/perf/util/block-range.c
271
struct block_range *hole = malloc(sizeof(struct block_range));
tools/perf/util/bpf-event.c
114
node = malloc(data_size + sizeof(struct btf_node));
tools/perf/util/bpf-event.c
651
info_node = malloc(sizeof(struct bpf_prog_info_node));
tools/perf/util/bpf-event.c
779
event = malloc(sizeof(event->bpf) + KSYM_NAME_LEN + machine->id_hdr_size);
tools/perf/util/bpf-event.c
865
info_node = malloc(sizeof(struct bpf_prog_info_node));
tools/perf/util/bpf-filter.c
619
expr = malloc(sizeof(*expr));
tools/perf/util/bpf-utils.c
156
info_linear = malloc(sizeof(struct perf_bpil) + data_len);
tools/perf/util/bpf_lock_contention.c
88
data = malloc(sizeof(*data));
tools/perf/util/bpf_map.c
24
return malloc(round_up(bpf_map__value_size(map), 8) *
tools/perf/util/bpf_map.c
27
return malloc(bpf_map__value_size(map));
tools/perf/util/bpf_map.c
40
key = malloc(bpf_map__key_size(map));
tools/perf/util/callchain.c
1570
new = malloc(sizeof(*new));
tools/perf/util/callchain.c
260
buf = malloc(strlen(arg) + 1);
tools/perf/util/capstone.c
493
buf = malloc(len);
tools/perf/util/cgroup.c
225
cn = malloc(sizeof(*cn) + strlen(fpath) + 1);
tools/perf/util/cgroup.c
538
cgrp = malloc(sizeof(*cgrp));
tools/perf/util/comm.c
84
cs = malloc(sizeof(*cs) + strlen(str) + 1);
tools/perf/util/cpumap.c
193
struct cpu_aggr_map *cpus = malloc(sizeof(*cpus) + sizeof(struct aggr_cpu_id) * nr);
tools/perf/util/cs-etm.c
643
tidq->event_buf = malloc(PERF_SAMPLE_MAX_SIZE);
tools/perf/util/cs-etm.c
683
tidq = malloc(sizeof(*tidq));
tools/perf/util/data-convert-bt.c
1212
priv = malloc(sizeof(*priv));
tools/perf/util/data-convert-bt.c
978
new_name = malloc(len);
tools/perf/util/demangle-java.c
176
buf = malloc(len);
tools/perf/util/demangle-ocaml.c
43
result = malloc(len + 1);
tools/perf/util/disasm.c
1256
buf = malloc(len);
tools/perf/util/disasm.c
1344
new_line = malloc(new_storage_len);
tools/perf/util/dlfilter.c
422
struct dlfilter *d = malloc(sizeof(*d));
tools/perf/util/dso.c
1919
code_buf = malloc(len);
tools/perf/util/dso.c
567
char *name = malloc(PATH_MAX);
tools/perf/util/dwarf-aux.c
1633
vt = malloc(sizeof(*vt));
tools/perf/util/dwarf-aux.c
1704
vt = malloc(sizeof(*vt));
tools/perf/util/env.c
710
env->numa_map = malloc(nr * sizeof(int));
tools/perf/util/evsel.c
443
tmp = malloc(sizeof(*tmp));
tools/perf/util/expr.c
161
data_ptr = malloc(sizeof(*data_ptr));
tools/perf/util/hashmap.c
194
entry = malloc(sizeof(struct hashmap_entry));
tools/perf/util/hashmap.c
55
struct hashmap *map = malloc(sizeof(struct hashmap));
tools/perf/util/header.c
2102
buf = malloc(sz);
tools/perf/util/header.c
262
buf = malloc(len);
tools/perf/util/header.c
3367
info_linear = malloc(sizeof(struct perf_bpil) +
tools/perf/util/header.c
3384
info_node = malloc(sizeof(struct bpf_prog_info_node));
tools/perf/util/header.c
3432
node = malloc(sizeof(struct btf_node) + data_size);
tools/perf/util/hisi-ptt.c
95
void *data = malloc(size);
tools/perf/util/hist.c
1151
he_cache = malloc(sizeof(*he_cache) * (cursor->nr + 1));
tools/perf/util/hist.c
531
he->stat_acc = malloc(sizeof(he->stat));
tools/perf/util/hist.c
548
he->branch_info = malloc(sizeof(*he->branch_info));
tools/perf/util/intel-pt-decoder/intel-pt-decoder.c
419
blk = malloc(sizeof(struct intel_pt_blk));
tools/perf/util/intel-pt-decoder/intel-pt-log.c
138
b->buf = malloc(b->buf_sz);
tools/perf/util/intel-pt.c
1318
ptq->event_buf = malloc(PERF_SAMPLE_MAX_SIZE);
tools/perf/util/intel-tpebs.c
83
record_argv = malloc((10 + 2 * tpebs_event_size) * sizeof(*record_argv));
tools/perf/util/intlist.c
116
struct intlist *ilist = malloc(sizeof(*ilist));
tools/perf/util/intlist.c
18
struct int_node *node = malloc(sizeof(*node));
tools/perf/util/jitdump.c
155
buf = malloc(bsz);
tools/perf/util/jitdump.c
267
jd->buf = malloc(sz);
tools/perf/util/jitdump.c
660
data = malloc(sz);
tools/perf/util/jitdump.c
687
unwinding_data = malloc(unwinding_data_size);
tools/perf/util/levenshtein.c
48
int *row0 = malloc(sizeof(int) * (len2 + 1));
tools/perf/util/levenshtein.c
49
int *row1 = malloc(sizeof(int) * (len2 + 1));
tools/perf/util/levenshtein.c
50
int *row2 = malloc(sizeof(int) * (len2 + 1));
tools/perf/util/libbfd.c
107
syms = malloc(storage);
tools/perf/util/libbfd.c
348
symbols = malloc(symbols_size);
tools/perf/util/lock-contention.c
38
entry = malloc(sizeof(*entry) + strlen(tok) + 1);
tools/perf/util/machine.c
134
struct machine *machine = malloc(sizeof(*machine));
tools/perf/util/machine.c
249
struct machine *pos, *machine = malloc(sizeof(*machine));
tools/perf/util/machine.c
2545
return malloc(sizeof(struct stitch_list));
tools/perf/util/machine.c
3083
struct thread_list *entry = malloc(sizeof(*entry));
tools/perf/util/maps.c
1047
malloc(nr_maps_allocated * sizeof(struct map *));
tools/perf/util/maps.c
1055
malloc(nr_maps_allocated * sizeof(struct map *));
tools/perf/util/maps.c
1335
merged_maps_by_address = malloc(merged_nr_maps_allocated * sizeof(*merged_maps_by_address));
tools/perf/util/maps.c
384
maps_by_name = malloc(RC_CHK_ACCESS(maps)->nr_maps_allocated *
tools/perf/util/mem-events.c
150
buf = malloc(strlen(str) + 1);
tools/perf/util/mem-events.c
262
char *event_name_storage = malloc(event_name_storage_size);
tools/perf/util/metricgroup.c
1492
expr = malloc(sizeof(struct metric_expr));
tools/perf/util/metricgroup.c
1674
new_expr = malloc(sizeof(*new_expr));
tools/perf/util/metricgroup.c
79
struct metric_event *me = malloc(sizeof(struct metric_event));
tools/perf/util/mmap.c
129
map->aio.data[idx] = malloc(mmap__mmap_len(map));
tools/perf/util/ordered-events.c
148
oe->buffer = malloc(size);
tools/perf/util/parse-events.c
1659
list = malloc(sizeof(struct list_head));
tools/perf/util/parse-events.c
1722
*listp = malloc(sizeof(**listp));
tools/perf/util/parse-events.c
2683
term = malloc(sizeof(*term));
tools/perf/util/parse-events.y
36
list = malloc(sizeof(*list));
tools/perf/util/parse-events.y
501
struct parse_events_terms *head = malloc(sizeof(*head));
tools/perf/util/print-events.c
214
struct mep *me = malloc(sizeof(struct mep));
tools/perf/util/probe-event.c
3136
syms = malloc(sizeof(struct symbol *) * probe_conf.max_probes);
tools/perf/util/probe-event.c
3386
ret = malloc(sz_a + sz_b);
tools/perf/util/probe-finder.c
1930
*new_path = malloc((strlen(prefix) + strlen(raw_path) + 2));
tools/perf/util/scripting-engines/trace-event-perl.c
493
command_line = malloc((argc + 2) * sizeof(const char *));
tools/perf/util/scripting-engines/trace-event-python.c
1919
command_line = malloc((argc + 1) * sizeof(wchar_t *));
tools/perf/util/scripting-engines/trace-event-python.c
754
bf = malloc(size);
tools/perf/util/scripting-engines/trace-event-python.c
766
bf = malloc(size);
tools/perf/util/session.c
1466
struct deferred_event *de = malloc(sizeof(*de));
tools/perf/util/session.c
1472
de->event = malloc(sz);
tools/perf/util/session.c
2060
buf = malloc(cur_size);
tools/perf/util/sharded_mutex.c
16
result = malloc(size);
tools/perf/util/sort.c
2879
hse = malloc(sizeof(*hse));
tools/perf/util/sort.c
3245
hde = malloc(sizeof(*hde));
tools/perf/util/srccode.c
119
h = malloc(sizeof(struct srcfile));
tools/perf/util/stat.c
352
key = malloc(sizeof(*key));
tools/perf/util/strfilter.c
307
ret = malloc(len + 1);
tools/perf/util/string.c
221
char *expr = malloc(size);
tools/perf/util/string.c
436
new_s = malloc(strlen(haystack) + (num * (replace_len - 1) + 1));
tools/perf/util/strlist.c
159
struct strlist *slist = malloc(sizeof(*slist));
tools/perf/util/strlist.c
19
struct str_node *snode = malloc(sizeof(*snode));
tools/perf/util/svghelper.c
791
topology_map = malloc(sizeof(int) * nr_cpus);
tools/perf/util/symbol-elf.c
1899
char *buf = malloc(page_size);
tools/perf/util/symbol-elf.c
2420
buf_from = malloc(page_size);
tools/perf/util/symbol-elf.c
2421
buf_to = malloc(page_size);
tools/perf/util/symbol-minimal.c
149
phdr = malloc(phdr_size);
tools/perf/util/symbol-minimal.c
223
buf = malloc(buf_size);
tools/perf/util/symbol.c
1736
name = malloc(PATH_MAX);
tools/perf/util/symbol.c
2214
vmlinux_path = malloc(sizeof(char *) * (ARRAY_SIZE(vmlinux_paths) +
tools/perf/util/symbol.c
469
result = malloc(sizeof(*result) * size);
tools/perf/util/symbol.c
81
return malloc(sizeof(struct map_list_node));
tools/perf/util/synthetic-events.c
2409
ff.buf = malloc(sz);
tools/perf/util/synthetic-events.c
878
comm_event = malloc(sizeof(comm_event->comm) + machine->id_hdr_size);
tools/perf/util/synthetic-events.c
882
mmap_event = malloc(sizeof(mmap_event->mmap2) + machine->id_hdr_size);
tools/perf/util/synthetic-events.c
886
fork_event = malloc(sizeof(fork_event->fork) + machine->id_hdr_size);
tools/perf/util/synthetic-events.c
890
namespaces_event = malloc(sizeof(namespaces_event->namespaces) +
tools/perf/util/synthetic-events.c
961
comm_event = malloc(sizeof(comm_event->comm) + machine->id_hdr_size);
tools/perf/util/synthetic-events.c
965
mmap_event = malloc(sizeof(mmap_event->mmap2) + machine->id_hdr_size);
tools/perf/util/synthetic-events.c
969
fork_event = malloc(sizeof(fork_event->fork) + machine->id_hdr_size);
tools/perf/util/synthetic-events.c
973
namespaces_event = malloc(sizeof(namespaces_event->namespaces) +
tools/perf/util/time-utils.c
343
str = malloc(len + 3);
tools/perf/util/trace-event-info.c
605
tdata = malloc(sizeof(*tdata));
tools/perf/util/trace-event-read.c
138
str = malloc(size);
tools/perf/util/trace-event-read.c
178
buf = malloc(size + 1);
tools/perf/util/trace-event-read.c
212
header_page = malloc(size);
tools/perf/util/trace-event-read.c
251
buf = malloc(size);
tools/perf/util/trace-event-read.c
277
buf = malloc(size);
tools/perf/util/trace-event-read.c
355
buf = malloc(size + 1);
tools/perf/util/trace-event-scripting.c
185
scripting_context = malloc(sizeof(*scripting_context));
tools/perf/util/trace-event-scripting.c
251
scripting_context = malloc(sizeof(*scripting_context));
tools/perf/util/trace-event-scripting.c
39
struct script_spec *s = malloc(sizeof(*s) + strlen(spec) + 1);
tools/perf/util/tracepoint.c
33
char *dst, *path = malloc(strlen(event_string) + 4); /* Space for "/id\0". */
tools/perf/util/unwind-libunwind-local.c
388
char *debuglink = malloc(PATH_MAX);
tools/perf/util/values.c
16
values->pid = malloc(values->threads_max * sizeof(*values->pid));
tools/perf/util/values.c
17
values->tid = malloc(values->threads_max * sizeof(*values->tid));
tools/perf/util/values.c
192
counterwidth = malloc(values->num_counters * sizeof(*counterwidth));
tools/perf/util/values.c
26
values->counters = malloc(values->counters_max * sizeof(*values->counters));
tools/power/acpi/os_specific/service_layers/osunixxf.c
534
mem = (void *)malloc((size_t) size);
tools/power/acpi/tools/pfrut/pfrut.c
171
uuid = malloc(37);
tools/power/acpi/tools/pfrut/pfrut.c
414
log_buf = malloc(max_data_sz + 1);
tools/power/cpupower/bench/parse.c
123
struct config *config = malloc(sizeof(struct config));
tools/power/cpupower/bench/parse.c
71
filename = malloc(sizeof(char) * len);
tools/power/cpupower/lib/cpufreq.c
258
policy = malloc(sizeof(struct cpufreq_policy));
tools/power/cpupower/lib/cpufreq.c
308
current->next = malloc(sizeof(*current));
tools/power/cpupower/lib/cpufreq.c
313
first = malloc(sizeof(*first));
tools/power/cpupower/lib/cpufreq.c
321
current->governor = malloc(i - pos + 1);
tools/power/cpupower/lib/cpufreq.c
385
current->next = malloc(sizeof(*current));
tools/power/cpupower/lib/cpufreq.c
390
first = malloc(sizeof(*first));
tools/power/cpupower/lib/cpufreq.c
441
current->next = malloc(sizeof(*current));
tools/power/cpupower/lib/cpufreq.c
446
first = malloc(sizeof(*first));
tools/power/cpupower/lib/cpufreq.c
516
current->next = malloc(sizeof(*current));
tools/power/cpupower/lib/cpufreq.c
521
first = malloc(sizeof(*first));
tools/power/cpupower/lib/cpufreq.c
749
current->next = malloc(sizeof(*current));
tools/power/cpupower/lib/cpufreq.c
754
first = malloc(sizeof(*first));
tools/power/cpupower/lib/cpupower.c
174
cpu_top->core_info = malloc(sizeof(struct cpuid_core_info) * cpus);
tools/power/cpupower/utils/cpupower.c
90
page = malloc(len);
tools/power/cpupower/utils/helpers/bitmask.c
28
bmp = malloc(sizeof(*bmp));
tools/power/cpupower/utils/helpers/misc.c
247
online_cpus_str = (void *)malloc(sizeof(char) * str_len);
tools/power/cpupower/utils/helpers/misc.c
265
offline_cpus_str = (void *)malloc(sizeof(char) * str_len);
tools/power/cpupower/utils/idle_monitor/cpuidle_sysfs.c
178
previous_count = malloc(sizeof(long long *) * cpu_count);
tools/power/cpupower/utils/idle_monitor/cpuidle_sysfs.c
179
current_count = malloc(sizeof(long long *) * cpu_count);
tools/power/cpupower/utils/idle_monitor/cpuidle_sysfs.c
181
previous_count[num] = malloc(sizeof(long long) *
tools/power/cpupower/utils/idle_monitor/cpuidle_sysfs.c
183
current_count[num] = malloc(sizeof(long long) *
tools/power/cpupower/utils/idle_monitor/cpupower-monitor.c
85
temp = malloc(sizeof(char) * (n+1));
tools/power/x86/x86_energy_perf_policy/x86_energy_perf_policy.c
652
buffer = malloc(4096);
tools/spi/spidev_test.c
346
tx = malloc(size);
tools/spi/spidev_test.c
350
rx = malloc(size);
tools/spi/spidev_test.c
375
tx = malloc(sb.st_size);
tools/spi/spidev_test.c
379
rx = malloc(sb.st_size);
tools/spi/spidev_test.c
416
tx = malloc(len);
tools/spi/spidev_test.c
422
rx = malloc(len);
tools/testing/memblock/tests/common.c
106
memory_block.base = malloc(PHYS_MEM_SIZE);
tools/testing/radix-tree/regression1.c
180
threads = malloc(nr_threads * sizeof(*threads));
tools/testing/radix-tree/regression1.c
58
p = malloc(sizeof(struct page));
tools/testing/radix-tree/regression2.c
70
p = malloc(sizeof(struct page));
tools/testing/radix-tree/tag_check.c
277
thrash_state = malloc(THRASH_SIZE);
tools/testing/radix-tree/test.c
30
struct item *ret = malloc(sizeof(*ret));
tools/testing/scatterlist/linux/mm.h
104
return (unsigned long)malloc(PAGE_SIZE);
tools/testing/scatterlist/linux/mm.h
114
return malloc(size);
tools/testing/scatterlist/linux/mm.h
120
return malloc(n * size);
tools/testing/selftests/alsa/conf.c
289
data = malloc(sizeof(*data));
tools/testing/selftests/alsa/conf.c
314
char *filename = malloc(sl);
tools/testing/selftests/alsa/mixer-test.c
133
ctl_data = malloc(sizeof(*ctl_data));
tools/testing/selftests/alsa/mixer-test.c
79
card_data = malloc(sizeof(*card_data));
tools/testing/selftests/alsa/pcm-test.c
345
samples = malloc((rate * channels * snd_pcm_format_physical_width(format)) / 8);
tools/testing/selftests/alsa/test-pcmtest-driver.c
136
card_name = malloc(127);
tools/testing/selftests/alsa/utimer-test.c
111
char *buf = malloc(TIMER_OUTPUT_BUF_LEN);
tools/testing/selftests/arm64/abi/tpidr2.c
151
stack = malloc(__STACK_SIZE);
tools/testing/selftests/arm64/fp/fp-ptrace.c
1191
iov.iov_base = malloc(iov.iov_len);
tools/testing/selftests/arm64/fp/fp-ptrace.c
1235
iov.iov_base = malloc(iov.iov_len);
tools/testing/selftests/arm64/fp/fp-ptrace.c
1304
iov.iov_base = malloc(iov.iov_len);
tools/testing/selftests/arm64/fp/fp-ptrace.c
168
tmp = malloc(size);
tools/testing/selftests/arm64/fp/fp-ptrace.c
413
iov.iov_base = malloc(iov.iov_len);
tools/testing/selftests/arm64/fp/fp-ptrace.c
497
iov.iov_base = malloc(iov.iov_len);
tools/testing/selftests/arm64/fp/fp-ptrace.c
579
iov.iov_base = malloc(iov.iov_len);
tools/testing/selftests/arm64/fp/kernel-test.c
189
ref = malloc(digest_len);
tools/testing/selftests/arm64/fp/kernel-test.c
195
digest = malloc(digest_len);
tools/testing/selftests/arm64/fp/kernel-test.c
277
data = malloc(DATA_SIZE);
tools/testing/selftests/arm64/fp/sve-ptrace.c
350
svebuf = malloc(SVE_PT_SIZE(0, SVE_PT_REGS_FPSIMD));
tools/testing/selftests/arm64/fp/sve-ptrace.c
407
svebuf = malloc(SVE_PT_SIZE(0, SVE_PT_REGS_FPSIMD));
tools/testing/selftests/arm64/fp/sve-ptrace.c
465
write_buf = malloc(data_size);
tools/testing/selftests/arm64/fp/sve-ptrace.c
566
write_buf = malloc(data_size);
tools/testing/selftests/arm64/fp/za-ptrace.c
204
write_buf = malloc(data_size);
tools/testing/selftests/arm64/mte/mte_common_util.c
177
return malloc(entire_size) + range_before;
tools/testing/selftests/arm64/signal/testcases/zt_regs.c
58
zeros = malloc(ZT_SIG_REGS_SIZE(zt->nregs));
tools/testing/selftests/arm64/tags/tags_test.c
26
ptr = (struct utsname *)malloc(sizeof(*ptr));
tools/testing/selftests/bpf/benchs/bench_bloom_filter_map.c
137
val = malloc(val_size);
tools/testing/selftests/bpf/benchs/bench_bpf_crypto.c
105
input = malloc(sz);
tools/testing/selftests/bpf/benchs/bench_local_storage_create.c
120
t->fds = malloc(batch_sz * sizeof(*t->fds));
tools/testing/selftests/bpf/benchs/bench_local_storage_create.c
126
t->pthds = malloc(batch_sz * sizeof(*t->pthds));
tools/testing/selftests/bpf/benchs/bench_local_storage_create.c
131
t->pthd_results = malloc(batch_sz * sizeof(*t->pthd_results));
tools/testing/selftests/bpf/benchs/bench_sockmap.c
388
char *buf = malloc(recv_buf_size);
tools/testing/selftests/bpf/jit_disasm_helpers.c
197
image = malloc(len);
tools/testing/selftests/bpf/jit_disasm_helpers.c
204
func_lens = malloc(jited_funcs * sizeof(__u32));
tools/testing/selftests/bpf/json_writer.c
92
json_writer_t *self = malloc(sizeof(*self));
tools/testing/selftests/bpf/map_tests/htab_map_batch_ops.c
102
values = malloc(max_entries * sizeof(int));
tools/testing/selftests/bpf/map_tests/htab_map_batch_ops.c
103
visited = malloc(max_entries * sizeof(int));
tools/testing/selftests/bpf/map_tests/htab_map_batch_ops.c
98
keys = malloc(max_entries * sizeof(int));
tools/testing/selftests/bpf/map_tests/lpm_trie_map_basic_ops.c
76
node = malloc(sizeof(*node) + n);
tools/testing/selftests/bpf/map_tests/lpm_trie_map_batch_ops.c
86
keys = malloc(max_entries * sizeof(struct test_lpm_key));
tools/testing/selftests/bpf/map_tests/lpm_trie_map_batch_ops.c
87
values = malloc(max_entries * sizeof(int));
tools/testing/selftests/bpf/map_tests/lpm_trie_map_batch_ops.c
88
visited = malloc(max_entries * sizeof(int));
tools/testing/selftests/bpf/map_tests/sk_storage_map.c
168
sk_fds = malloc(sizeof(*sk_fds) * nr_sk_per_thread);
tools/testing/selftests/bpf/map_tests/sk_storage_map.c
229
sk_thread_ids = malloc(sizeof(pthread_t) * nr_sk_threads);
tools/testing/selftests/bpf/map_tests/sk_storage_map.c
335
sk_thread_ids = malloc(sizeof(pthread_t) * nr_sk_threads);
tools/testing/selftests/bpf/netlink_helpers.c
122
buf = malloc(len);
tools/testing/selftests/bpf/network_helpers.c
1178
ctx = malloc(sizeof(*ctx));
tools/testing/selftests/bpf/network_helpers.c
195
fds = malloc(sizeof(*fds) * nr_listens);
tools/testing/selftests/bpf/prog_tests/bloom_filter_map.c
169
rand_vals = malloc(sizeof(*rand_vals) * map_size);
tools/testing/selftests/bpf/prog_tests/bpf_iter.c
1134
val = malloc(8 * bpf_num_possible_cpus());
tools/testing/selftests/bpf/prog_tests/bpf_iter.c
348
test_data = malloc(sizeof(char) * 10);
tools/testing/selftests/bpf/prog_tests/bpf_iter.c
351
test_data_long = malloc(sizeof(char) * 5000);
tools/testing/selftests/bpf/prog_tests/bpf_iter.c
786
buf = malloc(expected_read_len);
tools/testing/selftests/bpf/prog_tests/bpf_iter.c
956
val = malloc(8 * bpf_num_possible_cpus());
tools/testing/selftests/bpf/prog_tests/bpf_iter_setsockopt.c
57
est_fds = malloc(sizeof(*est_fds) * nr_est);
tools/testing/selftests/bpf/prog_tests/bpf_iter_setsockopt.c
61
accepted_fds = malloc(sizeof(*accepted_fds) * nr_est);
tools/testing/selftests/bpf/prog_tests/btf.c
4301
raw_btf = malloc(size_needed);
tools/testing/selftests/bpf/prog_tests/btf.c
4548
user_btf = malloc(raw_btf_size);
tools/testing/selftests/bpf/prog_tests/btf.c
4631
user_btf[i] = malloc(raw_btf_size);
tools/testing/selftests/bpf/prog_tests/btf.c
4759
user_btf = malloc(raw_btf_size);
tools/testing/selftests/bpf/prog_tests/btf.c
4919
func_info = malloc(info.nr_func_info * rec_size);
tools/testing/selftests/bpf/prog_tests/btf.c
6516
new_u32 = malloc(raw_u32_size);
tools/testing/selftests/bpf/prog_tests/btf.c
6571
func_info = malloc(info.nr_func_info * rec_size);
tools/testing/selftests/bpf/prog_tests/cgroup_attach_autodetach.c
67
ptr = malloc(4 * (1 << 20));
tools/testing/selftests/bpf/prog_tests/ctx_rewrite.c
335
re = malloc(sizeof(regex_t));
tools/testing/selftests/bpf/prog_tests/fexit_bpf2bpf.c
20
result = malloc((prog_cnt + 32 /* spare */) * sizeof(__u64));
tools/testing/selftests/bpf/prog_tests/for_each.c
113
percpu_valbuf = malloc(percpu_val_sz);
tools/testing/selftests/bpf/prog_tests/for_each.c
43
percpu_valbuf = malloc(percpu_val_sz);
tools/testing/selftests/bpf/prog_tests/get_branch_snapshot.c
47
pfd_array = malloc(sizeof(int) * cpu_cnt);
tools/testing/selftests/bpf/prog_tests/global_data.c
124
buff = malloc(bpf_map__value_size(map));
tools/testing/selftests/bpf/prog_tests/global_data_init.c
24
newval = malloc(sz);
tools/testing/selftests/bpf/prog_tests/global_data_init.c
46
buff = malloc(sz);
tools/testing/selftests/bpf/prog_tests/log_buf.c
161
log_buf = malloc(log_buf_sz);
tools/testing/selftests/bpf/prog_tests/log_buf.c
220
log_buf = malloc(log_buf_sz);
tools/testing/selftests/bpf/prog_tests/log_buf.c
44
obj_log_buf = malloc(3 * log_buf_sz);
tools/testing/selftests/bpf/prog_tests/lsm_cgroup.c
35
p.prog_ids = malloc(sizeof(u32) * p.prog_cnt);
tools/testing/selftests/bpf/prog_tests/lsm_cgroup.c
36
p.prog_attach_flags = malloc(sizeof(u32) * p.prog_cnt);
tools/testing/selftests/bpf/prog_tests/map_lookup_percpu_elem.c
14
buf = malloc(nr_cpus*sizeof(__u64));
tools/testing/selftests/bpf/prog_tests/netcnt.c
29
percpu_netcnt = malloc(sizeof(*percpu_netcnt) * nproc);
tools/testing/selftests/bpf/prog_tests/sha256.c
27
data = malloc(MAX_LEN);
tools/testing/selftests/bpf/prog_tests/sha256.c
30
digests = malloc((MAX_LEN + 1) * SHA256_DIGEST_LENGTH);
tools/testing/selftests/bpf/prog_tests/sock_iter_batch.c
233
established_socks = malloc(sizeof(*established_socks) * nr_connects*2);
tools/testing/selftests/bpf/prog_tests/sock_iter_batch.c
460
close_idx = malloc(sizeof(int) * (established_socks_len - 1));
tools/testing/selftests/bpf/prog_tests/sockmap_strp.c
191
snd = malloc(total);
tools/testing/selftests/bpf/prog_tests/sockmap_strp.c
192
rcv = malloc(total + 1);
tools/testing/selftests/bpf/prog_tests/sockopt.c
1144
optval = malloc(test->get_optlen);
tools/testing/selftests/bpf/prog_tests/task_kfunc.c
119
stack = (char *)malloc(stack_size);
tools/testing/selftests/bpf/prog_tests/task_local_data.h
177
malloc(tld_meta_p->size * 2);
tools/testing/selftests/bpf/prog_tests/test_tc_tunnel.c
176
conn = malloc(sizeof(struct connection));
tools/testing/selftests/bpf/prog_tests/test_veristat.c
23
struct fixture *fix = malloc(sizeof(struct fixture));
tools/testing/selftests/bpf/prog_tests/test_veristat.c
36
fix->output = malloc(fix->sz);
tools/testing/selftests/bpf/prog_tests/tp_attach_query.c
41
query = malloc(sizeof(*query) + sizeof(__u32) * num_progs);
tools/testing/selftests/bpf/prog_tests/xdp_adjust_frags.c
119
buf = malloc(buf_size);
tools/testing/selftests/bpf/prog_tests/xdp_adjust_frags.c
26
buf = malloc(128);
tools/testing/selftests/bpf/prog_tests/xdp_adjust_frags.c
51
buf = malloc(9000);
tools/testing/selftests/bpf/prog_tests/xdp_adjust_tail.c
172
buf = malloc(9000);
tools/testing/selftests/bpf/prog_tests/xdp_adjust_tail.c
236
buf = malloc(16384);
tools/testing/selftests/bpf/prog_tests/xdp_adjust_tail.c
307
buf = malloc(262144);
tools/testing/selftests/bpf/prog_tests/xdp_bpf2bpf.c
56
buf_in = malloc(BUF_SZ);
tools/testing/selftests/bpf/prog_tests/xdp_bpf2bpf.c
60
buf = malloc(BUF_SZ);
tools/testing/selftests/bpf/test_loader.c
679
name = malloc(descr_len + strlen(suffix) + 1);
tools/testing/selftests/bpf/test_progs.c
1189
char *buf = malloc(write_sz);
tools/testing/selftests/bpf/test_progs.c
1485
state->subtest_states = malloc(subtest_num * sizeof(*subtest_state));
tools/testing/selftests/bpf/test_progs.c
705
val_buf1 = malloc(stack_trace_len);
tools/testing/selftests/bpf/test_progs.c
706
val_buf2 = malloc(stack_trace_len);
tools/testing/selftests/bpf/test_progs.c
759
struct netns_obj *netns_obj = malloc(sizeof(*netns_obj));
tools/testing/selftests/bpf/test_verifier.c
760
raw_btf = malloc(sizeof(hdr) + types_len + strings_len);
tools/testing/selftests/bpf/testing_helpers.c
150
ext_test_str = malloc(strlen(test_spec) + glob_chars + 1);
tools/testing/selftests/bpf/testing_helpers.c
157
ext_subtest_str = malloc(strlen(subtest_str) + glob_chars + 1);
tools/testing/selftests/bpf/trace_helpers.c
718
addrs = malloc(max_cnt * sizeof(long));
tools/testing/selftests/bpf/veristat.c
1634
buf = malloc(buf_sz);
tools/testing/selftests/bpf/xdp_hw_metadata.c
828
rx_xsk = malloc(sizeof(struct xsk) * rxq);
tools/testing/selftests/cachestat/test_cachestat.c
54
data = malloc(filesize);
tools/testing/selftests/cgroup/lib/cgroup_util.c
112
buf = malloc(size);
tools/testing/selftests/cgroup/lib/cgroup_util.c
60
char *ret = malloc(len);
tools/testing/selftests/cgroup/lib/cgroup_util.c
70
char *ret = malloc(len);
tools/testing/selftests/cgroup/lib/cgroup_util.c
80
char *ret = malloc(len);
tools/testing/selftests/cgroup/test_memcontrol.c
180
buf = malloc(size);
tools/testing/selftests/cgroup/test_memcontrol.c
410
buf = malloc(size);
tools/testing/selftests/cgroup/test_memcontrol.c
62
buf = malloc(size);
tools/testing/selftests/cgroup/test_memcontrol.c
996
buf = malloc(size);
tools/testing/selftests/cgroup/test_zswap.c
273
mem = (char *)malloc(memsize);
tools/testing/selftests/cgroup/test_zswap.c
433
control_allocation = malloc(control_allocation_size);
tools/testing/selftests/cgroup/test_zswap.c
469
allocation = malloc(values->target_alloc_bytes);
tools/testing/selftests/cgroup/test_zswap.c
545
char *trigger_allocation = malloc(trigger_allocation_size);
tools/testing/selftests/cgroup/test_zswap.c
66
char *mem = (char *)malloc(size);
tools/testing/selftests/cgroup/test_zswap.c
87
char *mem = (char *)malloc(size);
tools/testing/selftests/damon/access_memory.c
40
regions = malloc(sizeof(*regions) * nr_regions);
tools/testing/selftests/damon/access_memory.c
42
regions[i] = malloc(sz_region);
tools/testing/selftests/damon/access_memory_even.c
28
regions = malloc(sizeof(*regions) * nr_regions);
tools/testing/selftests/damon/access_memory_even.c
30
regions[i] = malloc(sz_region);
tools/testing/selftests/drivers/dma-buf/udmabuf.c
62
list = malloc(sizeof(struct udmabuf_create_list) +
tools/testing/selftests/drivers/net/hw/ncdevmem.c
146
ctx = malloc(sizeof(*ctx));
tools/testing/selftests/drivers/net/hw/ncdevmem.c
882
tmp_mem = malloc(mem->size);
tools/testing/selftests/exec/execveat.c
139
char *result = malloc(strlen(left) + strlen(right) + 1);
tools/testing/selftests/filesystems/file_stressor.c
78
self->pids_openers = malloc(sizeof(pid_t) * self->nr_procs);
tools/testing/selftests/filesystems/file_stressor.c
80
self->pids_getdents = malloc(sizeof(pid_t) * self->nr_procs);
tools/testing/selftests/filesystems/file_stressor.c
82
self->fd_proc_pid = malloc(sizeof(int) * self->nr_procs);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test.c
227
list = malloc((num + 1) * sizeof(list[0]));
tools/testing/selftests/filesystems/mount-notify/mount-notify_test_ns.c
254
list = malloc((num + 1) * sizeof(list[0]));
tools/testing/selftests/filesystems/open_tree_ns/open_tree_ns_test.c
62
buf = malloc(bufsize);
tools/testing/selftests/filesystems/statmount/statmount_test.c
62
tmp = malloc(bufsize);
tools/testing/selftests/filesystems/statmount/statmount_test.c
66
buf = malloc(tmp->size);
tools/testing/selftests/filesystems/utils.c
143
stack = malloc(__STACK_SIZE);
tools/testing/selftests/ia64/aliasing-test.c
168
path2 = malloc(strlen(path) + strlen(name) + 3);
tools/testing/selftests/ia64/aliasing-test.c
83
path2 = malloc(strlen(path) + strlen(name) + 3);
tools/testing/selftests/iommu/iommufd.c
1319
tmp2 = malloc(BUFFER_SIZE);
tools/testing/selftests/ipc/msgque.c
150
msgque->messages = malloc(sizeof(struct msg1) * ds.msg_qnum);
tools/testing/selftests/kvm/arm64/page_fault_test.c
358
args->copy = malloc(args->paging_size);
tools/testing/selftests/kvm/arm64/vgic_lpi_stress.c
304
pthread_t *lpi_threads = malloc(nr_devices * sizeof(pthread_t));
tools/testing/selftests/kvm/arm64/vgic_lpi_stress.c
305
pthread_t *vcpu_threads = malloc(nr_vcpus * sizeof(pthread_t));
tools/testing/selftests/kvm/arm64/vgic_lpi_stress.c
339
vcpus = malloc(test_data.nr_cpus * sizeof(struct kvm_vcpu *));
tools/testing/selftests/kvm/demand_paging_test.c
169
guest_data_prototype = malloc(demand_paging_size);
tools/testing/selftests/kvm/demand_paging_test.c
187
uffd_descs = malloc(num_uffds * sizeof(struct uffd_desc *));
tools/testing/selftests/kvm/get-reg-list.c
68
c->name = malloc(len);
tools/testing/selftests/kvm/include/x86/processor.h
1042
cpuid = malloc(kvm_cpuid2_size(nr_entries));
tools/testing/selftests/kvm/kvm_binary_stats_test.c
153
stats_data = malloc(size_data);
tools/testing/selftests/kvm/kvm_binary_stats_test.c
213
vms = malloc(sizeof(vms[0]) * max_vm);
tools/testing/selftests/kvm/kvm_binary_stats_test.c
216
vcpus = malloc(sizeof(struct kvm_vcpu *) * max_vm * max_vcpu);
tools/testing/selftests/kvm/kvm_binary_stats_test.c
41
id = malloc(header.name_size);
tools/testing/selftests/kvm/kvm_page_table_test.c
352
vcpu_threads = malloc(nr_vcpus * sizeof(*vcpu_threads));
tools/testing/selftests/kvm/lib/memstress.c
372
bitmaps = malloc(slots * sizeof(bitmaps[0]));
tools/testing/selftests/kvm/lib/test_util.c
435
clk_name = malloc(st.st_size);
tools/testing/selftests/kvm/lib/userfaultfd_util.c
119
uffd_desc = malloc(sizeof(struct uffd_desc));
tools/testing/selftests/kvm/lib/x86/processor.c
1160
list = malloc(sizeof(*list) + nmsrs.nmsrs * sizeof(list->indices[0]));
tools/testing/selftests/kvm/lib/x86/processor.c
1214
state->xsave = malloc(size);
tools/testing/selftests/kvm/lib/x86/processor.c
1217
state->xsave = malloc(sizeof(struct kvm_xsave));
tools/testing/selftests/kvm/lib/x86/processor.c
1245
state = malloc(sizeof(*state) + msr_list->nmsrs * sizeof(state->msrs.entries[0]));
tools/testing/selftests/kvm/memslot_perf_test.c
236
data = malloc(sizeof(*data));
tools/testing/selftests/kvm/memslot_perf_test.c
312
data->hva_slots = malloc(sizeof(*data->hva_slots) * data->nslots);
tools/testing/selftests/kvm/mmu_stress_test.c
213
threads = malloc(nr_vcpus * sizeof(*threads));
tools/testing/selftests/kvm/mmu_stress_test.c
216
info = malloc(nr_vcpus * sizeof(*info));
tools/testing/selftests/kvm/mmu_stress_test.c
329
vcpus = malloc(nr_vcpus * sizeof(*vcpus));
tools/testing/selftests/kvm/s390/cpumodel_subfuncs_test.c
284
u8 *array = malloc(testlist[idx].array_size);
tools/testing/selftests/kvm/x86/nested_set_state_test.c
278
(struct kvm_nested_state *)malloc(state_sz);
tools/testing/selftests/kvm/x86/nested_set_state_test.c
92
(struct kvm_nested_state *)malloc(state_sz);
tools/testing/selftests/landlock/base_test.c
28
char *const buf = malloc(page_size + 1);
tools/testing/selftests/memfd/fuse_test.c
205
stack = malloc(STACK_SIZE);
tools/testing/selftests/memfd/memfd_test.c
691
buf = malloc(mfd_def_size * 8);
tools/testing/selftests/memfd/memfd_test.c
715
buf = malloc(mfd_def_size * 8);
tools/testing/selftests/memfd/memfd_test.c
801
stack = malloc(STACK_SIZE);
tools/testing/selftests/mm/compaction_test.c
246
entry = malloc(sizeof(struct map_list));
tools/testing/selftests/mm/cow.c
122
char *old = malloc(size);
tools/testing/selftests/mm/cow.c
149
old = malloc(size);
tools/testing/selftests/mm/cow.c
150
new = malloc(size);
tools/testing/selftests/mm/cow.c
1514
char *old = malloc(size);
tools/testing/selftests/mm/cow.c
299
old = malloc(size);
tools/testing/selftests/mm/cow.c
300
new = malloc(size);
tools/testing/selftests/mm/cow.c
438
tmp = malloc(size);
tools/testing/selftests/mm/cow.c
617
tmp = malloc(size);
tools/testing/selftests/mm/droppable.c
38
*(char *)malloc(page_size) = 'B';
tools/testing/selftests/mm/gup_test.c
246
tid = malloc(sizeof(pthread_t) * nthreads);
tools/testing/selftests/mm/hmm-tests.c
1007
buffer = malloc(sizeof(*buffer));
tools/testing/selftests/mm/hmm-tests.c
1012
buffer->mirror = malloc(size);
tools/testing/selftests/mm/hmm-tests.c
1055
buffer = malloc(sizeof(*buffer));
tools/testing/selftests/mm/hmm-tests.c
1060
buffer->mirror = malloc(size);
tools/testing/selftests/mm/hmm-tests.c
1111
buffer = malloc(sizeof(*buffer));
tools/testing/selftests/mm/hmm-tests.c
1116
buffer->mirror = malloc(size);
tools/testing/selftests/mm/hmm-tests.c
1161
buffer = malloc(sizeof(*buffer));
tools/testing/selftests/mm/hmm-tests.c
1166
buffer->mirror = malloc(size);
tools/testing/selftests/mm/hmm-tests.c
1198
buffer = malloc(sizeof(*buffer));
tools/testing/selftests/mm/hmm-tests.c
1203
buffer->mirror = malloc(size);
tools/testing/selftests/mm/hmm-tests.c
1292
buffer = malloc(sizeof(*buffer));
tools/testing/selftests/mm/hmm-tests.c
1297
buffer->mirror = malloc(size);
tools/testing/selftests/mm/hmm-tests.c
1351
buffer = malloc(sizeof(*buffer));
tools/testing/selftests/mm/hmm-tests.c
1356
buffer->mirror = malloc(size);
tools/testing/selftests/mm/hmm-tests.c
1417
buffer = malloc(sizeof(*buffer));
tools/testing/selftests/mm/hmm-tests.c
1422
buffer->mirror = malloc(size);
tools/testing/selftests/mm/hmm-tests.c
1471
buffer = malloc(sizeof(*buffer));
tools/testing/selftests/mm/hmm-tests.c
1476
buffer->mirror = malloc(npages);
tools/testing/selftests/mm/hmm-tests.c
1516
buffer = malloc(sizeof(*buffer));
tools/testing/selftests/mm/hmm-tests.c
1521
buffer->mirror = malloc(npages);
tools/testing/selftests/mm/hmm-tests.c
1625
buffer = malloc(sizeof(*buffer));
tools/testing/selftests/mm/hmm-tests.c
1638
buffer->mirror = malloc(npages);
tools/testing/selftests/mm/hmm-tests.c
1691
buffer = malloc(sizeof(*buffer));
tools/testing/selftests/mm/hmm-tests.c
1696
buffer->mirror = malloc(size);
tools/testing/selftests/mm/hmm-tests.c
1767
buffer = malloc(sizeof(*buffer));
tools/testing/selftests/mm/hmm-tests.c
1772
buffer->mirror = malloc(size);
tools/testing/selftests/mm/hmm-tests.c
1821
buffer = malloc(sizeof(*buffer));
tools/testing/selftests/mm/hmm-tests.c
1826
buffer->mirror = malloc(size);
tools/testing/selftests/mm/hmm-tests.c
1874
buffer = malloc(sizeof(*buffer));
tools/testing/selftests/mm/hmm-tests.c
1879
buffer->mirror = malloc(size);
tools/testing/selftests/mm/hmm-tests.c
1952
buffer = malloc(sizeof(*buffer));
tools/testing/selftests/mm/hmm-tests.c
1957
buffer->mirror = malloc(size);
tools/testing/selftests/mm/hmm-tests.c
2038
buffer = malloc(sizeof(*buffer));
tools/testing/selftests/mm/hmm-tests.c
2043
buffer->mirror = malloc(size);
tools/testing/selftests/mm/hmm-tests.c
2111
buffer = malloc(sizeof(*buffer));
tools/testing/selftests/mm/hmm-tests.c
2116
buffer->mirror = malloc(size);
tools/testing/selftests/mm/hmm-tests.c
2163
buffer = malloc(sizeof(*buffer));
tools/testing/selftests/mm/hmm-tests.c
2168
buffer->mirror = malloc(size);
tools/testing/selftests/mm/hmm-tests.c
2226
buffer = malloc(sizeof(*buffer));
tools/testing/selftests/mm/hmm-tests.c
2231
buffer->mirror = malloc(size);
tools/testing/selftests/mm/hmm-tests.c
2285
buffer = malloc(sizeof(*buffer));
tools/testing/selftests/mm/hmm-tests.c
2290
buffer->mirror = malloc(size);
tools/testing/selftests/mm/hmm-tests.c
2345
buffer = malloc(sizeof(*buffer));
tools/testing/selftests/mm/hmm-tests.c
2350
buffer->mirror = malloc(size);
tools/testing/selftests/mm/hmm-tests.c
2418
buffer = malloc(sizeof(*buffer));
tools/testing/selftests/mm/hmm-tests.c
2423
buffer->mirror = malloc(size);
tools/testing/selftests/mm/hmm-tests.c
2503
buffer = malloc(sizeof(*buffer));
tools/testing/selftests/mm/hmm-tests.c
2508
buffer->mirror = malloc(2 * size);
tools/testing/selftests/mm/hmm-tests.c
2598
buffer = malloc(sizeof(*buffer));
tools/testing/selftests/mm/hmm-tests.c
2603
buffer->mirror = malloc(2 * size);
tools/testing/selftests/mm/hmm-tests.c
2683
buffer = malloc(sizeof(*buffer));
tools/testing/selftests/mm/hmm-tests.c
2687
buffer->mirror = malloc(size);
tools/testing/selftests/mm/hmm-tests.c
311
buffer = malloc(sizeof(*buffer));
tools/testing/selftests/mm/hmm-tests.c
316
buffer->mirror = malloc(size);
tools/testing/selftests/mm/hmm-tests.c
374
buffer = malloc(sizeof(*buffer));
tools/testing/selftests/mm/hmm-tests.c
379
buffer->mirror = malloc(size);
tools/testing/selftests/mm/hmm-tests.c
433
buffer = malloc(sizeof(*buffer));
tools/testing/selftests/mm/hmm-tests.c
438
buffer->mirror = malloc(size);
tools/testing/selftests/mm/hmm-tests.c
481
buffer = malloc(sizeof(*buffer));
tools/testing/selftests/mm/hmm-tests.c
486
buffer->mirror = malloc(size);
tools/testing/selftests/mm/hmm-tests.c
556
buffer = malloc(sizeof(*buffer));
tools/testing/selftests/mm/hmm-tests.c
561
buffer->mirror = malloc(size);
tools/testing/selftests/mm/hmm-tests.c
658
buffer = malloc(sizeof(*buffer));
tools/testing/selftests/mm/hmm-tests.c
663
buffer->mirror = malloc(size);
tools/testing/selftests/mm/hmm-tests.c
733
buffer = malloc(sizeof(*buffer));
tools/testing/selftests/mm/hmm-tests.c
738
buffer->mirror = malloc(size);
tools/testing/selftests/mm/hmm-tests.c
842
buffer = malloc(sizeof(*buffer));
tools/testing/selftests/mm/hmm-tests.c
856
buffer->mirror = malloc(size);
tools/testing/selftests/mm/hmm-tests.c
899
buffer = malloc(sizeof(*buffer));
tools/testing/selftests/mm/hmm-tests.c
904
buffer->mirror = malloc(size);
tools/testing/selftests/mm/hmm-tests.c
954
buffer = malloc(sizeof(*buffer));
tools/testing/selftests/mm/hmm-tests.c
959
buffer->mirror = malloc(size);
tools/testing/selftests/mm/migration.c
54
self->threads = malloc(self->nthreads * sizeof(*self->threads));
tools/testing/selftests/mm/migration.c
56
self->pids = malloc(self->nthreads * sizeof(*self->pids));
tools/testing/selftests/mm/mkdirty.c
279
src = malloc(pagesize);
tools/testing/selftests/mm/mlock-random-test.c
250
p = malloc(MLOCK_WITHIN_LIMIT_SIZE);
tools/testing/selftests/mm/mlock-random-test.c
258
p = malloc(MLOCK_OUTOF_LIMIT_SIZE);
tools/testing/selftests/mm/protection_keys.c
1314
int *plain_ptr_unaligned = malloc(HPAGE_SIZE);
tools/testing/selftests/mm/protection_keys.c
1528
xsave = (void *)malloc(xsave_size);
tools/testing/selftests/mm/split_huge_page_test.c
236
vaddr_orders = (int *)malloc(sizeof(int) * nr_orders);
tools/testing/selftests/mm/split_huge_page_test.c
494
file_buf1 = (char *)malloc(pmd_pagesize);
tools/testing/selftests/mm/split_huge_page_test.c
495
file_buf2 = (char *)malloc(pmd_pagesize);
tools/testing/selftests/mm/split_huge_page_test.c
787
expected_orders = (int *)malloc(sizeof(int) * (pmd_order + 1));
tools/testing/selftests/mm/transhuge-stress.c
86
map = malloc(map_len);
tools/testing/selftests/mm/uffd-common.c
354
gopts->count_verify = malloc(gopts->nr_pages * sizeof(unsigned long long));
tools/testing/selftests/mm/uffd-common.c
392
gopts->pipefd = malloc(sizeof(int) * gopts->nr_parallel * 2);
tools/testing/selftests/mm/uffd-stress.c
459
gopts = (uffd_global_test_opts_t *) malloc(sizeof(uffd_global_test_opts_t));
tools/testing/selftests/mm/va_high_addr_switch.c
248
testcases = malloc(sizeof(t));
tools/testing/selftests/mm/va_high_addr_switch.c
249
hugetlb_testcases = malloc(sizeof(ht));
tools/testing/selftests/mount_setattr/mount_setattr_test.c
1170
stack = malloc(__STACK_SIZE);
tools/testing/selftests/move_mount_set_group/move_mount_set_group_test.c
272
stack = malloc(__STACK_SIZE);
tools/testing/selftests/mqueue/mq_open_tests.c
256
queue_path = malloc(strlen(argv[1]) + 2);
tools/testing/selftests/mqueue/mq_perf_tests.c
618
queue_path = malloc(strlen(option) + 2);
tools/testing/selftests/namespaces/file_handle_test.c
1092
handle = malloc(sizeof(*handle) + MAX_HANDLE_SZ);
tools/testing/selftests/namespaces/file_handle_test.c
1238
handle = malloc(sizeof(*handle) + MAX_HANDLE_SZ);
tools/testing/selftests/namespaces/file_handle_test.c
1383
handle = malloc(sizeof(*handle) + MAX_HANDLE_SZ);
tools/testing/selftests/namespaces/file_handle_test.c
141
handle = malloc(sizeof(*handle) + MAX_HANDLE_SZ);
tools/testing/selftests/namespaces/file_handle_test.c
191
handle = malloc(sizeof(*handle) + MAX_HANDLE_SZ);
tools/testing/selftests/namespaces/file_handle_test.c
241
handle = malloc(sizeof(*handle) + MAX_HANDLE_SZ);
tools/testing/selftests/namespaces/file_handle_test.c
291
handle = malloc(sizeof(*handle) + MAX_HANDLE_SZ);
tools/testing/selftests/namespaces/file_handle_test.c
341
handle = malloc(sizeof(*handle) + MAX_HANDLE_SZ);
tools/testing/selftests/namespaces/file_handle_test.c
36
handle = malloc(sizeof(*handle) + MAX_HANDLE_SZ);
tools/testing/selftests/namespaces/file_handle_test.c
393
handle = malloc(sizeof(*handle) + MAX_HANDLE_SZ);
tools/testing/selftests/namespaces/file_handle_test.c
444
handle = malloc(sizeof(*handle) + MAX_HANDLE_SZ);
tools/testing/selftests/namespaces/file_handle_test.c
573
handle = malloc(sizeof(*handle) + MAX_HANDLE_SZ);
tools/testing/selftests/namespaces/file_handle_test.c
702
handle = malloc(sizeof(*handle) + MAX_HANDLE_SZ);
tools/testing/selftests/namespaces/file_handle_test.c
831
handle = malloc(sizeof(*handle) + MAX_HANDLE_SZ);
tools/testing/selftests/namespaces/file_handle_test.c
91
handle = malloc(sizeof(*handle) + MAX_HANDLE_SZ);
tools/testing/selftests/namespaces/file_handle_test.c
960
handle = malloc(sizeof(*handle) + MAX_HANDLE_SZ);
tools/testing/selftests/namespaces/listns_test.c
98
fh = (struct file_handle *)malloc(sizeof(*fh) + sizeof(nsfh));
tools/testing/selftests/namespaces/ns_active_ref_test.c
43
handle = malloc(sizeof(*handle) + MAX_HANDLE_SZ);
tools/testing/selftests/namespaces/siocgskns_test.c
1006
handle = malloc(sizeof(struct file_handle) + sizeof(struct nsfs_file_handle));
tools/testing/selftests/namespaces/siocgskns_test.c
1323
handle = malloc(sizeof(struct file_handle) + sizeof(struct nsfs_file_handle));
tools/testing/selftests/namespaces/siocgskns_test.c
801
handle = malloc(sizeof(struct file_handle) + sizeof(struct nsfs_file_handle));
tools/testing/selftests/net/cmsg_sender.c
483
buf = malloc(opt.size);
tools/testing/selftests/net/netfilter/nf_queue.c
282
buf = malloc(buflen);
tools/testing/selftests/net/nettest.c
1857
m = malloc(olen);
tools/testing/selftests/net/nettest.c
1878
outbuf = malloc(4096);
tools/testing/selftests/net/nettest.c
1879
errbuf = malloc(4096);
tools/testing/selftests/net/ovpn/ovpn-cli.c
361
ckey = malloc(ckey_len);
tools/testing/selftests/net/ovpn/ovpn-cli.c
385
bkey = malloc(olen);
tools/testing/selftests/net/psock_tpacket.c
698
ring->rd = malloc(ring->rd_len);
tools/testing/selftests/net/reuseport_bpf.c
49
addr = malloc(sizeof(struct sockaddr_storage));
tools/testing/selftests/net/rxtimestamp.c
183
char *buf = malloc(op_size);
tools/testing/selftests/net/rxtimestamp.c
210
recv_iov.iov_base = malloc(read_size);
tools/testing/selftests/net/so_incoming_cpu.c
96
self->servers = malloc(sizeof(int) * nr_server);
tools/testing/selftests/net/stress_reuseport_listen.c
38
lfds = malloc(nr_vips * nr_socks_per_vip * sizeof(lfds[0]));
tools/testing/selftests/net/tcp_ao/bench-lookups.c
217
test_ips = malloc(nr_keys[i] * sizeof(union tcp_addr));
tools/testing/selftests/net/tcp_ao/lib/aolib.h
54
ret = malloc(size);
tools/testing/selftests/net/tcp_ao/lib/ftrace.c
346
tracer = malloc(sizeof(*tracer));
tools/testing/selftests/net/tcp_ao/lib/ftrace.c
93
tmp = malloc(sizeof(*tmp));
tools/testing/selftests/net/tcp_ao/lib/proc.c
43
ret = malloc(sizeof(struct netstat));
tools/testing/selftests/net/tcp_ao/lib/repair.c
61
q->buf = malloc(qlen);
tools/testing/selftests/net/tcp_ao/lib/setup.c
85
p = malloc(sizeof(struct dlist_t));
tools/testing/selftests/net/tcp_inq.c
157
buf = malloc(BUF_SIZE);
tools/testing/selftests/net/tcp_inq.c
68
buf = malloc(BUF_SIZE);
tools/testing/selftests/net/tls.c
1033
iov_base[i] = (char *)malloc(iov_len);
tools/testing/selftests/net/tls.c
457
buf = (char *)malloc(st.st_size);
tools/testing/selftests/net/tls.c
675
void *mem = malloc(16384);
tools/testing/selftests/net/tls.c
712
test_strs[i] = (char *)malloc(strlen(test_str) + 1);
tools/testing/selftests/net/tls.c
722
buf = malloc(total_len);
tools/testing/selftests/net/tls.c
749
test_strs[i] = (char *)malloc(strlen(test_str) + 1);
tools/testing/selftests/net/txtimestamp.c
376
data = malloc(cfg_payload_len);
tools/testing/selftests/net/txtimestamp.c
517
buf = malloc(total_len);
tools/testing/selftests/openat2/helpers.c
61
target = malloc(PATH_MAX);
tools/testing/selftests/openat2/openat2_test.c
115
copy = malloc(misalign + sizeof(how_ext));
tools/testing/selftests/pid_namespace/pid_max.c
25
stack = malloc(__STACK_SIZE);
tools/testing/selftests/pidfd/pidfd_file_handle_test.c
151
fh = malloc(sizeof(struct file_handle) + MAX_HANDLE_SZ);
tools/testing/selftests/pidfd/pidfd_file_handle_test.c
198
fh = malloc(sizeof(struct file_handle) + MAX_HANDLE_SZ);
tools/testing/selftests/pidfd/pidfd_file_handle_test.c
244
fh = malloc(sizeof(struct file_handle) + MAX_HANDLE_SZ);
tools/testing/selftests/pidfd/pidfd_file_handle_test.c
280
fh = malloc(sizeof(struct file_handle) + MAX_HANDLE_SZ);
tools/testing/selftests/pidfd/pidfd_file_handle_test.c
319
fh = malloc(sizeof(struct file_handle) + MAX_HANDLE_SZ);
tools/testing/selftests/pidfd/pidfd_file_handle_test.c
358
fh = malloc(sizeof(struct file_handle) + MAX_HANDLE_SZ);
tools/testing/selftests/pidfd/pidfd_file_handle_test.c
416
fh = malloc(sizeof(struct file_handle) + MAX_HANDLE_SZ);
tools/testing/selftests/pidfd/pidfd_file_handle_test.c
437
fh = malloc(sizeof(struct file_handle) + MAX_HANDLE_SZ);
tools/testing/selftests/pidfd/pidfd_file_handle_test.c
463
fh = malloc(sizeof(struct file_handle) + MAX_HANDLE_SZ);
tools/testing/selftests/pidfd/pidfd_file_handle_test.c
485
fh = malloc(sizeof(struct file_handle) + MAX_HANDLE_SZ);
tools/testing/selftests/pidfd/pidfd_file_handle_test.c
513
fh = malloc(sizeof(struct file_handle) + MAX_HANDLE_SZ);
tools/testing/selftests/powerpc/copyloops/validate.c
75
redzone = malloc(BUFLEN);
tools/testing/selftests/powerpc/copyloops/validate.c
76
fill = malloc(BUFLEN);
tools/testing/selftests/powerpc/math/fpu_preempt.c
57
tids = malloc((threads) * sizeof(pthread_t));
tools/testing/selftests/powerpc/math/fpu_signal.c
78
tids = malloc(threads * sizeof(pthread_t));
tools/testing/selftests/powerpc/math/vmx_preempt.c
66
tids = malloc(threads * sizeof(pthread_t));
tools/testing/selftests/powerpc/math/vmx_signal.c
103
tids = malloc(threads * sizeof(pthread_t));
tools/testing/selftests/powerpc/math/vsx_preempt.c
98
tids = malloc(threads * sizeof(pthread_t));
tools/testing/selftests/powerpc/mm/subpage_prot.c
99
map = malloc(pages * 4);
tools/testing/selftests/powerpc/mm/tlbie_test.c
571
void *tmp = malloc(size);
tools/testing/selftests/powerpc/nx-gzip/gzfht_test.c
219
assert(NULL != (outbuf = (char *)malloc(outlen)));
tools/testing/selftests/powerpc/nx-gzip/gzip_vas.c
101
nxhandle = malloc(sizeof(*nxhandle));
tools/testing/selftests/powerpc/papr_vpd/papr_vpd.c
201
bufs[i] = malloc(size);
tools/testing/selftests/powerpc/papr_vpd/papr_vpd.c
283
void *buf = malloc((size_t)size);
tools/testing/selftests/powerpc/papr_vpd/papr_vpd.c
51
void *buf = malloc((size_t)size);
tools/testing/selftests/powerpc/pmu/l3_bank_test.c
26
p = malloc(MALLOC_SIZE);
tools/testing/selftests/powerpc/pmu/sampling_tests/mmcr1_sel_unit_cache_test.c
32
p = malloc(MALLOC_SIZE);
tools/testing/selftests/powerpc/pmu/sampling_tests/mmcr2_l2l3_test.c
42
p = malloc(MALLOC_SIZE);
tools/testing/selftests/powerpc/ptrace/core-pkey.c
262
filename[0] = filenames = malloc(PATH_MAX);
tools/testing/selftests/powerpc/ptrace/core-pkey.c
340
core_pattern = malloc(PATH_MAX);
tools/testing/selftests/powerpc/ptrace/perf-hwbreak.c
302
target = malloc(8);
tools/testing/selftests/powerpc/ptrace/perf-hwbreak.c
586
int *fd1 = malloc(nprocs * sizeof(int));
tools/testing/selftests/powerpc/ptrace/perf-hwbreak.c
587
int *fd2 = malloc(nprocs * sizeof(int));
tools/testing/selftests/powerpc/ptrace/perf-hwbreak.c
630
int *fd1 = malloc(nprocs * sizeof(int));
tools/testing/selftests/powerpc/ptrace/perf-hwbreak.c
631
int *fd2 = malloc(nprocs * sizeof(int));
tools/testing/selftests/powerpc/ptrace/perf-hwbreak.c
674
int *fd1 = malloc(nprocs * sizeof(int));
tools/testing/selftests/powerpc/ptrace/perf-hwbreak.c
675
int *fd2 = malloc(nprocs * sizeof(int));
tools/testing/selftests/powerpc/ptrace/perf-hwbreak.c
718
int *fd1 = malloc(nprocs * sizeof(int));
tools/testing/selftests/powerpc/ptrace/perf-hwbreak.c
719
int *fd2 = malloc(nprocs * sizeof(int));
tools/testing/selftests/powerpc/ptrace/ptrace.h
150
reg = malloc(sizeof(unsigned long));
tools/testing/selftests/powerpc/ptrace/ptrace.h
196
reg = malloc(sizeof(unsigned long));
tools/testing/selftests/powerpc/ptrace/ptrace.h
239
reg = malloc(sizeof(unsigned long));
tools/testing/selftests/powerpc/ptrace/ptrace.h
287
reg = malloc(sizeof(unsigned long));
tools/testing/selftests/powerpc/ptrace/ptrace.h
330
regs = (struct fpr_regs *) malloc(sizeof(struct fpr_regs));
tools/testing/selftests/powerpc/ptrace/ptrace.h
349
regs = (struct fpr_regs *) malloc(sizeof(struct fpr_regs));
tools/testing/selftests/powerpc/ptrace/ptrace.h
373
regs = (struct fpr_regs *) malloc(sizeof(struct fpr_regs));
tools/testing/selftests/powerpc/ptrace/ptrace.h
397
regs = (struct fpr_regs *) malloc(sizeof(struct fpr_regs));
tools/testing/selftests/powerpc/ptrace/ptrace.h
424
regs = (struct pt_regs *) malloc(sizeof(struct pt_regs));
tools/testing/selftests/powerpc/ptrace/ptrace.h
458
fprs = malloc(sizeof(unsigned long) * PT_NUM_FPRS);
tools/testing/selftests/powerpc/ptrace/ptrace.h
513
regs = (struct pt_regs *) malloc(sizeof(struct pt_regs));
tools/testing/selftests/powerpc/ptrace/ptrace.h
542
regs = (struct pt_regs *) malloc(sizeof(struct pt_regs));
tools/testing/selftests/powerpc/ptrace/ptrace.h
571
regs = (struct pt_regs *) malloc(sizeof(struct pt_regs));
tools/testing/selftests/powerpc/ptrace/ptrace.h
722
regs = (struct tm_spr_regs *) malloc(sizeof(struct tm_spr_regs));
tools/testing/selftests/powerpc/signal/sigfuz.c
110
tmp_uc = malloc(sizeof(ucontext_t));
tools/testing/selftests/powerpc/signal/sigfuz.c
205
tmp_uc = malloc(sizeof(ucontext_t));
tools/testing/selftests/powerpc/signal/sigfuz.c
254
threads = malloc(nthread * sizeof(pthread_t));
tools/testing/selftests/powerpc/tm/tm-tmspr.c
104
thread = malloc(thread_num * sizeof(pthread_t));
tools/testing/selftests/powerpc/tm/tm-vmx-unavail.c
99
thread = malloc(sizeof(pthread_t)*threads);
tools/testing/selftests/proc/proc-maps-race.c
500
self->page1.data = malloc(self->page_size);
tools/testing/selftests/proc/proc-maps-race.c
502
self->page2.data = malloc(self->page_size);
tools/testing/selftests/proc/proc-uptime-002.c
59
m = malloc(len);
tools/testing/selftests/resctrl/resctrl_tests.c
199
fill_param = malloc(sizeof(*fill_param));
tools/testing/selftests/riscv/hwprobe/which-cpus.c
66
pairs = malloc(nr_pairs * sizeof(struct riscv_hwprobe));
tools/testing/selftests/riscv/vector/vstate_ptrace.c
67
data = malloc(size);
tools/testing/selftests/rseq/basic_percpu_ops_test.c
294
node = malloc(sizeof(*node));
tools/testing/selftests/rseq/param_test.c
1154
malloc(sizeof(*buffer.c[i].array) * CPU_SETSIZE *
tools/testing/selftests/rseq/param_test.c
1298
node = malloc(sizeof(*node));
tools/testing/selftests/rseq/param_test.c
759
node = malloc(sizeof(*node));
tools/testing/selftests/rseq/param_test.c
943
malloc(sizeof(*buffer.c[i].array) * CPU_SETSIZE *
tools/testing/selftests/rseq/param_test.c
959
node = malloc(sizeof(*node));
tools/testing/selftests/sched/cs_prctl_test.c
141
child_stack = malloc(STACK_SIZE);
tools/testing/selftests/seccomp/seccomp_bpf.c
1083
self->prog.filter = malloc(sizeof(filter));
tools/testing/selftests/seccomp/seccomp_bpf.c
1231
self->_x.filter = malloc(sizeof(_x##_insns)); \
tools/testing/selftests/seccomp/seccomp_bpf.c
1692
self->prog.filter = malloc(sizeof(filter));
tools/testing/selftests/seccomp/seccomp_bpf.c
2581
self->root_prog.filter = malloc(sizeof(root_filter));
tools/testing/selftests/seccomp/seccomp_bpf.c
2586
self->apply_prog.filter = malloc(sizeof(apply_filter));
tools/testing/selftests/seccomp/seccomp_bpf.c
5019
args = malloc(sizeof(*args));
tools/testing/selftests/ublk/kublk.c
308
buf = malloc(sizeof(cpu_set_t) * ctrl_dev->dev_info.nr_hw_queues);
tools/testing/selftests/ublk/kublk.c
487
q->ios[i].integrity_buf = malloc(integrity_size);
tools/testing/selftests/ublk/stripe.c
339
conf = malloc(sizeof(*conf));
tools/testing/selftests/ublk/stripe.c
52
s = malloc(sizeof(*s) + total * sizeof(struct iovec));
tools/testing/selftests/vfio/lib/iommu.c
289
info = malloc(sizeof(*info));
tools/testing/selftests/vfio/lib/iova_allocator.c
32
allocator = malloc(sizeof(*allocator));
tools/testing/selftests/x86/lam.c
316
ptr = (char *)malloc(MALLOC_LEN);
tools/testing/selftests/x86/lam.c
691
fi = malloc(sizeof(*fi) + sizeof(struct iovec) * blocks);
tools/testing/selftests/x86/lam.c
698
ring = malloc(sizeof(*ring));
tools/testing/selftests/x86/mov_ss_trap.c
240
.ss_sp = malloc(sizeof(char) * SIGSTKSZ),
tools/testing/selftests/x86/sigreturn.c
752
.ss_sp = malloc(sizeof(char) * SIGSTKSZ),
tools/testing/selftests/x86/single_step_syscall.c
190
.ss_sp = malloc(sizeof(char) * SIGSTKSZ),
tools/testing/selftests/x86/syscall_arg_fault.c
92
.ss_sp = malloc(sizeof(char) * SIGSTKSZ),
tools/testing/selftests/x86/test_shadow_stack.c
578
cur = malloc(sizeof(*cur));
tools/testing/selftests/x86/test_shadow_stack.c
627
cur = malloc(sizeof(*cur));
tools/testing/selftests/x86/xstate.c
223
finfo = malloc(sizeof(*finfo) * num_threads);
tools/testing/shared/linux.c
197
p[i] = malloc(cachep->size);
tools/testing/shared/linux.c
235
struct kmem_cache *ret = malloc(sizeof(*ret));
tools/testing/shared/linux.c
89
p = malloc(cachep->size);
tools/testing/vsock/util.c
621
tmp = malloc(iov_bytes);
tools/testing/vsock/util.c
663
iovec = malloc(sizeof(*iovec) * iovnum);
tools/testing/vsock/vsock_diag_test.c
243
st = malloc(sizeof(*st));
tools/testing/vsock/vsock_perf.c
191
data = malloc(buf_size_bytes);
tools/testing/vsock/vsock_perf.c
297
data = malloc(buf_size_bytes);
tools/testing/vsock/vsock_test.c
1434
buf = malloc(buf_size);
tools/testing/vsock/vsock_test.c
1496
buf = malloc(buf_size);
tools/testing/vsock/vsock_test.c
1762
chunk = malloc(chunk_size);
tools/testing/vsock/vsock_test.c
398
buf = malloc(buf_size);
tools/testing/vsock/vsock_test.c
464
iov.iov_base = malloc(iov.iov_len);
tools/testing/vsock/vsock_test.c
664
data = malloc(buf_size);
tools/testing/vsock/vsock_test.c
709
buf1 = malloc(buf_size);
tools/testing/vsock/vsock_test.c
715
buf2 = malloc(buf_size);
tools/testing/vsock/vsock_test_zerocopy.c
266
data = malloc(data_len);
tools/testing/vsock/vsock_uring_test.c
131
data = malloc(data_len);
tools/thermal/lib/mainloop.c
61
md = malloc(sizeof(*md));
tools/tracing/latency/latency-collector.c
241
void *ptr = malloc(size);
tools/tracing/latency/latency-collector.c
252
void *ptr = malloc(size);
tools/usb/ffs-aio-example/multibuff/device_app/aio_multibuff.c
211
iobuf->buf = malloc(n*sizeof(*iobuf->buf));
tools/usb/ffs-aio-example/multibuff/device_app/aio_multibuff.c
212
iobuf->iocb = malloc(n*sizeof(*iobuf->iocb));
tools/usb/ffs-aio-example/multibuff/device_app/aio_multibuff.c
217
iobuf->buf[i] = malloc(len*sizeof(**iobuf->buf));
tools/usb/ffs-aio-example/multibuff/device_app/aio_multibuff.c
218
iobuf->iocb[i] = malloc(sizeof(**iobuf->iocb));
tools/usb/ffs-aio-example/multibuff/device_app/aio_multibuff.c
256
ep_path = malloc(strlen(argv[1]) + 4 /* "/ep#" */ + 1 /* '\0' */);
tools/usb/ffs-aio-example/simple/device_app/aio_simple.c
245
ep_path = malloc(strlen(argv[1]) + 4 /* "/ep#" */ + 1 /* '\0' */);
tools/usb/ffs-aio-example/simple/device_app/aio_simple.c
292
buf_in = malloc(BUF_LEN);
tools/usb/ffs-aio-example/simple/device_app/aio_simple.c
293
buf_out = malloc(BUF_LEN);
tools/usb/ffs-aio-example/simple/device_app/aio_simple.c
294
iocb_in = malloc(sizeof(*iocb_in));
tools/usb/ffs-aio-example/simple/device_app/aio_simple.c
295
iocb_out = malloc(sizeof(*iocb_out));
tools/usb/ffs-test.c
295
out = malloc(length);
tools/usb/ffs-test.c
381
t->buf = malloc(t->buf_size);
tools/usb/usbip/libsrc/vhci_driver.c
198
buffer = malloc(buffer_len);
tools/virtio/linux/kernel.h
61
return malloc(s);
tools/virtio/ringtest/virtio_ring_0_9.c
90
data = malloc(ring_size * sizeof *data);
tools/virtio/vhost_net_test.c
218
dev->buf = malloc(dev->buf_size);
tools/virtio/vhost_net_test.c
238
dev->mem = malloc(offsetof(struct vhost_memory, regions) +
tools/virtio/virtio_test.c
135
dev->buf = malloc(dev->buf_size);
tools/virtio/virtio_test.c
141
dev->mem = malloc(offsetof(struct vhost_memory, regions) +
tools/wmi/dell-smbios-example.c
168
buffer = malloc(value);
usr/gen_init_cpio.c
540
dname = malloc(strlen(line));