| /Linux-v5.4/tools/testing/selftests/powerpc/ptrace/ | 
| D | ptrace.h | 146 	reg = malloc(sizeof(unsigned long));  in show_tar_registers()192 	reg = malloc(sizeof(unsigned long));  in write_tar_registers()
 235 	reg = malloc(sizeof(unsigned long));  in show_tm_checkpointed_state()
 283 	reg = malloc(sizeof(unsigned long));  in write_ckpt_tar_registers()
 326 	regs = (struct fpr_regs *) malloc(sizeof(struct fpr_regs));  in show_fpr()
 345 	regs = (struct fpr_regs *) malloc(sizeof(struct fpr_regs));  in write_fpr()
 369 	regs = (struct fpr_regs *) malloc(sizeof(struct fpr_regs));  in show_ckpt_fpr()
 393 	regs = (struct fpr_regs *) malloc(sizeof(struct fpr_regs));  in write_ckpt_fpr()
 420 	regs = (struct pt_regs *) malloc(sizeof(struct pt_regs));  in show_gpr()
 445 	regs = (struct pt_regs *) malloc(sizeof(struct pt_regs));  in write_gpr()
 [all …]
 
 | 
| /Linux-v5.4/include/linux/decompress/ | 
| D | mm.h | 34 static void *malloc(int size)  in malloc()  function62 #define large_malloc(a) malloc(a)
 81 #define malloc(a) kmalloc(a, GFP_KERNEL)  macro
 
 | 
| /Linux-v5.4/tools/perf/util/ | 
| D | levenshtein.c | 48 	int *row0 = malloc(sizeof(int) * (len2 + 1));  in levenshtein()49 	int *row1 = malloc(sizeof(int) * (len2 + 1));  in levenshtein()
 50 	int *row2 = malloc(sizeof(int) * (len2 + 1));  in levenshtein()
 
 | 
| D | bpf_map.c | 23 		return malloc(round_up(def->value_size, 8) * sysconf(_SC_NPROCESSORS_CONF));  in bpf_map_def__alloc_value()25 	return malloc(def->value_size);  in bpf_map_def__alloc_value()
 42 	key = malloc(def->key_size);  in bpf_map__fprintf()
 
 | 
| D | block-range.c | 120 			struct block_range *head = malloc(sizeof(struct block_range));  in block_range__create()143 		entry = malloc(sizeof(struct block_range));  in block_range__create()
 167 		struct block_range *head = malloc(sizeof(struct block_range));  in block_range__create()
 205 			struct block_range *tail = malloc(sizeof(struct block_range));  in block_range__create()
 252 			tail = malloc(sizeof(struct block_range));  in block_range__create()
 275 			struct block_range *hole = malloc(sizeof(struct block_range));  in block_range__create()
 
 | 
| D | trace-event-read.c | 136 	str = malloc(size);  in read_string()176 	buf = malloc(size + 1);  in read_ftrace_printk()
 210 	header_page = malloc(size);  in read_header_files()
 249 	buf = malloc(size);  in read_ftrace_file()
 275 	buf = malloc(size);  in read_event_file()
 353 	buf = malloc(size + 1);  in read_saved_cmdline()
 
 | 
| D | syscalltbl.c | 68 	entries = tbl->syscalls.entries = malloc(sizeof(struct syscall) * nr_entries);  in syscalltbl__init_native()88 	struct syscalltbl *tbl = malloc(sizeof(*tbl));  in syscalltbl__new()
 145 	struct syscalltbl *tbl = malloc(sizeof(*tbl));  in syscalltbl__new()
 
 | 
