Home
last modified time | relevance | path

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

/linux-4.4.14/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.4.14/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()
195 buf = malloc(size); in read_ftrace_printk()
227 header_page = malloc(size); in read_header_files()
265 buf = malloc(size); in read_ftrace_file()
284 buf = malloc(size); in read_event_file()
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()
Dcpumap.c19 cpus = malloc(sizeof(*cpus) + nr_cpus * sizeof(int)); in cpu_map__default_new()
35 struct cpu_map *cpus = malloc(sizeof(*cpus) + payload_size); in cpu_map__trim_new()
195 struct cpu_map *cpus = malloc(sizeof(*cpus) + sizeof(int)); in cpu_map__dummy_new()
208 struct cpu_map *cpus = malloc(sizeof(*cpus) + sizeof(int) * nr); in cpu_map__empty_new()
Dstrlist.c20 struct str_node *snode = malloc(sizeof(*snode)); in strlist__node_new()
156 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()
Dstring.c354 p = malloc(len); in memdup()
371 char *expr = malloc(size); in asprintf_expr_inout_ints()
Dalias.c31 *argv = malloc(sizeof(char*) * size); in split_cmdline()
Devent.c494 comm_event = malloc(sizeof(comm_event->comm) + machine->id_hdr_size); in perf_event__synthesize_thread_map()
498 mmap_event = malloc(sizeof(mmap_event->mmap) + machine->id_hdr_size); in perf_event__synthesize_thread_map()
502 fork_event = malloc(sizeof(fork_event->fork) + machine->id_hdr_size); in perf_event__synthesize_thread_map()
568 comm_event = malloc(sizeof(comm_event->comm) + machine->id_hdr_size); in perf_event__synthesize_threads()
572 mmap_event = malloc(sizeof(mmap_event->mmap) + machine->id_hdr_size); in perf_event__synthesize_threads()
576 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.y26 list = malloc(sizeof(*list)); \
498 struct list_head *head = malloc(sizeof(*head));
Dthread.c45 comm_str = malloc(32); in thread__new()
Dstrfilter.c301 ret = malloc(len + 1); in strfilter__string()
Dsrcline.c69 syms = malloc(storage); in slurp_symtab()
Dordered-events.c110 oe->buffer = malloc(size); in alloc_event()
Dauxtrace.c207 p = malloc(size); in auxtrace_copy_data()
573 auxtrace_index = malloc(sizeof(struct auxtrace_index)); in auxtrace_index__alloc()
1356 return malloc(c->entry_size); in auxtrace_cache__alloc_entry()
Dhelp.c10 struct cmdname *ent = malloc(sizeof(*ent) + len + 1); in add_cmdname()
Dmap.c149 struct map *map = malloc(sizeof(*map)); in map__new()
519 struct map_groups *mg = malloc(sizeof(*mg)); in map_groups__new()
Dtrace-event-info.c496 tdata = malloc(sizeof(*tdata)); in tracing_data_get()
Ddata-convert-bt.c633 new_name = malloc(len); in change_name()
832 priv = malloc(sizeof(*priv)); in add_event()
Dhist.c329 he->stat_acc = malloc(sizeof(he->stat)); in hist_entry__new()
347 he->branch_info = malloc(sizeof(*he->branch_info)); in hist_entry__new()
723 he_cache = malloc(sizeof(*he_cache) * (iter->max_stack + 1)); in iter_prepare_cumulative_entry()
Dsymbol-elf.c1199 char *buf = malloc(page_size); in copy_bytes()
1565 buf_from = malloc(page_size); in kcore_copy__compare_fds()
1566 buf_to = malloc(page_size); in kcore_copy__compare_fds()
Dparse-events.c212 path->system = malloc(MAX_EVENT_LENGTH); in tracepoint_id_to_path()
217 path->name = malloc(MAX_EVENT_LENGTH); in tracepoint_id_to_path()
1296 perf_pmu_events_list = malloc(sizeof(struct perf_pmu_event_symbol) * len); in perf_pmu__parse_init()
Dutil.c484 buf = malloc(strlen(arg) + 1); in parse_callchain_record()
Dsvghelper.c790 topology_map = malloc(sizeof(int) * MAX_NR_CPUS); in svg_build_topology_map()
Dheader.c120 buf = malloc(len); in do_read_string()
993 buf = malloc(sz); in read_event_desc()
2668 ev = malloc(size); in perf_event__synthesize_attr()
Dpmu.c215 alias = malloc(sizeof(*alias)); in __perf_pmu__new_alias()
Dsymbol.c1454 name = malloc(PATH_MAX); in dso__load()
1869 vmlinux_path = malloc(sizeof(char *) * 6); in vmlinux_path__init()
Dmachine.c71 struct machine *machine = malloc(sizeof(*machine)); in machine__new_host()
157 struct machine *pos, *machine = malloc(sizeof(*machine)); in machines__add()
Ddso.c348 char *name = malloc(PATH_MAX); in __open_dso()
Dprobe-finder.c1766 *new_path = malloc((strlen(prefix) + strlen(raw_path) + 2)); in get_real_path()
Dsort.c1479 hse = malloc(sizeof(*hse)); in __sort_dimension__alloc_hpp()
Dsession.c1437 buf = malloc(cur_size); in __perf_session__process_pipe_events()
Dintel-pt.c696 ptq->event_buf = malloc(PERF_SAMPLE_MAX_SIZE); in intel_pt_alloc_queue()
Dprobe-event.c2523 syms = malloc(sizeof(struct symbol *) * probe_conf.max_probes); in find_probe_trace_events_from_map()
/linux-4.4.14/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.4.14/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.4.14/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.4.14/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.4.14/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.4.14/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.4.14/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()
456 struct func_resolver *resolver = malloc(sizeof(*resolver)); in pevent_set_function_resolver()
556 struct func_list *item = malloc(sizeof(*item)); in pevent_register_function()
643 printk_map = malloc(sizeof(*printk_map) * (pevent->printk_count + 1)); in printk_map_init()
696 struct printk_list *item = malloc(sizeof(*item)); in pevent_register_print_string()
2170 ref = malloc(len); in eval_type_str()
3805 str = malloc(str_size + 1); in print_bitmask_to_seq()
3909 str = malloc(len + 1); in print_str_arg()
[all …]
/linux-4.4.14/tools/perf/arch/x86/tests/
Ddwarf-unwind.c20 buf = malloc(STACK_SIZE); in sample_ustack()
50 buf = malloc(sizeof(u64) * PERF_REGS_MAX); in test__arch_unwind_sample()
/linux-4.4.14/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()
Dlibfdt-wrapper.c189 buf = malloc(bufsize); in fdt_init()
Dmain.c120 initrd_addr = (unsigned long)malloc(initrd_size); in prep_initrd()
Doflib.c193 p = malloc(size); in of_vmlinux_alloc()
/linux-4.4.14/tools/iio/
Diio_utils.c372 *ci_array = malloc(sizeof(**ci_array) * (*counter)); in build_channel_array()
602 filename = malloc(strlen(iio_dir) + strlen(type) in find_type_by_name()
661 char *temp = malloc(strlen(basedir) + strlen(filename) + 2); in _write_sysfs_int()
757 char *temp = malloc(strlen(basedir) + strlen(filename) + 2); in _write_sysfs_string()
864 char *temp = malloc(strlen(basedir) + strlen(filename) + 2); in read_sysfs_posint()
911 char *temp = malloc(strlen(basedir) + strlen(filename) + 2); in read_sysfs_float()
958 char *temp = malloc(strlen(basedir) + strlen(filename) + 2); in read_sysfs_string()
Dgeneric_buffer.c383 data = malloc(scan_size * buf_len); in main()
/linux-4.4.14/tools/testing/selftests/powerpc/copyloops/
Dvalidate.c70 redzone = malloc(BUFLEN); in test_copy_loop()
71 fill = malloc(BUFLEN); in test_copy_loop()
/linux-4.4.14/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.4.14/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.4.14/tools/perf/tests/
Ddso-data.c32 buf = malloc(size); in test_file()
149 buf = malloc(TEST_FILE_SIZE); in test__dso_data()
205 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.4.14/arch/um/os-Linux/
Dmain.c104 new_path = malloc(path_len); in setup_env_path()
129 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.4.14/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.4.14/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.4.14/tools/testing/selftests/powerpc/pmu/
Dl3_bank_test.c23 p = malloc(MALLOC_SIZE); in l3_bank_test()
/linux-4.4.14/Documentation/spi/
Dspidev_test.c305 tx = malloc(size); in main()
306 rx = malloc(size); in main()
/linux-4.4.14/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.4.14/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.c345 && ! ((defined YYMALLOC || defined malloc) \
353 # define YYMALLOC malloc
354 # if ! defined malloc && ! defined EXIT_SUCCESS && (defined __STDC__ || defined __C99__FUNC__ \
356 void *malloc (YYSIZE_T); /* INFRINGES ON USER NAME SPACE */
Dzconf.tab.c_shipped301 /* The parser invokes alloca or malloc; define the necessary symbols. */
312 # include <malloc.h> /* INFRINGES ON USER NAME SPACE */
345 && ! ((defined YYMALLOC || defined malloc) \
353 # define YYMALLOC malloc
354 # if ! defined malloc && ! defined EXIT_SUCCESS && (defined __STDC__ || defined __C99__FUNC__ \
356 void *malloc (YYSIZE_T); /* INFRINGES ON USER NAME SPACE */
Dzconf.lex.c2332 return (void *) malloc( size ); in zconfalloc()
Dsymbol.c1030 sym_arr = malloc((cnt+1) * sizeof(struct symbol)); in sym_re_search()
Dzconf.lex.c_shipped2332 return (void *) malloc( size );
/linux-4.4.14/tools/net/
Dbpf_jit_disasm.c101 buff = malloc(len); in get_klog_buff()
130 buff = malloc(len); in get_flog_buff()
/linux-4.4.14/samples/bpf/
Dtracex6_user.c19 int *pmu_fd = malloc(nr_cpus * sizeof(int)); in test_bpf_perf_event()
/linux-4.4.14/fs/jffs2/
DMakefile8 jffs2-y := compr.o dir.o file.o ioctl.o nodelist.o malloc.o
/linux-4.4.14/tools/perf/arch/arm64/tests/
Ddwarf-unwind.c19 buf = malloc(STACK_SIZE); in sample_ustack()
/linux-4.4.14/tools/perf/arch/arm/tests/
Ddwarf-unwind.c19 buf = malloc(STACK_SIZE); in sample_ustack()
/linux-4.4.14/scripts/genksyms/
Dgenksyms.h81 #define xmalloc(size) ({ void *__ptr = malloc(size); \
Dparse.tab.c_shipped310 /* The parser invokes alloca or malloc; define the necessary symbols. */
321 # include <malloc.h> /* INFRINGES ON USER NAME SPACE */
354 && ! ((defined YYMALLOC || defined malloc) \
362 # define YYMALLOC malloc
363 # if ! defined malloc && ! defined EXIT_SUCCESS && (defined __STDC__ || defined __C99__FUNC__ \
365 void *malloc (YYSIZE_T); /* INFRINGES ON USER NAME SPACE */
Dlex.lex.c_shipped1884 return (void *) malloc( size );
/linux-4.4.14/include/linux/
Dzpool.h92 int (*malloc)(void *pool, size_t size, gfp_t gfp, member
/linux-4.4.14/arch/mips/include/asm/netlogic/
Dpsb-bootinfo.h62 uint64_t malloc; member
/linux-4.4.14/Documentation/mic/mpssd/
Dsysfs.c58 string = malloc(strlen(value) + 1); in readsysfs()
Dmpssd.c984 mic->mic_virtblk.backend_file = malloc(strlen(evv) + 1); in set_backend_file()
1195 iovec = malloc(sizeof(*iovec) * in virtio_block()
1754 mic->name = malloc(strlen(file->d_name) + 16); in init_mic_list()
/linux-4.4.14/scripts/dtc/
Dutil.h43 void *new = malloc(len); in xmalloc()
Ddtc-parser.tab.c_shipped308 /* The parser invokes alloca or malloc; define the necessary symbols. */
319 # include <malloc.h> /* INFRINGES ON USER NAME SPACE */
351 && ! ((defined YYMALLOC || defined malloc) \
359 # define YYMALLOC malloc
360 # if ! defined malloc && ! defined EXIT_SUCCESS
361 void *malloc (YYSIZE_T); /* INFRINGES ON USER NAME SPACE */
Ddtc-lexer.lex.c_shipped2176 return (void *) malloc( size );
/linux-4.4.14/tools/perf/ui/gtk/
Dutil.c14 ctx = malloc(sizeof(*pgctx)); in perf_gtk__activate_context()
/linux-4.4.14/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.4.14/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.4.14/tools/lib/bpf/
Dlibbpf.c254 prog->insns = malloc(size); in bpf_program__init()
478 obj->maps_buf = malloc(size); in bpf_object__init_maps()
618 prog->reloc_desc = malloc(sizeof(*prog->reloc_desc) * nrels); in bpf_program__collect_reloc()
681 obj->map_fds = malloc(sizeof(int) * nr_maps); in bpf_object__create_maps()
821 log_buf = malloc(BPF_LOG_BUF_SIZE); in load_program()
/linux-4.4.14/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.4.14/tools/virtio/linux/
Dkernel.h49 return malloc(s); in kmalloc()
/linux-4.4.14/arch/alpha/boot/
Dmisc.c166 window = malloc(WSIZE); in decompress_kernel()
/linux-4.4.14/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()
Dasn1_compiler.c427 tokens[tix].content = malloc(tokens[tix].size + 1); in tokenise()
467 tokens[tix].content = malloc(tokens[tix].size + 1); in tokenise()
609 if (!(buffer = malloc(st.st_size + 1))) { in main()
1092 action = malloc(sizeof(struct action)); in parse_type()
Drecordmcount.c173 void *const addr = malloc(size); in umalloc()
/linux-4.4.14/tools/testing/selftests/vm/
Dcompaction_test.c196 entry = malloc(sizeof(struct map_list)); in main()
Dtranshuge-stress.c99 map = malloc(map_len); in main()
Duserfaultfd.c458 count_verify = malloc(nr_pages * sizeof(unsigned long long)); in userfaultfd_stress()
478 pipefd = malloc(sizeof(int) * nr_cpus * 2); in userfaultfd_stress()
/linux-4.4.14/tools/testing/selftests/powerpc/mm/
Dsubpage_prot.c99 map = malloc(pages * 4); in run_test()
/linux-4.4.14/tools/perf/ui/browsers/
Dscripts.c53 buf = malloc(SCRIPT_MAX_NO * (SCRIPT_NAMELEN + SCRIPT_FULLPATH_LEN)); in list_scripts()
/linux-4.4.14/usr/
Dgen_init_cpio.c322 filebuf = malloc(buf.st_size); in cpio_mkfile()
421 dname = malloc(strlen(line)); in cpio_mkfile_line()
/linux-4.4.14/tools/power/cpupower/utils/
Dcpupower.c86 page = malloc(len); in print_man_page()
/linux-4.4.14/Documentation/networking/timestamping/
Dtxtimestamp.c239 data = malloc(cfg_payload_len); in recv_errmsg()
288 buf = malloc(total_len); in do_test()
/linux-4.4.14/mm/
Dzpool.c257 return zpool->driver->malloc(zpool->pool, size, gfp, handle); in zpool_malloc()
Dzbud.c208 .malloc = zbud_zpool_malloc,
Dzsmalloc.c388 .malloc = zs_zpool_malloc,
/linux-4.4.14/arch/um/
DMakefile132 LINK_WRAPS = -Wl,--wrap,malloc -Wl,--wrap,free -Wl,--wrap,calloc
/linux-4.4.14/tools/testing/selftests/memfd/
Dfuse_test.c205 stack = malloc(STACK_SIZE); in spawn_sealing_thread()
Dmemfd_test.c512 stack = malloc(STACK_SIZE); in spawn_idle_thread()
/linux-4.4.14/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.4.14/tools/perf/Documentation/
Dperf-probe.txt223 Add probes at malloc() function on libc
225 ./perf probe -x /lib/libc.so.6 malloc or ./perf probe /lib/libc.so.6 malloc
/linux-4.4.14/arch/unicore32/boot/compressed/
Dhead.S100 mov r1, sp @ malloc space above stack
/linux-4.4.14/firmware/
Dihex2fw.c160 record = malloc((sizeof (*record) + len + 3) & ~3); in process_ihex()
/linux-4.4.14/tools/testing/selftests/ipc/
Dmsgque.c149 msgque->messages = malloc(sizeof(struct msg1) * ds.msg_qnum); in dump_queue()
/linux-4.4.14/tools/usb/
Dffs-test.c247 out = malloc(length); in descs_to_legacy()
333 t->buf = malloc(t->buf_size); in init_thread()
/linux-4.4.14/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.4.14/tools/lguest/
Dlguest.c1852 char *stack = malloc(32768); in start_virtqueue()
2384 struct virtqueue **i, *vq = malloc(sizeof(*vq)); in add_pci_virtqueue()
2629 struct device *dev = malloc(sizeof(*dev)); in new_pci_device()
2674 dev->priv = malloc(sizeof(struct console_abort)); in setup_console()
2841 struct net_info *net_info = malloc(sizeof(*net_info)); in setup_tun_net()
3046 vblk = dev->priv = malloc(sizeof(*vblk)); in setup_block_file()
3114 struct rng_info *rng_info = malloc(sizeof(*rng_info)); in setup_rng()
/linux-4.4.14/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.4.14/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.c135 mod = NOFAIL(malloc(sizeof(*mod))); in new_module()
195 struct symbol *s = NOFAIL(malloc(sizeof(*s) + strlen(name) + 1)); in alloc_symbol()
1313 char *p = malloc(20); in sec2annotation()
2263 tmp = NOFAIL(malloc(b->pos)); in write_if_changed()
2403 NOFAIL(malloc(sizeof(*extsym_iter))); in main()
/linux-4.4.14/arch/x86/boot/compressed/
Dmisc.c358 phdrs = malloc(sizeof(*phdrs) * ehdr.e_phnum); in parse_elf()
/linux-4.4.14/scripts/basic/
Dfixdep.c181 struct item *aux = malloc(sizeof(*aux) + len); in define_config()
/linux-4.4.14/tools/perf/
Dbuiltin-script.c1004 struct script_spec *s = malloc(sizeof(*s) + strlen(spec) + 1); in script_spec__new()
1665 char **__argv = malloc(sizeof(const char *) * argc); in have_cmd()
1896 __argv = malloc((argc + 6) * sizeof(const char *)); in cmd_script()
1922 __argv = malloc((argc + 4) * sizeof(const char *)); in cmd_script()
1960 __argv = malloc((argc + 2) * sizeof(const char *)); in cmd_script()
Dbuiltin-help.c307 char *p = malloc(pre_len + cmd_len + 1); in prepend()
Dbuiltin-top.c303 char *buf = malloc(0), *p; in prompt_integer()
338 char *buf = malloc(0), *p; in perf_top__prompt_symbol()
Dbuiltin-timechart.c1083 task_from = malloc(40); in draw_wakeups()
1087 task_to = malloc(40); in draw_wakeups()
1308 struct process_filter *filt = malloc(sizeof(*filt)); in add_process_filter()
Dbuiltin-trace.c228 evsel->priv = malloc(sizeof(struct syscall_tp)); in perf_evsel__init_syscall_tp()
1744 trace->ev_qualifier_ids.entries = malloc(trace->ev_qualifier_ids.nr * in trace__validate_ev_qualifier()
1921 stats = malloc(sizeof(struct stats)); in thread__update_stats()
1980 ttrace->entry_str = malloc(trace__entry_str_size); in trace__sys_enter()
Dbuiltin-inject.c428 ent = malloc(event->header.size + sizeof(struct event_entry)); in perf_inject__sched_switch()
Dbuiltin-kmem.c92 data = malloc(sizeof(*data)); in insert_alloc_stat()
135 data = malloc(sizeof(*data)); in insert_caller_stat()
Dbuiltin-record.c643 event = malloc(sizeof(event->comm) + machine->id_hdr_size); in __cmd_record()
Dbuiltin-sched.c563 struct sched_thread_parms *parms = malloc(sizeof(*parms)); in create_tasks()
/linux-4.4.14/tools/usb/usbip/libsrc/
Dvhci_driver.c175 buffer = malloc(buffer_len); in read_record()
/linux-4.4.14/tools/testing/selftests/seccomp/
Dseccomp_bpf.c640 self->prog.filter = malloc(sizeof(filter)); in FIXTURE_SETUP()
780 self->_x.filter = malloc(sizeof(_x##_insns)); \ in FIXTURE_SETUP()
1170 self->prog.filter = malloc(sizeof(filter)); in FIXTURE_SETUP()
1376 self->prog.filter = malloc(sizeof(filter)); in FIXTURE_SETUP()
1643 self->root_prog.filter = malloc(sizeof(root_filter)); in FIXTURE_SETUP()
1648 self->apply_prog.filter = malloc(sizeof(apply_filter)); in FIXTURE_SETUP()
/linux-4.4.14/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.4.14/tools/lib/lockdep/
Dpreload.c159 return malloc(sizeof(struct lock_lookup)); in alloc_lock()
/linux-4.4.14/tools/testing/selftests/mqueue/
Dmq_open_tests.c254 queue_path = malloc(strlen(argv[1]) + 2); in main()
Dmq_perf_tests.c605 queue_path = malloc(strlen(option) + 2); in main()
/linux-4.4.14/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.4.14/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.4.14/tools/testing/selftests/exec/
Dexecveat.c118 char *result = malloc(strlen(left) + strlen(right) + 1); in concat()
/linux-4.4.14/tools/power/acpi/os_specific/service_layers/
Dosunixxf.c549 mem = (void *)malloc((size_t) size); in acpi_os_allocate()
/linux-4.4.14/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.4.14/Documentation/DocBook/
Dalsa-driver-api.xml.db23 API-snd-malloc-pages
128 API-snd-pcm-lib-malloc-pages
Dnetworking.xml.db228 API-rpc-malloc
Ddevice-drivers.xml.db706 API-snd-pcm-lib-malloc-pages
779 API-snd-malloc-pages
/linux-4.4.14/tools/perf/util/scripting-engines/
Dtrace-event-perl.c387 command_line = malloc((argc + 2) * sizeof(const char *)); in perl_start_script()
Dtrace-event-python.c962 command_line = malloc((argc + 1) * sizeof(const char *)); in python_start_script()
/linux-4.4.14/tools/hv/
Dhv_kvp_daemon.c264 record = malloc(alloc_unit * num_blocks); in kvp_file_init()
1513 lic_version = malloc(strlen(p) + 1); in main()
/linux-4.4.14/arch/mips/boot/
Delf2ecoff.c140 if (!(tmp = (char *) malloc(len))) { in saveRead()
/linux-4.4.14/tools/testing/selftests/net/
Dpsock_tpacket.c656 ring->rd = malloc(ring->rd_len); in setup_ring()
/linux-4.4.14/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.4.14/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.4.14/tools/perf/arch/x86/util/
Dintel-pt.c75 terms = malloc(sizeof(struct list_head)); in intel_pt_parse_terms_with_default()
/linux-4.4.14/Documentation/ide/
DChangeLog.ide-cd.1994-2004154 * malloc'ed but never free'd when closing the device.
/linux-4.4.14/Documentation/x86/
Dintel_mpx.txt71 * allocates virtual space for the bounds directory (malloc() essentially)
/linux-4.4.14/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.4.14/fs/befs/
DChangeLog170 * Fixed a couple of compile warnings due to use of malloc.h, when slab.h
/linux-4.4.14/Documentation/vm/
Dtranshuge.txt75 a flood of mmap system calls for every malloc(4k). Optimizing userland
/linux-4.4.14/tools/perf/util/intel-pt-decoder/
Dintel-pt-decoder.c273 blk = malloc(sizeof(struct intel_pt_blk)); in intel_pt_alloc_blk()
/linux-4.4.14/arch/arm/boot/compressed/
Dhead.S540 mov r1, sp @ malloc space above stack
/linux-4.4.14/Documentation/networking/
Dpacket_mmap.txt848 ring->rd = malloc(ring->req.tp_block_nr * sizeof(*ring->rd));
/linux-4.4.14/drivers/usb/gadget/function/
Df_fs.c48 static struct ffs_data *__must_check ffs_data_new(void) __attribute__((malloc));
/linux-4.4.14/Documentation/s390/
DDebugging390.txt421 like malloc.
1744 As an aside the debugger also calls malloc & free under the hood
/linux-4.4.14/init/
DKconfig1770 This is taken advantage of by uClibc's malloc(), and also by
/linux-4.4.14/Documentation/filesystems/
Dproc.txt926 "used" by them as of yet. A process which malloc()'s 1G