Home
last modified time | relevance | path

Searched refs:malloc (Results 1 – 179 of 179) sorted by relevance

/linux-4.1.27/include/linux/decompress/
Dmm.h33 static void *malloc(int size) in malloc() function
61 #define large_malloc(a) malloc(a)
80 #define malloc(a) kmalloc(a, GFP_KERNEL) macro
/linux-4.1.27/tools/perf/util/
Dlevenshtein.c45 int *row0 = malloc(sizeof(int) * (len2 + 1)); in levenshtein()
46 int *row1 = malloc(sizeof(int) * (len2 + 1)); in levenshtein()
47 int *row2 = malloc(sizeof(int) * (len2 + 1)); in levenshtein()
Dvalues.c9 values->pid = malloc(values->threads_max * sizeof(*values->pid)); in perf_read_values_init()
10 values->tid = malloc(values->threads_max * sizeof(*values->tid)); in perf_read_values_init()
11 values->value = malloc(values->threads_max * sizeof(*values->value)); in perf_read_values_init()
17 values->counterrawid = malloc(values->counters_max in perf_read_values_init()
19 values->countername = malloc(values->counters_max in perf_read_values_init()
72 values->value[i] = malloc(values->counters_max * sizeof(**values->value)); in perf_read_values__findnew_thread()
137 counterwidth = malloc(values->counters * sizeof(*counterwidth)); in perf_read_values__display_pretty()
Dtrace-event-read.c155 str = malloc(size); in read_string()
171 buf = malloc(size + 1); in read_proc_kallsyms()
197 buf = malloc(size); in read_ftrace_printk()
229 header_page = malloc(size); in read_header_files()
267 buf = malloc(size); in read_ftrace_file()
286 buf = malloc(size); in read_event_file()
Dthread_map.c36 threads = malloc(sizeof(*threads) + sizeof(pid_t) * items); in thread_map__new_by_pid()
52 struct thread_map *threads = malloc(sizeof(*threads) + sizeof(pid_t)); in thread_map__new_by_tid()
68 struct thread_map *threads = malloc(sizeof(*threads) + in thread_map__new_by_uid()
219 struct thread_map *threads = malloc(sizeof(*threads) + sizeof(pid_t)); in thread_map__new_dummy()
Dtrace-event-scripting.c98 scripting_context = malloc(sizeof(struct scripting_context)); in register_python_scripting()
162 scripting_context = malloc(sizeof(struct scripting_context)); in register_perl_scripting()
Dintlist.c19 struct int_node *node = malloc(sizeof(*node)); in intlist__node_new()
112 struct intlist *ilist = malloc(sizeof(*ilist)); in intlist__new()
Dstrlist.c20 struct str_node *snode = malloc(sizeof(*snode)); in strlist__node_new()
138 struct strlist *slist = malloc(sizeof(*slist)); in strlist__new()
Dsymbol-minimal.c122 buf = malloc(buf_size); in filename__read_build_id()
173 buf = malloc(buf_size); in filename__read_build_id()
234 buf = malloc(buf_size); in sysfs__read_build_id()
Dcpumap.c18 cpus = malloc(sizeof(*cpus) + nr_cpus * sizeof(int)); in cpu_map__default_new()
33 struct cpu_map *cpus = malloc(sizeof(*cpus) + payload_size); in cpu_map__trim_new()
192 struct cpu_map *cpus = malloc(sizeof(*cpus) + sizeof(int)); in cpu_map__dummy_new()
Dalias.c31 *argv = malloc(sizeof(char*) * size); in split_cmdline()
Devent.c461 comm_event = malloc(sizeof(comm_event->comm) + machine->id_hdr_size); in perf_event__synthesize_thread_map()
465 mmap_event = malloc(sizeof(mmap_event->mmap) + machine->id_hdr_size); in perf_event__synthesize_thread_map()
469 fork_event = malloc(sizeof(fork_event->fork) + machine->id_hdr_size); in perf_event__synthesize_thread_map()
533 comm_event = malloc(sizeof(comm_event->comm) + machine->id_hdr_size); in perf_event__synthesize_threads()
537 mmap_event = malloc(sizeof(mmap_event->mmap) + machine->id_hdr_size); in perf_event__synthesize_threads()
541 fork_event = malloc(sizeof(fork_event->fork) + machine->id_hdr_size); in perf_event__synthesize_threads()
Dexec_cmd.c107 nargv = malloc(sizeof(*nargv) * (argc + 2)); in prepare_perf_cmd()
Dparse-events.y27 list = malloc(sizeof(*list)); \
438 struct list_head *head = malloc(sizeof(*head));
Dstring.c354 p = malloc(len); in memdup()
Dthread.c45 comm_str = malloc(32); in thread__new()
Dsrcline.c67 syms = malloc(storage); in slurp_symtab()
Dordered-events.c110 oe->buffer = malloc(size); in alloc_event()
Dmap.c147 struct map *map = malloc(sizeof(*map)); in map__new()
476 struct map_groups *mg = malloc(sizeof(*mg)); in map_groups__new()
Dparse-events.c202 path->system = malloc(MAX_EVENT_LENGTH); in tracepoint_id_to_path()
207 path->name = malloc(MAX_EVENT_LENGTH); in tracepoint_id_to_path()
924 perf_pmu_events_list = malloc(sizeof(struct perf_pmu_event_symbol) * len); in perf_pmu__parse_init()
Dhelp.c10 struct cmdname *ent = malloc(sizeof(*ent) + len + 1); in add_cmdname()
Dhist.c309 he->stat_acc = malloc(sizeof(he->stat)); in hist_entry__new()
328 he->branch_info = malloc(sizeof(*he->branch_info)); in hist_entry__new()
706 he_cache = malloc(sizeof(*he_cache) * (PERF_MAX_STACK_DEPTH + 1)); in iter_prepare_cumulative_entry()
Dtrace-event-info.c502 tdata = malloc(sizeof(*tdata)); in tracing_data_get()
Dsymbol-elf.c1181 char *buf = malloc(page_size); in copy_bytes()
1547 buf_from = malloc(page_size); in kcore_copy__compare_fds()
1548 buf_to = malloc(page_size); in kcore_copy__compare_fds()
Ddata-convert-bt.c579 priv = malloc(sizeof(*priv)); in add_event()
Dsvghelper.c790 topology_map = malloc(sizeof(int) * MAX_NR_CPUS); in svg_build_topology_map()
Dheader.c120 buf = malloc(len); in do_read_string()
990 buf = malloc(sz); in read_event_desc()
2579 ev = malloc(size); in perf_event__synthesize_attr()
Dpmu.c212 alias = malloc(sizeof(*alias)); in perf_pmu__new_alias()
Dcallchain.c63 buf = malloc(strlen(arg) + 1); in parse_callchain_record_opt()
Dsymbol.c1418 name = malloc(PATH_MAX); in dso__load()
1815 vmlinux_path = malloc(sizeof(char *) * 6); in vmlinux_path__init()
Dmachine.c66 struct machine *machine = malloc(sizeof(*machine)); in machine__new_host()
138 struct machine *pos, *machine = malloc(sizeof(*machine)); in machines__add()
Ddso.c309 char *name = malloc(PATH_MAX); in __open_dso()
Dprobe-finder.c1662 *new_path = malloc((strlen(prefix) + strlen(raw_path) + 2)); in get_real_path()
Dsession.c1193 buf = malloc(cur_size); in __perf_session__process_pipe_events()
Dsort.c1343 hse = malloc(sizeof(*hse)); in __sort_dimension__alloc_hpp()
/linux-4.1.27/lib/
Ddecompress_inflate.c50 out_buf = malloc(out_len); in __gunzip()
63 zbuf = malloc(GZIP_IOBUF_SIZE); in __gunzip()
71 strm = malloc(sizeof(*strm)); in __gunzip()
77 strm->workspace = malloc(flush ? zlib_inflate_workspacesize() : in __gunzip()
Ddecompress_unxz.c157 #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()
Dinflate.c244 static void *malloc(int size) in malloc() function
272 #define malloc(a) kmalloc(a, GFP_KERNEL) macro
363 stk = malloc(sizeof(*stk)); in huft_build()
487 if ((q = (struct huft *)malloc((z + 1)*sizeof(struct huft))) == in huft_build()
778 l = malloc(sizeof(*l) * 288); in inflate_fixed()
851 ll = malloc(sizeof(*ll) * (288+32)); /* literal/length and distance code lengths */ in inflate_dynamic()
853 ll = malloc(sizeof(*ll) * (286+30)); /* literal/length and distance code lengths */ in inflate_dynamic()
Ddecompress_unlzo.c131 out_buf = malloc(LZO_BLOCK_SIZE); in unlzo()
147 in_buf = malloc(lzo1x_worst_compress(LZO_BLOCK_SIZE)); in unlzo()
Ddecompress_bunzip2.c641 bd = *bdp = malloc(i); in start_bunzip()
690 outbuf = malloc(BZIP2_IOBUF_SIZE); in bunzip2()
699 inbuf = malloc(BZIP2_IOBUF_SIZE); in bunzip2()
Ddecompress_unlzma.c563 inbuf = malloc(LZMA_IOBUF_SIZE); in unlzma()
/linux-4.1.27/tools/power/cpupower/lib/
Dsysfs.c251 policy = malloc(sizeof(struct cpufreq_policy)); in sysfs_get_freq_policy()
290 current->next = malloc(sizeof(*current)); in sysfs_get_freq_available_governors()
295 first = malloc(sizeof(*first)); in sysfs_get_freq_available_governors()
303 current->governor = malloc(i - pos + 1); in sysfs_get_freq_available_governors()
349 current->next = malloc(sizeof(*current)); in sysfs_get_available_frequencies()
354 first = malloc(sizeof(*first)); in sysfs_get_available_frequencies()
404 current->next = malloc(sizeof(*current)); in sysfs_get_cpu_list()
409 first = malloc(sizeof(*first)); in sysfs_get_cpu_list()
471 current->next = malloc(sizeof(*current)); in sysfs_get_freq_stats()
476 first = malloc(sizeof(*first)); in sysfs_get_freq_stats()
/linux-4.1.27/tools/power/cpupower/utils/idle_monitor/
Dcpuidle_sysfs.c162 previous_count = malloc(sizeof(long long *) * cpu_count); in cpuidle_register()
163 current_count = malloc(sizeof(long long *) * cpu_count); in cpuidle_register()
165 previous_count[num] = malloc(sizeof(long long) * in cpuidle_register()
167 current_count[num] = malloc(sizeof(long long) * in cpuidle_register()
/linux-4.1.27/tools/usb/ffs-aio-example/simple/device_app/
Daio_simple.c227 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-4.1.27/tools/vm/
Dpage_owner_sort.c70 list[list_size].txt = malloc(len+1); in add_list()
109 list = malloc(max_size * sizeof(*list)); in main()
125 list2 = malloc(sizeof(*list) * list_size); in main()
/linux-4.1.27/tools/usb/ffs-aio-example/multibuff/device_app/
Daio_multibuff.c211 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-4.1.27/tools/lib/traceevent/
Devent-plugin.c124 name = malloc(strlen(op->name) + strlen(alias) + 2); in traceevent_plugin_list_options()
229 reg = malloc(sizeof(*reg)); in traceevent_plugin_add_options()
294 plugin = malloc(strlen(path) + strlen(file) + 2); in load_plugin()
322 list = malloc(sizeof(*list)); in load_plugin()
424 path = malloc(strlen(home) + strlen(LOCAL_PLUGIN_DIR) + 2); in load_plugins()
Dtrace-seq.c60 s->buffer = malloc(s->buffer_size); in trace_seq_init()
Dparse-filter.c88 *tok = malloc(3); in read_token()
181 filter = malloc(sizeof(*filter)); in pevent_filter_alloc()
244 list = malloc(sizeof(*list)); in add_event()
285 reg = malloc(strlen(event_name) + 3); in find_event()
298 reg = malloc(strlen(sys_name) + 3); in find_event()
571 op->str.buffer = malloc(op->str.field->size + 1); in add_right()
1299 this_event = malloc(len + 1); in pevent_filter_add_filter_str()
Devent-parse.c167 cmdlines = malloc(sizeof(*cmdlines) * pevent->cmdline_count); in cmdline_init()
303 item = malloc(sizeof(*item)); in pevent_register_comm()
388 func_map = malloc(sizeof(*func_map) * (pevent->func_count + 1)); in func_map_init()
491 struct func_list *item = malloc(sizeof(*item)); in pevent_register_function()
578 printk_map = malloc(sizeof(*printk_map) * (pevent->printk_count + 1)); in printk_map_init()
631 struct printk_list *item = malloc(sizeof(*item)); in pevent_register_print_string()
2095 ref = malloc(len); in eval_type_str()
3679 str = malloc(str_size + 1); in print_bitmask_to_seq()
3783 str = malloc(len + 1); in print_str_arg()
3986 args = malloc(sizeof(*args) * func_handle->nr_args); in process_defined_func()
[all …]
/linux-4.1.27/tools/perf/arch/x86/tests/
Ddwarf-unwind.c19 buf = malloc(STACK_SIZE); in sample_ustack()
49 buf = malloc(sizeof(u64) * PERF_REGS_MAX); in test__arch_unwind_sample()
/linux-4.1.27/arch/powerpc/boot/
Dops.h28 void * (*malloc)(unsigned long size); member
217 static inline void *malloc(unsigned long size) in malloc() function
219 return (platform_ops.malloc) ? platform_ops.malloc(size) : NULL; in malloc()
Dof.c70 platform_ops.malloc = of_try_claim; in of_platform_init()
Dsimple_alloc.c145 platform_ops.malloc = simple_malloc; in simple_alloc_init()
Dmain.c120 initrd_addr = (unsigned long)malloc(initrd_size); in prep_initrd()
Dlibfdt-wrapper.c189 buf = malloc(bufsize); in fdt_init()
Doflib.c193 p = malloc(size); in of_vmlinux_alloc()
Dprpmc2800.c547 dtb = malloc(dt_size); in platform_init()
/linux-4.1.27/tools/iio/
Diio_utils.c312 *ci_array = malloc(sizeof(**ci_array) * (*counter)); in build_channel_array()
458 filename = malloc(strlen(iio_dir) in find_type_by_name()
494 char *temp = malloc(strlen(basedir) + strlen(filename) + 2); in _write_sysfs_int()
543 char *temp = malloc(strlen(basedir) + strlen(filename) + 2); in _write_sysfs_string()
604 char *temp = malloc(strlen(basedir) + strlen(filename) + 2); in read_sysfs_posint()
627 char *temp = malloc(strlen(basedir) + strlen(filename) + 2); in read_sysfs_float()
650 char *temp = malloc(strlen(basedir) + strlen(filename) + 2); in read_sysfs_string()
Dgeneric_buffer.c284 data = malloc(scan_size*buf_len); in main()
/linux-4.1.27/tools/testing/selftests/powerpc/copyloops/
Dvalidate.c70 redzone = malloc(BUFLEN); in test_copy_loop()
71 fill = malloc(BUFLEN); in test_copy_loop()
/linux-4.1.27/tools/perf/bench/
Dsched-messaging.c199 struct sender_context *snd_ctx = malloc(sizeof(struct sender_context) in group()
207 struct receiver_context *ctx = malloc(sizeof(*ctx)); in group()
275 pth_tab = malloc(num_fds * 2 * num_groups * sizeof(pthread_t)); in bench_sched_messaging()
/linux-4.1.27/drivers/scsi/aic7xxx/aicasm/
Daicasm.c231 (path_entry_t)malloc(sizeof(*include_dir)); in main()
500 new_patch = (patch_t *)malloc(sizeof(*new_patch)); in emit_patch()
553 func_values = (int *)malloc(func_count * sizeof(int)); in output_listing()
737 new_instr = (struct instruction *)malloc(sizeof(struct instruction)); in seq_alloc()
751 new_cs= (critical_section_t *)malloc(sizeof(critical_section_t)); in cs_alloc()
765 new_scope = (scope_t *)malloc(sizeof(scope_t)); in scope_alloc()
Daicasm_gram.y1485 (struct reg_info *)malloc(sizeof(struct reg_info)); in initialize_symbol()
1506 (struct alias_info *)malloc(sizeof(struct alias_info)); in initialize_symbol()
1519 (struct field_info *)malloc(sizeof(struct field_info)); in initialize_symbol()
1530 (struct const_info *)malloc(sizeof(struct const_info)); in initialize_symbol()
1540 (struct label_info *)malloc(sizeof(struct label_info)); in initialize_symbol()
1550 (struct cond_info *)malloc(sizeof(struct cond_info)); in initialize_symbol()
1560 (struct macro_info *)malloc(sizeof(struct macro_info)); in initialize_symbol()
1590 marg = (struct macro_arg *)malloc(sizeof(*marg)); in add_macro_arg()
Daicasm_symbol.c70 new_symbol = (symbol_t *)malloc(sizeof(symbol_t)); in symbol_create()
230 newnode = (symbol_node_t *)malloc(sizeof(symbol_node_t)); in symlist_add()
Daicasm_scan.l500 include = (include_t *)malloc(sizeof(include_t));
/linux-4.1.27/tools/perf/tests/
Ddso-data.c32 buf = malloc(size); in test_file()
138 buf = malloc(TEST_FILE_SIZE); in test__dso_data()
194 dsos = malloc(sizeof(dsos) * cnt); in dsos__create()
Dsample-parsing.c232 event = malloc(bufsz); in do_test()
Dswitch-tracking.c209 node = malloc(sizeof(struct event_node)); in add_event()
/linux-4.1.27/arch/um/os-Linux/
Dmain.c103 new_path = malloc(path_len); in setup_env_path()
128 new_argv = malloc((argc + 1) * sizeof(char *)); in main()
Dexecvp.c33 #define um_kmalloc malloc
Dumid.c51 uml_dir = malloc(strlen(dir) + 1); in make_uml_dir()
363 uml_dir = malloc(strlen(name) + 2); in set_uml_dir()
Dmem.c109 tempname = malloc(strlen(tempdir) + strlen(template) + 1); in make_tempfile()
Dstart_up.c368 new = malloc(sizeof(*new)); in parse_iomem()
/linux-4.1.27/tools/power/cpupower/bench/
Dparse.c83 filename = malloc(sizeof(char) * len); in prepare_output()
125 struct config *config = malloc(sizeof(struct config)); in prepare_default_config()
/linux-4.1.27/Documentation/infiniband/
Duser_mad.txt46 mad = malloc(sizeof *mad + 256);
55 mad = malloc(sizeof *mad + 256);
60 mad = malloc(sizeof *mad + length);
87 mad = malloc(sizeof *mad + mad_length);
/linux-4.1.27/tools/testing/selftests/powerpc/pmu/
Dl3_bank_test.c23 p = malloc(MALLOC_SIZE); in l3_bank_test()
/linux-4.1.27/scripts/kconfig/
Dkxgettext.c71 struct file_line *self = malloc(sizeof(*self)); in file_line__new()
95 struct message *self = malloc(sizeof(*self)); in message__new()
Dutil.c133 void *p = malloc(size); in xmalloc()
Dzconf.tab.c332 && ! ((defined YYMALLOC || defined malloc) \
340 # define YYMALLOC malloc
341 # if ! defined malloc && ! defined EXIT_SUCCESS && (defined __STDC__ || defined __C99__FUNC__ \
343 void *malloc (YYSIZE_T); /* INFRINGES ON USER NAME SPACE */
Dzconf.tab.c_shipped289 /* The parser invokes alloca or malloc; define the necessary symbols. */
300 # include <malloc.h> /* INFRINGES ON USER NAME SPACE */
332 && ! ((defined YYMALLOC || defined malloc) \
340 # define YYMALLOC malloc
341 # if ! defined malloc && ! defined EXIT_SUCCESS && (defined __STDC__ || defined __C99__FUNC__ \
343 void *malloc (YYSIZE_T); /* INFRINGES ON USER NAME SPACE */
Dzconf.lex.c2279 return (void *) malloc( size ); in zconfalloc()
Dsymbol.c1031 sym_arr = malloc((cnt+1) * sizeof(struct symbol)); in sym_re_search()
Dzconf.lex.c_shipped2279 return (void *) malloc( size );
/linux-4.1.27/Documentation/ia64/
Daliasing-test.c86 path2 = malloc(strlen(path) + strlen(name) + 3); in scan_tree()
171 path2 = malloc(strlen(path) + strlen(name) + 3); in scan_rom()
/linux-4.1.27/Documentation/spi/
Dspidev_test.c305 tx = malloc(size); in main()
306 rx = malloc(size); in main()
/linux-4.1.27/fs/jffs2/
DMakefile8 jffs2-y := compr.o dir.o file.o ioctl.o nodelist.o malloc.o
/linux-4.1.27/tools/perf/arch/arm/tests/
Ddwarf-unwind.c19 buf = malloc(STACK_SIZE); in sample_ustack()
/linux-4.1.27/scripts/genksyms/
Dgenksyms.h81 #define xmalloc(size) ({ void *__ptr = malloc(size); \
Dparse.tab.c_shipped298 /* The parser invokes alloca or malloc; define the necessary symbols. */
309 # include <malloc.h> /* INFRINGES ON USER NAME SPACE */
342 && ! ((defined YYMALLOC || defined malloc) \
350 # define YYMALLOC malloc
351 # if ! defined malloc && ! defined EXIT_SUCCESS && (defined __STDC__ || defined __C99__FUNC__ \
353 void *malloc (YYSIZE_T); /* INFRINGES ON USER NAME SPACE */
Dlex.lex.c_shipped1884 return (void *) malloc( size );
/linux-4.1.27/arch/mips/include/asm/netlogic/
Dpsb-bootinfo.h62 uint64_t malloc; member
/linux-4.1.27/include/linux/
Dzpool.h87 int (*malloc)(void *pool, size_t size, gfp_t gfp, member
/linux-4.1.27/Documentation/mic/mpssd/
Dsysfs.c58 string = malloc(strlen(value) + 1); in readsysfs()
Dmpssd.c955 mic->mic_virtblk.backend_file = malloc(strlen(evv) + 1); in set_backend_file()
1161 iovec = malloc(sizeof(*iovec) * in virtio_block()
1656 mic->name = malloc(strlen(file->d_name) + 16); in init_mic_list()
/linux-4.1.27/scripts/dtc/
Dutil.h41 void *new = malloc(len); in xmalloc()
Ddtc-parser.tab.c_shipped300 /* The parser invokes alloca or malloc; define the necessary symbols. */
311 # include <malloc.h> /* INFRINGES ON USER NAME SPACE */
344 && ! ((defined YYMALLOC || defined malloc) \
352 # define YYMALLOC malloc
353 # if ! defined malloc && ! defined EXIT_SUCCESS && (defined __STDC__ || defined __C99__FUNC__ \
355 void *malloc (YYSIZE_T); /* INFRINGES ON USER NAME SPACE */
Ddtc-lexer.lex.c_shipped2147 return (void *) malloc( size );
/linux-4.1.27/tools/perf/ui/gtk/
Dutil.c14 ctx = malloc(sizeof(*pgctx)); in perf_gtk__activate_context()
/linux-4.1.27/tools/power/cpupower/utils/helpers/
Dtopology.c69 cpu_top->core_info = malloc(sizeof(struct cpuid_core_info) * cpus); in get_cpu_topology()
Dbitmask.c27 bmp = malloc(sizeof(*bmp)); in bitmask_alloc()
/linux-4.1.27/Documentation/cgroups/
Dmemcg_test.txt217 Run malloc(100M) program under this. You'll see 60M of swaps.
222 # kill malloc task.
237 run 51M of malloc
242 run 51M of malloc
/linux-4.1.27/tools/virtio/linux/
Dkernel.h48 return malloc(s); in kmalloc()
/linux-4.1.27/tools/virtio/
Dvirtio_test.c119 dev->buf = malloc(dev->buf_size); in vdev_info_init()
125 dev->mem = malloc(offsetof(struct vhost_memory, regions) + in vdev_info_init()
/linux-4.1.27/arch/alpha/boot/
Dmisc.c166 window = malloc(WSIZE); in decompress_kernel()
/linux-4.1.27/scripts/
Dpnmtologo.c163 logo_data = (struct color **)malloc(logo_height*sizeof(struct color *)); in read_image()
167 logo_data[i] = malloc(logo_width*sizeof(struct color)); in read_image()
Ddocproc.c260 vec = malloc((2 + 2 * symcnt + 3) * sizeof(char *)); in docfunctions()
392 data = malloc(4096); in find_all_symbols()
Dkallsyms.c165 s->sym = malloc(s->len + 1); in read_symbol()
377 markers = malloc(sizeof(unsigned int) * ((table_cnt + 255) / 256)); in write_src()
Drecordmcount.c128 void *const addr = malloc(size); in umalloc()
Dasn1_compiler.c576 if (!(buffer = malloc(st.st_size + 1))) { in main()
1067 action = malloc(sizeof(struct action) + cursor->size + 1); in parse_type()
/linux-4.1.27/tools/testing/selftests/vm/
Dtranshuge-stress.c99 map = malloc(map_len); in main()
/linux-4.1.27/tools/testing/selftests/powerpc/mm/
Dsubpage_prot.c99 map = malloc(pages * 4); in run_test()
/linux-4.1.27/tools/perf/ui/browsers/
Dscripts.c53 buf = malloc(SCRIPT_MAX_NO * (SCRIPT_NAMELEN + SCRIPT_FULLPATH_LEN)); in list_scripts()
/linux-4.1.27/usr/
Dgen_init_cpio.c322 filebuf = malloc(buf.st_size); in cpio_mkfile()
421 dname = malloc(strlen(line)); in cpio_mkfile_line()
/linux-4.1.27/tools/power/cpupower/utils/
Dcpupower.c86 page = malloc(len); in print_man_page()
/linux-4.1.27/tools/perf/Documentation/
Dperf-probe.txt216 Add probes at malloc() function on libc
218 ./perf probe -x /lib/libc.so.6 malloc or ./perf probe /lib/libc.so.6 malloc
/linux-4.1.27/Documentation/networking/timestamping/
Dtxtimestamp.c239 data = malloc(cfg_payload_len); in recv_errmsg()
288 buf = malloc(total_len); in do_test()
/linux-4.1.27/arch/um/
DMakefile131 LINK_WRAPS = -Wl,--wrap,malloc -Wl,--wrap,free -Wl,--wrap,calloc
/linux-4.1.27/tools/net/
Dbpf_jit_disasm.c93 char *buff = malloc(len); in get_klog_buff()
/linux-4.1.27/tools/testing/selftests/memfd/
Dfuse_test.c205 stack = malloc(STACK_SIZE); in spawn_sealing_thread()
Dmemfd_test.c511 stack = malloc(STACK_SIZE); in spawn_idle_thread()
/linux-4.1.27/tools/perf/ui/stdio/
Dhist.c70 rem_sq_bracket = malloc(sizeof(*rem_sq_bracket) + 6); in init_rem_hits()
455 line = malloc(linesz); in hists__fprintf()
/linux-4.1.27/arch/unicore32/boot/compressed/
Dhead.S100 mov r1, sp @ malloc space above stack
/linux-4.1.27/mm/
Dzpool.c249 return zpool->driver->malloc(zpool->pool, size, gfp, handle); in zpool_malloc()
Dzbud.c193 .malloc = zbud_zpool_malloc,
Dzsmalloc.c383 .malloc = zs_zpool_malloc,
/linux-4.1.27/tools/testing/selftests/ipc/
Dmsgque.c149 msgque->messages = malloc(sizeof(struct msg1) * ds.msg_qnum); in dump_queue()
/linux-4.1.27/firmware/
Dihex2fw.c160 record = malloc((sizeof (*record) + len + 3) & ~3); in process_ihex()
/linux-4.1.27/tools/perf/
Dbuiltin-script.c814 struct script_spec *s = malloc(sizeof(*s) + strlen(spec) + 1); in script_spec__new()
1474 char **__argv = malloc(sizeof(const char *) * argc); in have_cmd()
1666 __argv = malloc((argc + 6) * sizeof(const char *)); in cmd_script()
1692 __argv = malloc((argc + 4) * sizeof(const char *)); in cmd_script()
1730 __argv = malloc((argc + 2) * sizeof(const char *)); in cmd_script()
Dbuiltin-help.c307 char *p = malloc(pre_len + cmd_len + 1); in prepend()
Dbuiltin-inject.c284 ent = malloc(event->header.size + sizeof(struct event_entry)); in perf_inject__sched_switch()
Dbuiltin-kmem.c86 data = malloc(sizeof(*data)); in insert_alloc_stat()
129 data = malloc(sizeof(*data)); in insert_caller_stat()
Dbuiltin-top.c297 char *buf = malloc(0), *p; in prompt_integer()
332 char *buf = malloc(0), *p; in perf_top__prompt_symbol()
Dbuiltin-timechart.c1082 task_from = malloc(40); in draw_wakeups()
1086 task_to = malloc(40); in draw_wakeups()
1307 struct process_filter *filt = malloc(sizeof(*filt)); in add_process_filter()
Dbuiltin-trace.c162 evsel->priv = malloc(sizeof(struct syscall_tp)); in perf_evsel__init_syscall_tp()
1671 stats = malloc(sizeof(struct stats)); in thread__update_stats()
1733 ttrace->entry_str = malloc(1024); in trace__sys_enter()
Dbuiltin-stat.c339 array = malloc(array_len * sizeof(void *)); in nth_evsel()
Dbuiltin-sched.c561 struct sched_thread_parms *parms = malloc(sizeof(*parms)); in create_tasks()
/linux-4.1.27/tools/usb/
Dffs-test.c247 out = malloc(length); in descs_to_legacy()
333 t->buf = malloc(t->buf_size); in init_thread()
/linux-4.1.27/drivers/gpu/drm/radeon/
Dmkregtable.c555 offset = (struct offset *)malloc(sizeof(struct offset)); in offset_new()
607 t->table = (unsigned *)malloc(sizeof(unsigned) * t->nentry); in table_build()
/linux-4.1.27/arch/x86/boot/compressed/
Dmisc.c341 phdrs = malloc(sizeof(*phdrs) * ehdr.e_phnum); in parse_elf()
/linux-4.1.27/tools/lguest/
Dlguest.c1848 char *stack = malloc(32768); in start_virtqueue()
2380 struct virtqueue **i, *vq = malloc(sizeof(*vq)); in add_pci_virtqueue()
2625 struct device *dev = malloc(sizeof(*dev)); in new_pci_device()
2670 dev->priv = malloc(sizeof(struct console_abort)); in setup_console()
2837 struct net_info *net_info = malloc(sizeof(*net_info)); in setup_tun_net()
3042 vblk = dev->priv = malloc(sizeof(*vblk)); in setup_block_file()
3110 struct rng_info *rng_info = malloc(sizeof(*rng_info)); in setup_rng()
/linux-4.1.27/arch/x86/tools/
Drelocs.c432 sec->strtab = malloc(sec->shdr.sh_size); in read_strtabs()
457 sec->symtab = malloc(sec->shdr.sh_size); in read_symtabs()
490 sec->reltab = malloc(sec->shdr.sh_size); in read_relocs()
/linux-4.1.27/scripts/mod/
Dsumversion.c312 cmd = NOFAIL(malloc(strlen(objfile) + sizeof("..cmd"))); in parse_source_files()
323 dir = NOFAIL(malloc(dirlen + 1)); in parse_source_files()
Dmodpost.c134 mod = NOFAIL(malloc(sizeof(*mod))); in new_module()
194 struct symbol *s = NOFAIL(malloc(sizeof(*s) + strlen(name) + 1)); in alloc_symbol()
1309 char *p = malloc(20); in sec2annotation()
2248 tmp = NOFAIL(malloc(b->pos)); in write_if_changed()
2388 NOFAIL(malloc(sizeof(*extsym_iter))); in main()
/linux-4.1.27/scripts/basic/
Dfixdep.c181 struct item *aux = malloc(sizeof(*aux) + len); in define_config()
/linux-4.1.27/tools/usb/usbip/libsrc/
Dvhci_driver.c175 buffer = malloc(buffer_len); in read_record()
/linux-4.1.27/Documentation/
Dnommu-mmap.txt136 significant delays during a userspace malloc() as the C library does an
140 returned by malloc() - mmap() can take a MAP_UNINITIALIZED flag to
145 uClibc uses this to speed up malloc(), and the ELF-FDPIC binfmt uses this
/linux-4.1.27/tools/lib/lockdep/
Dpreload.c159 return malloc(sizeof(struct lock_lookup)); in alloc_lock()
/linux-4.1.27/scripts/kconfig/lxdialog/
Dchecklist.c34 char *list_item = malloc(list_width + 1); in print_item()
Dmenubox.c70 char *menu_item = malloc(menu_width + 1); in do_print_item()
Dutil.c609 struct dialog_list *p = malloc(sizeof(*p)); in item_make()
/linux-4.1.27/tools/testing/selftests/mqueue/
Dmq_open_tests.c253 queue_path = malloc(strlen(argv[1]) + 2); in main()
Dmq_perf_tests.c604 queue_path = malloc(strlen(option) + 2); in main()
/linux-4.1.27/tools/firewire/
Dnosy-dump.c152 sa = malloc(sizeof *sa - sizeof sa->packet + length); in subaction_create()
184 t = malloc(sizeof *t); in link_transaction_lookup()
/linux-4.1.27/tools/power/acpi/os_specific/service_layers/
Dosunixxf.c549 mem = (void *)malloc((size_t) size); in acpi_os_allocate()
/linux-4.1.27/Documentation/misc-devices/mei/
Dmei-amt-version.c379 *read_buf = (uint8_t *)malloc(sizeof(uint8_t) * in_buf_sz); in amt_host_if_call()
/linux-4.1.27/tools/testing/selftests/exec/
Dexecveat.c118 char *result = malloc(strlen(left) + strlen(right) + 1); in concat()
/linux-4.1.27/tools/perf/util/scripting-engines/
Dtrace-event-perl.c386 command_line = malloc((argc + 2) * sizeof(const char *)); in perl_start_script()
Dtrace-event-python.c961 command_line = malloc((argc + 1) * sizeof(const char *)); in python_start_script()
/linux-4.1.27/tools/hv/
Dhv_kvp_daemon.c266 record = malloc(alloc_unit * num_blocks); in kvp_file_init()
1602 lic_version = malloc(strlen(p) + 1); in main()
/linux-4.1.27/tools/testing/selftests/net/
Dpsock_tpacket.c656 ring->rd = malloc(ring->rd_len); in setup_ring()
/linux-4.1.27/net/ceph/crush/
Dmapper.c17 # define kmalloc(x, f) malloc(x)
/linux-4.1.27/arch/mips/boot/
Delf2ecoff.c140 if (!(tmp = (char *) malloc(len))) { in saveRead()
/linux-4.1.27/arch/frv/kernel/
Dgdb-stub.c2126 static void *malloc(size_t size) __maybe_unused;
2127 static void *malloc(size_t size) in malloc() function
/linux-4.1.27/Documentation/sysctl/
Dvm.txt375 malloc, directly by mmap and mprotect, and also when loading shared
379 programs, particularly malloc debuggers, may consume lots of them,
636 programs that malloc() huge amounts of memory "just-in-case"
/linux-4.1.27/Documentation/ide/
DChangeLog.ide-cd.1994-2004154 * malloc'ed but never free'd when closing the device.
/linux-4.1.27/Documentation/x86/
Dintel_mpx.txt71 * allocates virtual space for the bounds directory (malloc() essentially)
/linux-4.1.27/fs/befs/
DChangeLog170 * Fixed a couple of compile warnings due to use of malloc.h, when slab.h
/linux-4.1.27/Documentation/scsi/
Daic7xxx.txt176 - Dynamically sized S/G lists to avoid SCSI malloc
Daic79xx.txt120 list size to avoid SCSI malloc pool fragmentation.
DChangeLog.1992-19971272 allow us to pretend that we have a working malloc when we
DChangeLog.lpfc1677 * Removed unused malloc counters from lpfcLINUXfcp.c.
/linux-4.1.27/Documentation/vm/
Dtranshuge.txt75 a flood of mmap system calls for every malloc(4k). Optimizing userland
/linux-4.1.27/arch/arm/boot/compressed/
Dhead.S540 mov r1, sp @ malloc space above stack
/linux-4.1.27/Documentation/networking/
Dpacket_mmap.txt848 ring->rd = malloc(ring->req.tp_block_nr * sizeof(*ring->rd));
/linux-4.1.27/drivers/usb/gadget/function/
Df_fs.c48 static struct ffs_data *__must_check ffs_data_new(void) __attribute__((malloc));
/linux-4.1.27/Documentation/s390/
DDebugging390.txt421 like malloc.
1744 As an aside the debugger also calls malloc & free under the hood
/linux-4.1.27/init/
DKconfig1739 This is taken advantage of by uClibc's malloc(), and also by
/linux-4.1.27/Documentation/filesystems/
Dproc.txt911 "used" by them as of yet. A process which malloc()'s 1G