Searched refs:zalloc (Results 1 - 60 of 60) sorted by relevance

/linux-4.4.14/tools/perf/util/
H A Dxyarray.c7 struct xyarray *xy = zalloc(sizeof(*xy) + xlen * row_size); xyarray__new()
H A Dcounts.c7 struct perf_counts *counts = zalloc(sizeof(*counts)); perf_counts__new()
H A Dzlib.c22 .zalloc = Z_NULL, gzip_decompress_to_file()
H A Dcomm.c36 cs = zalloc(sizeof(*cs)); comm_str__alloc()
84 struct comm *comm = zalloc(sizeof(*comm)); comm__new()
H A Dpstack.c21 struct pstack *pstack = zalloc((sizeof(*pstack) + pstack__new()
H A Dstrfilter.c65 struct strfilter_node *node = zalloc(sizeof(*node)); strfilter_node__alloc()
157 struct strfilter *filter = zalloc(sizeof(*filter)); strfilter__new()
H A Dbuild-id.c363 *linkname = zalloc(size), *targetname, *tmp; build_id_cache__add_s()
442 char *filename = zalloc(size), build_id_cache__remove_s()
443 *linkname = zalloc(size), *tmp; build_id_cache__remove_s()
H A Dcgroup.c95 cgrp = zalloc(sizeof(*cgrp));
H A Dstat.c113 evsel->priv = zalloc(sizeof(struct perf_stat_evsel)); perf_evsel__alloc_stat_priv()
215 mask = zalloc(MAX_NR_CPUS); check_per_pkg()
H A Dprobe-finder.c97 struct debuginfo *dbg = zalloc(sizeof(*dbg)); __debuginfo__new()
159 ref = zalloc(sizeof(struct probe_trace_arg_ref)); alloc_trace_arg_ref()
229 tvar->value = zalloc(ret + 2); convert_variable_location()
347 *ref_ptr = zalloc(sizeof(struct probe_trace_arg_ref)); convert_variable_type()
424 ref = zalloc(sizeof(struct probe_trace_arg_ref)); convert_variable_fields()
457 ref = zalloc(sizeof(struct probe_trace_arg_ref)); convert_variable_fields()
1213 args = zalloc(sizeof(struct perf_probe_arg) * MAX_PROBE_ARGS); add_probe_trace_event()
1224 tev->args = zalloc(sizeof(struct probe_trace_arg) * tev->nargs); add_probe_trace_event()
1260 *tevs = zalloc(sizeof(struct probe_trace_event) * tf.max_tevs); debuginfo__find_trace_events()
1399 *vls = zalloc(sizeof(struct variable_list) * af.max_vls); debuginfo__find_available_vars_at()
H A Dthread-stack.c131 ts = zalloc(sizeof(struct thread_stack)); thread_stack__new()
354 cpr = zalloc(sizeof(struct call_path_root)); call_path_root__new()
386 cpb = zalloc(sizeof(struct call_path_block)); call_path__new()
446 crp = zalloc(sizeof(struct call_return_processor)); call_return_processor__new()
H A Dthread.c33 struct thread *thread = zalloc(sizeof(*thread)); thread__new()
H A Dparse-events.c211 path = zalloc(sizeof(*path)); for_each_event()
239 struct tracepoint_path *path = zalloc(sizeof(*path)); tracepoint_name_to_path()
879 __t = zalloc(sizeof(*__t)); \ get_config_terms()
1645 evt_list = zalloc(sizeof(char *) * evt_num); print_tracepoint_events()
1805 evt_list = zalloc(sizeof(char *) * evt_num); print_hwcache_events()
1881 evt_list = zalloc(sizeof(char *) * evt_num); print_symbol_events()
1991 term = zalloc(sizeof(*term)); new_term()
H A Dpmu.c480 pmu = zalloc(sizeof(*pmu)); pmu_lookup()
900 format = zalloc(sizeof(*format)); perf_pmu__new_format()
988 aliases = zalloc(sizeof(char *) * len); print_pmu_events()
H A Dprobe-event.c1386 *fieldp = zalloc(sizeof(struct perf_probe_arg_field)); parse_perf_probe_arg()
1464 pev->args = zalloc(sizeof(struct perf_probe_arg) * pev->nargs); parse_perf_probe_command()
1594 tev->args = zalloc(sizeof(struct probe_trace_arg) * tev->nargs); parse_probe_trace_command()
1670 buf = zalloc(MAX_CMDLEN); synthesize_perf_probe_point()
1827 buf = zalloc(MAX_CMDLEN); synthesize_probe_trace_command()
1977 pev->args = zalloc(sizeof(struct perf_probe_arg) * pev->nargs); convert_to_perf_probe_event()
2090 node = zalloc(sizeof(*node)); kprobe_blacklist__load()
2557 *tevs = zalloc(sizeof(*tev) * num_matched_functions); find_probe_trace_events_from_map()
2606 tev->args = zalloc(sizeof(struct probe_trace_arg) * find_probe_trace_events_from_map()
2663 *tevs = zalloc(sizeof(*tev)); try_to_find_absolute_address()
2718 tev->args = zalloc(sizeof(struct probe_trace_arg) * tev->nargs); try_to_find_absolute_address()
H A Ddb-export.c67 de = zalloc(sizeof(struct deferred_export)); db_export__defer_comm()
H A Dsrcline.c120 a2l = zalloc(sizeof(*a2l)); addr2line_init()
H A Dstring.c121 char **argv = zalloc(sizeof(*argv) * (argc+1)); argv_split()
H A Dcallchain.c359 new = zalloc(sizeof(*new)); create_child()
407 call = zalloc(sizeof(*call)); fill_node()
H A Dintel-bts.c158 btsq = zalloc(sizeof(struct intel_bts_queue)); intel_bts_alloc_queue()
868 bts = zalloc(sizeof(struct intel_bts)); intel_bts_process_auxtrace_info()
H A Dannotate.c174 ops->locked.ops = zalloc(sizeof(*ops->locked.ops)); lock__parse()
462 /* Check for overflow in zalloc argument */ symbol__alloc_hist()
467 notes->src = zalloc(sizeof(*notes->src) + symbol_conf.nr_events * sizeof_sym_hist); symbol__alloc_hist()
721 struct disasm_line *dl = zalloc(sizeof(*dl) + privsize); disasm_line__new()
H A Dutil.h182 static inline void *zalloc(size_t size) zalloc() function
H A Dauxtrace.c323 buffer = zalloc(sizeof(struct auxtrace_buffer)); auxtrace_queues__add_event()
856 ev = zalloc(sizeof(struct auxtrace_info_event) + priv_size); perf_event__synthesize_auxtrace_info()
1299 c = zalloc(sizeof(struct auxtrace_cache)); auxtrace_cache__new()
H A Dintel-pt.c670 ptq = zalloc(sizeof(struct intel_pt_queue)); intel_pt_alloc_queue()
678 ptq->chain = zalloc(sz); intel_pt_alloc_queue()
688 ptq->last_branch = zalloc(sz); intel_pt_alloc_queue()
691 ptq->last_branch_rb = zalloc(sz); intel_pt_alloc_queue()
2022 pt = zalloc(sizeof(struct intel_pt)); intel_pt_process_auxtrace_info()
H A Ddata-convert-bt.c458 cs = zalloc(sizeof(*cs)); ctf_stream__create()
872 stream = zalloc(sizeof(*stream) * ncpus); setup_streams()
H A Devent.c360 union perf_event *event = zalloc((sizeof(event->mmap) + perf_event__synthesize_modules()
666 event = zalloc((sizeof(event->mmap) + machine->id_hdr_size)); perf_event__synthesize_kernel_mmap()
H A Devsel.c222 struct perf_evsel *evsel = zalloc(perf_evsel__object.size); perf_evsel__new_idx()
235 struct perf_evsel *evsel = zalloc(perf_evsel__object.size); perf_evsel__newtp_idx()
1003 evsel->id = zalloc(ncpus * nthreads * sizeof(u64)); perf_evsel__alloc_id()
H A Dsession.c117 struct perf_session *session = zalloc(sizeof(*session)); perf_session__new()
1712 ref = zalloc(sizeof(struct ref_reloc_sym)); maps__set_kallsyms_ref_reloc_sym()
2037 ev = zalloc(sz); perf_event__synthesize_id_index()
H A Devlist.c51 struct perf_evlist *evlist = zalloc(sizeof(*evlist)); perf_evlist__new()
869 evlist->mmap = zalloc(evlist->nr_mmaps * sizeof(struct perf_mmap)); perf_evlist__alloc_mmap()
H A Dheader.c1550 cmdline = zalloc(section->size + nr + 1); process_cmdline()
1554 argv = zalloc(sizeof(char *) * (nr + 1)); process_cmdline()
H A Ddso.c653 cache = zalloc(sizeof(*cache) + DSO__DATA_CACHE_SIZE); dso_cache__read()
H A Dhist.c323 he = zalloc(sizeof(*he) + callchain_size); hist_entry__new()
H A Dmachine.c1546 struct mem_info *mi = zalloc(sizeof(*mi)); sample__resolve_mem()
H A Dsymbol.c920 mi = zalloc(sizeof(struct module_info)); __read_proc_modules()
/linux-4.4.14/arch/xtensa/boot/lib/
H A Dzmem.c12 void *zalloc(unsigned size) zalloc() function
61 s.workspace = zalloc(zlib_inflate_workspacesize()); gunzip()
/linux-4.4.14/tools/virtio/virtio-trace/
H A Dtrace-agent.c54 s = zalloc(sizeof(struct agent_info)); agent_info_new()
56 pr_err("agent_info zalloc error\n"); agent_info_new()
116 buf = zalloc(PATH_MAX); make_path()
H A Dtrace-agent.h62 static inline void *zalloc(size_t size) zalloc() function
H A Dtrace-agent-rw.c26 rw_ti = zalloc(sizeof(struct rw_thread_info)); rw_thread_info_new()
28 pr_err("rw_thread_info zalloc error\n"); rw_thread_info_new()
/linux-4.4.14/tools/perf/bench/
H A Dmem-functions.c197 *dst = zalloc(size); memcpy_alloc_mem()
201 *src = zalloc(size); memcpy_alloc_mem()
295 *dst = zalloc(size); memset_alloc_mem()
H A Dnuma.c1246 pthreads = zalloc(g->p.nr_threads * sizeof(pthread_t)); worker_process()
1441 pids = zalloc(g->p.nr_proc * sizeof(*pids)); __bench_numa()
/linux-4.4.14/include/linux/
H A Dzlib.h108 has dropped to zero. The application must initialize zalloc, zfree and
113 parameter for calls of zalloc and zfree. This can be useful for custom
117 zalloc must return NULL if there is not enough memory for the object.
118 If zlib is used in a multi-threaded application, zalloc and zfree must be
121 On 16-bit systems, the functions zalloc and zfree must be able to allocate
124 pointers returned by zalloc for objects of exactly 65536 bytes *must*
198 zalloc, zfree and opaque must be initialized before by the caller.
199 If zalloc and zfree are set to NULL, deflateInit updates them to
325 inflate. If zalloc and zfree are set to NULL, inflateInit updates them to
462 fields next_in, zalloc, zfree and opaque must be initialized before by
505 stream state was inconsistent (such as zalloc or state being NULL).
517 fields next_in, avail_in, zalloc, zfree and opaque must be initialized
562 stream state was inconsistent (such as zalloc or state being NULL).
/linux-4.4.14/tools/perf/ui/browsers/
H A Dscripts.c130 buf = zalloc((sizeof(*sline)) * MAX_LINES); script_browse()
H A Dannotate.c1042 browser.offsets = zalloc(size * sizeof(struct disasm_line *)); symbol__tui_annotate()
H A Dhists.c1230 struct hist_browser *browser = zalloc(sizeof(*browser)); hist_browser__new()
/linux-4.4.14/tools/perf/
H A Dbuiltin-timechart.c206 cursor = zalloc(sizeof(*cursor)); find_create_pid()
232 c = zalloc(sizeof(*c)); pid_set_comm()
276 c = zalloc(sizeof(*c)); pid_put_sample()
283 sample = zalloc(sizeof(*sample)); pid_put_sample()
353 struct power_event *pwr = zalloc(sizeof(*pwr)); c_state_end()
375 pwr = zalloc(sizeof(*pwr)); p_state_change()
408 struct wake_event *we = zalloc(sizeof(*we)); sched_wakeup()
686 pwr = zalloc(sizeof(*pwr)); end_sample_processing()
701 pwr = zalloc(sizeof(*pwr)); end_sample_processing()
729 c = zalloc(sizeof(*c)); pid_begin_io_sample()
750 sample = zalloc(sizeof(*sample)); pid_begin_io_sample()
H A Dbuiltin-lock.c167 st = zalloc(sizeof(struct thread_stat)); thread_stat_findnew_after_first()
189 st = zalloc(sizeof(struct thread_stat)); thread_stat_findnew_first()
323 new = zalloc(sizeof(struct lock_stat));
328 new->name = zalloc(sizeof(char) * strlen(name) + 1);
368 seq = zalloc(sizeof(struct lock_seq_stat)); get_seq()
H A Dbuiltin-help.c181 *p = zalloc(sizeof(**p) + len + 1); add_man_viewer()
196 struct man_viewer_info_list *new = zalloc(sizeof(*new) + len + 1); do_add_man_viewer_info()
H A Dbuiltin-bench.c166 name = zalloc(size); run_bench()
H A Dbuiltin-sched.c244 struct sched_atom *event = zalloc(sizeof(*event)); get_new_event()
311 wakee_event->wait_sem = zalloc(sizeof(*wakee_event->wait_sem)); add_sched_event_wakeup()
352 task = zalloc(sizeof(*task)); register_pid()
868 struct work_atoms *atoms = zalloc(sizeof(*atoms)); thread_atoms_insert()
892 struct work_atom *atom = zalloc(sizeof(*atom)); add_sched_out_event()
H A Dbuiltin-kmem.c445 data = zalloc(sizeof(*data)); __page_stat__findnew_page()
500 data = zalloc(sizeof(*data)); __page_stat__findnew_alloc()
555 data = zalloc(sizeof(*data)); __page_stat__findnew_caller()
H A Dbuiltin-probe.c161 buf = zalloc(len + 1); parse_probe_event_argv()
H A Dbuiltin-diff.c1188 fmt = zalloc(sizeof(*fmt));
1244 data__files = zalloc(sizeof(*data__files) * data__files_cnt); data_init()
H A Dbuiltin-kvm.c184 event = zalloc(sizeof(*event)); kvm_alloc_init_event()
382 vcpu_record = zalloc(sizeof(*vcpu_record)); per_vcpu_record()
H A Dbuiltin-script.c1286 struct script_desc *s = zalloc(sizeof(*s)); script_desc__new()
H A Dbuiltin-trace.c1362 struct thread_trace *ttrace = zalloc(sizeof(struct thread_trace)); thread_trace__new()
/linux-4.4.14/tools/perf/arch/x86/util/
H A Dintel-pt.c265 attr = zalloc(sizeof(struct perf_event_attr)); intel_pt_pmu_default_config()
794 ref_buf = zalloc(ref_buf_size); intel_pt_alloc_snapshot_ref()
1028 ptr = zalloc(sizeof(struct intel_pt_recording)); intel_pt_recording_init()
H A Dintel-bts.c439 btsr = zalloc(sizeof(struct intel_bts_recording)); intel_bts_recording_init()
/linux-4.4.14/arch/powerpc/sysdev/
H A Dmsi_bitmap.c140 /* We zalloc'ed the bitmap, so all irqs are free by default */ msi_bitmap_alloc()
/linux-4.4.14/tools/perf/util/intel-pt-decoder/
H A Dintel-pt-decoder.c185 decoder = zalloc(sizeof(struct intel_pt_decoder)); intel_pt_decoder_new()
/linux-4.4.14/kernel/
H A Dworkqueue.c3095 * init_worker_pool - initialize a newly zalloc'd worker_pool
3098 * Initialize a newly zalloc'd @pool. It also allocates @pool->attrs.

Completed in 1252 milliseconds