malloc 167 arch/alpha/boot/misc.c window = malloc(WSIZE); malloc 142 arch/mips/boot/elf2ecoff.c if (!(tmp = (char *) malloc(len))) { malloc 304 arch/mips/boot/tools/relocs.c sec->strtab = malloc(sec->shdr.sh_size); malloc 328 arch/mips/boot/tools/relocs.c sec->symtab = malloc(sec->shdr.sh_size); malloc 372 arch/mips/boot/tools/relocs.c sec->reltab = malloc(sec->shdr.sh_size); malloc 62 arch/mips/include/asm/netlogic/psb-bootinfo.h uint64_t malloc; malloc 258 arch/parisc/boot/compressed/misc.c phdrs = malloc(sizeof(*phdrs) * ehdr.e_phnum); malloc 175 arch/powerpc/boot/libfdt-wrapper.c buf = malloc(bufsize); malloc 131 arch/powerpc/boot/main.c initrd_addr = (unsigned long)malloc(initrd_size); malloc 173 arch/powerpc/boot/main.c esm_blob_addr = (unsigned long)malloc(esm_blob_size); malloc 66 arch/powerpc/boot/of.c platform_ops.malloc = of_try_claim; malloc 189 arch/powerpc/boot/oflib.c p = malloc(size); malloc 28 arch/powerpc/boot/ops.h void * (*malloc)(unsigned long size); malloc 220 arch/powerpc/boot/ops.h return (platform_ops.malloc) ? platform_ops.malloc(size) : NULL; malloc 145 arch/powerpc/boot/simple_alloc.c platform_ops.malloc = simple_malloc; malloc 33 arch/um/os-Linux/execvp.c #define um_kmalloc malloc malloc 93 arch/um/os-Linux/main.c new_path = malloc(path_len); malloc 118 arch/um/os-Linux/main.c new_argv = malloc((argc + 1) * sizeof(char *)); malloc 120 arch/um/os-Linux/mem.c tempname = malloc(strlen(tempdir) + strlen(template) + 1); malloc 370 arch/um/os-Linux/start_up.c new = malloc(sizeof(*new)); malloc 52 arch/um/os-Linux/umid.c uml_dir = malloc(strlen(dir) + 1); malloc 223 arch/um/os-Linux/umid.c file = malloc(strlen(uml_dir) + UMID_LEN + sizeof("/pid\0")); malloc 378 arch/um/os-Linux/umid.c uml_dir = malloc(strlen(name) + 2); malloc 402 arch/um/os-Linux/umid.c dir = malloc(strlen(uml_dir) + UMID_LEN + 1); malloc 254 arch/x86/boot/compressed/kaslr.c tmp_cmdline = malloc(len + 1); malloc 293 arch/x86/boot/compressed/misc.c phdrs = malloc(sizeof(*phdrs) * ehdr.e_phnum); malloc 451 arch/x86/tools/relocs.c sec->strtab = malloc(sec->shdr.sh_size); malloc 476 arch/x86/tools/relocs.c sec->symtab = malloc(sec->shdr.sh_size); malloc 509 arch/x86/tools/relocs.c sec->reltab = malloc(sec->shdr.sh_size); malloc 131 arch/x86/um/os-Linux/registers.c fp_regs = malloc(FP_SIZE * sizeof(unsigned long)); malloc 123 drivers/gpu/drm/radeon/mkregtable.c offset = (struct offset *)malloc(sizeof(struct offset)); malloc 175 drivers/gpu/drm/radeon/mkregtable.c t->table = (unsigned *)malloc(sizeof(unsigned) * t->nentry); malloc 231 drivers/scsi/aic7xxx/aicasm/aicasm.c (path_entry_t)malloc(sizeof(*include_dir)); malloc 499 drivers/scsi/aic7xxx/aicasm/aicasm.c new_patch = (patch_t *)malloc(sizeof(*new_patch)); malloc 552 drivers/scsi/aic7xxx/aicasm/aicasm.c func_values = (int *)malloc(func_count * sizeof(int)); malloc 736 drivers/scsi/aic7xxx/aicasm/aicasm.c new_instr = (struct instruction *)malloc(sizeof(struct instruction)); malloc 750 drivers/scsi/aic7xxx/aicasm/aicasm.c new_cs= (critical_section_t *)malloc(sizeof(critical_section_t)); malloc 764 drivers/scsi/aic7xxx/aicasm/aicasm.c new_scope = (scope_t *)malloc(sizeof(scope_t)); malloc 1481 drivers/scsi/aic7xxx/aicasm/aicasm_gram.y (struct reg_info *)malloc(sizeof(struct reg_info)); malloc 1502 drivers/scsi/aic7xxx/aicasm/aicasm_gram.y (struct alias_info *)malloc(sizeof(struct alias_info)); malloc 1515 drivers/scsi/aic7xxx/aicasm/aicasm_gram.y (struct field_info *)malloc(sizeof(struct field_info)); malloc 1526 drivers/scsi/aic7xxx/aicasm/aicasm_gram.y (struct const_info *)malloc(sizeof(struct const_info)); malloc 1536 drivers/scsi/aic7xxx/aicasm/aicasm_gram.y (struct label_info *)malloc(sizeof(struct label_info)); malloc 1546 drivers/scsi/aic7xxx/aicasm/aicasm_gram.y (struct cond_info *)malloc(sizeof(struct cond_info)); malloc 1556 drivers/scsi/aic7xxx/aicasm/aicasm_gram.y (struct macro_info *)malloc(sizeof(struct macro_info)); malloc 1586 drivers/scsi/aic7xxx/aicasm/aicasm_gram.y marg = (struct macro_arg *)malloc(sizeof(*marg)); malloc 66 drivers/scsi/aic7xxx/aicasm/aicasm_symbol.c new_symbol = (symbol_t *)malloc(sizeof(symbol_t)); malloc 226 drivers/scsi/aic7xxx/aicasm/aicasm_symbol.c newnode = (symbol_node_t *)malloc(sizeof(symbol_node_t)); malloc 51 drivers/usb/gadget/function/f_fs.c __attribute__((malloc)); malloc 497 fs/unicode/mkutf8data.c node = malloc(sizeof(*node)); malloc 2162 fs/unicode/mkutf8data.c um = malloc(i * sizeof(unsigned int)); malloc 2218 fs/unicode/mkutf8data.c um = malloc(i * sizeof(unsigned int)); malloc 2259 fs/unicode/mkutf8data.c um = malloc(sizeof(unsigned int)); malloc 2263 fs/unicode/mkutf8data.c um = malloc(sizeof(unsigned int)); malloc 2280 fs/unicode/mkutf8data.c um = malloc(sizeof(unsigned int)); malloc 2284 fs/unicode/mkutf8data.c um = malloc(sizeof(unsigned int)); malloc 2362 fs/unicode/mkutf8data.c um = malloc(i * sizeof(unsigned int)); malloc 2462 fs/unicode/mkutf8data.c um = malloc(i * sizeof(unsigned int)); malloc 2467 fs/unicode/mkutf8data.c um = malloc(i * sizeof(unsigned int)); malloc 2476 fs/unicode/mkutf8data.c unicode_data[unichar].utf8nfdi = malloc(2); malloc 2526 fs/unicode/mkutf8data.c um = malloc(i * sizeof(unsigned int)); malloc 2532 fs/unicode/mkutf8data.c um = malloc(i * sizeof(unsigned int)); malloc 2580 fs/unicode/mkutf8data.c um = malloc(i * sizeof(unsigned int)); malloc 62 include/linux/decompress/mm.h #define large_malloc(a) malloc(a) malloc 96 include/linux/zpool.h int (*malloc)(void *pool, size_t size, gfp_t gfp, malloc 642 lib/decompress_bunzip2.c bd = *bdp = malloc(i); malloc 691 lib/decompress_bunzip2.c outbuf = malloc(BZIP2_IOBUF_SIZE); malloc 700 lib/decompress_bunzip2.c inbuf = malloc(BZIP2_IOBUF_SIZE); malloc 51 lib/decompress_inflate.c out_buf = malloc(out_len); malloc 64 lib/decompress_inflate.c zbuf = malloc(GZIP_IOBUF_SIZE); malloc 72 lib/decompress_inflate.c strm = malloc(sizeof(*strm)); malloc 78 lib/decompress_inflate.c strm->workspace = malloc(flush ? zlib_inflate_workspacesize() : malloc 563 lib/decompress_unlzma.c inbuf = malloc(LZMA_IOBUF_SIZE); malloc 117 lib/decompress_unlzo.c out_buf = malloc(LZO_BLOCK_SIZE); malloc 133 lib/decompress_unlzo.c in_buf = malloc(lzo1x_worst_compress(LZO_BLOCK_SIZE)); malloc 157 lib/decompress_unxz.c #define kmalloc(size, flags) malloc(size) malloc 159 lib/decompress_unxz.c #define vmalloc(size) malloc(size) malloc 282 lib/decompress_unxz.c b.out = malloc(XZ_IOBUF_SIZE); malloc 289 lib/decompress_unxz.c in = malloc(XZ_IOBUF_SIZE); malloc 364 lib/inflate.c stk = malloc(sizeof(*stk)); malloc 488 lib/inflate.c if ((q = (struct huft *)malloc((z + 1)*sizeof(struct huft))) == malloc 779 lib/inflate.c l = malloc(sizeof(*l) * 288); malloc 852 lib/inflate.c ll = malloc(sizeof(*ll) * (288+32)); /* literal/length and distance code lengths */ malloc 854 lib/inflate.c ll = malloc(sizeof(*ll) * (286+30)); /* literal/length and distance code lengths */ malloc 1550 mm/z3fold.c .malloc = z3fold_zpool_malloc, malloc 209 mm/zbud.c .malloc = zbud_zpool_malloc, malloc 276 mm/zpool.c return zpool->driver->malloc(zpool->pool, size, gfp, handle); malloc 451 mm/zsmalloc.c .malloc = zs_zpool_malloc, malloc 167 samples/bpf/sampleip_user.c pmu_fd = malloc(nr_cpus * sizeof(int)); malloc 89 samples/bpf/test_cgrp2_sock.c p = prog = malloc(insns_cnt); malloc 114 samples/bpf/test_lru_dist.c lru->free_nodes = malloc(lru_size * sizeof(struct pfect_lru_node)); malloc 184 samples/bpf/test_lru_dist.c b = malloc(fst.st_size); malloc 195 samples/bpf/test_lru_dist.c retkeys = malloc(counts * sizeof(unsigned long long)); malloc 140 samples/bpf/trace_event_user.c int *pmu_fd = malloc(nr_cpus * sizeof(int)); malloc 515 samples/bpf/xdp_monitor_user.c array = malloc(size); malloc 531 samples/bpf/xdp_monitor_user.c rec = malloc(sizeof(*rec)); malloc 216 samples/bpf/xdp_redirect_cpu_user.c array = malloc(size); malloc 230 samples/bpf/xdp_redirect_cpu_user.c rec = malloc(sizeof(*rec)); malloc 204 samples/bpf/xdp_rxq_info_user.c array = malloc(size); malloc 220 samples/bpf/xdp_rxq_info_user.c array = malloc(size); malloc 235 samples/bpf/xdp_rxq_info_user.c rec = malloc(sizeof(*rec)); malloc 379 samples/mei/mei-amt-version.c *read_buf = (uint8_t *)malloc(sizeof(uint8_t) * in_buf_sz); malloc 973 samples/mic/mpssd/mpssd.c mic->mic_virtblk.backend_file = malloc(strlen(evv) + 1); malloc 1184 samples/mic/mpssd/mpssd.c iovec = malloc(sizeof(*iovec) * malloc 1743 samples/mic/mpssd/mpssd.c mic->name = malloc(strlen(file->d_name) + 16); malloc 47 samples/mic/mpssd/sysfs.c string = malloc(strlen(value) + 1); malloc 298 samples/seccomp/user-trap.c req = malloc(sizes.seccomp_notif); malloc 302 samples/seccomp/user-trap.c resp = malloc(sizes.seccomp_notif_resp); malloc 423 scripts/asn1_compiler.c tokens[tix].content = malloc(tokens[tix].size + 1); malloc 463 scripts/asn1_compiler.c tokens[tix].content = malloc(tokens[tix].size + 1); malloc 605 scripts/asn1_compiler.c if (!(buffer = malloc(st.st_size + 1))) { malloc 1088 scripts/asn1_compiler.c action = malloc(sizeof(struct action)); malloc 204 scripts/basic/fixdep.c struct item *aux = malloc(sizeof(*aux) + len); malloc 283 scripts/basic/fixdep.c buf = malloc(st.st_size + 1); malloc 40 scripts/dtc/util.h void *new = malloc(len); malloc 70 scripts/genksyms/genksyms.h #define xmalloc(size) ({ void *__ptr = malloc(size); \ malloc 245 scripts/insert-sys-cert.c buf = malloc(*size); malloc 160 scripts/kallsyms.c s->sym = malloc(s->len + 1); malloc 414 scripts/kallsyms.c markers = malloc(sizeof(unsigned int) * ((table_cnt + 255) / 256)); malloc 21 scripts/kconfig/lxdialog/checklist.c char *list_item = malloc(list_width + 1); malloc 57 scripts/kconfig/lxdialog/menubox.c char *menu_item = malloc(menu_width + 1); malloc 596 scripts/kconfig/lxdialog/util.c struct dialog_list *p = malloc(sizeof(*p)); malloc 986 scripts/kconfig/symbol.c sym_arr = malloc((cnt+1) * sizeof(struct symbol *)); malloc 84 scripts/kconfig/util.c void *p = malloc(size); malloc 140 scripts/mod/modpost.c mod = NOFAIL(malloc(sizeof(*mod))); malloc 202 scripts/mod/modpost.c struct symbol *s = NOFAIL(malloc(sizeof(*s) + strlen(name) + 1)); malloc 258 scripts/mod/modpost.c ns_entry = NOFAIL(malloc(sizeof(struct namespace_list) + malloc 1400 scripts/mod/modpost.c char *p = NOFAIL(malloc(20)); malloc 2408 scripts/mod/modpost.c tmp = NOFAIL(malloc(b->pos)); malloc 2584 scripts/mod/modpost.c NOFAIL(malloc(sizeof(*extsym_iter))); malloc 312 scripts/mod/sumversion.c cmd = NOFAIL(malloc(strlen(objfile) + sizeof("..cmd"))); malloc 323 scripts/mod/sumversion.c dir = NOFAIL(malloc(dirlen + 1)); malloc 163 scripts/pnmtologo.c logo_data = (struct color **)malloc(logo_height*sizeof(struct color *)); malloc 167 scripts/pnmtologo.c logo_data[i] = malloc(logo_width*sizeof(struct color)); malloc 139 scripts/recordmcount.c void *const addr = malloc(size); malloc 112 tools/bpf/bpf_jit_disasm.c buff = malloc(len); malloc 141 tools/bpf/bpf_jit_disasm.c buff = malloc(len); malloc 214 tools/bpf/bpf_jit_disasm.c image = malloc(proglen); malloc 173 tools/bpf/bpftool/common.c file = malloc(strlen(name) + 1); malloc 402 tools/bpf/bpftool/common.c obj_node = malloc(sizeof(*obj_node)); malloc 95 tools/bpf/bpftool/json_writer.c json_writer_t *self = malloc(sizeof(*self)); malloc 88 tools/bpf/bpftool/map.c return malloc(round_up(info->value_size, 8) * malloc 91 tools/bpf/bpftool/map.c return malloc(info->value_size); malloc 786 tools/bpf/bpftool/map.c key = malloc(info.key_size); malloc 856 tools/bpf/bpftool/map.c *key = malloc(info->key_size); malloc 1026 tools/bpf/bpftool/map.c key = malloc(info.key_size); malloc 1027 tools/bpf/bpftool/map.c nextkey = malloc(info.key_size); malloc 1097 tools/bpf/bpftool/map.c key = malloc(info.key_size); malloc 788 tools/bpf/bpftool/prog.c *data_ptr = malloc(block_size); malloc 1129 tools/bpf/bpftool/prog.c type = malloc(strlen(*argv) + 2); malloc 139 tools/firewire/nosy-dump.c sa = malloc(sizeof *sa - sizeof sa->packet + length); malloc 171 tools/firewire/nosy-dump.c t = malloc(sizeof *t); malloc 163 tools/firmware/ihex2fw.c record = malloc(record_size); malloc 257 tools/hv/hv_kvp_daemon.c kvp_file_info[i].records = malloc(alloc_unit); malloc 1480 tools/hv/hv_kvp_daemon.c lic_version = malloc(strlen(p) + 1); malloc 69 tools/hv/hv_vss_daemon.c buffer = malloc(PATH_MAX); malloc 451 tools/iio/iio_generic_buffer.c device_name = malloc(IIO_MAX_NAME_LENGTH); malloc 471 tools/iio/iio_generic_buffer.c trigger_name = malloc(IIO_MAX_NAME_LENGTH); malloc 616 tools/iio/iio_generic_buffer.c data = malloc(scan_size * buf_len); malloc 372 tools/iio/iio_utils.c *ci_array = malloc(sizeof(**ci_array) * (*counter)); malloc 602 tools/iio/iio_utils.c filename = malloc(strlen(iio_dir) + strlen(type) malloc 661 tools/iio/iio_utils.c char *temp = malloc(strlen(basedir) + strlen(filename) + 2); malloc 757 tools/iio/iio_utils.c char *temp = malloc(strlen(basedir) + strlen(filename) + 2); malloc 864 tools/iio/iio_utils.c char *temp = malloc(strlen(basedir) + strlen(filename) + 2); malloc 911 tools/iio/iio_utils.c char *temp = malloc(strlen(basedir) + strlen(filename) + 2); malloc 958 tools/iio/iio_utils.c char *temp = malloc(strlen(basedir) + strlen(filename) + 2); malloc 562 tools/io_uring/io_uring-bench.c fdepths = malloc(8 * s->nr_files); malloc 89 tools/io_uring/io_uring-cp.c data = malloc(size + sizeof(*data)); malloc 196 tools/lib/bpf/bpf.c info = malloc(info_len); malloc 127 tools/lib/bpf/bpf_prog_linfo.c prog_linfo->raw_linfo = malloc(data_sz); malloc 147 tools/lib/bpf/bpf_prog_linfo.c prog_linfo->raw_jited_linfo = malloc(data_sz); malloc 154 tools/lib/bpf/bpf_prog_linfo.c prog_linfo->nr_jited_linfo_per_func = malloc(nr_jited_func * malloc 163 tools/lib/bpf/bpf_prog_linfo.c prog_linfo->jited_linfo_func_idx = malloc(nr_jited_func * malloc 343 tools/lib/bpf/btf.c btf->data = malloc(size); malloc 592 tools/lib/bpf/btf.c log_buf = malloc(log_buf_size); malloc 653 tools/lib/bpf/btf.c ptr = malloc(last_size); malloc 958 tools/lib/bpf/btf.c btf_ext->data = malloc(size); malloc 1410 tools/lib/bpf/btf.c d->map = malloc(sizeof(__u32) * (1 + btf->nr_types)); malloc 1427 tools/lib/bpf/btf.c d->hypot_map = malloc(sizeof(__u32) * (1 + btf->nr_types)); malloc 1647 tools/lib/bpf/btf.c tmp_strs = malloc(d->btf->hdr->str_len); malloc 49 tools/lib/bpf/hashmap.c struct hashmap *map = malloc(sizeof(struct hashmap)); malloc 182 tools/lib/bpf/hashmap.c entry = malloc(sizeof(struct hashmap_entry)); malloc 386 tools/lib/bpf/libbpf.c prog->insns = malloc(size); malloc 844 tools/lib/bpf/libbpf.c *data_buff = malloc(data->d_size); malloc 1737 tools/lib/bpf/libbpf.c prog->reloc_desc = malloc(sizeof(*prog->reloc_desc) * nrels); malloc 2835 tools/lib/bpf/libbpf.c data = malloc(st.st_size); malloc 3402 tools/lib/bpf/libbpf.c log_buf = malloc(log_buf_size); malloc 3471 tools/lib/bpf/libbpf.c prog->instances.fds = malloc(sizeof(int)); malloc 4386 tools/lib/bpf/libbpf.c instances_fds = malloc(sizeof(int) * nr_instances); malloc 4567 tools/lib/bpf/libbpf.c buf = malloc(len); malloc 4938 tools/lib/bpf/libbpf.c link = malloc(sizeof(*link)); malloc 5232 tools/lib/bpf/libbpf.c link = malloc(sizeof(*link)); malloc 5274 tools/lib/bpf/libbpf.c *copy_mem = malloc(ehdr_size); malloc 5802 tools/lib/bpf/libbpf.c info_linear = malloc(sizeof(struct bpf_prog_info_linear) + data_len); malloc 152 tools/lib/bpf/libbpf_probes.c raw_btf = malloc(btf_len); malloc 159 tools/lib/lockdep/preload.c return malloc(sizeof(struct lock_lookup)); malloc 31 tools/lib/string.c void *p = malloc(len); malloc 167 tools/lib/subcmd/exec-cmd.c nargv = malloc(sizeof(*nargv) * (argc + 2)); malloc 18 tools/lib/subcmd/help.c struct cmdname *ent = malloc(sizeof(*ent) + len + 1); malloc 814 tools/lib/subcmd/parse-options.c ordered = malloc(len); malloc 177 tools/lib/traceevent/event-parse.c cmdlines = malloc(sizeof(*cmdlines) * tep->cmdline_count); malloc 341 tools/lib/traceevent/event-parse.c item = malloc(sizeof(*item)); malloc 450 tools/lib/traceevent/event-parse.c func_map = malloc(sizeof(*func_map) * (tep->func_count + 1)); malloc 517 tools/lib/traceevent/event-parse.c struct func_resolver *resolver = malloc(sizeof(*resolver)); malloc 617 tools/lib/traceevent/event-parse.c struct func_list *item = malloc(sizeof(*item)); malloc 704 tools/lib/traceevent/event-parse.c printk_map = malloc(sizeof(*printk_map) * (tep->printk_count + 1)); malloc 757 tools/lib/traceevent/event-parse.c struct printk_list *item = malloc(sizeof(*item)); malloc 2233 tools/lib/traceevent/event-parse.c ref = malloc(len); malloc 3902 tools/lib/traceevent/event-parse.c str = malloc(str_size + 1); malloc 4006 tools/lib/traceevent/event-parse.c str = malloc(len + 1); malloc 4217 tools/lib/traceevent/event-parse.c args = malloc(sizeof(*args) * func_handle->nr_args); malloc 4232 tools/lib/traceevent/event-parse.c string = malloc(sizeof(*string)); malloc 5755 tools/lib/traceevent/event-parse.c events = malloc(sizeof(*events) * (tep->nr_events + 1)); malloc 5868 tools/lib/traceevent/event-parse.c fields = malloc(sizeof(*fields) * (count + 1)); malloc 6698 tools/lib/traceevent/event-parse.c param = malloc(sizeof(*param)); malloc 217 tools/lib/traceevent/event-plugin.c reg = malloc(sizeof(*reg)); malloc 307 tools/lib/traceevent/event-plugin.c list = malloc(sizeof(*list)); malloc 80 tools/lib/traceevent/parse-filter.c *tok = malloc(3); malloc 173 tools/lib/traceevent/parse-filter.c filter = malloc(sizeof(*filter)); malloc 236 tools/lib/traceevent/parse-filter.c list = malloc(sizeof(*list)); malloc 563 tools/lib/traceevent/parse-filter.c op->str.buffer = malloc(op->str.field->size + 1); malloc 1293 tools/lib/traceevent/parse-filter.c this_event = malloc(len + 1); malloc 48 tools/lib/traceevent/trace-seq.c s->buffer = malloc(s->buffer_size); malloc 249 tools/objtool/check.c insn = malloc(sizeof(*insn)); malloc 728 tools/objtool/check.c fake_jump = malloc(sizeof(*fake_jump)); malloc 879 tools/objtool/check.c alt = malloc(sizeof(*alt)); malloc 935 tools/objtool/check.c alt = malloc(sizeof(*alt)); malloc 149 tools/objtool/elf.c sec = malloc(sizeof(*sec)); malloc 224 tools/objtool/elf.c sym = malloc(sizeof(*sym)); malloc 371 tools/objtool/elf.c rela = malloc(sizeof(*rela)); malloc 411 tools/objtool/elf.c elf = malloc(sizeof(*elf)); malloc 469 tools/objtool/elf.c sec = malloc(sizeof(*sec)); malloc 509 tools/objtool/elf.c sec->data->d_buf = malloc(size); malloc 567 tools/objtool/elf.c relaname = malloc(strlen(base->name) + strlen(".rela") + 1); malloc 603 tools/objtool/elf.c relas = malloc(size); malloc 101 tools/objtool/orc_gen.c rela = malloc(sizeof(*rela)); malloc 183 tools/objtool/special.c alt = malloc(sizeof(*alt)); malloc 33 tools/objtool/warn.h str = malloc(strlen(name) + 20); malloc 21 tools/perf/arch/arm/tests/dwarf-unwind.c buf = malloc(STACK_SIZE); malloc 21 tools/perf/arch/arm64/tests/dwarf-unwind.c buf = malloc(STACK_SIZE); malloc 28 tools/perf/arch/arm64/util/header.c buf = malloc(MIDR_SIZE); malloc 21 tools/perf/arch/nds32/util/header.c buf = malloc(STR_LEN); malloc 22 tools/perf/arch/powerpc/tests/dwarf-unwind.c buf = malloc(STACK_SIZE); malloc 142 tools/perf/arch/s390/util/header.c char *buf = malloc(128); malloc 22 tools/perf/arch/x86/tests/dwarf-unwind.c buf = malloc(STACK_SIZE); malloc 52 tools/perf/arch/x86/tests/dwarf-unwind.c buf = malloc(sizeof(u64) * PERF_REGS_MAX); malloc 74 tools/perf/arch/x86/util/header.c char *buf = malloc(128); malloc 68 tools/perf/arch/x86/util/intel-pt.c terms = malloc(sizeof(struct list_head)); malloc 198 tools/perf/bench/sched-messaging.c struct sender_context *snd_ctx = malloc(sizeof(struct sender_context) malloc 206 tools/perf/bench/sched-messaging.c struct receiver_context *ctx = malloc(sizeof(*ctx)); malloc 273 tools/perf/bench/sched-messaging.c pth_tab = malloc(num_fds * 2 * num_groups * sizeof(pthread_t)); malloc 182 tools/perf/builtin-ftrace.c cpumask = malloc(mask_size); malloc 428 tools/perf/builtin-ftrace.c entry = malloc(sizeof(*entry) + strlen(str) + 1); malloc 498 tools/perf/builtin-inject.c ent = malloc(event->header.size + sizeof(struct event_entry)); malloc 109 tools/perf/builtin-kmem.c data = malloc(sizeof(*data)); malloc 154 tools/perf/builtin-kmem.c data = malloc(sizeof(*data)); malloc 1496 tools/perf/builtin-record.c event = malloc(sizeof(event->comm) + machine->id_hdr_size); malloc 1517 tools/perf/builtin-record.c event = malloc(sizeof(event->namespaces) + malloc 788 tools/perf/builtin-report.c tasks = malloc(sizeof(*tasks) * nr); malloc 676 tools/perf/builtin-sched.c struct sched_thread_parms *parms = malloc(sizeof(*parms)); malloc 2537 tools/perf/builtin-script.c struct script_spec *s = malloc(sizeof(*s) + strlen(spec) + 1); malloc 3220 tools/perf/builtin-script.c char **__argv = malloc(sizeof(const char *) * argc); malloc 3670 tools/perf/builtin-script.c __argv = malloc((argc + 6) * sizeof(const char *)); malloc 3696 tools/perf/builtin-script.c __argv = malloc((argc + 4) * sizeof(const char *)); malloc 3734 tools/perf/builtin-script.c __argv = malloc((argc + 2) * sizeof(const char *)); malloc 1099 tools/perf/builtin-stat.c *str = malloc(len + 1 + 2); malloc 1081 tools/perf/builtin-timechart.c task_from = malloc(40); malloc 1085 tools/perf/builtin-timechart.c task_to = malloc(40); malloc 1306 tools/perf/builtin-timechart.c struct process_filter *filt = malloc(sizeof(*filt)); malloc 354 tools/perf/builtin-top.c char *buf = malloc(0), *p; malloc 389 tools/perf/builtin-top.c char *buf = malloc(0), *p; malloc 297 tools/perf/builtin-trace.c struct syscall_tp *sc = evsel->priv = malloc(sizeof(struct syscall_tp)); malloc 314 tools/perf/builtin-trace.c struct syscall_tp *sc = evsel->priv = malloc(sizeof(struct syscall_tp)); malloc 350 tools/perf/builtin-trace.c evsel->priv = malloc(sizeof(struct syscall_tp)); malloc 1569 tools/perf/builtin-trace.c trace->ev_qualifier_ids.entries = malloc(nr_allocated * malloc 1860 tools/perf/builtin-trace.c stats = malloc(sizeof(struct stats)); malloc 1971 tools/perf/builtin-trace.c ttrace->entry_str = malloc(trace__entry_str_size); malloc 3950 tools/perf/builtin-trace.c lists[list] = malloc(len); malloc 109 tools/perf/jvmti/libjvmti.c *tab = malloc(nr_total * sizeof(**tab)); malloc 200 tools/perf/jvmti/libjvmti.c *buffer = malloc((len + 1) * sizeof(char)); malloc 270 tools/perf/jvmti/libjvmti.c line_file_names = malloc(sizeof(char*) * nr_lines); malloc 15 tools/perf/lib/cpumap.c struct perf_cpu_map *cpus = malloc(sizeof(*cpus) + sizeof(int)); malloc 57 tools/perf/lib/cpumap.c cpus = malloc(sizeof(*cpus) + nr_cpus * sizeof(int)); malloc 74 tools/perf/lib/cpumap.c struct perf_cpu_map *cpus = malloc(sizeof(*cpus) + payload_size); malloc 140 tools/perf/pmu-events/jevents.c fixed = (char *) malloc(len + 1); malloc 423 tools/perf/pmu-events/jevents.c es = malloc(sizeof(*es)); malloc 765 tools/perf/pmu-events/jevents.c line = malloc(n); malloc 95 tools/perf/pmu-events/json.c tokens = malloc(sz); malloc 35 tools/perf/tests/dso-data.c buf = malloc(size); malloc 152 tools/perf/tests/dso-data.c buf = malloc(TEST_FILE_SIZE); malloc 208 tools/perf/tests/dso-data.c dsos = malloc(sizeof(*dsos) * cnt); malloc 246 tools/perf/tests/sample-parsing.c event = malloc(bufsz); malloc 217 tools/perf/tests/switch-tracking.c node = malloc(sizeof(struct event_node)); malloc 2558 tools/perf/ui/browsers/hists.c script_opt = malloc(len); malloc 103 tools/perf/ui/browsers/scripts.c buf = malloc(SCRIPT_MAX_NO * (SCRIPT_NAMELEN + SCRIPT_FULLPATH_LEN)); malloc 15 tools/perf/ui/gtk/util.c ctx = malloc(sizeof(*pgctx)); malloc 775 tools/perf/ui/hist.c node = malloc(sizeof(*node)); malloc 98 tools/perf/ui/stdio/hist.c rem_sq_bracket = malloc(sizeof(*rem_sq_bracket) + 6); malloc 821 tools/perf/ui/stdio/hist.c line = malloc(linesz); malloc 223 tools/perf/util/auxtrace.c p = malloc(size); malloc 611 tools/perf/util/auxtrace.c auxtrace_index = malloc(sizeof(struct auxtrace_index)); malloc 1439 tools/perf/util/auxtrace.c return malloc(c->entry_size); malloc 120 tools/perf/util/block-range.c struct block_range *head = malloc(sizeof(struct block_range)); malloc 143 tools/perf/util/block-range.c entry = malloc(sizeof(struct block_range)); malloc 167 tools/perf/util/block-range.c struct block_range *head = malloc(sizeof(struct block_range)); malloc 205 tools/perf/util/block-range.c struct block_range *tail = malloc(sizeof(struct block_range)); malloc 252 tools/perf/util/block-range.c tail = malloc(sizeof(struct block_range)); malloc 275 tools/perf/util/block-range.c struct block_range *hole = malloc(sizeof(struct block_range)); malloc 103 tools/perf/util/bpf-event.c node = malloc(data_size + sizeof(struct btf_node)); malloc 271 tools/perf/util/bpf-event.c info_node = malloc(sizeof(struct bpf_prog_info_node)); malloc 305 tools/perf/util/bpf-event.c event = malloc(sizeof(event->bpf) + KSYM_NAME_LEN + machine->id_hdr_size); malloc 373 tools/perf/util/bpf-event.c info_node = malloc(sizeof(struct bpf_prog_info_node)); malloc 538 tools/perf/util/bpf-loader.c ptevs = malloc(array_sz); malloc 611 tools/perf/util/bpf-loader.c priv->insns_buf = malloc(sizeof(struct bpf_insn) * BPF_MAXINSNS); malloc 617 tools/perf/util/bpf-loader.c priv->type_mapping = malloc(sizeof(int) * pev->ntevs); malloc 23 tools/perf/util/bpf_map.c return malloc(round_up(def->value_size, 8) * sysconf(_SC_NPROCESSORS_CONF)); malloc 25 tools/perf/util/bpf_map.c return malloc(def->value_size); malloc 42 tools/perf/util/bpf_map.c key = malloc(def->key_size); malloc 204 tools/perf/util/c++/clang.cpp buffer = malloc(size); malloc 257 tools/perf/util/callchain.c buf = malloc(strlen(arg) + 1); malloc 1527 tools/perf/util/callchain.c new = malloc(sizeof(*new)); malloc 83 tools/perf/util/cpumap.c struct perf_cpu_map *cpus = malloc(sizeof(*cpus) + sizeof(int) * nr); malloc 266 tools/perf/util/cs-etm.c tidq->event_buf = malloc(PERF_SAMPLE_MAX_SIZE); malloc 306 tools/perf/util/cs-etm.c tidq = malloc(sizeof(*tidq)); malloc 956 tools/perf/util/data-convert-bt.c new_name = malloc(len); malloc 1189 tools/perf/util/data-convert-bt.c priv = malloc(sizeof(*priv)); malloc 175 tools/perf/util/demangle-java.c buf = malloc(len); malloc 472 tools/perf/util/dso.c char *name = malloc(PATH_MAX); malloc 206 tools/perf/util/expr.y *other = malloc((EXPR_MAX_OTHER + 1) * sizeof(char *)); malloc 249 tools/perf/util/header.c buf = malloc(len); malloc 1609 tools/perf/util/header.c buf = malloc(sz); malloc 2703 tools/perf/util/header.c info_linear = malloc(sizeof(struct bpf_prog_info_linear) + malloc 2720 tools/perf/util/header.c info_node = malloc(sizeof(struct bpf_prog_info_node)); malloc 2770 tools/perf/util/header.c node = malloc(sizeof(struct btf_node) + data_size); malloc 420 tools/perf/util/hist.c he->stat_acc = malloc(sizeof(he->stat)); malloc 436 tools/perf/util/hist.c he->branch_info = malloc(sizeof(*he->branch_info)); malloc 995 tools/perf/util/hist.c he_cache = malloc(sizeof(*he_cache) * (callchain_cursor.nr + 1)); malloc 313 tools/perf/util/intel-pt-decoder/intel-pt-decoder.c blk = malloc(sizeof(struct intel_pt_blk)); malloc 883 tools/perf/util/intel-pt.c ptq->event_buf = malloc(PERF_SAMPLE_MAX_SIZE); malloc 18 tools/perf/util/intlist.c struct int_node *node = malloc(sizeof(*node)); malloc 111 tools/perf/util/intlist.c struct intlist *ilist = malloc(sizeof(*ilist)); malloc 147 tools/perf/util/jitdump.c buf = malloc(bsz); malloc 256 tools/perf/util/jitdump.c jd->buf = malloc(sz); malloc 600 tools/perf/util/jitdump.c data = malloc(sz); malloc 627 tools/perf/util/jitdump.c unwinding_data = malloc(unwinding_data_size); malloc 48 tools/perf/util/levenshtein.c int *row0 = malloc(sizeof(int) * (len2 + 1)); malloc 49 tools/perf/util/levenshtein.c int *row1 = malloc(sizeof(int) * (len2 + 1)); malloc 50 tools/perf/util/levenshtein.c int *row2 = malloc(sizeof(int) * (len2 + 1)); malloc 134 tools/perf/util/machine.c struct machine *machine = malloc(sizeof(*machine)); malloc 265 tools/perf/util/machine.c struct machine *pos, *machine = malloc(sizeof(*machine)); malloc 153 tools/perf/util/map.c struct map *map = malloc(sizeof(*map)); malloc 54 tools/perf/util/mem-events.c buf = malloc(strlen(str) + 1); malloc 67 tools/perf/util/metricgroup.c struct metric_event *me = malloc(sizeof(struct metric_event)); malloc 186 tools/perf/util/metricgroup.c expr = malloc(sizeof(struct metric_expr)); malloc 238 tools/perf/util/metricgroup.c struct mep *me = malloc(sizeof(struct mep)); malloc 456 tools/perf/util/metricgroup.c eg = malloc(sizeof(struct egroup)); malloc 213 tools/perf/util/mmap.c map->aio.data[idx] = malloc(perf_mmap__mmap_len(map)); malloc 148 tools/perf/util/ordered-events.c oe->buffer = malloc(size); malloc 229 tools/perf/util/parse-events.c path->system = malloc(MAX_EVENT_LENGTH); malloc 234 tools/perf/util/parse-events.c path->name = malloc(MAX_EVENT_LENGTH); malloc 1407 tools/perf/util/parse-events.c list = malloc(sizeof(struct list_head)); malloc 1416 tools/perf/util/parse-events.c head = malloc(sizeof(struct list_head)); malloc 1824 tools/perf/util/parse-events.c perf_pmu_events_list = malloc(sizeof(struct perf_pmu_event_symbol) * len); malloc 2667 tools/perf/util/parse-events.c term = malloc(sizeof(*term)); malloc 2770 tools/perf/util/parse-events.c *new = malloc(sizeof(struct list_head)); malloc 30 tools/perf/util/parse-events.y list = malloc(sizeof(*list)); \ malloc 544 tools/perf/util/parse-events.y struct list_head *head = malloc(sizeof(*head)); malloc 671 tools/perf/util/parse-events.y new_array.ranges = malloc(sizeof(new_array.ranges[0]) * malloc 691 tools/perf/util/parse-events.y array.ranges = malloc(sizeof(array.ranges[0])); malloc 704 tools/perf/util/parse-events.y array.ranges = malloc(sizeof(array.ranges[0])); malloc 319 tools/perf/util/pmu.c alias = malloc(sizeof(*alias)); malloc 2899 tools/perf/util/probe-event.c syms = malloc(sizeof(struct symbol *) * probe_conf.max_probes); malloc 3125 tools/perf/util/probe-event.c ret = malloc(sz_a + sz_b); malloc 1887 tools/perf/util/probe-finder.c *new_path = malloc((strlen(prefix) + strlen(raw_path) + 2)); malloc 107 tools/perf/util/rb_resort.h sorted = malloc(sizeof(*sorted) + sizeof(sorted->nd[0]) * nr_entries); \ malloc 482 tools/perf/util/scripting-engines/trace-event-perl.c command_line = malloc((argc + 2) * sizeof(const char *)); malloc 1606 tools/perf/util/scripting-engines/trace-event-python.c command_line = malloc((argc + 1) * sizeof(const char *)); malloc 1612 tools/perf/util/scripting-engines/trace-event-python.c command_line = malloc((argc + 1) * sizeof(wchar_t *)); malloc 1870 tools/perf/util/session.c buf = malloc(cur_size); malloc 1883 tools/perf/util/sort.c hse = malloc(sizeof(*hse)); malloc 2229 tools/perf/util/sort.c hde = malloc(sizeof(*hde)); malloc 127 tools/perf/util/srccode.c h = malloc(sizeof(struct srcfile)); malloc 176 tools/perf/util/srcline.c syms = malloc(storage); malloc 80 tools/perf/util/stat-shadow.c struct saved_value *nd = malloc(sizeof(struct saved_value)); malloc 307 tools/perf/util/strfilter.c ret = malloc(len + 1); malloc 222 tools/perf/util/string.c char *expr = malloc(size); malloc 20 tools/perf/util/strlist.c struct str_node *snode = malloc(sizeof(*snode)); malloc 161 tools/perf/util/strlist.c struct strlist *slist = malloc(sizeof(*slist)); malloc 791 tools/perf/util/svghelper.c topology_map = malloc(sizeof(int) * nr_cpus); malloc 1262 tools/perf/util/symbol-elf.c char *buf = malloc(page_size); malloc 1776 tools/perf/util/symbol-elf.c buf_from = malloc(page_size); malloc 1777 tools/perf/util/symbol-elf.c buf_to = malloc(page_size); malloc 127 tools/perf/util/symbol-minimal.c buf = malloc(buf_size); malloc 178 tools/perf/util/symbol-minimal.c buf = malloc(buf_size); malloc 239 tools/perf/util/symbol-minimal.c buf = malloc(buf_size); malloc 1668 tools/perf/util/symbol.c name = malloc(PATH_MAX); malloc 2132 tools/perf/util/symbol.c vmlinux_path = malloc(sizeof(char *) * (ARRAY_SIZE(vmlinux_paths) + malloc 569 tools/perf/util/synthetic-events.c comm_event = malloc(sizeof(comm_event->comm) + machine->id_hdr_size); malloc 573 tools/perf/util/synthetic-events.c mmap_event = malloc(sizeof(mmap_event->mmap2) + machine->id_hdr_size); malloc 577 tools/perf/util/synthetic-events.c fork_event = malloc(sizeof(fork_event->fork) + machine->id_hdr_size); malloc 581 tools/perf/util/synthetic-events.c namespaces_event = malloc(sizeof(namespaces_event->namespaces) + malloc 651 tools/perf/util/synthetic-events.c comm_event = malloc(sizeof(comm_event->comm) + machine->id_hdr_size); malloc 655 tools/perf/util/synthetic-events.c mmap_event = malloc(sizeof(mmap_event->mmap2) + machine->id_hdr_size); malloc 659 tools/perf/util/synthetic-events.c fork_event = malloc(sizeof(fork_event->fork) + machine->id_hdr_size); malloc 663 tools/perf/util/synthetic-events.c namespaces_event = malloc(sizeof(namespaces_event->namespaces) + malloc 1839 tools/perf/util/synthetic-events.c ff.buf = malloc(sz); malloc 68 tools/perf/util/syscalltbl.c entries = tbl->syscalls.entries = malloc(sizeof(struct syscall) * nr_entries); malloc 88 tools/perf/util/syscalltbl.c struct syscalltbl *tbl = malloc(sizeof(*tbl)); malloc 145 tools/perf/util/syscalltbl.c struct syscalltbl *tbl = malloc(sizeof(*tbl)); malloc 55 tools/perf/util/thread.c comm_str = malloc(32); malloc 343 tools/perf/util/time-utils.c str = malloc(len + 3); malloc 504 tools/perf/util/trace-event-info.c tdata = malloc(sizeof(*tdata)); malloc 136 tools/perf/util/trace-event-read.c str = malloc(size); malloc 176 tools/perf/util/trace-event-read.c buf = malloc(size + 1); malloc 210 tools/perf/util/trace-event-read.c header_page = malloc(size); malloc 249 tools/perf/util/trace-event-read.c buf = malloc(size); malloc 275 tools/perf/util/trace-event-read.c buf = malloc(size); malloc 353 tools/perf/util/trace-event-read.c buf = malloc(size + 1); malloc 76 tools/perf/util/trace-event-scripting.c scripting_context = malloc(sizeof(*scripting_context)); malloc 139 tools/perf/util/trace-event-scripting.c scripting_context = malloc(sizeof(*scripting_context)); malloc 327 tools/perf/util/unwind-libunwind-local.c char *debuglink = malloc(PATH_MAX); malloc 15 tools/perf/util/values.c values->pid = malloc(values->threads_max * sizeof(*values->pid)); malloc 16 tools/perf/util/values.c values->tid = malloc(values->threads_max * sizeof(*values->tid)); malloc 25 tools/perf/util/values.c values->counterrawid = malloc(values->counters_max malloc 27 tools/perf/util/values.c values->countername = malloc(values->counters_max malloc 208 tools/perf/util/values.c counterwidth = malloc(values->counters * sizeof(*counterwidth)); malloc 534 tools/power/acpi/os_specific/service_layers/osunixxf.c mem = (void *)malloc((size_t) size); malloc 70 tools/power/cpupower/bench/parse.c filename = malloc(sizeof(char) * len); malloc 122 tools/power/cpupower/bench/parse.c struct config *config = malloc(sizeof(struct config)); malloc 231 tools/power/cpupower/lib/cpufreq.c policy = malloc(sizeof(struct cpufreq_policy)); malloc 281 tools/power/cpupower/lib/cpufreq.c current->next = malloc(sizeof(*current)); malloc 286 tools/power/cpupower/lib/cpufreq.c first = malloc(sizeof(*first)); malloc 294 tools/power/cpupower/lib/cpufreq.c current->governor = malloc(i - pos + 1); malloc 358 tools/power/cpupower/lib/cpufreq.c current->next = malloc(sizeof(*current)); malloc 363 tools/power/cpupower/lib/cpufreq.c first = malloc(sizeof(*first)); malloc 414 tools/power/cpupower/lib/cpufreq.c current->next = malloc(sizeof(*current)); malloc 419 tools/power/cpupower/lib/cpufreq.c first = malloc(sizeof(*first)); malloc 489 tools/power/cpupower/lib/cpufreq.c current->next = malloc(sizeof(*current)); malloc 494 tools/power/cpupower/lib/cpufreq.c first = malloc(sizeof(*first)); malloc 722 tools/power/cpupower/lib/cpufreq.c current->next = malloc(sizeof(*current)); malloc 727 tools/power/cpupower/lib/cpufreq.c first = malloc(sizeof(*first)); malloc 135 tools/power/cpupower/lib/cpupower.c cpu_top->core_info = malloc(sizeof(struct cpuid_core_info) * cpus); malloc 87 tools/power/cpupower/utils/cpupower.c page = malloc(len); malloc 28 tools/power/cpupower/utils/helpers/bitmask.c bmp = malloc(sizeof(*bmp)); malloc 178 tools/power/cpupower/utils/idle_monitor/cpuidle_sysfs.c previous_count = malloc(sizeof(long long *) * cpu_count); malloc 179 tools/power/cpupower/utils/idle_monitor/cpuidle_sysfs.c current_count = malloc(sizeof(long long *) * cpu_count); malloc 181 tools/power/cpupower/utils/idle_monitor/cpuidle_sysfs.c previous_count[num] = malloc(sizeof(long long) * malloc 183 tools/power/cpupower/utils/idle_monitor/cpuidle_sysfs.c current_count[num] = malloc(sizeof(long long) * malloc 84 tools/power/cpupower/utils/idle_monitor/cpupower-monitor.c temp = malloc(sizeof(char) * (n+1)); malloc 358 tools/power/x86/intel-speed-select/isst-config.c cpu_map = malloc(sizeof(*cpu_map) * topo_max_cpus); malloc 303 tools/spi/spidev_test.c tx = malloc(size); malloc 307 tools/spi/spidev_test.c rx = malloc(size); malloc 332 tools/spi/spidev_test.c tx = malloc(sb.st_size); malloc 336 tools/spi/spidev_test.c rx = malloc(sb.st_size); malloc 373 tools/spi/spidev_test.c tx = malloc(len); malloc 379 tools/spi/spidev_test.c rx = malloc(len); malloc 44 tools/testing/radix-tree/linux.c node = malloc(cachep->size); malloc 81 tools/testing/radix-tree/linux.c ret = malloc(size); malloc 104 tools/testing/radix-tree/linux.c struct kmem_cache *ret = malloc(sizeof(*ret)); malloc 58 tools/testing/radix-tree/regression1.c p = malloc(sizeof(struct page)); malloc 180 tools/testing/radix-tree/regression1.c threads = malloc(nr_threads * sizeof(pthread_t *)); malloc 70 tools/testing/radix-tree/regression2.c p = malloc(sizeof(struct page)); malloc 277 tools/testing/radix-tree/tag_check.c thrash_state = malloc(THRASH_SIZE); malloc 30 tools/testing/radix-tree/test.c struct item *ret = malloc(sizeof(*ret)); malloc 104 tools/testing/scatterlist/linux/mm.h return (unsigned long)malloc(PAGE_SIZE); malloc 114 tools/testing/scatterlist/linux/mm.h return malloc(size); malloc 23 tools/testing/selftests/arm64/tags_test.c ptr = (struct utsname *)malloc(sizeof(*ptr)); malloc 172 tools/testing/selftests/bpf/map_tests/sk_storage_map.c sk_fds = malloc(sizeof(*sk_fds) * nr_sk_per_thread); malloc 233 tools/testing/selftests/bpf/map_tests/sk_storage_map.c sk_thread_ids = malloc(sizeof(pthread_t) * nr_sk_threads); malloc 339 tools/testing/selftests/bpf/map_tests/sk_storage_map.c sk_thread_ids = malloc(sizeof(pthread_t) * nr_sk_threads); malloc 116 tools/testing/selftests/bpf/prog_tests/global_data.c buff = malloc(bpf_map__def(map)->value_size); malloc 925 tools/testing/selftests/bpf/prog_tests/sockopt.c optval = malloc(test->get_optlen); malloc 36 tools/testing/selftests/bpf/prog_tests/tp_attach_query.c query = malloc(sizeof(*query) + sizeof(__u32) * num_progs); malloc 3549 tools/testing/selftests/bpf/test_btf.c raw_btf = malloc(size_needed); malloc 3804 tools/testing/selftests/bpf/test_btf.c user_btf = malloc(raw_btf_size); malloc 3889 tools/testing/selftests/bpf/test_btf.c user_btf[i] = malloc(raw_btf_size); malloc 4026 tools/testing/selftests/bpf/test_btf.c user_btf = malloc(raw_btf_size); malloc 4205 tools/testing/selftests/bpf/test_btf.c func_info = malloc(info.nr_func_info * rec_size); malloc 5822 tools/testing/selftests/bpf/test_btf.c new_u32 = malloc(raw_u32_size); malloc 5877 tools/testing/selftests/bpf/test_btf.c func_info = malloc(info.nr_func_info * rec_size); malloc 499 tools/testing/selftests/bpf/test_cgroup_attach.c ptr = malloc(4 * (1 << 20)); malloc 47 tools/testing/selftests/bpf/test_cgroup_storage.c percpu_value = malloc(sizeof(*percpu_value) * nproc); malloc 59 tools/testing/selftests/bpf/test_lpm_map.c node = malloc(sizeof(*node) + n); malloc 49 tools/testing/selftests/bpf/test_netcnt.c percpu_netcnt = malloc(sizeof(*percpu_netcnt) * nproc); malloc 248 tools/testing/selftests/bpf/test_progs.c val_buf1 = malloc(stack_trace_len); malloc 249 tools/testing/selftests/bpf/test_progs.c val_buf2 = malloc(stack_trace_len); malloc 550 tools/testing/selftests/bpf/test_verifier.c ptr = raw_btf = malloc(sizeof(hdr) + sizeof(btf_raw_types) + malloc 60 tools/testing/selftests/cgroup/cgroup_util.c char *ret = malloc(len); malloc 70 tools/testing/selftests/cgroup/cgroup_util.c char *ret = malloc(len); malloc 80 tools/testing/selftests/cgroup/cgroup_util.c char *ret = malloc(len); malloc 112 tools/testing/selftests/cgroup/cgroup_util.c buf = malloc(size); malloc 368 tools/testing/selftests/cgroup/cgroup_util.c buf = malloc(size); malloc 96 tools/testing/selftests/cgroup/test_memcontrol.c buf = malloc(size); malloc 690 tools/testing/selftests/cgroup/test_memcontrol.c buf = malloc(size); malloc 119 tools/testing/selftests/exec/execveat.c char *result = malloc(strlen(left) + strlen(right) + 1); malloc 83 tools/testing/selftests/ia64/aliasing-test.c path2 = malloc(strlen(path) + strlen(name) + 3); malloc 168 tools/testing/selftests/ia64/aliasing-test.c path2 = malloc(strlen(path) + strlen(name) + 3); malloc 151 tools/testing/selftests/ipc/msgque.c msgque->messages = malloc(sizeof(struct msg1) * ds.msg_qnum); malloc 695 tools/testing/selftests/kvm/lib/x86_64/processor.c cpuid = malloc(size); malloc 1040 tools/testing/selftests/kvm/lib/x86_64/processor.c list = malloc(sizeof(*list) + nmsrs * sizeof(list->indices[0])); malloc 1046 tools/testing/selftests/kvm/lib/x86_64/processor.c state = malloc(sizeof(*state) + nmsrs * sizeof(state->msrs.entries[0])); malloc 118 tools/testing/selftests/kvm/x86_64/hyperv_cpuid.c cpuid = malloc(sizeof(*cpuid) + nent * sizeof(struct kvm_cpuid_entry2)); malloc 96 tools/testing/selftests/kvm/x86_64/vmx_set_nested_state_test.c (struct kvm_nested_state *)malloc(state_sz); malloc 204 tools/testing/selftests/memfd/fuse_test.c stack = malloc(STACK_SIZE); malloc 525 tools/testing/selftests/memfd/memfd_test.c buf = malloc(mfd_def_size * 8); malloc 549 tools/testing/selftests/memfd/memfd_test.c buf = malloc(mfd_def_size * 8); malloc 580 tools/testing/selftests/memfd/memfd_test.c stack = malloc(STACK_SIZE); malloc 256 tools/testing/selftests/mqueue/mq_open_tests.c queue_path = malloc(strlen(argv[1]) + 2); malloc 607 tools/testing/selftests/mqueue/mq_perf_tests.c queue_path = malloc(strlen(option) + 2); malloc 1510 tools/testing/selftests/net/nettest.c m = malloc(olen); malloc 698 tools/testing/selftests/net/psock_tpacket.c ring->rd = malloc(ring->rd_len); malloc 51 tools/testing/selftests/net/reuseport_bpf.c addr = malloc(sizeof(struct sockaddr_storage)); malloc 68 tools/testing/selftests/net/tcp_inq.c buf = malloc(BUF_SIZE); malloc 157 tools/testing/selftests/net/tcp_inq.c buf = malloc(BUF_SIZE); malloc 139 tools/testing/selftests/net/tcp_mmap.c buffer = malloc(chunk_size); malloc 191 tools/testing/selftests/net/tls.c buf = (char *)malloc(st.st_size); malloc 301 tools/testing/selftests/net/tls.c void *mem = malloc(16384); malloc 337 tools/testing/selftests/net/tls.c test_strs[i] = (char *)malloc(strlen(test_str) + 1); malloc 347 tools/testing/selftests/net/tls.c buf = malloc(total_len); malloc 374 tools/testing/selftests/net/tls.c test_strs[i] = (char *)malloc(strlen(test_str) + 1); malloc 511 tools/testing/selftests/net/tls.c iov_base[i] = (char *)malloc(iov_len); malloc 161 tools/testing/selftests/networking/timestamping/rxtimestamp.c char *buf = malloc(op_size); malloc 188 tools/testing/selftests/networking/timestamping/rxtimestamp.c recv_iov.iov_base = malloc(read_size); malloc 275 tools/testing/selftests/networking/timestamping/txtimestamp.c data = malloc(cfg_payload_len); malloc 412 tools/testing/selftests/networking/timestamping/txtimestamp.c buf = malloc(total_len); malloc 71 tools/testing/selftests/powerpc/copyloops/validate.c redzone = malloc(BUFLEN); malloc 72 tools/testing/selftests/powerpc/copyloops/validate.c fill = malloc(BUFLEN); malloc 61 tools/testing/selftests/powerpc/math/fpu_preempt.c tids = malloc((threads) * sizeof(pthread_t)); malloc 82 tools/testing/selftests/powerpc/math/fpu_signal.c tids = malloc(threads * sizeof(pthread_t)); malloc 61 tools/testing/selftests/powerpc/math/vmx_preempt.c tids = malloc(threads * sizeof(pthread_t)); malloc 100 tools/testing/selftests/powerpc/math/vmx_signal.c tids = malloc(threads * sizeof(pthread_t)); malloc 96 tools/testing/selftests/powerpc/math/vsx_preempt.c tids = malloc(threads * sizeof(pthread_t)); malloc 99 tools/testing/selftests/powerpc/mm/subpage_prot.c map = malloc(pages * 4); malloc 572 tools/testing/selftests/powerpc/mm/tlbie_test.c void *tmp = malloc(size); malloc 23 tools/testing/selftests/powerpc/pmu/l3_bank_test.c p = malloc(MALLOC_SIZE); malloc 291 tools/testing/selftests/powerpc/ptrace/core-pkey.c filename[0] = filenames = malloc(PATH_MAX); malloc 373 tools/testing/selftests/powerpc/ptrace/core-pkey.c core_pattern = malloc(PATH_MAX); malloc 146 tools/testing/selftests/powerpc/ptrace/ptrace.h reg = malloc(sizeof(unsigned long)); malloc 192 tools/testing/selftests/powerpc/ptrace/ptrace.h reg = malloc(sizeof(unsigned long)); malloc 235 tools/testing/selftests/powerpc/ptrace/ptrace.h reg = malloc(sizeof(unsigned long)); malloc 283 tools/testing/selftests/powerpc/ptrace/ptrace.h reg = malloc(sizeof(unsigned long)); malloc 326 tools/testing/selftests/powerpc/ptrace/ptrace.h regs = (struct fpr_regs *) malloc(sizeof(struct fpr_regs)); malloc 345 tools/testing/selftests/powerpc/ptrace/ptrace.h regs = (struct fpr_regs *) malloc(sizeof(struct fpr_regs)); malloc 369 tools/testing/selftests/powerpc/ptrace/ptrace.h regs = (struct fpr_regs *) malloc(sizeof(struct fpr_regs)); malloc 393 tools/testing/selftests/powerpc/ptrace/ptrace.h regs = (struct fpr_regs *) malloc(sizeof(struct fpr_regs)); malloc 420 tools/testing/selftests/powerpc/ptrace/ptrace.h regs = (struct pt_regs *) malloc(sizeof(struct pt_regs)); malloc 445 tools/testing/selftests/powerpc/ptrace/ptrace.h regs = (struct pt_regs *) malloc(sizeof(struct pt_regs)); malloc 474 tools/testing/selftests/powerpc/ptrace/ptrace.h regs = (struct pt_regs *) malloc(sizeof(struct pt_regs)); malloc 503 tools/testing/selftests/powerpc/ptrace/ptrace.h regs = (struct pt_regs *) malloc(sizeof(struct pt_regs)); malloc 654 tools/testing/selftests/powerpc/ptrace/ptrace.h regs = (struct tm_spr_regs *) malloc(sizeof(struct tm_spr_regs)); malloc 110 tools/testing/selftests/powerpc/signal/sigfuz.c tmp_uc = malloc(sizeof(ucontext_t)); malloc 205 tools/testing/selftests/powerpc/signal/sigfuz.c tmp_uc = malloc(sizeof(ucontext_t)); malloc 254 tools/testing/selftests/powerpc/signal/sigfuz.c threads = malloc(nthread * sizeof(pthread_t)); malloc 109 tools/testing/selftests/powerpc/tm/tm-tmspr.c thread = malloc(thread_num * sizeof(pthread_t)); malloc 99 tools/testing/selftests/powerpc/tm/tm-vmx-unavail.c thread = malloc(sizeof(pthread_t)*threads); malloc 57 tools/testing/selftests/proc/proc-uptime-002.c m = malloc(len); malloc 257 tools/testing/selftests/rseq/basic_percpu_ops_test.c node = malloc(sizeof(*node)); malloc 639 tools/testing/selftests/rseq/param_test.c node = malloc(sizeof(*node)); malloc 827 tools/testing/selftests/rseq/param_test.c malloc(sizeof(*buffer.c[i].array) * CPU_SETSIZE * malloc 843 tools/testing/selftests/rseq/param_test.c node = malloc(sizeof(*node)); malloc 1042 tools/testing/selftests/rseq/param_test.c malloc(sizeof(*buffer.c[i].array) * CPU_SETSIZE * malloc 920 tools/testing/selftests/seccomp/seccomp_bpf.c self->prog.filter = malloc(sizeof(filter)); malloc 1068 tools/testing/selftests/seccomp/seccomp_bpf.c self->_x.filter = malloc(sizeof(_x##_insns)); \ malloc 1524 tools/testing/selftests/seccomp/seccomp_bpf.c self->prog.filter = malloc(sizeof(filter)); malloc 1831 tools/testing/selftests/seccomp/seccomp_bpf.c self->prog.filter = malloc(sizeof(filter)); malloc 2338 tools/testing/selftests/seccomp/seccomp_bpf.c self->root_prog.filter = malloc(sizeof(root_filter)); malloc 2343 tools/testing/selftests/seccomp/seccomp_bpf.c self->apply_prog.filter = malloc(sizeof(apply_filter)); malloc 201 tools/testing/selftests/vm/compaction_test.c entry = malloc(sizeof(struct map_list)); malloc 270 tools/testing/selftests/vm/mlock-random-test.c p = malloc(MLOCK_WITHIN_LIMIT_SIZE); malloc 282 tools/testing/selftests/vm/mlock-random-test.c p = malloc(MLOCK_OUTOF_LIMIT_SIZE); malloc 99 tools/testing/selftests/vm/transhuge-stress.c map = malloc(map_len); malloc 1053 tools/testing/selftests/vm/userfaultfd.c count_verify = malloc(nr_pages * sizeof(unsigned long long)); malloc 1073 tools/testing/selftests/vm/userfaultfd.c pipefd = malloc(sizeof(int) * nr_cpus * 2); malloc 1248 tools/testing/selftests/x86/protection_keys.c int *plain_ptr_unaligned = malloc(HPAGE_SIZE); malloc 251 tools/testing/vsock/vsock_diag_test.c st = malloc(sizeof(*st)); malloc 211 tools/usb/ffs-aio-example/multibuff/device_app/aio_multibuff.c iobuf->buf = malloc(n*sizeof(*iobuf->buf)); malloc 212 tools/usb/ffs-aio-example/multibuff/device_app/aio_multibuff.c iobuf->iocb = malloc(n*sizeof(*iobuf->iocb)); malloc 217 tools/usb/ffs-aio-example/multibuff/device_app/aio_multibuff.c iobuf->buf[i] = malloc(len*sizeof(**iobuf->buf)); malloc 218 tools/usb/ffs-aio-example/multibuff/device_app/aio_multibuff.c iobuf->iocb[i] = malloc(sizeof(**iobuf->iocb)); malloc 256 tools/usb/ffs-aio-example/multibuff/device_app/aio_multibuff.c ep_path = malloc(strlen(argv[1]) + 4 /* "/ep#" */ + 1 /* '\0' */); malloc 227 tools/usb/ffs-aio-example/simple/device_app/aio_simple.c ep_path = malloc(strlen(argv[1]) + 4 /* "/ep#" */ + 1 /* '\0' */); malloc 274 tools/usb/ffs-aio-example/simple/device_app/aio_simple.c buf_in = malloc(BUF_LEN); malloc 275 tools/usb/ffs-aio-example/simple/device_app/aio_simple.c buf_out = malloc(BUF_LEN); malloc 276 tools/usb/ffs-aio-example/simple/device_app/aio_simple.c iocb_in = malloc(sizeof(*iocb_in)); malloc 277 tools/usb/ffs-aio-example/simple/device_app/aio_simple.c iocb_out = malloc(sizeof(*iocb_out)); malloc 295 tools/usb/ffs-test.c out = malloc(length); malloc 381 tools/usb/ffs-test.c t->buf = malloc(t->buf_size); malloc 198 tools/usb/usbip/libsrc/vhci_driver.c buffer = malloc(buffer_len); malloc 57 tools/virtio/linux/kernel.h return malloc(s); malloc 90 tools/virtio/ringtest/virtio_ring_0_9.c data = malloc(ring_size * sizeof *data); malloc 120 tools/virtio/virtio_test.c dev->buf = malloc(dev->buf_size); malloc 126 tools/virtio/virtio_test.c dev->mem = malloc(offsetof(struct vhost_memory, regions) + malloc 73 tools/vm/page_owner_sort.c list[list_size].txt = malloc(len+1); malloc 112 tools/vm/page_owner_sort.c list = malloc(max_size * sizeof(*list)); malloc 113 tools/vm/page_owner_sort.c buf = malloc(BUF_SIZE); malloc 133 tools/vm/page_owner_sort.c list2 = malloc(sizeof(*list) * list_size); malloc 168 tools/wmi/dell-smbios-example.c buffer = malloc(value); malloc 323 usr/gen_init_cpio.c filebuf = malloc(buf.st_size); malloc 422 usr/gen_init_cpio.c dname = malloc(strlen(line));