| D | values.c | 15 	values->pid = malloc(values->threads_max * sizeof(*values->pid));  in perf_read_values_init()16 	values->tid = malloc(values->threads_max * sizeof(*values->tid));  in perf_read_values_init()
 25 	values->counterrawid = malloc(values->counters_max  in perf_read_values_init()
 27 	values->countername = malloc(values->counters_max  in perf_read_values_init()
 208 	counterwidth = malloc(values->counters * sizeof(*counterwidth));  in perf_read_values__display_pretty()
 
 | 
| D | trace-event-scripting.c | 76 		scripting_context = malloc(sizeof(*scripting_context));  in register_python_scripting()139 		scripting_context = malloc(sizeof(*scripting_context));  in register_perl_scripting()
 
 | 
| /Linux-v5.4/lib/ | 
| D | decompress_inflate.c | 51 		out_buf = malloc(out_len);  in __gunzip()64 		zbuf = malloc(GZIP_IOBUF_SIZE);  in __gunzip()
 72 	strm = malloc(sizeof(*strm));  in __gunzip()
 78 	strm->workspace = malloc(flush ? zlib_inflate_workspacesize() :  in __gunzip()
 
 | 
| D | decompress_unxz.c | 157 #define kmalloc(size, flags) malloc(size)159 #define vmalloc(size) malloc(size)
 282 		b.out = malloc(XZ_IOBUF_SIZE);  in unxz()
 289 		in = malloc(XZ_IOBUF_SIZE);  in unxz()
 
 | 
| /Linux-v5.4/tools/vm/ | 
| D | page_owner_sort.c | 73 	list[list_size].txt = malloc(len+1);  in add_list()112 	list = malloc(max_size * sizeof(*list));  in main()
 113 	buf = malloc(BUF_SIZE);  in main()
 133 	list2 = malloc(sizeof(*list) * list_size);  in main()
 
 | 
| /Linux-v5.4/tools/power/cpupower/lib/ | 
| D | cpufreq.c | 231 	policy = malloc(sizeof(struct cpufreq_policy));  in cpufreq_get_policy()281 				current->next = malloc(sizeof(*current));  in cpufreq_get_available_governors()
 286 				first = malloc(sizeof(*first));  in cpufreq_get_available_governors()
 294 			current->governor = malloc(i - pos + 1);  in cpufreq_get_available_governors()
 361 				current->next = malloc(sizeof(*current));  in cpufreq_get_frequencies()
 366 				first = malloc(sizeof(*first));  in cpufreq_get_frequencies()
 431 				current->next = malloc(sizeof(*current));  in sysfs_get_cpu_list()
 436 				first = malloc(sizeof(*first));  in sysfs_get_cpu_list()
 664 				current->next = malloc(sizeof(*current));  in cpufreq_get_stats()
 669 				first = malloc(sizeof(*first));  in cpufreq_get_stats()
 
 | 
| /Linux-v5.4/tools/power/cpupower/utils/idle_monitor/ | 
| D | cpuidle_sysfs.c | 178 	previous_count = malloc(sizeof(long long *) * cpu_count);  in cpuidle_register()179 	current_count = malloc(sizeof(long long *) * cpu_count);  in cpuidle_register()
 181 		previous_count[num] = malloc(sizeof(long long) *  in cpuidle_register()
 183 		current_count[num] = malloc(sizeof(long long) *  in cpuidle_register()
 
 | 
| /Linux-v5.4/tools/testing/radix-tree/ | 
| D | linux.c | 44 		node = malloc(cachep->size);  in kmem_cache_alloc()81 	ret = malloc(size);  in kmalloc()
 104 	struct kmem_cache *ret = malloc(sizeof(*ret));  in kmem_cache_create()
 
 | 
| /Linux-v5.4/tools/usb/ffs-aio-example/simple/device_app/ | 
| D | aio_simple.c | 227 	ep_path = malloc(strlen(argv[1]) + 4 /* "/ep#" */ + 1 /* '\0' */);  in main()274 	buf_in = malloc(BUF_LEN);  in main()
 275 	buf_out = malloc(BUF_LEN);  in main()
 276 	iocb_in = malloc(sizeof(*iocb_in));  in main()
 277 	iocb_out = malloc(sizeof(*iocb_out));  in main()
 
 | 
| /Linux-v5.4/tools/spi/ | 
| D | spidev_test.c | 303 	tx = malloc(size);  in transfer_escaped_string()307 	rx = malloc(size);  in transfer_escaped_string()
 332 	tx = malloc(sb.st_size);  in transfer_file()
 336 	rx = malloc(sb.st_size);  in transfer_file()
 373 	tx = malloc(len);  in transfer_buf()
 379 	rx = malloc(len);  in transfer_buf()
 
 | 
| /Linux-v5.4/tools/usb/ffs-aio-example/multibuff/device_app/ | 
| D | aio_multibuff.c | 211 	iobuf->buf = malloc(n*sizeof(*iobuf->buf));  in init_bufs()212 	iobuf->iocb = malloc(n*sizeof(*iobuf->iocb));  in init_bufs()
 217 		iobuf->buf[i] = malloc(len*sizeof(**iobuf->buf));  in init_bufs()
 218 		iobuf->iocb[i] = malloc(sizeof(**iobuf->iocb));  in init_bufs()
 256 	ep_path = malloc(strlen(argv[1]) + 4 /* "/ep#" */ + 1 /* '\0' */);  in main()
 
 | 
| /Linux-v5.4/tools/lib/bpf/ | 
| D | bpf_prog_linfo.c | 125 	prog_linfo->raw_linfo = malloc(nr_linfo * prog_linfo->rec_size);  in bpf_prog_linfo__new()145 	prog_linfo->raw_jited_linfo = malloc(nr_linfo *  in bpf_prog_linfo__new()
 154 	prog_linfo->nr_jited_linfo_per_func = malloc(nr_jited_func *  in bpf_prog_linfo__new()
 163 	prog_linfo->jited_linfo_func_idx = malloc(nr_jited_func *  in bpf_prog_linfo__new()
 
 | 
| /Linux-v5.4/arch/powerpc/boot/ | 
| D | ops.h | 28 	void *	(*malloc)(unsigned long size);  member218 static inline void *malloc(unsigned long size)  in malloc()  function
 220 	return (platform_ops.malloc) ? platform_ops.malloc(size) : NULL;  in malloc()
 
 | 
| /Linux-v5.4/arch/parisc/boot/compressed/ | 
| D | misc.c | 22 #define malloc	malloc_gzip  macro206 #undef malloc
 207 void *malloc(size_t size)  in malloc()  function
 258 	phdrs = malloc(sizeof(*phdrs) * ehdr.e_phnum);  in parse_elf()
 
 | 
| /Linux-v5.4/tools/perf/arch/x86/tests/ | 
| D | dwarf-unwind.c | 22 	buf = malloc(STACK_SIZE);  in sample_ustack()52 	buf = malloc(sizeof(u64) * PERF_REGS_MAX);  in test__arch_unwind_sample()
 
 | 
| /Linux-v5.4/tools/testing/selftests/cgroup/ | 
| D | cgroup_util.c | 60 	char *ret = malloc(len);  in cg_name()70 	char *ret = malloc(len);  in cg_name_indexed()
 80 	char *ret = malloc(len);  in cg_control()
 112 	buf = malloc(size);  in cg_read_strcmp()
 368 	buf = malloc(size);  in alloc_anon()
 
 | 
| /Linux-v5.4/tools/objtool/ | 
| D | elf.c | 149 		sec = malloc(sizeof(*sec));  in read_sections()224 		sym = malloc(sizeof(*sym));  in read_symbols()
 371 			rela = malloc(sizeof(*rela));  in read_relas()
 411 	elf = malloc(sizeof(*elf));  in elf_read()
 469 	sec = malloc(sizeof(*sec));  in elf_create_section()
 509 		sec->data->d_buf = malloc(size);  in elf_create_section()
 567 	relaname = malloc(strlen(base->name) + strlen(".rela") + 1);  in elf_create_rela_section()
 603 	relas = malloc(size);  in elf_rebuild_rela_section()
 
 | 
| /Linux-v5.4/arch/um/os-Linux/ | 
| D | umid.c | 52 	uml_dir = malloc(strlen(dir) + 1);  in make_uml_dir()223 	file = malloc(strlen(uml_dir) + UMID_LEN + sizeof("/pid\0"));  in create_pid_file()
 378 	uml_dir = malloc(strlen(name) + 2);  in set_uml_dir()
 402 	dir = malloc(strlen(uml_dir) + UMID_LEN + 1);  in remove_umid_dir()
 
 |